@azure/arm-workloadssapvirtualinstance 1.0.0-alpha.20240322.1
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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +6973 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +53 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.js +72 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.js +40 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.js +55 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.js.map +1 -0
- 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 +64 -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 +68 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.js +44 -0
- package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.js +56 -0
- package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesCreateSample.js +72 -0
- package/dist-esm/samples-dev/sapCentralInstancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesGetSample.js +40 -0
- package/dist-esm/samples-dev/sapCentralInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesListSample.js +55 -0
- package/dist-esm/samples-dev/sapCentralInstancesListSample.js.map +1 -0
- 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 +62 -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 +64 -0
- package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.js +42 -0
- package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.js +72 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.js +40 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesListSample.js +55 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesListSample.js.map +1 -0
- 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 +62 -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 +64 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.js +42 -0
- package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapDiskConfigurationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapDiskConfigurationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapDiskConfigurationsSample.js +56 -0
- package/dist-esm/samples-dev/sapDiskConfigurationsSample.js.map +1 -0
- package/dist-esm/samples-dev/sapSizingRecommendationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapSizingRecommendationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapSizingRecommendationsSample.js +92 -0
- package/dist-esm/samples-dev/sapSizingRecommendationsSample.js.map +1 -0
- package/dist-esm/samples-dev/sapSupportedSkuSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapSupportedSkuSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapSupportedSkuSample.js +92 -0
- package/dist-esm/samples-dev/sapSupportedSkuSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.js +2993 -0
- package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesGetSample.js +58 -0
- package/dist-esm/samples-dev/sapVirtualInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStartSample.js +60 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStopSample.js +62 -0
- package/dist-esm/samples-dev/sapVirtualInstancesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.js +69 -0
- package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2158 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +274 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +146 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +3364 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +28 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +212 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +13 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +133 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/sAPApplicationServerInstances.d.ts +127 -0
- package/dist-esm/src/operations/sAPApplicationServerInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/sAPApplicationServerInstances.js +617 -0
- package/dist-esm/src/operations/sAPApplicationServerInstances.js.map +1 -0
- package/dist-esm/src/operations/sAPCentralInstances.d.ts +140 -0
- package/dist-esm/src/operations/sAPCentralInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/sAPCentralInstances.js +630 -0
- package/dist-esm/src/operations/sAPCentralInstances.js.map +1 -0
- package/dist-esm/src/operations/sAPDatabaseInstances.d.ts +133 -0
- package/dist-esm/src/operations/sAPDatabaseInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/sAPDatabaseInstances.js +623 -0
- package/dist-esm/src/operations/sAPDatabaseInstances.js.map +1 -0
- package/dist-esm/src/operations/sAPVirtualInstances.d.ts +133 -0
- package/dist-esm/src/operations/sAPVirtualInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/sAPVirtualInstances.js +725 -0
- package/dist-esm/src/operations/sAPVirtualInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.d.ts +101 -0
- package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPCentralInstances.d.ts +114 -0
- package/dist-esm/src/operationsInterfaces/sAPCentralInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPCentralInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/sAPCentralInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.d.ts +108 -0
- package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.d.ts +97 -0
- package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.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 +49 -0
- package/dist-esm/src/workloadsClient.d.ts.map +1 -0
- package/dist-esm/src/workloadsClient.js +229 -0
- package/dist-esm/src/workloadsClient.js.map +1 -0
- package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.js +73 -0
- package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-workloadssapvirtualinstance.api.md +1558 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +2476 -0
- package/src/models/mappers.ts +3615 -0
- package/src/models/parameters.ts +258 -0
- package/src/operations/index.ts +13 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/sAPApplicationServerInstances.ts +852 -0
- package/src/operations/sAPCentralInstances.ts +863 -0
- package/src/operations/sAPDatabaseInstances.ts +856 -0
- package/src/operations/sAPVirtualInstances.ts +964 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/sAPApplicationServerInstances.ts +199 -0
- package/src/operationsInterfaces/sAPCentralInstances.ts +212 -0
- package/src/operationsInterfaces/sAPDatabaseInstances.ts +206 -0
- package/src/operationsInterfaces/sAPVirtualInstances.ts +196 -0
- package/src/pagingHelper.ts +39 -0
- package/src/workloadsClient.ts +327 -0
- package/tsconfig.json +33 -0
- package/types/arm-workloadssapvirtualinstance.d.ts +2888 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing SAPVirtualInstances operations. */
|
|
17
|
+
export class SAPVirtualInstancesImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class SAPVirtualInstances class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Gets all Virtual Instances for SAP solutions resources in a Resource Group.
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
31
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
48
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield yield __await(page);
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield yield __await(page);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
68
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
69
|
+
var _a, e_1, _b, _c;
|
|
70
|
+
try {
|
|
71
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
+
_c = _f.value;
|
|
73
|
+
_d = false;
|
|
74
|
+
const page = _c;
|
|
75
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
+
finally {
|
|
80
|
+
try {
|
|
81
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
+
}
|
|
83
|
+
finally { if (e_1) throw e_1.error; }
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Gets all Virtual Instances for SAP solutions resources in a Subscription.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listBySubscription(options) {
|
|
92
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: (settings) => {
|
|
101
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
102
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
|
+
}
|
|
104
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
109
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
110
|
+
let result;
|
|
111
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
112
|
+
if (!continuationToken) {
|
|
113
|
+
result = yield __await(this._listBySubscription(options));
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield yield __await(page);
|
|
118
|
+
}
|
|
119
|
+
while (continuationToken) {
|
|
120
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
listBySubscriptionPagingAll(options) {
|
|
129
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
130
|
+
var _a, e_2, _b, _c;
|
|
131
|
+
try {
|
|
132
|
+
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
+
_c = _f.value;
|
|
134
|
+
_d = false;
|
|
135
|
+
const page = _c;
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
+
finally {
|
|
141
|
+
try {
|
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
+
}
|
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates a Virtual Instance for SAP solutions (VIS) resource
|
|
150
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
151
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
beginCreate(resourceGroupName, sapVirtualInstanceName, options) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
return this.client.sendOperationRequest(args, spec);
|
|
158
|
+
});
|
|
159
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
var _a;
|
|
161
|
+
let currentRawResponse = undefined;
|
|
162
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
163
|
+
const callback = (rawResponse, flatResponse) => {
|
|
164
|
+
currentRawResponse = rawResponse;
|
|
165
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
166
|
+
};
|
|
167
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
168
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
169
|
+
return {
|
|
170
|
+
flatResponse,
|
|
171
|
+
rawResponse: {
|
|
172
|
+
statusCode: currentRawResponse.status,
|
|
173
|
+
body: currentRawResponse.parsedBody,
|
|
174
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
const lro = createLroSpec({
|
|
179
|
+
sendOperationFn,
|
|
180
|
+
args: { resourceGroupName, sapVirtualInstanceName, options },
|
|
181
|
+
spec: createOperationSpec,
|
|
182
|
+
});
|
|
183
|
+
const poller = yield createHttpPoller(lro, {
|
|
184
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
185
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
186
|
+
});
|
|
187
|
+
yield poller.poll();
|
|
188
|
+
return poller;
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Creates a Virtual Instance for SAP solutions (VIS) resource
|
|
193
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
194
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
195
|
+
* @param options The options parameters.
|
|
196
|
+
*/
|
|
197
|
+
beginCreateAndWait(resourceGroupName, sapVirtualInstanceName, options) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const poller = yield this.beginCreate(resourceGroupName, sapVirtualInstanceName, options);
|
|
200
|
+
return poller.pollUntilDone();
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Gets a Virtual Instance for SAP solutions resource
|
|
205
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
206
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
get(resourceGroupName, sapVirtualInstanceName, options) {
|
|
210
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapVirtualInstanceName, options }, getOperationSpec);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Updates a Virtual Instance for SAP solutions resource
|
|
214
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
215
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
216
|
+
* @param options The options parameters.
|
|
217
|
+
*/
|
|
218
|
+
beginUpdate(resourceGroupName, sapVirtualInstanceName, options) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
return this.client.sendOperationRequest(args, spec);
|
|
222
|
+
});
|
|
223
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
var _a;
|
|
225
|
+
let currentRawResponse = undefined;
|
|
226
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
227
|
+
const callback = (rawResponse, flatResponse) => {
|
|
228
|
+
currentRawResponse = rawResponse;
|
|
229
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
230
|
+
};
|
|
231
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
232
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
233
|
+
return {
|
|
234
|
+
flatResponse,
|
|
235
|
+
rawResponse: {
|
|
236
|
+
statusCode: currentRawResponse.status,
|
|
237
|
+
body: currentRawResponse.parsedBody,
|
|
238
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
});
|
|
242
|
+
const lro = createLroSpec({
|
|
243
|
+
sendOperationFn,
|
|
244
|
+
args: { resourceGroupName, sapVirtualInstanceName, options },
|
|
245
|
+
spec: updateOperationSpec,
|
|
246
|
+
});
|
|
247
|
+
const poller = yield createHttpPoller(lro, {
|
|
248
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
249
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
250
|
+
resourceLocationConfig: "location",
|
|
251
|
+
});
|
|
252
|
+
yield poller.poll();
|
|
253
|
+
return poller;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Updates a Virtual Instance for SAP solutions resource
|
|
258
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
259
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
260
|
+
* @param options The options parameters.
|
|
261
|
+
*/
|
|
262
|
+
beginUpdateAndWait(resourceGroupName, sapVirtualInstanceName, options) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const poller = yield this.beginUpdate(resourceGroupName, sapVirtualInstanceName, options);
|
|
265
|
+
return poller.pollUntilDone();
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the
|
|
270
|
+
* associated Central Services Instance, Application Server Instances and Database Instance.
|
|
271
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
beginDelete(resourceGroupName, sapVirtualInstanceName, options) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
return this.client.sendOperationRequest(args, spec);
|
|
279
|
+
});
|
|
280
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
var _a;
|
|
282
|
+
let currentRawResponse = undefined;
|
|
283
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
284
|
+
const callback = (rawResponse, flatResponse) => {
|
|
285
|
+
currentRawResponse = rawResponse;
|
|
286
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
287
|
+
};
|
|
288
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
289
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
290
|
+
return {
|
|
291
|
+
flatResponse,
|
|
292
|
+
rawResponse: {
|
|
293
|
+
statusCode: currentRawResponse.status,
|
|
294
|
+
body: currentRawResponse.parsedBody,
|
|
295
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
});
|
|
299
|
+
const lro = createLroSpec({
|
|
300
|
+
sendOperationFn,
|
|
301
|
+
args: { resourceGroupName, sapVirtualInstanceName, options },
|
|
302
|
+
spec: deleteOperationSpec,
|
|
303
|
+
});
|
|
304
|
+
const poller = yield createHttpPoller(lro, {
|
|
305
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
306
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
307
|
+
resourceLocationConfig: "location",
|
|
308
|
+
});
|
|
309
|
+
yield poller.poll();
|
|
310
|
+
return poller;
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the
|
|
315
|
+
* associated Central Services Instance, Application Server Instances and Database Instance.
|
|
316
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
317
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
318
|
+
* @param options The options parameters.
|
|
319
|
+
*/
|
|
320
|
+
beginDeleteAndWait(resourceGroupName, sapVirtualInstanceName, options) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const poller = yield this.beginDelete(resourceGroupName, sapVirtualInstanceName, options);
|
|
323
|
+
return poller.pollUntilDone();
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Gets all Virtual Instances for SAP solutions resources in a Resource Group.
|
|
328
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
329
|
+
* @param options The options parameters.
|
|
330
|
+
*/
|
|
331
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
332
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Gets all Virtual Instances for SAP solutions resources in a Subscription.
|
|
336
|
+
* @param options The options parameters.
|
|
337
|
+
*/
|
|
338
|
+
_listBySubscription(options) {
|
|
339
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Starts the SAP application, that is the Central Services instance and Application server instances.
|
|
343
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
344
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
345
|
+
* @param options The options parameters.
|
|
346
|
+
*/
|
|
347
|
+
beginStart(resourceGroupName, sapVirtualInstanceName, options) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
return this.client.sendOperationRequest(args, spec);
|
|
351
|
+
});
|
|
352
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
var _a;
|
|
354
|
+
let currentRawResponse = undefined;
|
|
355
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
356
|
+
const callback = (rawResponse, flatResponse) => {
|
|
357
|
+
currentRawResponse = rawResponse;
|
|
358
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
359
|
+
};
|
|
360
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
361
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
362
|
+
return {
|
|
363
|
+
flatResponse,
|
|
364
|
+
rawResponse: {
|
|
365
|
+
statusCode: currentRawResponse.status,
|
|
366
|
+
body: currentRawResponse.parsedBody,
|
|
367
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
368
|
+
},
|
|
369
|
+
};
|
|
370
|
+
});
|
|
371
|
+
const lro = createLroSpec({
|
|
372
|
+
sendOperationFn,
|
|
373
|
+
args: { resourceGroupName, sapVirtualInstanceName, options },
|
|
374
|
+
spec: startOperationSpec,
|
|
375
|
+
});
|
|
376
|
+
const poller = yield createHttpPoller(lro, {
|
|
377
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
378
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
379
|
+
});
|
|
380
|
+
yield poller.poll();
|
|
381
|
+
return poller;
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Starts the SAP application, that is the Central Services instance and Application server instances.
|
|
386
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
387
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
388
|
+
* @param options The options parameters.
|
|
389
|
+
*/
|
|
390
|
+
beginStartAndWait(resourceGroupName, sapVirtualInstanceName, options) {
|
|
391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
+
const poller = yield this.beginStart(resourceGroupName, sapVirtualInstanceName, options);
|
|
393
|
+
return poller.pollUntilDone();
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Stops the SAP Application, that is the Application server instances and Central Services instance.
|
|
398
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
399
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
400
|
+
* @param options The options parameters.
|
|
401
|
+
*/
|
|
402
|
+
beginStop(resourceGroupName, sapVirtualInstanceName, options) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
return this.client.sendOperationRequest(args, spec);
|
|
406
|
+
});
|
|
407
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
var _a;
|
|
409
|
+
let currentRawResponse = undefined;
|
|
410
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
411
|
+
const callback = (rawResponse, flatResponse) => {
|
|
412
|
+
currentRawResponse = rawResponse;
|
|
413
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
414
|
+
};
|
|
415
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
416
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
417
|
+
return {
|
|
418
|
+
flatResponse,
|
|
419
|
+
rawResponse: {
|
|
420
|
+
statusCode: currentRawResponse.status,
|
|
421
|
+
body: currentRawResponse.parsedBody,
|
|
422
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
423
|
+
},
|
|
424
|
+
};
|
|
425
|
+
});
|
|
426
|
+
const lro = createLroSpec({
|
|
427
|
+
sendOperationFn,
|
|
428
|
+
args: { resourceGroupName, sapVirtualInstanceName, options },
|
|
429
|
+
spec: stopOperationSpec,
|
|
430
|
+
});
|
|
431
|
+
const poller = yield createHttpPoller(lro, {
|
|
432
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
433
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
434
|
+
});
|
|
435
|
+
yield poller.poll();
|
|
436
|
+
return poller;
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Stops the SAP Application, that is the Application server instances and Central Services instance.
|
|
441
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
442
|
+
* @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource
|
|
443
|
+
* @param options The options parameters.
|
|
444
|
+
*/
|
|
445
|
+
beginStopAndWait(resourceGroupName, sapVirtualInstanceName, options) {
|
|
446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
447
|
+
const poller = yield this.beginStop(resourceGroupName, sapVirtualInstanceName, options);
|
|
448
|
+
return poller.pollUntilDone();
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* ListByResourceGroupNext
|
|
453
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
454
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
455
|
+
* @param options The options parameters.
|
|
456
|
+
*/
|
|
457
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
458
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* ListBySubscriptionNext
|
|
462
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
463
|
+
* @param options The options parameters.
|
|
464
|
+
*/
|
|
465
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
466
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
// Operation Specifications
|
|
470
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
471
|
+
const createOperationSpec = {
|
|
472
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}",
|
|
473
|
+
httpMethod: "PUT",
|
|
474
|
+
responses: {
|
|
475
|
+
200: {
|
|
476
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
477
|
+
},
|
|
478
|
+
201: {
|
|
479
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
480
|
+
},
|
|
481
|
+
202: {
|
|
482
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
483
|
+
},
|
|
484
|
+
204: {
|
|
485
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
486
|
+
},
|
|
487
|
+
default: {
|
|
488
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
requestBody: Parameters.body,
|
|
492
|
+
queryParameters: [Parameters.apiVersion],
|
|
493
|
+
urlParameters: [
|
|
494
|
+
Parameters.$host,
|
|
495
|
+
Parameters.subscriptionId,
|
|
496
|
+
Parameters.resourceGroupName,
|
|
497
|
+
Parameters.sapVirtualInstanceName,
|
|
498
|
+
],
|
|
499
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
500
|
+
mediaType: "json",
|
|
501
|
+
serializer,
|
|
502
|
+
};
|
|
503
|
+
const getOperationSpec = {
|
|
504
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}",
|
|
505
|
+
httpMethod: "GET",
|
|
506
|
+
responses: {
|
|
507
|
+
200: {
|
|
508
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
509
|
+
},
|
|
510
|
+
default: {
|
|
511
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
queryParameters: [Parameters.apiVersion],
|
|
515
|
+
urlParameters: [
|
|
516
|
+
Parameters.$host,
|
|
517
|
+
Parameters.subscriptionId,
|
|
518
|
+
Parameters.resourceGroupName,
|
|
519
|
+
Parameters.sapVirtualInstanceName,
|
|
520
|
+
],
|
|
521
|
+
headerParameters: [Parameters.accept],
|
|
522
|
+
serializer,
|
|
523
|
+
};
|
|
524
|
+
const updateOperationSpec = {
|
|
525
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}",
|
|
526
|
+
httpMethod: "PATCH",
|
|
527
|
+
responses: {
|
|
528
|
+
200: {
|
|
529
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
530
|
+
},
|
|
531
|
+
201: {
|
|
532
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
533
|
+
},
|
|
534
|
+
202: {
|
|
535
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
536
|
+
},
|
|
537
|
+
204: {
|
|
538
|
+
bodyMapper: Mappers.SAPVirtualInstance,
|
|
539
|
+
},
|
|
540
|
+
default: {
|
|
541
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
requestBody: Parameters.body1,
|
|
545
|
+
queryParameters: [Parameters.apiVersion],
|
|
546
|
+
urlParameters: [
|
|
547
|
+
Parameters.$host,
|
|
548
|
+
Parameters.subscriptionId,
|
|
549
|
+
Parameters.resourceGroupName,
|
|
550
|
+
Parameters.sapVirtualInstanceName,
|
|
551
|
+
],
|
|
552
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
553
|
+
mediaType: "json",
|
|
554
|
+
serializer,
|
|
555
|
+
};
|
|
556
|
+
const deleteOperationSpec = {
|
|
557
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}",
|
|
558
|
+
httpMethod: "DELETE",
|
|
559
|
+
responses: {
|
|
560
|
+
200: {
|
|
561
|
+
headersMapper: Mappers.SAPVirtualInstancesDeleteHeaders,
|
|
562
|
+
},
|
|
563
|
+
201: {
|
|
564
|
+
headersMapper: Mappers.SAPVirtualInstancesDeleteHeaders,
|
|
565
|
+
},
|
|
566
|
+
202: {
|
|
567
|
+
headersMapper: Mappers.SAPVirtualInstancesDeleteHeaders,
|
|
568
|
+
},
|
|
569
|
+
204: {
|
|
570
|
+
headersMapper: Mappers.SAPVirtualInstancesDeleteHeaders,
|
|
571
|
+
},
|
|
572
|
+
default: {
|
|
573
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
queryParameters: [Parameters.apiVersion],
|
|
577
|
+
urlParameters: [
|
|
578
|
+
Parameters.$host,
|
|
579
|
+
Parameters.subscriptionId,
|
|
580
|
+
Parameters.resourceGroupName,
|
|
581
|
+
Parameters.sapVirtualInstanceName,
|
|
582
|
+
],
|
|
583
|
+
headerParameters: [Parameters.accept],
|
|
584
|
+
serializer,
|
|
585
|
+
};
|
|
586
|
+
const listByResourceGroupOperationSpec = {
|
|
587
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances",
|
|
588
|
+
httpMethod: "GET",
|
|
589
|
+
responses: {
|
|
590
|
+
200: {
|
|
591
|
+
bodyMapper: Mappers.SAPVirtualInstanceList,
|
|
592
|
+
},
|
|
593
|
+
default: {
|
|
594
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
queryParameters: [Parameters.apiVersion],
|
|
598
|
+
urlParameters: [
|
|
599
|
+
Parameters.$host,
|
|
600
|
+
Parameters.subscriptionId,
|
|
601
|
+
Parameters.resourceGroupName,
|
|
602
|
+
],
|
|
603
|
+
headerParameters: [Parameters.accept],
|
|
604
|
+
serializer,
|
|
605
|
+
};
|
|
606
|
+
const listBySubscriptionOperationSpec = {
|
|
607
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapVirtualInstances",
|
|
608
|
+
httpMethod: "GET",
|
|
609
|
+
responses: {
|
|
610
|
+
200: {
|
|
611
|
+
bodyMapper: Mappers.SAPVirtualInstanceList,
|
|
612
|
+
},
|
|
613
|
+
default: {
|
|
614
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
615
|
+
},
|
|
616
|
+
},
|
|
617
|
+
queryParameters: [Parameters.apiVersion],
|
|
618
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
619
|
+
headerParameters: [Parameters.accept],
|
|
620
|
+
serializer,
|
|
621
|
+
};
|
|
622
|
+
const startOperationSpec = {
|
|
623
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/start",
|
|
624
|
+
httpMethod: "POST",
|
|
625
|
+
responses: {
|
|
626
|
+
200: {
|
|
627
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
628
|
+
},
|
|
629
|
+
201: {
|
|
630
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
631
|
+
},
|
|
632
|
+
202: {
|
|
633
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
634
|
+
},
|
|
635
|
+
204: {
|
|
636
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
637
|
+
},
|
|
638
|
+
default: {
|
|
639
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
requestBody: Parameters.body2,
|
|
643
|
+
queryParameters: [Parameters.apiVersion],
|
|
644
|
+
urlParameters: [
|
|
645
|
+
Parameters.$host,
|
|
646
|
+
Parameters.subscriptionId,
|
|
647
|
+
Parameters.resourceGroupName,
|
|
648
|
+
Parameters.sapVirtualInstanceName,
|
|
649
|
+
],
|
|
650
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
651
|
+
mediaType: "json",
|
|
652
|
+
serializer,
|
|
653
|
+
};
|
|
654
|
+
const stopOperationSpec = {
|
|
655
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/stop",
|
|
656
|
+
httpMethod: "POST",
|
|
657
|
+
responses: {
|
|
658
|
+
200: {
|
|
659
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
660
|
+
},
|
|
661
|
+
201: {
|
|
662
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
663
|
+
},
|
|
664
|
+
202: {
|
|
665
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
666
|
+
},
|
|
667
|
+
204: {
|
|
668
|
+
bodyMapper: Mappers.OperationStatusResult,
|
|
669
|
+
},
|
|
670
|
+
default: {
|
|
671
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
requestBody: Parameters.body3,
|
|
675
|
+
queryParameters: [Parameters.apiVersion],
|
|
676
|
+
urlParameters: [
|
|
677
|
+
Parameters.$host,
|
|
678
|
+
Parameters.subscriptionId,
|
|
679
|
+
Parameters.resourceGroupName,
|
|
680
|
+
Parameters.sapVirtualInstanceName,
|
|
681
|
+
],
|
|
682
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
683
|
+
mediaType: "json",
|
|
684
|
+
serializer,
|
|
685
|
+
};
|
|
686
|
+
const listByResourceGroupNextOperationSpec = {
|
|
687
|
+
path: "{nextLink}",
|
|
688
|
+
httpMethod: "GET",
|
|
689
|
+
responses: {
|
|
690
|
+
200: {
|
|
691
|
+
bodyMapper: Mappers.SAPVirtualInstanceList,
|
|
692
|
+
},
|
|
693
|
+
default: {
|
|
694
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
695
|
+
},
|
|
696
|
+
},
|
|
697
|
+
urlParameters: [
|
|
698
|
+
Parameters.$host,
|
|
699
|
+
Parameters.subscriptionId,
|
|
700
|
+
Parameters.resourceGroupName,
|
|
701
|
+
Parameters.nextLink,
|
|
702
|
+
],
|
|
703
|
+
headerParameters: [Parameters.accept],
|
|
704
|
+
serializer,
|
|
705
|
+
};
|
|
706
|
+
const listBySubscriptionNextOperationSpec = {
|
|
707
|
+
path: "{nextLink}",
|
|
708
|
+
httpMethod: "GET",
|
|
709
|
+
responses: {
|
|
710
|
+
200: {
|
|
711
|
+
bodyMapper: Mappers.SAPVirtualInstanceList,
|
|
712
|
+
},
|
|
713
|
+
default: {
|
|
714
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
urlParameters: [
|
|
718
|
+
Parameters.$host,
|
|
719
|
+
Parameters.subscriptionId,
|
|
720
|
+
Parameters.nextLink,
|
|
721
|
+
],
|
|
722
|
+
headerParameters: [Parameters.accept],
|
|
723
|
+
serializer,
|
|
724
|
+
};
|
|
725
|
+
//# sourceMappingURL=sAPVirtualInstances.js.map
|