@azure/arm-sqlvirtualmachine 4.1.1 → 5.0.0-beta.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 +14 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -85
- package/dist/index.js +2827 -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/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +783 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +103 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +31 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +320 -368
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +143 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts +89 -0
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/dist-esm/src/operations/availabilityGroupListeners.js +338 -0
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- 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 +116 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +117 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +487 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +144 -0
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachines.js +598 -0
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js +9 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -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/sqlVirtualMachineGroups.d.ts +79 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +87 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +21 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +54 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-sqlvirtualmachine.api.md +678 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +629 -1065
- package/src/models/mappers.ts +328 -376
- package/src/models/parameters.ts +106 -41
- package/src/operations/availabilityGroupListeners.ts +366 -222
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +89 -79
- package/src/operations/sqlVirtualMachineGroups.ts +517 -344
- package/src/operations/sqlVirtualMachines.ts +641 -424
- package/src/operationsInterfaces/availabilityGroupListeners.ts +115 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +147 -0
- package/src/operationsInterfaces/sqlVirtualMachines.ts +160 -0
- package/src/sqlVirtualMachineManagementClient.ts +78 -41
- package/tsconfig.json +3 -3
- package/types/arm-sqlvirtualmachine.d.ts +1141 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-sqlvirtualmachine.js +0 -2479
- package/dist/arm-sqlvirtualmachine.js.map +0 -1
- package/dist/arm-sqlvirtualmachine.min.js +0 -1
- package/dist/arm-sqlvirtualmachine.min.js.map +0 -1
- package/esm/models/availabilityGroupListenersMappers.d.ts +0 -2
- package/esm/models/availabilityGroupListenersMappers.d.ts.map +0 -1
- package/esm/models/availabilityGroupListenersMappers.js +0 -9
- package/esm/models/availabilityGroupListenersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1241
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -33
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -103
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/sqlVirtualMachineGroupsMappers.d.ts +0 -2
- package/esm/models/sqlVirtualMachineGroupsMappers.d.ts.map +0 -1
- package/esm/models/sqlVirtualMachineGroupsMappers.js +0 -9
- package/esm/models/sqlVirtualMachineGroupsMappers.js.map +0 -1
- package/esm/models/sqlVirtualMachinesMappers.d.ts +0 -2
- package/esm/models/sqlVirtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/sqlVirtualMachinesMappers.js +0 -9
- package/esm/models/sqlVirtualMachinesMappers.js.map +0 -1
- package/esm/operations/availabilityGroupListeners.d.ts +0 -125
- package/esm/operations/availabilityGroupListeners.d.ts.map +0 -1
- package/esm/operations/availabilityGroupListeners.js +0 -238
- package/esm/operations/availabilityGroupListeners.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/sqlVirtualMachineGroups.d.ts +0 -168
- package/esm/operations/sqlVirtualMachineGroups.d.ts.map +0 -1
- package/esm/operations/sqlVirtualMachineGroups.js +0 -337
- package/esm/operations/sqlVirtualMachineGroups.js.map +0 -1
- package/esm/operations/sqlVirtualMachines.d.ts +0 -210
- package/esm/operations/sqlVirtualMachines.d.ts.map +0 -1
- package/esm/operations/sqlVirtualMachines.js +0 -395
- package/esm/operations/sqlVirtualMachines.js.map +0 -1
- package/esm/sqlVirtualMachineManagementClient.d.ts +0 -27
- package/esm/sqlVirtualMachineManagementClient.d.ts.map +0 -1
- package/esm/sqlVirtualMachineManagementClient.js +0 -41
- package/esm/sqlVirtualMachineManagementClient.js.map +0 -1
- package/esm/sqlVirtualMachineManagementClientContext.d.ts +0 -22
- package/esm/sqlVirtualMachineManagementClientContext.d.ts.map +0 -1
- package/esm/sqlVirtualMachineManagementClientContext.js +0 -61
- package/esm/sqlVirtualMachineManagementClientContext.js.map +0 -1
- package/src/models/availabilityGroupListenersMappers.ts +0 -34
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/sqlVirtualMachineGroupsMappers.ts +0 -35
- package/src/models/sqlVirtualMachinesMappers.ts +0 -35
- package/src/sqlVirtualMachineManagementClientContext.ts +0 -68
|
@@ -1,376 +1,563 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SqlVirtualMachineGroups } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { SqlVirtualMachineManagementClient } from "../sqlVirtualMachineManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
SqlVirtualMachineGroup,
|
|
19
|
+
SqlVirtualMachineGroupsListByResourceGroupNextOptionalParams,
|
|
20
|
+
SqlVirtualMachineGroupsListByResourceGroupOptionalParams,
|
|
21
|
+
SqlVirtualMachineGroupsListNextOptionalParams,
|
|
22
|
+
SqlVirtualMachineGroupsListOptionalParams,
|
|
23
|
+
SqlVirtualMachineGroupsGetOptionalParams,
|
|
24
|
+
SqlVirtualMachineGroupsGetResponse,
|
|
25
|
+
SqlVirtualMachineGroupsCreateOrUpdateOptionalParams,
|
|
26
|
+
SqlVirtualMachineGroupsCreateOrUpdateResponse,
|
|
27
|
+
SqlVirtualMachineGroupsDeleteOptionalParams,
|
|
28
|
+
SqlVirtualMachineGroupUpdate,
|
|
29
|
+
SqlVirtualMachineGroupsUpdateOptionalParams,
|
|
30
|
+
SqlVirtualMachineGroupsUpdateResponse,
|
|
31
|
+
SqlVirtualMachineGroupsListByResourceGroupResponse,
|
|
32
|
+
SqlVirtualMachineGroupsListResponse,
|
|
33
|
+
SqlVirtualMachineGroupsListByResourceGroupNextResponse,
|
|
34
|
+
SqlVirtualMachineGroupsListNextResponse
|
|
35
|
+
} from "../models";
|
|
17
36
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
37
|
+
/// <reference lib="esnext.asynciterable" />
|
|
38
|
+
/** Class containing SqlVirtualMachineGroups operations. */
|
|
39
|
+
export class SqlVirtualMachineGroupsImpl implements SqlVirtualMachineGroups {
|
|
40
|
+
private readonly client: SqlVirtualMachineManagementClient;
|
|
21
41
|
|
|
22
42
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
43
|
+
* Initialize a new instance of the class SqlVirtualMachineGroups class.
|
|
44
|
+
* @param client Reference to the service client
|
|
25
45
|
*/
|
|
26
|
-
constructor(client:
|
|
46
|
+
constructor(client: SqlVirtualMachineManagementClient) {
|
|
27
47
|
this.client = client;
|
|
28
48
|
}
|
|
29
49
|
|
|
30
50
|
/**
|
|
31
|
-
* Gets
|
|
32
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.SqlVirtualMachineGroupsGetResponse>
|
|
37
|
-
*/
|
|
38
|
-
get(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.SqlVirtualMachineGroupsGetResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
41
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
42
|
-
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
43
|
-
* @param callback The callback
|
|
44
|
-
*/
|
|
45
|
-
get(resourceGroupName: string, sqlVirtualMachineGroupName: string, callback: msRest.ServiceCallback<Models.SqlVirtualMachineGroup>): void;
|
|
46
|
-
/**
|
|
47
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
48
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
49
|
-
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
50
|
-
* @param options The optional parameters
|
|
51
|
-
* @param callback The callback
|
|
51
|
+
* Gets all SQL virtual machine groups in a resource group.
|
|
52
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
53
|
+
* value from the Azure Resource Manager API or the portal.
|
|
54
|
+
* @param options The options parameters.
|
|
52
55
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
public listByResourceGroup(
|
|
57
|
+
resourceGroupName: string,
|
|
58
|
+
options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams
|
|
59
|
+
): PagedAsyncIterableIterator<SqlVirtualMachineGroup> {
|
|
60
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
61
|
+
return {
|
|
62
|
+
next() {
|
|
63
|
+
return iter.next();
|
|
64
|
+
},
|
|
65
|
+
[Symbol.asyncIterator]() {
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
byPage: () => {
|
|
69
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private async *listByResourceGroupPagingPage(
|
|
75
|
+
resourceGroupName: string,
|
|
76
|
+
options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams
|
|
77
|
+
): AsyncIterableIterator<SqlVirtualMachineGroup[]> {
|
|
78
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
let continuationToken = result.nextLink;
|
|
81
|
+
while (continuationToken) {
|
|
82
|
+
result = await this._listByResourceGroupNext(
|
|
57
83
|
resourceGroupName,
|
|
58
|
-
|
|
84
|
+
continuationToken,
|
|
59
85
|
options
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
86
|
+
);
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
yield result.value || [];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
private async *listByResourceGroupPagingAll(
|
|
93
|
+
resourceGroupName: string,
|
|
94
|
+
options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams
|
|
95
|
+
): AsyncIterableIterator<SqlVirtualMachineGroup> {
|
|
96
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
97
|
+
resourceGroupName,
|
|
98
|
+
options
|
|
99
|
+
)) {
|
|
100
|
+
yield* page;
|
|
101
|
+
}
|
|
63
102
|
}
|
|
64
103
|
|
|
65
104
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @param
|
|
68
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
69
|
-
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
70
|
-
* @param parameters The SQL virtual machine group.
|
|
71
|
-
* @param [options] The optional parameters
|
|
72
|
-
* @returns Promise<Models.SqlVirtualMachineGroupsCreateOrUpdateResponse>
|
|
105
|
+
* Gets all SQL virtual machine groups in a subscription.
|
|
106
|
+
* @param options The options parameters.
|
|
73
107
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
108
|
+
public list(
|
|
109
|
+
options?: SqlVirtualMachineGroupsListOptionalParams
|
|
110
|
+
): PagedAsyncIterableIterator<SqlVirtualMachineGroup> {
|
|
111
|
+
const iter = this.listPagingAll(options);
|
|
112
|
+
return {
|
|
113
|
+
next() {
|
|
114
|
+
return iter.next();
|
|
115
|
+
},
|
|
116
|
+
[Symbol.asyncIterator]() {
|
|
117
|
+
return this;
|
|
118
|
+
},
|
|
119
|
+
byPage: () => {
|
|
120
|
+
return this.listPagingPage(options);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private async *listPagingPage(
|
|
126
|
+
options?: SqlVirtualMachineGroupsListOptionalParams
|
|
127
|
+
): AsyncIterableIterator<SqlVirtualMachineGroup[]> {
|
|
128
|
+
let result = await this._list(options);
|
|
129
|
+
yield result.value || [];
|
|
130
|
+
let continuationToken = result.nextLink;
|
|
131
|
+
while (continuationToken) {
|
|
132
|
+
result = await this._listNext(continuationToken, options);
|
|
133
|
+
continuationToken = result.nextLink;
|
|
134
|
+
yield result.value || [];
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
private async *listPagingAll(
|
|
139
|
+
options?: SqlVirtualMachineGroupsListOptionalParams
|
|
140
|
+
): AsyncIterableIterator<SqlVirtualMachineGroup> {
|
|
141
|
+
for await (const page of this.listPagingPage(options)) {
|
|
142
|
+
yield* page;
|
|
143
|
+
}
|
|
77
144
|
}
|
|
78
145
|
|
|
79
146
|
/**
|
|
80
|
-
*
|
|
81
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
82
|
-
*
|
|
147
|
+
* Gets a SQL virtual machine group.
|
|
148
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
149
|
+
* value from the Azure Resource Manager API or the portal.
|
|
83
150
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
84
|
-
* @param
|
|
85
|
-
* @returns Promise<msRest.RestResponse>
|
|
151
|
+
* @param options The options parameters.
|
|
86
152
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
153
|
+
get(
|
|
154
|
+
resourceGroupName: string,
|
|
155
|
+
sqlVirtualMachineGroupName: string,
|
|
156
|
+
options?: SqlVirtualMachineGroupsGetOptionalParams
|
|
157
|
+
): Promise<SqlVirtualMachineGroupsGetResponse> {
|
|
158
|
+
return this.client.sendOperationRequest(
|
|
159
|
+
{ resourceGroupName, sqlVirtualMachineGroupName, options },
|
|
160
|
+
getOperationSpec
|
|
161
|
+
);
|
|
90
162
|
}
|
|
91
163
|
|
|
92
164
|
/**
|
|
93
|
-
*
|
|
94
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
95
|
-
*
|
|
165
|
+
* Creates or updates a SQL virtual machine group.
|
|
166
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
167
|
+
* value from the Azure Resource Manager API or the portal.
|
|
96
168
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
97
169
|
* @param parameters The SQL virtual machine group.
|
|
98
|
-
* @param
|
|
99
|
-
* @returns Promise<Models.SqlVirtualMachineGroupsUpdateResponse>
|
|
170
|
+
* @param options The options parameters.
|
|
100
171
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
172
|
+
async beginCreateOrUpdate(
|
|
173
|
+
resourceGroupName: string,
|
|
174
|
+
sqlVirtualMachineGroupName: string,
|
|
175
|
+
parameters: SqlVirtualMachineGroup,
|
|
176
|
+
options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams
|
|
177
|
+
): Promise<
|
|
178
|
+
PollerLike<
|
|
179
|
+
PollOperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>,
|
|
180
|
+
SqlVirtualMachineGroupsCreateOrUpdateResponse
|
|
181
|
+
>
|
|
182
|
+
> {
|
|
183
|
+
const directSendOperation = async (
|
|
184
|
+
args: coreClient.OperationArguments,
|
|
185
|
+
spec: coreClient.OperationSpec
|
|
186
|
+
): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse> => {
|
|
187
|
+
return this.client.sendOperationRequest(args, spec);
|
|
188
|
+
};
|
|
189
|
+
const sendOperation = async (
|
|
190
|
+
args: coreClient.OperationArguments,
|
|
191
|
+
spec: coreClient.OperationSpec
|
|
192
|
+
) => {
|
|
193
|
+
let currentRawResponse:
|
|
194
|
+
| coreClient.FullOperationResponse
|
|
195
|
+
| undefined = undefined;
|
|
196
|
+
const providedCallback = args.options?.onResponse;
|
|
197
|
+
const callback: coreClient.RawResponseCallback = (
|
|
198
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
199
|
+
flatResponse: unknown
|
|
200
|
+
) => {
|
|
201
|
+
currentRawResponse = rawResponse;
|
|
202
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
203
|
+
};
|
|
204
|
+
const updatedArgs = {
|
|
205
|
+
...args,
|
|
206
|
+
options: {
|
|
207
|
+
...args.options,
|
|
208
|
+
onResponse: callback
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
212
|
+
return {
|
|
213
|
+
flatResponse,
|
|
214
|
+
rawResponse: {
|
|
215
|
+
statusCode: currentRawResponse!.status,
|
|
216
|
+
body: currentRawResponse!.parsedBody,
|
|
217
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
const lro = new LroImpl(
|
|
223
|
+
sendOperation,
|
|
224
|
+
{ resourceGroupName, sqlVirtualMachineGroupName, parameters, options },
|
|
225
|
+
createOrUpdateOperationSpec
|
|
226
|
+
);
|
|
227
|
+
return new LroEngine(lro, {
|
|
228
|
+
resumeFrom: options?.resumeFrom,
|
|
229
|
+
intervalInMs: options?.updateIntervalInMs
|
|
230
|
+
});
|
|
104
231
|
}
|
|
105
232
|
|
|
106
233
|
/**
|
|
107
|
-
*
|
|
108
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
109
|
-
*
|
|
110
|
-
* @param
|
|
111
|
-
* @
|
|
112
|
-
|
|
113
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.SqlVirtualMachineGroupsListByResourceGroupResponse>;
|
|
114
|
-
/**
|
|
115
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
116
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
117
|
-
* @param callback The callback
|
|
118
|
-
*/
|
|
119
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.SqlVirtualMachineGroupListResult>): void;
|
|
120
|
-
/**
|
|
121
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
122
|
-
* this value from the Azure Resource Manager API or the portal.
|
|
123
|
-
* @param options The optional parameters
|
|
124
|
-
* @param callback The callback
|
|
234
|
+
* Creates or updates a SQL virtual machine group.
|
|
235
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
236
|
+
* value from the Azure Resource Manager API or the portal.
|
|
237
|
+
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
238
|
+
* @param parameters The SQL virtual machine group.
|
|
239
|
+
* @param options The options parameters.
|
|
125
240
|
*/
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
241
|
+
async beginCreateOrUpdateAndWait(
|
|
242
|
+
resourceGroupName: string,
|
|
243
|
+
sqlVirtualMachineGroupName: string,
|
|
244
|
+
parameters: SqlVirtualMachineGroup,
|
|
245
|
+
options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams
|
|
246
|
+
): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse> {
|
|
247
|
+
const poller = await this.beginCreateOrUpdate(
|
|
248
|
+
resourceGroupName,
|
|
249
|
+
sqlVirtualMachineGroupName,
|
|
250
|
+
parameters,
|
|
251
|
+
options
|
|
252
|
+
);
|
|
253
|
+
return poller.pollUntilDone();
|
|
135
254
|
}
|
|
136
255
|
|
|
137
256
|
/**
|
|
138
|
-
*
|
|
139
|
-
* @param
|
|
140
|
-
*
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @param callback The callback
|
|
145
|
-
*/
|
|
146
|
-
list(callback: msRest.ServiceCallback<Models.SqlVirtualMachineGroupListResult>): void;
|
|
147
|
-
/**
|
|
148
|
-
* @param options The optional parameters
|
|
149
|
-
* @param callback The callback
|
|
257
|
+
* Deletes a SQL virtual machine group.
|
|
258
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
259
|
+
* value from the Azure Resource Manager API or the portal.
|
|
260
|
+
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
261
|
+
* @param options The options parameters.
|
|
150
262
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
263
|
+
async beginDelete(
|
|
264
|
+
resourceGroupName: string,
|
|
265
|
+
sqlVirtualMachineGroupName: string,
|
|
266
|
+
options?: SqlVirtualMachineGroupsDeleteOptionalParams
|
|
267
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
268
|
+
const directSendOperation = async (
|
|
269
|
+
args: coreClient.OperationArguments,
|
|
270
|
+
spec: coreClient.OperationSpec
|
|
271
|
+
): Promise<void> => {
|
|
272
|
+
return this.client.sendOperationRequest(args, spec);
|
|
273
|
+
};
|
|
274
|
+
const sendOperation = async (
|
|
275
|
+
args: coreClient.OperationArguments,
|
|
276
|
+
spec: coreClient.OperationSpec
|
|
277
|
+
) => {
|
|
278
|
+
let currentRawResponse:
|
|
279
|
+
| coreClient.FullOperationResponse
|
|
280
|
+
| undefined = undefined;
|
|
281
|
+
const providedCallback = args.options?.onResponse;
|
|
282
|
+
const callback: coreClient.RawResponseCallback = (
|
|
283
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
284
|
+
flatResponse: unknown
|
|
285
|
+
) => {
|
|
286
|
+
currentRawResponse = rawResponse;
|
|
287
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
288
|
+
};
|
|
289
|
+
const updatedArgs = {
|
|
290
|
+
...args,
|
|
291
|
+
options: {
|
|
292
|
+
...args.options,
|
|
293
|
+
onResponse: callback
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
297
|
+
return {
|
|
298
|
+
flatResponse,
|
|
299
|
+
rawResponse: {
|
|
300
|
+
statusCode: currentRawResponse!.status,
|
|
301
|
+
body: currentRawResponse!.parsedBody,
|
|
302
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const lro = new LroImpl(
|
|
308
|
+
sendOperation,
|
|
309
|
+
{ resourceGroupName, sqlVirtualMachineGroupName, options },
|
|
310
|
+
deleteOperationSpec
|
|
311
|
+
);
|
|
312
|
+
return new LroEngine(lro, {
|
|
313
|
+
resumeFrom: options?.resumeFrom,
|
|
314
|
+
intervalInMs: options?.updateIntervalInMs
|
|
315
|
+
});
|
|
159
316
|
}
|
|
160
317
|
|
|
161
318
|
/**
|
|
162
|
-
*
|
|
163
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
164
|
-
*
|
|
319
|
+
* Deletes a SQL virtual machine group.
|
|
320
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
321
|
+
* value from the Azure Resource Manager API or the portal.
|
|
165
322
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
166
|
-
* @param
|
|
167
|
-
* @param [options] The optional parameters
|
|
168
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
323
|
+
* @param options The options parameters.
|
|
169
324
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
325
|
+
async beginDeleteAndWait(
|
|
326
|
+
resourceGroupName: string,
|
|
327
|
+
sqlVirtualMachineGroupName: string,
|
|
328
|
+
options?: SqlVirtualMachineGroupsDeleteOptionalParams
|
|
329
|
+
): Promise<void> {
|
|
330
|
+
const poller = await this.beginDelete(
|
|
331
|
+
resourceGroupName,
|
|
332
|
+
sqlVirtualMachineGroupName,
|
|
333
|
+
options
|
|
334
|
+
);
|
|
335
|
+
return poller.pollUntilDone();
|
|
180
336
|
}
|
|
181
337
|
|
|
182
338
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
185
|
-
*
|
|
339
|
+
* Updates SQL virtual machine group tags.
|
|
340
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
341
|
+
* value from the Azure Resource Manager API or the portal.
|
|
186
342
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
187
|
-
* @param
|
|
188
|
-
* @
|
|
343
|
+
* @param parameters The SQL virtual machine group.
|
|
344
|
+
* @param options The options parameters.
|
|
189
345
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
346
|
+
async beginUpdate(
|
|
347
|
+
resourceGroupName: string,
|
|
348
|
+
sqlVirtualMachineGroupName: string,
|
|
349
|
+
parameters: SqlVirtualMachineGroupUpdate,
|
|
350
|
+
options?: SqlVirtualMachineGroupsUpdateOptionalParams
|
|
351
|
+
): Promise<
|
|
352
|
+
PollerLike<
|
|
353
|
+
PollOperationState<SqlVirtualMachineGroupsUpdateResponse>,
|
|
354
|
+
SqlVirtualMachineGroupsUpdateResponse
|
|
355
|
+
>
|
|
356
|
+
> {
|
|
357
|
+
const directSendOperation = async (
|
|
358
|
+
args: coreClient.OperationArguments,
|
|
359
|
+
spec: coreClient.OperationSpec
|
|
360
|
+
): Promise<SqlVirtualMachineGroupsUpdateResponse> => {
|
|
361
|
+
return this.client.sendOperationRequest(args, spec);
|
|
362
|
+
};
|
|
363
|
+
const sendOperation = async (
|
|
364
|
+
args: coreClient.OperationArguments,
|
|
365
|
+
spec: coreClient.OperationSpec
|
|
366
|
+
) => {
|
|
367
|
+
let currentRawResponse:
|
|
368
|
+
| coreClient.FullOperationResponse
|
|
369
|
+
| undefined = undefined;
|
|
370
|
+
const providedCallback = args.options?.onResponse;
|
|
371
|
+
const callback: coreClient.RawResponseCallback = (
|
|
372
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
373
|
+
flatResponse: unknown
|
|
374
|
+
) => {
|
|
375
|
+
currentRawResponse = rawResponse;
|
|
376
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
377
|
+
};
|
|
378
|
+
const updatedArgs = {
|
|
379
|
+
...args,
|
|
380
|
+
options: {
|
|
381
|
+
...args.options,
|
|
382
|
+
onResponse: callback
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
386
|
+
return {
|
|
387
|
+
flatResponse,
|
|
388
|
+
rawResponse: {
|
|
389
|
+
statusCode: currentRawResponse!.status,
|
|
390
|
+
body: currentRawResponse!.parsedBody,
|
|
391
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
const lro = new LroImpl(
|
|
397
|
+
sendOperation,
|
|
398
|
+
{ resourceGroupName, sqlVirtualMachineGroupName, parameters, options },
|
|
399
|
+
updateOperationSpec
|
|
400
|
+
);
|
|
401
|
+
return new LroEngine(lro, {
|
|
402
|
+
resumeFrom: options?.resumeFrom,
|
|
403
|
+
intervalInMs: options?.updateIntervalInMs
|
|
404
|
+
});
|
|
199
405
|
}
|
|
200
406
|
|
|
201
407
|
/**
|
|
202
408
|
* Updates SQL virtual machine group tags.
|
|
203
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain
|
|
204
|
-
*
|
|
409
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
410
|
+
* value from the Azure Resource Manager API or the portal.
|
|
205
411
|
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
|
|
206
412
|
* @param parameters The SQL virtual machine group.
|
|
207
|
-
* @param
|
|
208
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
413
|
+
* @param options The options parameters.
|
|
209
414
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
415
|
+
async beginUpdateAndWait(
|
|
416
|
+
resourceGroupName: string,
|
|
417
|
+
sqlVirtualMachineGroupName: string,
|
|
418
|
+
parameters: SqlVirtualMachineGroupUpdate,
|
|
419
|
+
options?: SqlVirtualMachineGroupsUpdateOptionalParams
|
|
420
|
+
): Promise<SqlVirtualMachineGroupsUpdateResponse> {
|
|
421
|
+
const poller = await this.beginUpdate(
|
|
422
|
+
resourceGroupName,
|
|
423
|
+
sqlVirtualMachineGroupName,
|
|
424
|
+
parameters,
|
|
425
|
+
options
|
|
426
|
+
);
|
|
427
|
+
return poller.pollUntilDone();
|
|
220
428
|
}
|
|
221
429
|
|
|
222
430
|
/**
|
|
223
431
|
* Gets all SQL virtual machine groups in a resource group.
|
|
224
|
-
* @param
|
|
225
|
-
*
|
|
226
|
-
* @
|
|
227
|
-
*/
|
|
228
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SqlVirtualMachineGroupsListByResourceGroupNextResponse>;
|
|
229
|
-
/**
|
|
230
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
231
|
-
* @param callback The callback
|
|
232
|
-
*/
|
|
233
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SqlVirtualMachineGroupListResult>): void;
|
|
234
|
-
/**
|
|
235
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
236
|
-
* @param options The optional parameters
|
|
237
|
-
* @param callback The callback
|
|
432
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
433
|
+
* value from the Azure Resource Manager API or the portal.
|
|
434
|
+
* @param options The options parameters.
|
|
238
435
|
*/
|
|
239
|
-
|
|
240
|
-
|
|
436
|
+
private _listByResourceGroup(
|
|
437
|
+
resourceGroupName: string,
|
|
438
|
+
options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams
|
|
439
|
+
): Promise<SqlVirtualMachineGroupsListByResourceGroupResponse> {
|
|
241
440
|
return this.client.sendOperationRequest(
|
|
242
|
-
{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
listByResourceGroupNextOperationSpec,
|
|
247
|
-
callback) as Promise<Models.SqlVirtualMachineGroupsListByResourceGroupNextResponse>;
|
|
441
|
+
{ resourceGroupName, options },
|
|
442
|
+
listByResourceGroupOperationSpec
|
|
443
|
+
);
|
|
248
444
|
}
|
|
249
445
|
|
|
250
446
|
/**
|
|
251
447
|
* Gets all SQL virtual machine groups in a subscription.
|
|
252
|
-
* @param
|
|
253
|
-
* @param [options] The optional parameters
|
|
254
|
-
* @returns Promise<Models.SqlVirtualMachineGroupsListNextResponse>
|
|
448
|
+
* @param options The options parameters.
|
|
255
449
|
*/
|
|
256
|
-
|
|
450
|
+
private _list(
|
|
451
|
+
options?: SqlVirtualMachineGroupsListOptionalParams
|
|
452
|
+
): Promise<SqlVirtualMachineGroupsListResponse> {
|
|
453
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
454
|
+
}
|
|
455
|
+
|
|
257
456
|
/**
|
|
258
|
-
*
|
|
259
|
-
* @param
|
|
457
|
+
* ListByResourceGroupNext
|
|
458
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
459
|
+
* value from the Azure Resource Manager API or the portal.
|
|
460
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
461
|
+
* @param options The options parameters.
|
|
260
462
|
*/
|
|
261
|
-
|
|
463
|
+
private _listByResourceGroupNext(
|
|
464
|
+
resourceGroupName: string,
|
|
465
|
+
nextLink: string,
|
|
466
|
+
options?: SqlVirtualMachineGroupsListByResourceGroupNextOptionalParams
|
|
467
|
+
): Promise<SqlVirtualMachineGroupsListByResourceGroupNextResponse> {
|
|
468
|
+
return this.client.sendOperationRequest(
|
|
469
|
+
{ resourceGroupName, nextLink, options },
|
|
470
|
+
listByResourceGroupNextOperationSpec
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
|
|
262
474
|
/**
|
|
263
|
-
*
|
|
264
|
-
* @param
|
|
265
|
-
* @param
|
|
475
|
+
* ListNext
|
|
476
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
477
|
+
* @param options The options parameters.
|
|
266
478
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
479
|
+
private _listNext(
|
|
480
|
+
nextLink: string,
|
|
481
|
+
options?: SqlVirtualMachineGroupsListNextOptionalParams
|
|
482
|
+
): Promise<SqlVirtualMachineGroupsListNextResponse> {
|
|
269
483
|
return this.client.sendOperationRequest(
|
|
270
|
-
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
listNextOperationSpec,
|
|
275
|
-
callback) as Promise<Models.SqlVirtualMachineGroupsListNextResponse>;
|
|
484
|
+
{ nextLink, options },
|
|
485
|
+
listNextOperationSpec
|
|
486
|
+
);
|
|
276
487
|
}
|
|
277
488
|
}
|
|
278
|
-
|
|
279
489
|
// Operation Specifications
|
|
280
|
-
const serializer =
|
|
281
|
-
|
|
490
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
491
|
+
|
|
492
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
493
|
+
path:
|
|
494
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
282
495
|
httpMethod: "GET",
|
|
283
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
284
|
-
urlParameters: [
|
|
285
|
-
Parameters.resourceGroupName,
|
|
286
|
-
Parameters.sqlVirtualMachineGroupName,
|
|
287
|
-
Parameters.subscriptionId
|
|
288
|
-
],
|
|
289
|
-
queryParameters: [
|
|
290
|
-
Parameters.apiVersion
|
|
291
|
-
],
|
|
292
|
-
headerParameters: [
|
|
293
|
-
Parameters.acceptLanguage
|
|
294
|
-
],
|
|
295
496
|
responses: {
|
|
296
497
|
200: {
|
|
297
498
|
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
298
499
|
},
|
|
299
|
-
default: {
|
|
300
|
-
bodyMapper: Mappers.CloudError
|
|
301
|
-
}
|
|
500
|
+
default: {}
|
|
302
501
|
},
|
|
303
|
-
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
307
|
-
httpMethod: "GET",
|
|
308
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
502
|
+
queryParameters: [Parameters.apiVersion],
|
|
309
503
|
urlParameters: [
|
|
504
|
+
Parameters.$host,
|
|
310
505
|
Parameters.resourceGroupName,
|
|
506
|
+
Parameters.sqlVirtualMachineGroupName,
|
|
311
507
|
Parameters.subscriptionId
|
|
312
508
|
],
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
509
|
+
headerParameters: [Parameters.accept],
|
|
510
|
+
serializer
|
|
511
|
+
};
|
|
512
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
513
|
+
path:
|
|
514
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
515
|
+
httpMethod: "PUT",
|
|
319
516
|
responses: {
|
|
320
517
|
200: {
|
|
321
|
-
bodyMapper: Mappers.
|
|
518
|
+
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
322
519
|
},
|
|
323
|
-
|
|
324
|
-
bodyMapper: Mappers.
|
|
325
|
-
}
|
|
520
|
+
201: {
|
|
521
|
+
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
522
|
+
},
|
|
523
|
+
202: {
|
|
524
|
+
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
525
|
+
},
|
|
526
|
+
204: {
|
|
527
|
+
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
528
|
+
},
|
|
529
|
+
default: {}
|
|
326
530
|
},
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
331
|
-
httpMethod: "GET",
|
|
332
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
531
|
+
requestBody: Parameters.parameters1,
|
|
532
|
+
queryParameters: [Parameters.apiVersion],
|
|
333
533
|
urlParameters: [
|
|
534
|
+
Parameters.$host,
|
|
535
|
+
Parameters.resourceGroupName,
|
|
536
|
+
Parameters.sqlVirtualMachineGroupName,
|
|
334
537
|
Parameters.subscriptionId
|
|
335
538
|
],
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
],
|
|
339
|
-
headerParameters: [
|
|
340
|
-
Parameters.acceptLanguage
|
|
341
|
-
],
|
|
342
|
-
responses: {
|
|
343
|
-
200: {
|
|
344
|
-
bodyMapper: Mappers.SqlVirtualMachineGroupListResult
|
|
345
|
-
},
|
|
346
|
-
default: {
|
|
347
|
-
bodyMapper: Mappers.CloudError
|
|
348
|
-
}
|
|
349
|
-
},
|
|
539
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
540
|
+
mediaType: "json",
|
|
350
541
|
serializer
|
|
351
542
|
};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
543
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
544
|
+
path:
|
|
545
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
546
|
+
httpMethod: "DELETE",
|
|
547
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
548
|
+
queryParameters: [Parameters.apiVersion],
|
|
356
549
|
urlParameters: [
|
|
550
|
+
Parameters.$host,
|
|
357
551
|
Parameters.resourceGroupName,
|
|
358
552
|
Parameters.sqlVirtualMachineGroupName,
|
|
359
553
|
Parameters.subscriptionId
|
|
360
554
|
],
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
requestBody: {
|
|
368
|
-
parameterPath: "parameters",
|
|
369
|
-
mapper: {
|
|
370
|
-
...Mappers.SqlVirtualMachineGroup,
|
|
371
|
-
required: true
|
|
372
|
-
}
|
|
373
|
-
},
|
|
555
|
+
serializer
|
|
556
|
+
};
|
|
557
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
558
|
+
path:
|
|
559
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
560
|
+
httpMethod: "PATCH",
|
|
374
561
|
responses: {
|
|
375
562
|
200: {
|
|
376
563
|
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
@@ -378,108 +565,94 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
378
565
|
201: {
|
|
379
566
|
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
380
567
|
},
|
|
381
|
-
|
|
382
|
-
bodyMapper: Mappers.
|
|
383
|
-
}
|
|
568
|
+
202: {
|
|
569
|
+
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
570
|
+
},
|
|
571
|
+
204: {
|
|
572
|
+
bodyMapper: Mappers.SqlVirtualMachineGroup
|
|
573
|
+
},
|
|
574
|
+
default: {}
|
|
384
575
|
},
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
389
|
-
httpMethod: "DELETE",
|
|
390
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
576
|
+
requestBody: Parameters.parameters2,
|
|
577
|
+
queryParameters: [Parameters.apiVersion],
|
|
391
578
|
urlParameters: [
|
|
579
|
+
Parameters.$host,
|
|
392
580
|
Parameters.resourceGroupName,
|
|
393
581
|
Parameters.sqlVirtualMachineGroupName,
|
|
394
582
|
Parameters.subscriptionId
|
|
395
583
|
],
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
],
|
|
399
|
-
headerParameters: [
|
|
400
|
-
Parameters.acceptLanguage
|
|
401
|
-
],
|
|
402
|
-
responses: {
|
|
403
|
-
200: {},
|
|
404
|
-
202: {},
|
|
405
|
-
204: {},
|
|
406
|
-
default: {
|
|
407
|
-
bodyMapper: Mappers.CloudError
|
|
408
|
-
}
|
|
409
|
-
},
|
|
584
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
585
|
+
mediaType: "json",
|
|
410
586
|
serializer
|
|
411
587
|
};
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
588
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
589
|
+
path:
|
|
590
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
591
|
+
httpMethod: "GET",
|
|
592
|
+
responses: {
|
|
593
|
+
200: {
|
|
594
|
+
bodyMapper: Mappers.SqlVirtualMachineGroupListResult
|
|
595
|
+
},
|
|
596
|
+
default: {}
|
|
597
|
+
},
|
|
598
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
599
|
urlParameters: [
|
|
600
|
+
Parameters.$host,
|
|
417
601
|
Parameters.resourceGroupName,
|
|
418
|
-
Parameters.sqlVirtualMachineGroupName,
|
|
419
602
|
Parameters.subscriptionId
|
|
420
603
|
],
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
parameterPath: "parameters",
|
|
429
|
-
mapper: {
|
|
430
|
-
...Mappers.SqlVirtualMachineGroupUpdate,
|
|
431
|
-
required: true
|
|
432
|
-
}
|
|
433
|
-
},
|
|
604
|
+
headerParameters: [Parameters.accept],
|
|
605
|
+
serializer
|
|
606
|
+
};
|
|
607
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
608
|
+
path:
|
|
609
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
610
|
+
httpMethod: "GET",
|
|
434
611
|
responses: {
|
|
435
612
|
200: {
|
|
436
|
-
bodyMapper: Mappers.
|
|
613
|
+
bodyMapper: Mappers.SqlVirtualMachineGroupListResult
|
|
437
614
|
},
|
|
438
|
-
default: {
|
|
439
|
-
bodyMapper: Mappers.CloudError
|
|
440
|
-
}
|
|
615
|
+
default: {}
|
|
441
616
|
},
|
|
617
|
+
queryParameters: [Parameters.apiVersion],
|
|
618
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
619
|
+
headerParameters: [Parameters.accept],
|
|
442
620
|
serializer
|
|
443
621
|
};
|
|
444
|
-
|
|
445
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
446
|
-
httpMethod: "GET",
|
|
447
|
-
baseUrl: "https://management.azure.com",
|
|
622
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
448
623
|
path: "{nextLink}",
|
|
449
|
-
|
|
450
|
-
Parameters.nextPageLink
|
|
451
|
-
],
|
|
452
|
-
headerParameters: [
|
|
453
|
-
Parameters.acceptLanguage
|
|
454
|
-
],
|
|
624
|
+
httpMethod: "GET",
|
|
455
625
|
responses: {
|
|
456
626
|
200: {
|
|
457
627
|
bodyMapper: Mappers.SqlVirtualMachineGroupListResult
|
|
458
628
|
},
|
|
459
|
-
default: {
|
|
460
|
-
bodyMapper: Mappers.CloudError
|
|
461
|
-
}
|
|
629
|
+
default: {}
|
|
462
630
|
},
|
|
631
|
+
queryParameters: [Parameters.apiVersion],
|
|
632
|
+
urlParameters: [
|
|
633
|
+
Parameters.$host,
|
|
634
|
+
Parameters.resourceGroupName,
|
|
635
|
+
Parameters.subscriptionId,
|
|
636
|
+
Parameters.nextLink
|
|
637
|
+
],
|
|
638
|
+
headerParameters: [Parameters.accept],
|
|
463
639
|
serializer
|
|
464
640
|
};
|
|
465
|
-
|
|
466
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
467
|
-
httpMethod: "GET",
|
|
468
|
-
baseUrl: "https://management.azure.com",
|
|
641
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
469
642
|
path: "{nextLink}",
|
|
470
|
-
|
|
471
|
-
Parameters.nextPageLink
|
|
472
|
-
],
|
|
473
|
-
headerParameters: [
|
|
474
|
-
Parameters.acceptLanguage
|
|
475
|
-
],
|
|
643
|
+
httpMethod: "GET",
|
|
476
644
|
responses: {
|
|
477
645
|
200: {
|
|
478
646
|
bodyMapper: Mappers.SqlVirtualMachineGroupListResult
|
|
479
647
|
},
|
|
480
|
-
default: {
|
|
481
|
-
bodyMapper: Mappers.CloudError
|
|
482
|
-
}
|
|
648
|
+
default: {}
|
|
483
649
|
},
|
|
650
|
+
queryParameters: [Parameters.apiVersion],
|
|
651
|
+
urlParameters: [
|
|
652
|
+
Parameters.$host,
|
|
653
|
+
Parameters.subscriptionId,
|
|
654
|
+
Parameters.nextLink
|
|
655
|
+
],
|
|
656
|
+
headerParameters: [Parameters.accept],
|
|
484
657
|
serializer
|
|
485
658
|
};
|