@azure/arm-workloads 1.0.0-beta.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -42
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/index.js +3677 -3904
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/monitorsCreateSample.js +12 -4
- package/dist-esm/samples-dev/monitorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetSample.js +12 -4
- package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListSample.js +23 -8
- package/dist-esm/samples-dev/monitorsListSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsUpdateSample.js +17 -8
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +23 -8
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/providerInstancesCreateSample.js +250 -32
- package/dist-esm/samples-dev/providerInstancesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/providerInstancesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/providerInstancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/providerInstancesGetSample.js +37 -24
- package/dist-esm/samples-dev/providerInstancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/providerInstancesListSample.js +24 -9
- package/dist-esm/samples-dev/providerInstancesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.js +39 -6
- package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.js +14 -6
- package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.js +14 -6
- package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.js +26 -11
- package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.js +40 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.js +44 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.js +14 -6
- package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.js +19 -10
- package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/sapCentralInstancesCreateSample.js +39 -6
- package/dist-esm/samples-dev/sapCentralInstancesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.js +14 -6
- package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sapCentralInstancesGetSample.js +14 -6
- package/dist-esm/samples-dev/sapCentralInstancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sapCentralInstancesListSample.js +26 -11
- package/dist-esm/samples-dev/sapCentralInstancesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.js +40 -0
- package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.js +42 -0
- package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.js +14 -6
- package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.js +36 -6
- package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.js +14 -6
- package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.js +14 -6
- package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sapDatabaseInstancesListSample.js +26 -11
- package/dist-esm/samples-dev/sapDatabaseInstancesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.js +40 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.js +42 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.js +14 -6
- package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapDiskConfigurationsSample.js +19 -10
- package/dist-esm/samples-dev/sapDiskConfigurationsSample.js.map +1 -1
- package/dist-esm/samples-dev/sapLandscapeMonitorCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorCreateSample.js +48 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorDeleteSample.js +39 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorGetSample.js +39 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorListSample.js +39 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorListSample.js.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorUpdateSample.js +48 -0
- package/dist-esm/samples-dev/sapLandscapeMonitorUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapSizingRecommendationsSample.js +31 -20
- package/dist-esm/samples-dev/sapSizingRecommendationsSample.js.map +1 -1
- package/dist-esm/samples-dev/sapSupportedSkuSample.js +31 -20
- package/dist-esm/samples-dev/sapSupportedSkuSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.js +2121 -178
- package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.js +14 -6
- package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesGetSample.js +14 -6
- package/dist-esm/samples-dev/sapVirtualInstancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.js +26 -11
- package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.js +25 -10
- package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesStartSample.js +14 -6
- package/dist-esm/samples-dev/sapVirtualInstancesStartSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesStopSample.js +15 -7
- package/dist-esm/samples-dev/sapVirtualInstancesStopSample.js.map +1 -1
- package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.js +14 -6
- package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +942 -1305
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +112 -246
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +51 -43
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1192 -1428
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -10
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +52 -82
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -4
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -4
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/monitors.d.ts +3 -3
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +83 -39
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +31 -13
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/providerInstances.d.ts +3 -3
- package/dist-esm/src/operations/providerInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/providerInstances.js +58 -31
- package/dist-esm/src/operations/providerInstances.js.map +1 -1
- package/dist-esm/src/operations/sAPApplicationServerInstances.d.ts +70 -35
- package/dist-esm/src/operations/sAPApplicationServerInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/sAPApplicationServerInstances.js +300 -77
- package/dist-esm/src/operations/sAPApplicationServerInstances.js.map +1 -1
- package/dist-esm/src/operations/sAPCentralInstances.d.ts +86 -42
- package/dist-esm/src/operations/sAPCentralInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/sAPCentralInstances.js +316 -84
- package/dist-esm/src/operations/sAPCentralInstances.js.map +1 -1
- package/dist-esm/src/operations/sAPDatabaseInstances.d.ts +78 -42
- package/dist-esm/src/operations/sAPDatabaseInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/sAPDatabaseInstances.js +308 -84
- package/dist-esm/src/operations/sAPDatabaseInstances.js.map +1 -1
- package/dist-esm/src/operations/sAPVirtualInstances.d.ts +31 -29
- package/dist-esm/src/operations/sAPVirtualInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/sAPVirtualInstances.js +125 -72
- package/dist-esm/src/operations/sAPVirtualInstances.js.map +1 -1
- package/dist-esm/src/operations/sapLandscapeMonitorOperations.d.ts +57 -0
- package/dist-esm/src/operations/sapLandscapeMonitorOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/sapLandscapeMonitorOperations.js +188 -0
- package/dist-esm/src/operations/sapLandscapeMonitorOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -4
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/providerInstances.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/providerInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.d.ts +66 -32
- package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sAPCentralInstances.d.ts +82 -39
- package/dist-esm/src/operationsInterfaces/sAPCentralInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.d.ts +75 -39
- package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.d.ts +29 -27
- package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sapLandscapeMonitorOperations.d.ts +49 -0
- package/dist-esm/src/operationsInterfaces/sapLandscapeMonitorOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{phpWorkloads.js → sapLandscapeMonitorOperations.js} +1 -1
- package/dist-esm/src/operationsInterfaces/sapLandscapeMonitorOperations.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/workloadsClient.d.ts +8 -9
- package/dist-esm/src/workloadsClient.d.ts.map +1 -1
- package/dist-esm/src/workloadsClient.js +33 -32
- package/dist-esm/src/workloadsClient.js.map +1 -1
- package/dist-esm/test/workloads_examples.js +116 -12
- package/dist-esm/test/workloads_examples.js.map +1 -1
- package/package.json +15 -13
- package/review/arm-workloads.api.md +384 -596
- package/src/index.ts +1 -0
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +1087 -1477
- package/src/models/mappers.ts +1334 -1553
- package/src/models/parameters.ts +58 -94
- package/src/operations/index.ts +2 -4
- package/src/operations/monitors.ts +81 -43
- package/src/operations/operations.ts +21 -9
- package/src/operations/providerInstances.ts +61 -33
- package/src/operations/sAPApplicationServerInstances.ts +382 -81
- package/src/operations/sAPCentralInstances.ts +398 -88
- package/src/operations/sAPDatabaseInstances.ts +390 -88
- package/src/operations/sAPVirtualInstances.ts +134 -89
- package/src/operations/sapLandscapeMonitorOperations.ts +254 -0
- package/src/operationsInterfaces/index.ts +2 -4
- package/src/operationsInterfaces/monitors.ts +5 -5
- package/src/operationsInterfaces/providerInstances.ts +5 -5
- package/src/operationsInterfaces/sAPApplicationServerInstances.ts +103 -35
- package/src/operationsInterfaces/sAPCentralInstances.ts +119 -42
- package/src/operationsInterfaces/sAPDatabaseInstances.ts +112 -42
- package/src/operationsInterfaces/sAPVirtualInstances.ts +33 -31
- package/src/operationsInterfaces/sapLandscapeMonitorOperations.ts +90 -0
- package/src/pagingHelper.ts +39 -0
- package/src/workloadsClient.ts +46 -45
- package/types/arm-workloads.d.ts +972 -1316
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/phpWorkloadsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/phpWorkloadsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsCreateOrUpdateSample.js +0 -111
- package/dist-esm/samples-dev/phpWorkloadsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/phpWorkloadsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsDeleteSample.js +0 -33
- package/dist-esm/samples-dev/phpWorkloadsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/phpWorkloadsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsGetSample.js +0 -31
- package/dist-esm/samples-dev/phpWorkloadsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/phpWorkloadsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/phpWorkloadsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/phpWorkloadsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/phpWorkloadsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/phpWorkloadsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/phpWorkloadsUpdateSample.js +0 -35
- package/dist-esm/samples-dev/phpWorkloadsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/skusListSample.d.ts +0 -2
- package/dist-esm/samples-dev/skusListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/skusListSample.js +0 -43
- package/dist-esm/samples-dev/skusListSample.js.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/wordpressInstancesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesCreateOrUpdateSample.js +0 -36
- package/dist-esm/samples-dev/wordpressInstancesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/wordpressInstancesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesDeleteSample.js +0 -31
- package/dist-esm/samples-dev/wordpressInstancesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/wordpressInstancesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesGetSample.js +0 -31
- package/dist-esm/samples-dev/wordpressInstancesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/wordpressInstancesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/wordpressInstancesListSample.js +0 -45
- package/dist-esm/samples-dev/wordpressInstancesListSample.js.map +0 -1
- package/dist-esm/src/operations/phpWorkloads.d.ts +0 -99
- package/dist-esm/src/operations/phpWorkloads.d.ts.map +0 -1
- package/dist-esm/src/operations/phpWorkloads.js +0 -455
- package/dist-esm/src/operations/phpWorkloads.js.map +0 -1
- package/dist-esm/src/operations/skus.d.ts +0 -32
- package/dist-esm/src/operations/skus.d.ts.map +0 -1
- package/dist-esm/src/operations/skus.js +0 -124
- package/dist-esm/src/operations/skus.js.map +0 -1
- package/dist-esm/src/operations/wordpressInstances.d.ts +0 -69
- package/dist-esm/src/operations/wordpressInstances.d.ts.map +0 -1
- package/dist-esm/src/operations/wordpressInstances.js +0 -288
- package/dist-esm/src/operations/wordpressInstances.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/phpWorkloads.d.ts +0 -63
- package/dist-esm/src/operationsInterfaces/phpWorkloads.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/phpWorkloads.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/skus.js +0 -9
- package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/wordpressInstances.d.ts +0 -44
- package/dist-esm/src/operationsInterfaces/wordpressInstances.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/wordpressInstances.js +0 -9
- package/dist-esm/src/operationsInterfaces/wordpressInstances.js.map +0 -1
- package/src/operations/phpWorkloads.ts +0 -599
- package/src/operations/skus.ts +0 -139
- package/src/operations/wordpressInstances.ts +0 -395
- package/src/operationsInterfaces/phpWorkloads.ts +0 -121
- package/src/operationsInterfaces/skus.ts +0 -22
- package/src/operationsInterfaces/wordpressInstances.ts +0 -88
|
@@ -6,18 +6,24 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { SAPApplicationServerInstances } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { WorkloadsClient } from "../workloadsClient";
|
|
15
|
-
import {
|
|
16
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
17
22
|
import {
|
|
18
23
|
SAPApplicationServerInstance,
|
|
19
24
|
SAPApplicationServerInstancesListNextOptionalParams,
|
|
20
25
|
SAPApplicationServerInstancesListOptionalParams,
|
|
26
|
+
SAPApplicationServerInstancesListResponse,
|
|
21
27
|
SAPApplicationServerInstancesGetOptionalParams,
|
|
22
28
|
SAPApplicationServerInstancesGetResponse,
|
|
23
29
|
SAPApplicationServerInstancesCreateOptionalParams,
|
|
@@ -26,7 +32,10 @@ import {
|
|
|
26
32
|
SAPApplicationServerInstancesUpdateResponse,
|
|
27
33
|
SAPApplicationServerInstancesDeleteOptionalParams,
|
|
28
34
|
SAPApplicationServerInstancesDeleteResponse,
|
|
29
|
-
|
|
35
|
+
SAPApplicationServerInstancesStartInstanceOptionalParams,
|
|
36
|
+
SAPApplicationServerInstancesStartInstanceResponse,
|
|
37
|
+
SAPApplicationServerInstancesStopInstanceOptionalParams,
|
|
38
|
+
SAPApplicationServerInstancesStopInstanceResponse,
|
|
30
39
|
SAPApplicationServerInstancesListNextResponse
|
|
31
40
|
} from "../models";
|
|
32
41
|
|
|
@@ -45,9 +54,10 @@ export class SAPApplicationServerInstancesImpl
|
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
/**
|
|
48
|
-
* Lists the SAP Application
|
|
57
|
+
* Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions
|
|
58
|
+
* resource.
|
|
49
59
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
60
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
51
61
|
* @param options The options parameters.
|
|
52
62
|
*/
|
|
53
63
|
public list(
|
|
@@ -67,11 +77,15 @@ export class SAPApplicationServerInstancesImpl
|
|
|
67
77
|
[Symbol.asyncIterator]() {
|
|
68
78
|
return this;
|
|
69
79
|
},
|
|
70
|
-
byPage: () => {
|
|
80
|
+
byPage: (settings?: PageSettings) => {
|
|
81
|
+
if (settings?.maxPageSize) {
|
|
82
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
83
|
+
}
|
|
71
84
|
return this.listPagingPage(
|
|
72
85
|
resourceGroupName,
|
|
73
86
|
sapVirtualInstanceName,
|
|
74
|
-
options
|
|
87
|
+
options,
|
|
88
|
+
settings
|
|
75
89
|
);
|
|
76
90
|
}
|
|
77
91
|
};
|
|
@@ -80,15 +94,22 @@ export class SAPApplicationServerInstancesImpl
|
|
|
80
94
|
private async *listPagingPage(
|
|
81
95
|
resourceGroupName: string,
|
|
82
96
|
sapVirtualInstanceName: string,
|
|
83
|
-
options?: SAPApplicationServerInstancesListOptionalParams
|
|
97
|
+
options?: SAPApplicationServerInstancesListOptionalParams,
|
|
98
|
+
settings?: PageSettings
|
|
84
99
|
): AsyncIterableIterator<SAPApplicationServerInstance[]> {
|
|
85
|
-
let result
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
100
|
+
let result: SAPApplicationServerInstancesListResponse;
|
|
101
|
+
let continuationToken = settings?.continuationToken;
|
|
102
|
+
if (!continuationToken) {
|
|
103
|
+
result = await this._list(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
sapVirtualInstanceName,
|
|
106
|
+
options
|
|
107
|
+
);
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
112
|
+
}
|
|
92
113
|
while (continuationToken) {
|
|
93
114
|
result = await this._listNext(
|
|
94
115
|
resourceGroupName,
|
|
@@ -97,7 +118,9 @@ export class SAPApplicationServerInstancesImpl
|
|
|
97
118
|
options
|
|
98
119
|
);
|
|
99
120
|
continuationToken = result.nextLink;
|
|
100
|
-
|
|
121
|
+
let page = result.value || [];
|
|
122
|
+
setContinuationToken(page, continuationToken);
|
|
123
|
+
yield page;
|
|
101
124
|
}
|
|
102
125
|
}
|
|
103
126
|
|
|
@@ -116,10 +139,11 @@ export class SAPApplicationServerInstancesImpl
|
|
|
116
139
|
}
|
|
117
140
|
|
|
118
141
|
/**
|
|
119
|
-
* Gets the SAP Application Server Instance
|
|
142
|
+
* Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions
|
|
143
|
+
* resource.
|
|
120
144
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
121
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
122
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
145
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
146
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
123
147
|
* @param options The options parameters.
|
|
124
148
|
*/
|
|
125
149
|
get(
|
|
@@ -140,11 +164,11 @@ export class SAPApplicationServerInstancesImpl
|
|
|
140
164
|
}
|
|
141
165
|
|
|
142
166
|
/**
|
|
143
|
-
* Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by
|
|
144
|
-
* will return a Bad Request error.
|
|
167
|
+
* Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by
|
|
168
|
+
* end user will return a Bad Request error.
|
|
145
169
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
146
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
147
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
170
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
171
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
148
172
|
* @param options The options parameters.
|
|
149
173
|
*/
|
|
150
174
|
async beginCreate(
|
|
@@ -153,8 +177,8 @@ export class SAPApplicationServerInstancesImpl
|
|
|
153
177
|
applicationInstanceName: string,
|
|
154
178
|
options?: SAPApplicationServerInstancesCreateOptionalParams
|
|
155
179
|
): Promise<
|
|
156
|
-
|
|
157
|
-
|
|
180
|
+
SimplePollerLike<
|
|
181
|
+
OperationState<SAPApplicationServerInstancesCreateResponse>,
|
|
158
182
|
SAPApplicationServerInstancesCreateResponse
|
|
159
183
|
>
|
|
160
184
|
> {
|
|
@@ -164,7 +188,7 @@ export class SAPApplicationServerInstancesImpl
|
|
|
164
188
|
): Promise<SAPApplicationServerInstancesCreateResponse> => {
|
|
165
189
|
return this.client.sendOperationRequest(args, spec);
|
|
166
190
|
};
|
|
167
|
-
const
|
|
191
|
+
const sendOperationFn = async (
|
|
168
192
|
args: coreClient.OperationArguments,
|
|
169
193
|
spec: coreClient.OperationSpec
|
|
170
194
|
) => {
|
|
@@ -197,18 +221,21 @@ export class SAPApplicationServerInstancesImpl
|
|
|
197
221
|
};
|
|
198
222
|
};
|
|
199
223
|
|
|
200
|
-
const lro =
|
|
201
|
-
|
|
202
|
-
{
|
|
224
|
+
const lro = createLroSpec({
|
|
225
|
+
sendOperationFn,
|
|
226
|
+
args: {
|
|
203
227
|
resourceGroupName,
|
|
204
228
|
sapVirtualInstanceName,
|
|
205
229
|
applicationInstanceName,
|
|
206
230
|
options
|
|
207
231
|
},
|
|
208
|
-
createOperationSpec
|
|
209
|
-
);
|
|
210
|
-
const poller =
|
|
211
|
-
|
|
232
|
+
spec: createOperationSpec
|
|
233
|
+
});
|
|
234
|
+
const poller = await createHttpPoller<
|
|
235
|
+
SAPApplicationServerInstancesCreateResponse,
|
|
236
|
+
OperationState<SAPApplicationServerInstancesCreateResponse>
|
|
237
|
+
>(lro, {
|
|
238
|
+
restoreFrom: options?.resumeFrom,
|
|
212
239
|
intervalInMs: options?.updateIntervalInMs
|
|
213
240
|
});
|
|
214
241
|
await poller.poll();
|
|
@@ -216,11 +243,11 @@ export class SAPApplicationServerInstancesImpl
|
|
|
216
243
|
}
|
|
217
244
|
|
|
218
245
|
/**
|
|
219
|
-
* Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by
|
|
220
|
-
* will return a Bad Request error.
|
|
246
|
+
* Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by
|
|
247
|
+
* end user will return a Bad Request error.
|
|
221
248
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
222
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
223
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
249
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
250
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
224
251
|
* @param options The options parameters.
|
|
225
252
|
*/
|
|
226
253
|
async beginCreateAndWait(
|
|
@@ -239,10 +266,10 @@ export class SAPApplicationServerInstancesImpl
|
|
|
239
266
|
}
|
|
240
267
|
|
|
241
268
|
/**
|
|
242
|
-
* Puts the SAP Application Server Instance.
|
|
269
|
+
* Puts the SAP Application Server Instance resource.
|
|
243
270
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
244
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
245
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
271
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
272
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
246
273
|
* @param options The options parameters.
|
|
247
274
|
*/
|
|
248
275
|
async beginUpdate(
|
|
@@ -251,8 +278,8 @@ export class SAPApplicationServerInstancesImpl
|
|
|
251
278
|
applicationInstanceName: string,
|
|
252
279
|
options?: SAPApplicationServerInstancesUpdateOptionalParams
|
|
253
280
|
): Promise<
|
|
254
|
-
|
|
255
|
-
|
|
281
|
+
SimplePollerLike<
|
|
282
|
+
OperationState<SAPApplicationServerInstancesUpdateResponse>,
|
|
256
283
|
SAPApplicationServerInstancesUpdateResponse
|
|
257
284
|
>
|
|
258
285
|
> {
|
|
@@ -262,7 +289,7 @@ export class SAPApplicationServerInstancesImpl
|
|
|
262
289
|
): Promise<SAPApplicationServerInstancesUpdateResponse> => {
|
|
263
290
|
return this.client.sendOperationRequest(args, spec);
|
|
264
291
|
};
|
|
265
|
-
const
|
|
292
|
+
const sendOperationFn = async (
|
|
266
293
|
args: coreClient.OperationArguments,
|
|
267
294
|
spec: coreClient.OperationSpec
|
|
268
295
|
) => {
|
|
@@ -295,18 +322,21 @@ export class SAPApplicationServerInstancesImpl
|
|
|
295
322
|
};
|
|
296
323
|
};
|
|
297
324
|
|
|
298
|
-
const lro =
|
|
299
|
-
|
|
300
|
-
{
|
|
325
|
+
const lro = createLroSpec({
|
|
326
|
+
sendOperationFn,
|
|
327
|
+
args: {
|
|
301
328
|
resourceGroupName,
|
|
302
329
|
sapVirtualInstanceName,
|
|
303
330
|
applicationInstanceName,
|
|
304
331
|
options
|
|
305
332
|
},
|
|
306
|
-
updateOperationSpec
|
|
307
|
-
);
|
|
308
|
-
const poller =
|
|
309
|
-
|
|
333
|
+
spec: updateOperationSpec
|
|
334
|
+
});
|
|
335
|
+
const poller = await createHttpPoller<
|
|
336
|
+
SAPApplicationServerInstancesUpdateResponse,
|
|
337
|
+
OperationState<SAPApplicationServerInstancesUpdateResponse>
|
|
338
|
+
>(lro, {
|
|
339
|
+
restoreFrom: options?.resumeFrom,
|
|
310
340
|
intervalInMs: options?.updateIntervalInMs
|
|
311
341
|
});
|
|
312
342
|
await poller.poll();
|
|
@@ -314,10 +344,10 @@ export class SAPApplicationServerInstancesImpl
|
|
|
314
344
|
}
|
|
315
345
|
|
|
316
346
|
/**
|
|
317
|
-
* Puts the SAP Application Server Instance.
|
|
347
|
+
* Puts the SAP Application Server Instance resource.
|
|
318
348
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
319
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
320
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
349
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
350
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
321
351
|
* @param options The options parameters.
|
|
322
352
|
*/
|
|
323
353
|
async beginUpdateAndWait(
|
|
@@ -336,11 +366,11 @@ export class SAPApplicationServerInstancesImpl
|
|
|
336
366
|
}
|
|
337
367
|
|
|
338
368
|
/**
|
|
339
|
-
* Deletes the SAP Application Server Instance. <br><br>This operation will be used by service
|
|
340
|
-
* Delete by end user will return a Bad Request error.
|
|
369
|
+
* Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service
|
|
370
|
+
* only. Delete by end user will return a Bad Request error.
|
|
341
371
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
342
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
343
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
372
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
373
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
344
374
|
* @param options The options parameters.
|
|
345
375
|
*/
|
|
346
376
|
async beginDelete(
|
|
@@ -349,8 +379,8 @@ export class SAPApplicationServerInstancesImpl
|
|
|
349
379
|
applicationInstanceName: string,
|
|
350
380
|
options?: SAPApplicationServerInstancesDeleteOptionalParams
|
|
351
381
|
): Promise<
|
|
352
|
-
|
|
353
|
-
|
|
382
|
+
SimplePollerLike<
|
|
383
|
+
OperationState<SAPApplicationServerInstancesDeleteResponse>,
|
|
354
384
|
SAPApplicationServerInstancesDeleteResponse
|
|
355
385
|
>
|
|
356
386
|
> {
|
|
@@ -360,7 +390,7 @@ export class SAPApplicationServerInstancesImpl
|
|
|
360
390
|
): Promise<SAPApplicationServerInstancesDeleteResponse> => {
|
|
361
391
|
return this.client.sendOperationRequest(args, spec);
|
|
362
392
|
};
|
|
363
|
-
const
|
|
393
|
+
const sendOperationFn = async (
|
|
364
394
|
args: coreClient.OperationArguments,
|
|
365
395
|
spec: coreClient.OperationSpec
|
|
366
396
|
) => {
|
|
@@ -393,31 +423,34 @@ export class SAPApplicationServerInstancesImpl
|
|
|
393
423
|
};
|
|
394
424
|
};
|
|
395
425
|
|
|
396
|
-
const lro =
|
|
397
|
-
|
|
398
|
-
{
|
|
426
|
+
const lro = createLroSpec({
|
|
427
|
+
sendOperationFn,
|
|
428
|
+
args: {
|
|
399
429
|
resourceGroupName,
|
|
400
430
|
sapVirtualInstanceName,
|
|
401
431
|
applicationInstanceName,
|
|
402
432
|
options
|
|
403
433
|
},
|
|
404
|
-
deleteOperationSpec
|
|
405
|
-
);
|
|
406
|
-
const poller =
|
|
407
|
-
|
|
434
|
+
spec: deleteOperationSpec
|
|
435
|
+
});
|
|
436
|
+
const poller = await createHttpPoller<
|
|
437
|
+
SAPApplicationServerInstancesDeleteResponse,
|
|
438
|
+
OperationState<SAPApplicationServerInstancesDeleteResponse>
|
|
439
|
+
>(lro, {
|
|
440
|
+
restoreFrom: options?.resumeFrom,
|
|
408
441
|
intervalInMs: options?.updateIntervalInMs,
|
|
409
|
-
|
|
442
|
+
resourceLocationConfig: "azure-async-operation"
|
|
410
443
|
});
|
|
411
444
|
await poller.poll();
|
|
412
445
|
return poller;
|
|
413
446
|
}
|
|
414
447
|
|
|
415
448
|
/**
|
|
416
|
-
* Deletes the SAP Application Server Instance. <br><br>This operation will be used by service
|
|
417
|
-
* Delete by end user will return a Bad Request error.
|
|
449
|
+
* Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service
|
|
450
|
+
* only. Delete by end user will return a Bad Request error.
|
|
418
451
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
419
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
420
|
-
* @param applicationInstanceName The name of SAP Application Server instance.
|
|
452
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
453
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
421
454
|
* @param options The options parameters.
|
|
422
455
|
*/
|
|
423
456
|
async beginDeleteAndWait(
|
|
@@ -436,9 +469,10 @@ export class SAPApplicationServerInstancesImpl
|
|
|
436
469
|
}
|
|
437
470
|
|
|
438
471
|
/**
|
|
439
|
-
* Lists the SAP Application
|
|
472
|
+
* Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions
|
|
473
|
+
* resource.
|
|
440
474
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
441
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
475
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
442
476
|
* @param options The options parameters.
|
|
443
477
|
*/
|
|
444
478
|
private _list(
|
|
@@ -452,10 +486,212 @@ export class SAPApplicationServerInstancesImpl
|
|
|
452
486
|
);
|
|
453
487
|
}
|
|
454
488
|
|
|
489
|
+
/**
|
|
490
|
+
* Starts the SAP Application Server Instance.
|
|
491
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
492
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
493
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
494
|
+
* @param options The options parameters.
|
|
495
|
+
*/
|
|
496
|
+
async beginStartInstance(
|
|
497
|
+
resourceGroupName: string,
|
|
498
|
+
sapVirtualInstanceName: string,
|
|
499
|
+
applicationInstanceName: string,
|
|
500
|
+
options?: SAPApplicationServerInstancesStartInstanceOptionalParams
|
|
501
|
+
): Promise<
|
|
502
|
+
SimplePollerLike<
|
|
503
|
+
OperationState<SAPApplicationServerInstancesStartInstanceResponse>,
|
|
504
|
+
SAPApplicationServerInstancesStartInstanceResponse
|
|
505
|
+
>
|
|
506
|
+
> {
|
|
507
|
+
const directSendOperation = async (
|
|
508
|
+
args: coreClient.OperationArguments,
|
|
509
|
+
spec: coreClient.OperationSpec
|
|
510
|
+
): Promise<SAPApplicationServerInstancesStartInstanceResponse> => {
|
|
511
|
+
return this.client.sendOperationRequest(args, spec);
|
|
512
|
+
};
|
|
513
|
+
const sendOperationFn = async (
|
|
514
|
+
args: coreClient.OperationArguments,
|
|
515
|
+
spec: coreClient.OperationSpec
|
|
516
|
+
) => {
|
|
517
|
+
let currentRawResponse:
|
|
518
|
+
| coreClient.FullOperationResponse
|
|
519
|
+
| undefined = undefined;
|
|
520
|
+
const providedCallback = args.options?.onResponse;
|
|
521
|
+
const callback: coreClient.RawResponseCallback = (
|
|
522
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
523
|
+
flatResponse: unknown
|
|
524
|
+
) => {
|
|
525
|
+
currentRawResponse = rawResponse;
|
|
526
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
527
|
+
};
|
|
528
|
+
const updatedArgs = {
|
|
529
|
+
...args,
|
|
530
|
+
options: {
|
|
531
|
+
...args.options,
|
|
532
|
+
onResponse: callback
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
536
|
+
return {
|
|
537
|
+
flatResponse,
|
|
538
|
+
rawResponse: {
|
|
539
|
+
statusCode: currentRawResponse!.status,
|
|
540
|
+
body: currentRawResponse!.parsedBody,
|
|
541
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
const lro = createLroSpec({
|
|
547
|
+
sendOperationFn,
|
|
548
|
+
args: {
|
|
549
|
+
resourceGroupName,
|
|
550
|
+
sapVirtualInstanceName,
|
|
551
|
+
applicationInstanceName,
|
|
552
|
+
options
|
|
553
|
+
},
|
|
554
|
+
spec: startInstanceOperationSpec
|
|
555
|
+
});
|
|
556
|
+
const poller = await createHttpPoller<
|
|
557
|
+
SAPApplicationServerInstancesStartInstanceResponse,
|
|
558
|
+
OperationState<SAPApplicationServerInstancesStartInstanceResponse>
|
|
559
|
+
>(lro, {
|
|
560
|
+
restoreFrom: options?.resumeFrom,
|
|
561
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
562
|
+
resourceLocationConfig: "azure-async-operation"
|
|
563
|
+
});
|
|
564
|
+
await poller.poll();
|
|
565
|
+
return poller;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Starts the SAP Application Server Instance.
|
|
570
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
571
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
572
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
573
|
+
* @param options The options parameters.
|
|
574
|
+
*/
|
|
575
|
+
async beginStartInstanceAndWait(
|
|
576
|
+
resourceGroupName: string,
|
|
577
|
+
sapVirtualInstanceName: string,
|
|
578
|
+
applicationInstanceName: string,
|
|
579
|
+
options?: SAPApplicationServerInstancesStartInstanceOptionalParams
|
|
580
|
+
): Promise<SAPApplicationServerInstancesStartInstanceResponse> {
|
|
581
|
+
const poller = await this.beginStartInstance(
|
|
582
|
+
resourceGroupName,
|
|
583
|
+
sapVirtualInstanceName,
|
|
584
|
+
applicationInstanceName,
|
|
585
|
+
options
|
|
586
|
+
);
|
|
587
|
+
return poller.pollUntilDone();
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Stops the SAP Application Server Instance.
|
|
592
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
593
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
594
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
595
|
+
* @param options The options parameters.
|
|
596
|
+
*/
|
|
597
|
+
async beginStopInstance(
|
|
598
|
+
resourceGroupName: string,
|
|
599
|
+
sapVirtualInstanceName: string,
|
|
600
|
+
applicationInstanceName: string,
|
|
601
|
+
options?: SAPApplicationServerInstancesStopInstanceOptionalParams
|
|
602
|
+
): Promise<
|
|
603
|
+
SimplePollerLike<
|
|
604
|
+
OperationState<SAPApplicationServerInstancesStopInstanceResponse>,
|
|
605
|
+
SAPApplicationServerInstancesStopInstanceResponse
|
|
606
|
+
>
|
|
607
|
+
> {
|
|
608
|
+
const directSendOperation = async (
|
|
609
|
+
args: coreClient.OperationArguments,
|
|
610
|
+
spec: coreClient.OperationSpec
|
|
611
|
+
): Promise<SAPApplicationServerInstancesStopInstanceResponse> => {
|
|
612
|
+
return this.client.sendOperationRequest(args, spec);
|
|
613
|
+
};
|
|
614
|
+
const sendOperationFn = async (
|
|
615
|
+
args: coreClient.OperationArguments,
|
|
616
|
+
spec: coreClient.OperationSpec
|
|
617
|
+
) => {
|
|
618
|
+
let currentRawResponse:
|
|
619
|
+
| coreClient.FullOperationResponse
|
|
620
|
+
| undefined = undefined;
|
|
621
|
+
const providedCallback = args.options?.onResponse;
|
|
622
|
+
const callback: coreClient.RawResponseCallback = (
|
|
623
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
624
|
+
flatResponse: unknown
|
|
625
|
+
) => {
|
|
626
|
+
currentRawResponse = rawResponse;
|
|
627
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
628
|
+
};
|
|
629
|
+
const updatedArgs = {
|
|
630
|
+
...args,
|
|
631
|
+
options: {
|
|
632
|
+
...args.options,
|
|
633
|
+
onResponse: callback
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
637
|
+
return {
|
|
638
|
+
flatResponse,
|
|
639
|
+
rawResponse: {
|
|
640
|
+
statusCode: currentRawResponse!.status,
|
|
641
|
+
body: currentRawResponse!.parsedBody,
|
|
642
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
const lro = createLroSpec({
|
|
648
|
+
sendOperationFn,
|
|
649
|
+
args: {
|
|
650
|
+
resourceGroupName,
|
|
651
|
+
sapVirtualInstanceName,
|
|
652
|
+
applicationInstanceName,
|
|
653
|
+
options
|
|
654
|
+
},
|
|
655
|
+
spec: stopInstanceOperationSpec
|
|
656
|
+
});
|
|
657
|
+
const poller = await createHttpPoller<
|
|
658
|
+
SAPApplicationServerInstancesStopInstanceResponse,
|
|
659
|
+
OperationState<SAPApplicationServerInstancesStopInstanceResponse>
|
|
660
|
+
>(lro, {
|
|
661
|
+
restoreFrom: options?.resumeFrom,
|
|
662
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
663
|
+
resourceLocationConfig: "azure-async-operation"
|
|
664
|
+
});
|
|
665
|
+
await poller.poll();
|
|
666
|
+
return poller;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Stops the SAP Application Server Instance.
|
|
671
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
672
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
673
|
+
* @param applicationInstanceName The name of SAP Application Server instance resource.
|
|
674
|
+
* @param options The options parameters.
|
|
675
|
+
*/
|
|
676
|
+
async beginStopInstanceAndWait(
|
|
677
|
+
resourceGroupName: string,
|
|
678
|
+
sapVirtualInstanceName: string,
|
|
679
|
+
applicationInstanceName: string,
|
|
680
|
+
options?: SAPApplicationServerInstancesStopInstanceOptionalParams
|
|
681
|
+
): Promise<SAPApplicationServerInstancesStopInstanceResponse> {
|
|
682
|
+
const poller = await this.beginStopInstance(
|
|
683
|
+
resourceGroupName,
|
|
684
|
+
sapVirtualInstanceName,
|
|
685
|
+
applicationInstanceName,
|
|
686
|
+
options
|
|
687
|
+
);
|
|
688
|
+
return poller.pollUntilDone();
|
|
689
|
+
}
|
|
690
|
+
|
|
455
691
|
/**
|
|
456
692
|
* ListNext
|
|
457
693
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
458
|
-
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP
|
|
694
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
459
695
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
460
696
|
* @param options The options parameters.
|
|
461
697
|
*/
|
|
@@ -527,7 +763,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
527
763
|
Parameters.sapVirtualInstanceName,
|
|
528
764
|
Parameters.applicationInstanceName
|
|
529
765
|
],
|
|
530
|
-
headerParameters: [Parameters.
|
|
766
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
531
767
|
mediaType: "json",
|
|
532
768
|
serializer
|
|
533
769
|
};
|
|
@@ -561,7 +797,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
561
797
|
Parameters.sapVirtualInstanceName,
|
|
562
798
|
Parameters.applicationInstanceName
|
|
563
799
|
],
|
|
564
|
-
headerParameters: [Parameters.
|
|
800
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
565
801
|
mediaType: "json",
|
|
566
802
|
serializer
|
|
567
803
|
};
|
|
@@ -619,6 +855,72 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
619
855
|
headerParameters: [Parameters.accept],
|
|
620
856
|
serializer
|
|
621
857
|
};
|
|
858
|
+
const startInstanceOperationSpec: coreClient.OperationSpec = {
|
|
859
|
+
path:
|
|
860
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName}/start",
|
|
861
|
+
httpMethod: "POST",
|
|
862
|
+
responses: {
|
|
863
|
+
200: {
|
|
864
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
865
|
+
},
|
|
866
|
+
201: {
|
|
867
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
868
|
+
},
|
|
869
|
+
202: {
|
|
870
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
871
|
+
},
|
|
872
|
+
204: {
|
|
873
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
874
|
+
},
|
|
875
|
+
default: {
|
|
876
|
+
bodyMapper: Mappers.ErrorResponse
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
queryParameters: [Parameters.apiVersion],
|
|
880
|
+
urlParameters: [
|
|
881
|
+
Parameters.$host,
|
|
882
|
+
Parameters.subscriptionId,
|
|
883
|
+
Parameters.resourceGroupName,
|
|
884
|
+
Parameters.sapVirtualInstanceName,
|
|
885
|
+
Parameters.applicationInstanceName
|
|
886
|
+
],
|
|
887
|
+
headerParameters: [Parameters.accept],
|
|
888
|
+
serializer
|
|
889
|
+
};
|
|
890
|
+
const stopInstanceOperationSpec: coreClient.OperationSpec = {
|
|
891
|
+
path:
|
|
892
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName}/stop",
|
|
893
|
+
httpMethod: "POST",
|
|
894
|
+
responses: {
|
|
895
|
+
200: {
|
|
896
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
897
|
+
},
|
|
898
|
+
201: {
|
|
899
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
900
|
+
},
|
|
901
|
+
202: {
|
|
902
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
903
|
+
},
|
|
904
|
+
204: {
|
|
905
|
+
bodyMapper: Mappers.OperationStatusResult
|
|
906
|
+
},
|
|
907
|
+
default: {
|
|
908
|
+
bodyMapper: Mappers.ErrorResponse
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
requestBody: Parameters.body2,
|
|
912
|
+
queryParameters: [Parameters.apiVersion],
|
|
913
|
+
urlParameters: [
|
|
914
|
+
Parameters.$host,
|
|
915
|
+
Parameters.subscriptionId,
|
|
916
|
+
Parameters.resourceGroupName,
|
|
917
|
+
Parameters.sapVirtualInstanceName,
|
|
918
|
+
Parameters.applicationInstanceName
|
|
919
|
+
],
|
|
920
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
921
|
+
mediaType: "json",
|
|
922
|
+
serializer
|
|
923
|
+
};
|
|
622
924
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
623
925
|
path: "{nextLink}",
|
|
624
926
|
httpMethod: "GET",
|
|
@@ -630,13 +932,12 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
630
932
|
bodyMapper: Mappers.ErrorResponse
|
|
631
933
|
}
|
|
632
934
|
},
|
|
633
|
-
queryParameters: [Parameters.apiVersion],
|
|
634
935
|
urlParameters: [
|
|
635
936
|
Parameters.$host,
|
|
636
937
|
Parameters.subscriptionId,
|
|
637
938
|
Parameters.resourceGroupName,
|
|
638
|
-
Parameters.
|
|
639
|
-
Parameters.
|
|
939
|
+
Parameters.sapVirtualInstanceName,
|
|
940
|
+
Parameters.nextLink
|
|
640
941
|
],
|
|
641
942
|
headerParameters: [Parameters.accept],
|
|
642
943
|
serializer
|