@azure/arm-sqlvirtualmachine 5.0.0-beta.7 → 5.0.0-beta.9
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 +14 -4
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.d.ts +11 -0
- package/dist/browser/lroImpl.d.ts.map +1 -0
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +234 -68
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +8 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +14 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +415 -42
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/parameters.js +11 -2
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/availabilityGroupListeners.d.ts +6 -6
- package/dist/browser/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/availabilityGroupListeners.js +136 -122
- package/dist/browser/operations/availabilityGroupListeners.js.map +1 -0
- package/dist/browser/operations/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +13 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +32 -43
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineGroups.d.ts +7 -7
- package/dist/browser/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineGroups.js +217 -196
- package/dist/browser/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/browser/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
- package/dist/browser/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/browser/operations/sqlVirtualMachineTroubleshoot.js +119 -0
- package/dist/browser/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachines.d.ts +31 -31
- package/dist/browser/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/browser/operations/sqlVirtualMachines.js +797 -0
- package/dist/browser/operations/sqlVirtualMachines.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityGroupListeners.d.ts +4 -4
- package/dist/browser/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +13 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineGroups.d.ts +5 -5
- package/dist/browser/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachines.d.ts +26 -26
- package/dist/browser/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/sqlVirtualMachineManagementClient.d.ts +3 -2
- package/dist/browser/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sqlVirtualMachineManagementClient.js +36 -25
- package/dist/browser/sqlVirtualMachineManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +21 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-sqlvirtualmachine.d.ts → dist/commonjs/models/index.d.ts} +1292 -1554
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +229 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +53 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1757 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +19 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +155 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/availabilityGroupListeners.d.ts +89 -0
- package/dist/commonjs/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/commonjs/operations/availabilityGroupListeners.js +372 -0
- package/dist/commonjs/operations/availabilityGroupListeners.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +6 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +16 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +121 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/sqlVirtualMachineGroups.d.ts +117 -0
- package/dist/commonjs/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/commonjs/operations/sqlVirtualMachineGroups.js +540 -0
- package/dist/commonjs/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
- package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.js +124 -0
- package/dist/commonjs/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist/commonjs/operations/sqlVirtualMachines.d.ts +176 -0
- package/dist/commonjs/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/commonjs/operations/sqlVirtualMachines.js +802 -0
- package/dist/commonjs/operations/sqlVirtualMachines.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
- package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.js +10 -0
- package/dist/commonjs/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +16 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.js +10 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +10 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.d.ts +119 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.js +10 -0
- package/dist/commonjs/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/sqlVirtualMachineManagementClient.d.ts +24 -0
- package/dist/commonjs/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/dist/commonjs/sqlVirtualMachineManagementClient.js +119 -0
- package/dist/commonjs/sqlVirtualMachineManagementClient.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +18 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1292 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +226 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +53 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1753 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +19 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +152 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/availabilityGroupListeners.d.ts +89 -0
- package/dist/esm/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/esm/operations/availabilityGroupListeners.js +367 -0
- package/dist/esm/operations/availabilityGroupListeners.js.map +1 -0
- package/dist/esm/operations/index.d.ts +6 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +13 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +116 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/sqlVirtualMachineGroups.d.ts +117 -0
- package/dist/esm/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/esm/operations/sqlVirtualMachineGroups.js +535 -0
- package/dist/esm/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/esm/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
- package/dist/esm/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/esm/operations/sqlVirtualMachineTroubleshoot.js +119 -0
- package/dist/esm/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist/esm/operations/sqlVirtualMachines.d.ts +176 -0
- package/dist/esm/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/esm/operations/sqlVirtualMachines.js +797 -0
- package/dist/esm/operations/sqlVirtualMachines.js.map +1 -0
- package/dist/esm/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
- package/dist/esm/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/availabilityGroupListeners.js +9 -0
- package/dist/esm/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +6 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +13 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachines.d.ts +119 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachines.js +9 -0
- package/dist/esm/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/sqlVirtualMachineManagementClient.d.ts +24 -0
- package/dist/esm/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/dist/esm/sqlVirtualMachineManagementClient.js +114 -0
- package/dist/esm/sqlVirtualMachineManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +18 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1292 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +226 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +53 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1753 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +19 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +152 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/availabilityGroupListeners.d.ts +89 -0
- package/dist/react-native/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/react-native/operations/availabilityGroupListeners.js +367 -0
- package/dist/react-native/operations/availabilityGroupListeners.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +6 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +13 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +116 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/sqlVirtualMachineGroups.d.ts +117 -0
- package/dist/react-native/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/react-native/operations/sqlVirtualMachineGroups.js +535 -0
- package/dist/react-native/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
- package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.js +119 -0
- package/dist/react-native/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist/react-native/operations/sqlVirtualMachines.d.ts +176 -0
- package/dist/react-native/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/react-native/operations/sqlVirtualMachines.js +797 -0
- package/dist/react-native/operations/sqlVirtualMachines.js.map +1 -0
- package/dist/react-native/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
- package/dist/react-native/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/availabilityGroupListeners.js +9 -0
- package/dist/react-native/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +13 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachines.d.ts +119 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachines.js +9 -0
- package/dist/react-native/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/sqlVirtualMachineManagementClient.d.ts +24 -0
- package/dist/react-native/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/dist/react-native/sqlVirtualMachineManagementClient.js +114 -0
- package/dist/react-native/sqlVirtualMachineManagementClient.js.map +1 -0
- package/package.json +84 -73
- package/review/{arm-sqlvirtualmachine.api.md → arm-sqlvirtualmachine-node.api.md} +131 -13
- package/dist/index.js +0 -3708
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +0 -98
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +0 -40
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +0 -40
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +0 -53
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -51
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +0 -55
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +0 -39
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +0 -52
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +0 -51
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +0 -40
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +0 -287
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +0 -39
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +0 -52
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +0 -53
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +0 -51
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +0 -39
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +0 -39
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +0 -40
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.d.ts +0 -16
- package/dist-esm/src/lroImpl.d.ts.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +0 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.js +0 -12
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +0 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +0 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +0 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +0 -767
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.js +0 -12
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +0 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -1285
- package/src/models/mappers.ts +0 -1465
- package/src/models/parameters.ts +0 -170
- package/src/operations/availabilityGroupListeners.ts +0 -501
- package/src/operations/index.ts +0 -12
- package/src/operations/operations.ts +0 -145
- package/src/operations/sqlVirtualMachineGroups.ts +0 -691
- package/src/operations/sqlVirtualMachines.ts +0 -1055
- package/src/operationsInterfaces/availabilityGroupListeners.ts +0 -115
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +0 -147
- package/src/operationsInterfaces/sqlVirtualMachines.ts +0 -210
- package/src/pagingHelper.ts +0 -39
- package/src/sqlVirtualMachineManagementClient.ts +0 -156
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityGroupListeners.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineGroups.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachines.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
|
@@ -5,16 +5,16 @@
|
|
|
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 {
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
13
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing AvailabilityGroupListeners operations. */
|
|
17
16
|
export class AvailabilityGroupListenersImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class AvailabilityGroupListeners class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,50 +39,35 @@ export class AvailabilityGroupListenersImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByGroupNext(resourceGroupName, sqlVirtualMachineGroupName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listByGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _b = __asyncValues(this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
74
|
-
const page = _c.value;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
67
|
+
async *listByGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
68
|
+
for await (const page of this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
86
71
|
}
|
|
87
72
|
/**
|
|
88
73
|
* Gets an availability group listener.
|
|
@@ -109,44 +94,52 @@ export class AvailabilityGroupListenersImpl {
|
|
|
109
94
|
* @param parameters The availability group listener.
|
|
110
95
|
* @param options The options parameters.
|
|
111
96
|
*/
|
|
112
|
-
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
97
|
+
async beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
|
|
98
|
+
const directSendOperation = async (args, spec) => {
|
|
99
|
+
return this.client.sendOperationRequest(args, spec);
|
|
100
|
+
};
|
|
101
|
+
const sendOperationFn = async (args, spec) => {
|
|
102
|
+
let currentRawResponse = undefined;
|
|
103
|
+
const providedCallback = args.options?.onResponse;
|
|
104
|
+
const callback = (rawResponse, flatResponse) => {
|
|
105
|
+
currentRawResponse = rawResponse;
|
|
106
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
107
|
+
};
|
|
108
|
+
const updatedArgs = {
|
|
109
|
+
...args,
|
|
110
|
+
options: {
|
|
111
|
+
...args.options,
|
|
112
|
+
onResponse: callback
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
116
|
+
return {
|
|
117
|
+
flatResponse,
|
|
118
|
+
rawResponse: {
|
|
119
|
+
statusCode: currentRawResponse.status,
|
|
120
|
+
body: currentRawResponse.parsedBody,
|
|
121
|
+
headers: currentRawResponse.headers.toJSON()
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
const lro = createLroSpec({
|
|
126
|
+
sendOperationFn,
|
|
127
|
+
args: {
|
|
137
128
|
resourceGroupName,
|
|
138
129
|
sqlVirtualMachineGroupName,
|
|
139
130
|
availabilityGroupListenerName,
|
|
140
131
|
parameters,
|
|
141
132
|
options
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
145
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
146
|
-
});
|
|
147
|
-
yield poller.poll();
|
|
148
|
-
return poller;
|
|
133
|
+
},
|
|
134
|
+
spec: createOrUpdateOperationSpec
|
|
149
135
|
});
|
|
136
|
+
const poller = await createHttpPoller(lro, {
|
|
137
|
+
restoreFrom: options?.resumeFrom,
|
|
138
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
139
|
+
resourceLocationConfig: "azure-async-operation"
|
|
140
|
+
});
|
|
141
|
+
await poller.poll();
|
|
142
|
+
return poller;
|
|
150
143
|
}
|
|
151
144
|
/**
|
|
152
145
|
* Creates or updates an availability group listener.
|
|
@@ -157,11 +150,9 @@ export class AvailabilityGroupListenersImpl {
|
|
|
157
150
|
* @param parameters The availability group listener.
|
|
158
151
|
* @param options The options parameters.
|
|
159
152
|
*/
|
|
160
|
-
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return poller.pollUntilDone();
|
|
164
|
-
});
|
|
153
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
|
|
154
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options);
|
|
155
|
+
return poller.pollUntilDone();
|
|
165
156
|
}
|
|
166
157
|
/**
|
|
167
158
|
* Deletes an availability group listener.
|
|
@@ -171,43 +162,51 @@ export class AvailabilityGroupListenersImpl {
|
|
|
171
162
|
* @param availabilityGroupListenerName Name of the availability group listener.
|
|
172
163
|
* @param options The options parameters.
|
|
173
164
|
*/
|
|
174
|
-
beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
165
|
+
async beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
|
|
166
|
+
const directSendOperation = async (args, spec) => {
|
|
167
|
+
return this.client.sendOperationRequest(args, spec);
|
|
168
|
+
};
|
|
169
|
+
const sendOperationFn = async (args, spec) => {
|
|
170
|
+
let currentRawResponse = undefined;
|
|
171
|
+
const providedCallback = args.options?.onResponse;
|
|
172
|
+
const callback = (rawResponse, flatResponse) => {
|
|
173
|
+
currentRawResponse = rawResponse;
|
|
174
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
175
|
+
};
|
|
176
|
+
const updatedArgs = {
|
|
177
|
+
...args,
|
|
178
|
+
options: {
|
|
179
|
+
...args.options,
|
|
180
|
+
onResponse: callback
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
184
|
+
return {
|
|
185
|
+
flatResponse,
|
|
186
|
+
rawResponse: {
|
|
187
|
+
statusCode: currentRawResponse.status,
|
|
188
|
+
body: currentRawResponse.parsedBody,
|
|
189
|
+
headers: currentRawResponse.headers.toJSON()
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
const lro = createLroSpec({
|
|
194
|
+
sendOperationFn,
|
|
195
|
+
args: {
|
|
199
196
|
resourceGroupName,
|
|
200
197
|
sqlVirtualMachineGroupName,
|
|
201
198
|
availabilityGroupListenerName,
|
|
202
199
|
options
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
200
|
+
},
|
|
201
|
+
spec: deleteOperationSpec
|
|
202
|
+
});
|
|
203
|
+
const poller = await createHttpPoller(lro, {
|
|
204
|
+
restoreFrom: options?.resumeFrom,
|
|
205
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
206
|
+
resourceLocationConfig: "location"
|
|
210
207
|
});
|
|
208
|
+
await poller.poll();
|
|
209
|
+
return poller;
|
|
211
210
|
}
|
|
212
211
|
/**
|
|
213
212
|
* Deletes an availability group listener.
|
|
@@ -217,11 +216,9 @@ export class AvailabilityGroupListenersImpl {
|
|
|
217
216
|
* @param availabilityGroupListenerName Name of the availability group listener.
|
|
218
217
|
* @param options The options parameters.
|
|
219
218
|
*/
|
|
220
|
-
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
return poller.pollUntilDone();
|
|
224
|
-
});
|
|
219
|
+
async beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
|
|
220
|
+
const poller = await this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options);
|
|
221
|
+
return poller.pollUntilDone();
|
|
225
222
|
}
|
|
226
223
|
/**
|
|
227
224
|
* Lists all availability group listeners in a SQL virtual machine group.
|
|
@@ -254,7 +251,9 @@ const getOperationSpec = {
|
|
|
254
251
|
200: {
|
|
255
252
|
bodyMapper: Mappers.AvailabilityGroupListener
|
|
256
253
|
},
|
|
257
|
-
default: {
|
|
254
|
+
default: {
|
|
255
|
+
bodyMapper: Mappers.ErrorResponse
|
|
256
|
+
}
|
|
258
257
|
},
|
|
259
258
|
queryParameters: [Parameters.expand, Parameters.apiVersion],
|
|
260
259
|
urlParameters: [
|
|
@@ -283,7 +282,9 @@ const createOrUpdateOperationSpec = {
|
|
|
283
282
|
204: {
|
|
284
283
|
bodyMapper: Mappers.AvailabilityGroupListener
|
|
285
284
|
},
|
|
286
|
-
default: {
|
|
285
|
+
default: {
|
|
286
|
+
bodyMapper: Mappers.ErrorResponse
|
|
287
|
+
}
|
|
287
288
|
},
|
|
288
289
|
requestBody: Parameters.parameters,
|
|
289
290
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -301,7 +302,15 @@ const createOrUpdateOperationSpec = {
|
|
|
301
302
|
const deleteOperationSpec = {
|
|
302
303
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
303
304
|
httpMethod: "DELETE",
|
|
304
|
-
responses: {
|
|
305
|
+
responses: {
|
|
306
|
+
200: {},
|
|
307
|
+
201: {},
|
|
308
|
+
202: {},
|
|
309
|
+
204: {},
|
|
310
|
+
default: {
|
|
311
|
+
bodyMapper: Mappers.ErrorResponse
|
|
312
|
+
}
|
|
313
|
+
},
|
|
305
314
|
queryParameters: [Parameters.apiVersion],
|
|
306
315
|
urlParameters: [
|
|
307
316
|
Parameters.$host,
|
|
@@ -310,6 +319,7 @@ const deleteOperationSpec = {
|
|
|
310
319
|
Parameters.availabilityGroupListenerName,
|
|
311
320
|
Parameters.subscriptionId
|
|
312
321
|
],
|
|
322
|
+
headerParameters: [Parameters.accept],
|
|
313
323
|
serializer
|
|
314
324
|
};
|
|
315
325
|
const listByGroupOperationSpec = {
|
|
@@ -319,7 +329,9 @@ const listByGroupOperationSpec = {
|
|
|
319
329
|
200: {
|
|
320
330
|
bodyMapper: Mappers.AvailabilityGroupListenerListResult
|
|
321
331
|
},
|
|
322
|
-
default: {
|
|
332
|
+
default: {
|
|
333
|
+
bodyMapper: Mappers.ErrorResponse
|
|
334
|
+
}
|
|
323
335
|
},
|
|
324
336
|
queryParameters: [Parameters.apiVersion],
|
|
325
337
|
urlParameters: [
|
|
@@ -338,7 +350,9 @@ const listByGroupNextOperationSpec = {
|
|
|
338
350
|
200: {
|
|
339
351
|
bodyMapper: Mappers.AvailabilityGroupListenerListResult
|
|
340
352
|
},
|
|
341
|
-
default: {
|
|
353
|
+
default: {
|
|
354
|
+
bodyMapper: Mappers.ErrorResponse
|
|
355
|
+
}
|
|
342
356
|
},
|
|
343
357
|
urlParameters: [
|
|
344
358
|
Parameters.$host,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availabilityGroupListeners.js","sourceRoot":"","sources":["../../../src/operations/availabilityGroupListeners.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA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O,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,0BAA0B;QACrC,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AvailabilityGroupListeners } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SqlVirtualMachineManagementClient } from \"../sqlVirtualMachineManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AvailabilityGroupListener,\n AvailabilityGroupListenersListByGroupNextOptionalParams,\n AvailabilityGroupListenersListByGroupOptionalParams,\n AvailabilityGroupListenersListByGroupResponse,\n AvailabilityGroupListenersGetOptionalParams,\n AvailabilityGroupListenersGetResponse,\n AvailabilityGroupListenersCreateOrUpdateOptionalParams,\n AvailabilityGroupListenersCreateOrUpdateResponse,\n AvailabilityGroupListenersDeleteOptionalParams,\n AvailabilityGroupListenersListByGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvailabilityGroupListeners operations. */\nexport class AvailabilityGroupListenersImpl\n implements AvailabilityGroupListeners {\n private readonly client: SqlVirtualMachineManagementClient;\n\n /**\n * Initialize a new instance of the class AvailabilityGroupListeners class.\n * @param client Reference to the service client\n */\n constructor(client: SqlVirtualMachineManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all availability group listeners in a SQL virtual machine group.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param options The options parameters.\n */\n public listByGroup(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: AvailabilityGroupListenersListByGroupOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityGroupListener> {\n const iter = this.listByGroupPagingAll(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByGroupPagingPage(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByGroupPagingPage(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: AvailabilityGroupListenersListByGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityGroupListener[]> {\n let result: AvailabilityGroupListenersListByGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByGroup(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByGroupNext(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByGroupPagingAll(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: AvailabilityGroupListenersListByGroupOptionalParams\n ): AsyncIterableIterator<AvailabilityGroupListener> {\n for await (const page of this.listByGroupPagingPage(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets an availability group listener.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param availabilityGroupListenerName Name of the availability group listener.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n availabilityGroupListenerName: string,\n options?: AvailabilityGroupListenersGetOptionalParams\n ): Promise<AvailabilityGroupListenersGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n sqlVirtualMachineGroupName,\n availabilityGroupListenerName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates an availability group listener.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param availabilityGroupListenerName Name of the availability group listener.\n * @param parameters The availability group listener.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n availabilityGroupListenerName: string,\n parameters: AvailabilityGroupListener,\n options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AvailabilityGroupListenersCreateOrUpdateResponse>,\n AvailabilityGroupListenersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AvailabilityGroupListenersCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineGroupName,\n availabilityGroupListenerName,\n parameters,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n AvailabilityGroupListenersCreateOrUpdateResponse,\n OperationState<AvailabilityGroupListenersCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates an availability group listener.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param availabilityGroupListenerName Name of the availability group listener.\n * @param parameters The availability group listener.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n availabilityGroupListenerName: string,\n parameters: AvailabilityGroupListener,\n options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams\n ): Promise<AvailabilityGroupListenersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n availabilityGroupListenerName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an availability group listener.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param availabilityGroupListenerName Name of the availability group listener.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n availabilityGroupListenerName: string,\n options?: AvailabilityGroupListenersDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineGroupName,\n availabilityGroupListenerName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an availability group listener.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param availabilityGroupListenerName Name of the availability group listener.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n availabilityGroupListenerName: string,\n options?: AvailabilityGroupListenersDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n availabilityGroupListenerName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists all availability group listeners in a SQL virtual machine group.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param options The options parameters.\n */\n private _listByGroup(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: AvailabilityGroupListenersListByGroupOptionalParams\n ): Promise<AvailabilityGroupListenersListByGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlVirtualMachineGroupName, options },\n listByGroupOperationSpec\n );\n }\n\n /**\n * ListByGroupNext\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.\n * @param nextLink The nextLink from the previous successful call to the ListByGroup method.\n * @param options The options parameters.\n */\n private _listByGroupNext(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n nextLink: string,\n options?: AvailabilityGroupListenersListByGroupNextOptionalParams\n ): Promise<AvailabilityGroupListenersListByGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlVirtualMachineGroupName, nextLink, options },\n listByGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityGroupListener\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.expand, Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\n Parameters.availabilityGroupListenerName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityGroupListener\n },\n 201: {\n bodyMapper: Mappers.AvailabilityGroupListener\n },\n 202: {\n bodyMapper: Mappers.AvailabilityGroupListener\n },\n 204: {\n bodyMapper: Mappers.AvailabilityGroupListener\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\n Parameters.availabilityGroupListenerName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\n Parameters.availabilityGroupListenerName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityGroupListenerListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityGroupListenerListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 * from "./availabilityGroupListeners.js";
|
|
9
|
+
export * from "./operations.js";
|
|
10
|
+
export * from "./sqlVirtualMachineGroups.js";
|
|
11
|
+
export * from "./sqlVirtualMachines.js";
|
|
12
|
+
export * from "./sqlVirtualMachineTroubleshoot.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./availabilityGroupListeners.js\";\nexport * from \"./operations.js\";\nexport * from \"./sqlVirtualMachineGroups.js\";\nexport * from \"./sqlVirtualMachines.js\";\nexport * from \"./sqlVirtualMachineTroubleshoot.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Operations } from "../operationsInterfaces";
|
|
3
|
-
import { SqlVirtualMachineManagementClient } from "../sqlVirtualMachineManagementClient";
|
|
4
|
-
import { Operation, OperationsListOptionalParams } from "../models";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { SqlVirtualMachineManagementClient } from "../sqlVirtualMachineManagementClient.js";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Operations operations. */
|
|
6
6
|
export declare class OperationsImpl implements Operations {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -5,14 +5,14 @@
|
|
|
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 {
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing Operations operations. */
|
|
15
14
|
export class OperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Operations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,50 +34,35 @@ export class OperationsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
69
|
-
const page = _c.value;
|
|
70
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
74
|
-
finally {
|
|
75
|
-
try {
|
|
76
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
77
|
-
}
|
|
78
|
-
finally { if (e_1) throw e_1.error; }
|
|
79
|
-
}
|
|
80
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
81
66
|
}
|
|
82
67
|
/**
|
|
83
68
|
* Lists all of the available SQL Virtual Machine Rest API operations.
|
|
@@ -104,7 +89,9 @@ const listOperationSpec = {
|
|
|
104
89
|
200: {
|
|
105
90
|
bodyMapper: Mappers.OperationListResult
|
|
106
91
|
},
|
|
107
|
-
default: {
|
|
92
|
+
default: {
|
|
93
|
+
bodyMapper: Mappers.ErrorResponse
|
|
94
|
+
}
|
|
108
95
|
},
|
|
109
96
|
queryParameters: [Parameters.apiVersion],
|
|
110
97
|
urlParameters: [Parameters.$host],
|
|
@@ -118,7 +105,9 @@ const listNextOperationSpec = {
|
|
|
118
105
|
200: {
|
|
119
106
|
bodyMapper: Mappers.OperationListResult
|
|
120
107
|
},
|
|
121
|
-
default: {
|
|
108
|
+
default: {
|
|
109
|
+
bodyMapper: Mappers.ErrorResponse
|
|
110
|
+
}
|
|
122
111
|
},
|
|
123
112
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
124
113
|
headerParameters: [Parameters.accept],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACn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C,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SqlVirtualMachineManagementClient } from \"../sqlVirtualMachineManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: SqlVirtualMachineManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: SqlVirtualMachineManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available SQL Virtual Machine Rest API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available SQL Virtual Machine Rest API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.SqlVirtualMachine/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|