@azure/arm-sqlvirtualmachine 5.0.0-beta.8 → 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 +12 -2
- 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-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +91 -43
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/availabilityGroupListeners.d.ts +3 -3
- package/dist/browser/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/availabilityGroupListeners.js +122 -142
- 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 +26 -48
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineGroups.d.ts +3 -3
- package/dist/browser/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineGroups.js +185 -226
- package/dist/browser/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineTroubleshoot.d.ts +3 -3
- package/dist/browser/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachineTroubleshoot.js +46 -45
- package/dist/browser/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachines.d.ts +3 -3
- package/dist/browser/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sqlVirtualMachines.js +281 -342
- package/dist/browser/operations/sqlVirtualMachines.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityGroupListeners.d.ts +1 -1
- 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 +1 -1
- package/dist/browser/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +1 -1
- package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/sqlVirtualMachines.d.ts +1 -1
- 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 +2 -2
- package/dist/browser/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sqlVirtualMachineManagementClient.js +34 -24
- 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 -1761
- 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 +82 -71
- package/dist/index.js +0 -4367
- 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 -60
- 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 -58
- 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 -59
- 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 -58
- 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/sqlVirtualMachineTroubleshootSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js +0 -45
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.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 -290
- 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 -59
- 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 -60
- 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 -58
- 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.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.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 -6
- package/dist-esm/src/operations/index.js +0 -13
- 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/sqlVirtualMachineTroubleshoot.d.ts.map +0 -1
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js.map +0 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +0 -1
- 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 -6
- package/dist-esm/src/operationsInterfaces/index.js +0 -13
- 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/sqlVirtualMachineTroubleshoot.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.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/sqlvirtualmachine_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js +0 -78
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1470
- package/src/models/mappers.ts +0 -1805
- package/src/models/parameters.ts +0 -183
- package/src/operations/availabilityGroupListeners.ts +0 -527
- package/src/operations/index.ts +0 -13
- package/src/operations/operations.ts +0 -149
- package/src/operations/sqlVirtualMachineGroups.ts +0 -737
- package/src/operations/sqlVirtualMachineTroubleshoot.ts +0 -172
- package/src/operations/sqlVirtualMachines.ts +0 -1115
- package/src/operationsInterfaces/availabilityGroupListeners.ts +0 -115
- package/src/operationsInterfaces/index.ts +0 -13
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +0 -147
- package/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.ts +0 -51
- package/src/operationsInterfaces/sqlVirtualMachines.ts +0 -210
- package/src/pagingHelper.ts +0 -39
- package/src/sqlVirtualMachineManagementClient.ts +0 -162
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /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/sqlVirtualMachineTroubleshoot.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
- /package/review/{arm-sqlvirtualmachine.api.md → arm-sqlvirtualmachine-node.api.md} +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";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
12
|
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
-
import { createLroSpec } from "../lroImpl";
|
|
13
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing SqlVirtualMachineGroups operations. */
|
|
17
16
|
export class SqlVirtualMachineGroupsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class SqlVirtualMachineGroups class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,57 +38,35 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
try {
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
finally {
|
|
80
|
-
_d = true;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
85
|
-
finally {
|
|
86
|
-
try {
|
|
87
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
88
|
-
}
|
|
89
|
-
finally { if (e_1) throw e_1.error; }
|
|
90
|
-
}
|
|
91
|
-
});
|
|
66
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
67
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
92
70
|
}
|
|
93
71
|
/**
|
|
94
72
|
* Gets all SQL virtual machine groups in a subscription.
|
|
@@ -104,57 +82,35 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
104
82
|
return this;
|
|
105
83
|
},
|
|
106
84
|
byPage: (settings) => {
|
|
107
|
-
if (settings
|
|
85
|
+
if (settings?.maxPageSize) {
|
|
108
86
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
109
87
|
}
|
|
110
88
|
return this.listPagingPage(options, settings);
|
|
111
89
|
}
|
|
112
90
|
};
|
|
113
91
|
}
|
|
114
|
-
listPagingPage(options, settings) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
92
|
+
async *listPagingPage(options, settings) {
|
|
93
|
+
let result;
|
|
94
|
+
let continuationToken = settings?.continuationToken;
|
|
95
|
+
if (!continuationToken) {
|
|
96
|
+
result = await this._list(options);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
102
|
+
while (continuationToken) {
|
|
103
|
+
result = await this._listNext(continuationToken, options);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
133
109
|
}
|
|
134
|
-
listPagingAll(options) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
139
|
-
_c = _f.value;
|
|
140
|
-
_d = false;
|
|
141
|
-
try {
|
|
142
|
-
const page = _c;
|
|
143
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
144
|
-
}
|
|
145
|
-
finally {
|
|
146
|
-
_d = true;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
151
|
-
finally {
|
|
152
|
-
try {
|
|
153
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
154
|
-
}
|
|
155
|
-
finally { if (e_2) throw e_2.error; }
|
|
156
|
-
}
|
|
157
|
-
});
|
|
110
|
+
async *listPagingAll(options) {
|
|
111
|
+
for await (const page of this.listPagingPage(options)) {
|
|
112
|
+
yield* page;
|
|
113
|
+
}
|
|
158
114
|
}
|
|
159
115
|
/**
|
|
160
116
|
* Gets a SQL virtual machine group.
|
|
@@ -174,48 +130,51 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
174
130
|
* @param parameters The SQL virtual machine group.
|
|
175
131
|
* @param options The options parameters.
|
|
176
132
|
*/
|
|
177
|
-
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
resourceLocationConfig: "azure-async-operation"
|
|
215
|
-
});
|
|
216
|
-
yield poller.poll();
|
|
217
|
-
return poller;
|
|
133
|
+
async beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
134
|
+
const directSendOperation = async (args, spec) => {
|
|
135
|
+
return this.client.sendOperationRequest(args, spec);
|
|
136
|
+
};
|
|
137
|
+
const sendOperationFn = async (args, spec) => {
|
|
138
|
+
let currentRawResponse = undefined;
|
|
139
|
+
const providedCallback = args.options?.onResponse;
|
|
140
|
+
const callback = (rawResponse, flatResponse) => {
|
|
141
|
+
currentRawResponse = rawResponse;
|
|
142
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
143
|
+
};
|
|
144
|
+
const updatedArgs = {
|
|
145
|
+
...args,
|
|
146
|
+
options: {
|
|
147
|
+
...args.options,
|
|
148
|
+
onResponse: callback
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
152
|
+
return {
|
|
153
|
+
flatResponse,
|
|
154
|
+
rawResponse: {
|
|
155
|
+
statusCode: currentRawResponse.status,
|
|
156
|
+
body: currentRawResponse.parsedBody,
|
|
157
|
+
headers: currentRawResponse.headers.toJSON()
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
const lro = createLroSpec({
|
|
162
|
+
sendOperationFn,
|
|
163
|
+
args: {
|
|
164
|
+
resourceGroupName,
|
|
165
|
+
sqlVirtualMachineGroupName,
|
|
166
|
+
parameters,
|
|
167
|
+
options
|
|
168
|
+
},
|
|
169
|
+
spec: createOrUpdateOperationSpec
|
|
218
170
|
});
|
|
171
|
+
const poller = await createHttpPoller(lro, {
|
|
172
|
+
restoreFrom: options?.resumeFrom,
|
|
173
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
174
|
+
resourceLocationConfig: "azure-async-operation"
|
|
175
|
+
});
|
|
176
|
+
await poller.poll();
|
|
177
|
+
return poller;
|
|
219
178
|
}
|
|
220
179
|
/**
|
|
221
180
|
* Creates or updates a SQL virtual machine group.
|
|
@@ -225,11 +184,9 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
225
184
|
* @param parameters The SQL virtual machine group.
|
|
226
185
|
* @param options The options parameters.
|
|
227
186
|
*/
|
|
228
|
-
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return poller.pollUntilDone();
|
|
232
|
-
});
|
|
187
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
188
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
|
|
189
|
+
return poller.pollUntilDone();
|
|
233
190
|
}
|
|
234
191
|
/**
|
|
235
192
|
* Deletes a SQL virtual machine group.
|
|
@@ -238,43 +195,46 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
238
195
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
239
196
|
* @param options The options parameters.
|
|
240
197
|
*/
|
|
241
|
-
beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
198
|
+
async beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
199
|
+
const directSendOperation = async (args, spec) => {
|
|
200
|
+
return this.client.sendOperationRequest(args, spec);
|
|
201
|
+
};
|
|
202
|
+
const sendOperationFn = async (args, spec) => {
|
|
203
|
+
let currentRawResponse = undefined;
|
|
204
|
+
const providedCallback = args.options?.onResponse;
|
|
205
|
+
const callback = (rawResponse, flatResponse) => {
|
|
206
|
+
currentRawResponse = rawResponse;
|
|
207
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
208
|
+
};
|
|
209
|
+
const updatedArgs = {
|
|
210
|
+
...args,
|
|
211
|
+
options: {
|
|
212
|
+
...args.options,
|
|
213
|
+
onResponse: callback
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
217
|
+
return {
|
|
218
|
+
flatResponse,
|
|
219
|
+
rawResponse: {
|
|
220
|
+
statusCode: currentRawResponse.status,
|
|
221
|
+
body: currentRawResponse.parsedBody,
|
|
222
|
+
headers: currentRawResponse.headers.toJSON()
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
const lro = createLroSpec({
|
|
227
|
+
sendOperationFn,
|
|
228
|
+
args: { resourceGroupName, sqlVirtualMachineGroupName, options },
|
|
229
|
+
spec: deleteOperationSpec
|
|
230
|
+
});
|
|
231
|
+
const poller = await createHttpPoller(lro, {
|
|
232
|
+
restoreFrom: options?.resumeFrom,
|
|
233
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
234
|
+
resourceLocationConfig: "location"
|
|
277
235
|
});
|
|
236
|
+
await poller.poll();
|
|
237
|
+
return poller;
|
|
278
238
|
}
|
|
279
239
|
/**
|
|
280
240
|
* Deletes a SQL virtual machine group.
|
|
@@ -283,11 +243,9 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
283
243
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
284
244
|
* @param options The options parameters.
|
|
285
245
|
*/
|
|
286
|
-
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
return poller.pollUntilDone();
|
|
290
|
-
});
|
|
246
|
+
async beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
247
|
+
const poller = await this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options);
|
|
248
|
+
return poller.pollUntilDone();
|
|
291
249
|
}
|
|
292
250
|
/**
|
|
293
251
|
* Updates SQL virtual machine group tags.
|
|
@@ -297,48 +255,51 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
297
255
|
* @param parameters The SQL virtual machine group.
|
|
298
256
|
* @param options The options parameters.
|
|
299
257
|
*/
|
|
300
|
-
beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
resourceLocationConfig: "azure-async-operation"
|
|
338
|
-
});
|
|
339
|
-
yield poller.poll();
|
|
340
|
-
return poller;
|
|
258
|
+
async beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
259
|
+
const directSendOperation = async (args, spec) => {
|
|
260
|
+
return this.client.sendOperationRequest(args, spec);
|
|
261
|
+
};
|
|
262
|
+
const sendOperationFn = async (args, spec) => {
|
|
263
|
+
let currentRawResponse = undefined;
|
|
264
|
+
const providedCallback = args.options?.onResponse;
|
|
265
|
+
const callback = (rawResponse, flatResponse) => {
|
|
266
|
+
currentRawResponse = rawResponse;
|
|
267
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
268
|
+
};
|
|
269
|
+
const updatedArgs = {
|
|
270
|
+
...args,
|
|
271
|
+
options: {
|
|
272
|
+
...args.options,
|
|
273
|
+
onResponse: callback
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
277
|
+
return {
|
|
278
|
+
flatResponse,
|
|
279
|
+
rawResponse: {
|
|
280
|
+
statusCode: currentRawResponse.status,
|
|
281
|
+
body: currentRawResponse.parsedBody,
|
|
282
|
+
headers: currentRawResponse.headers.toJSON()
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
const lro = createLroSpec({
|
|
287
|
+
sendOperationFn,
|
|
288
|
+
args: {
|
|
289
|
+
resourceGroupName,
|
|
290
|
+
sqlVirtualMachineGroupName,
|
|
291
|
+
parameters,
|
|
292
|
+
options
|
|
293
|
+
},
|
|
294
|
+
spec: updateOperationSpec
|
|
341
295
|
});
|
|
296
|
+
const poller = await createHttpPoller(lro, {
|
|
297
|
+
restoreFrom: options?.resumeFrom,
|
|
298
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
299
|
+
resourceLocationConfig: "azure-async-operation"
|
|
300
|
+
});
|
|
301
|
+
await poller.poll();
|
|
302
|
+
return poller;
|
|
342
303
|
}
|
|
343
304
|
/**
|
|
344
305
|
* Updates SQL virtual machine group tags.
|
|
@@ -348,11 +309,9 @@ export class SqlVirtualMachineGroupsImpl {
|
|
|
348
309
|
* @param parameters The SQL virtual machine group.
|
|
349
310
|
* @param options The options parameters.
|
|
350
311
|
*/
|
|
351
|
-
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
return poller.pollUntilDone();
|
|
355
|
-
});
|
|
312
|
+
async beginUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
313
|
+
const poller = await this.beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
|
|
314
|
+
return poller.pollUntilDone();
|
|
356
315
|
}
|
|
357
316
|
/**
|
|
358
317
|
* Gets all SQL virtual machine groups in a resource group.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlVirtualMachineGroups.js","sourceRoot":"","sources":["../../../src/operations/sqlVirtualMachineGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AA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AAU,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 { SqlVirtualMachineGroups } 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 SqlVirtualMachineGroup,\n SqlVirtualMachineGroupsListByResourceGroupNextOptionalParams,\n SqlVirtualMachineGroupsListByResourceGroupOptionalParams,\n SqlVirtualMachineGroupsListByResourceGroupResponse,\n SqlVirtualMachineGroupsListNextOptionalParams,\n SqlVirtualMachineGroupsListOptionalParams,\n SqlVirtualMachineGroupsListResponse,\n SqlVirtualMachineGroupsGetOptionalParams,\n SqlVirtualMachineGroupsGetResponse,\n SqlVirtualMachineGroupsCreateOrUpdateOptionalParams,\n SqlVirtualMachineGroupsCreateOrUpdateResponse,\n SqlVirtualMachineGroupsDeleteOptionalParams,\n SqlVirtualMachineGroupUpdate,\n SqlVirtualMachineGroupsUpdateOptionalParams,\n SqlVirtualMachineGroupsUpdateResponse,\n SqlVirtualMachineGroupsListByResourceGroupNextResponse,\n SqlVirtualMachineGroupsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SqlVirtualMachineGroups operations. */\nexport class SqlVirtualMachineGroupsImpl implements SqlVirtualMachineGroups {\n private readonly client: SqlVirtualMachineManagementClient;\n\n /**\n * Initialize a new instance of the class SqlVirtualMachineGroups class.\n * @param client Reference to the service client\n */\n constructor(client: SqlVirtualMachineManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all SQL virtual machine groups in a resource 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 options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<SqlVirtualMachineGroup> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SqlVirtualMachineGroup[]> {\n let result: SqlVirtualMachineGroupsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<SqlVirtualMachineGroup> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all SQL virtual machine groups in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: SqlVirtualMachineGroupsListOptionalParams\n ): PagedAsyncIterableIterator<SqlVirtualMachineGroup> {\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?: SqlVirtualMachineGroupsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SqlVirtualMachineGroup[]> {\n let result: SqlVirtualMachineGroupsListResponse;\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?: SqlVirtualMachineGroupsListOptionalParams\n ): AsyncIterableIterator<SqlVirtualMachineGroup> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets 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 get(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: SqlVirtualMachineGroupsGetOptionalParams\n ): Promise<SqlVirtualMachineGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlVirtualMachineGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates 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 parameters The SQL virtual machine group.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n parameters: SqlVirtualMachineGroup,\n options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>,\n SqlVirtualMachineGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse> => {\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 parameters,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n SqlVirtualMachineGroupsCreateOrUpdateResponse,\n OperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>\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 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 parameters The SQL virtual machine group.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n parameters: SqlVirtualMachineGroup,\n options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams\n ): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes 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 async beginDelete(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: SqlVirtualMachineGroupsDeleteOptionalParams\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: { resourceGroupName, sqlVirtualMachineGroupName, options },\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 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 async beginDeleteAndWait(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n options?: SqlVirtualMachineGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates SQL virtual machine group tags.\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 parameters The SQL virtual machine group.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n parameters: SqlVirtualMachineGroupUpdate,\n options?: SqlVirtualMachineGroupsUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<SqlVirtualMachineGroupsUpdateResponse>,\n SqlVirtualMachineGroupsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<SqlVirtualMachineGroupsUpdateResponse> => {\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 parameters,\n options\n },\n spec: updateOperationSpec\n });\n const poller = await createHttpPoller<\n SqlVirtualMachineGroupsUpdateResponse,\n OperationState<SqlVirtualMachineGroupsUpdateResponse>\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 * Updates SQL virtual machine group tags.\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 parameters The SQL virtual machine group.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n sqlVirtualMachineGroupName: string,\n parameters: SqlVirtualMachineGroupUpdate,\n options?: SqlVirtualMachineGroupsUpdateOptionalParams\n ): Promise<SqlVirtualMachineGroupsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n sqlVirtualMachineGroupName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all SQL virtual machine groups in a resource 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 options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams\n ): Promise<SqlVirtualMachineGroupsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets all SQL virtual machine groups in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: SqlVirtualMachineGroupsListOptionalParams\n ): Promise<SqlVirtualMachineGroupsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\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 nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: SqlVirtualMachineGroupsListByResourceGroupNextOptionalParams\n ): Promise<SqlVirtualMachineGroupsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\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?: SqlVirtualMachineGroupsListNextOptionalParams\n ): Promise<SqlVirtualMachineGroupsListNextResponse> {\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 getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\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 createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n 201: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n 202: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n 204: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\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}\",\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.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n 201: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n 202: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n 204: {\n bodyMapper: Mappers.SqlVirtualMachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.sqlVirtualMachineGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroupListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroupListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroupListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlVirtualMachineGroupListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SqlVirtualMachineTroubleshoot } from "../operationsInterfaces";
|
|
2
|
-
import { SqlVirtualMachineManagementClient } from "../sqlVirtualMachineManagementClient";
|
|
1
|
+
import { SqlVirtualMachineTroubleshoot } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { SqlVirtualMachineManagementClient } from "../sqlVirtualMachineManagementClient.js";
|
|
3
3
|
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
-
import { SqlVmTroubleshooting, SqlVirtualMachineTroubleshootTroubleshootOptionalParams, SqlVirtualMachineTroubleshootTroubleshootResponse } from "../models";
|
|
4
|
+
import { SqlVmTroubleshooting, SqlVirtualMachineTroubleshootTroubleshootOptionalParams, SqlVirtualMachineTroubleshootTroubleshootResponse } from "../models/index.js";
|
|
5
5
|
/** Class containing SqlVirtualMachineTroubleshoot operations. */
|
|
6
6
|
export declare class SqlVirtualMachineTroubleshootImpl implements SqlVirtualMachineTroubleshoot {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlVirtualMachineTroubleshoot.d.ts","sourceRoot":"","sources":["../../../src/operations/sqlVirtualMachineTroubleshoot.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAIjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,oBAAoB,EACpB,uDAAuD,EACvD,iDAAiD,EAClD,MAAM,oBAAoB,CAAC;AAE5B,iEAAiE;AACjE,qBAAa,iCACX,YAAW,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;;OAOG;IACG,iBAAiB,CACrB,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,UAAU,EAAE,oBAAoB,EAChC,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,iDAAiD,CAAC,EACjE,iDAAiD,CAClD,CACF;IAyDD;;;;;;;OAOG;IACG,wBAAwB,CAC5B,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,UAAU,EAAE,oBAAoB,EAChC,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;CAS9D"}
|