@azure/arm-sqlvirtualmachine 5.0.0-beta.7 → 5.0.0-beta.8
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 +2 -2
- package/dist/index.js +903 -244
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +13 -6
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +13 -6
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js +45 -0
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +9 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +5 -5
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +5 -5
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +234 -68
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +14 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +325 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +11 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts +3 -3
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js +67 -33
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +18 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +4 -4
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +97 -35
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js +118 -0
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +29 -29
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +215 -124
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +26 -26
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +4 -3
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js +78 -0
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js.map +1 -0
- package/package.json +10 -10
- package/review/arm-sqlvirtualmachine.api.md +131 -13
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +210 -25
- package/src/models/mappers.ts +340 -0
- package/src/models/parameters.ts +15 -2
- package/src/operations/availabilityGroupListeners.ts +54 -28
- package/src/operations/index.ts +1 -0
- package/src/operations/operations.ts +6 -2
- package/src/operations/sqlVirtualMachineGroups.ts +88 -42
- package/src/operations/sqlVirtualMachineTroubleshoot.ts +172 -0
- package/src/operations/sqlVirtualMachines.ts +241 -181
- package/src/operationsInterfaces/availabilityGroupListeners.ts +4 -4
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +6 -6
- package/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.ts +51 -0
- package/src/operationsInterfaces/sqlVirtualMachines.ts +57 -57
- package/src/sqlVirtualMachineManagementClient.ts +10 -4
- package/types/arm-sqlvirtualmachine.d.ts +245 -38
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
AvailabilityGroupListener,
|
|
13
13
|
AvailabilityGroupListenersListByGroupOptionalParams,
|
|
@@ -63,8 +63,8 @@ export interface AvailabilityGroupListeners {
|
|
|
63
63
|
parameters: AvailabilityGroupListener,
|
|
64
64
|
options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams
|
|
65
65
|
): Promise<
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
SimplePollerLike<
|
|
67
|
+
OperationState<AvailabilityGroupListenersCreateOrUpdateResponse>,
|
|
68
68
|
AvailabilityGroupListenersCreateOrUpdateResponse
|
|
69
69
|
>
|
|
70
70
|
>;
|
|
@@ -97,7 +97,7 @@ export interface AvailabilityGroupListeners {
|
|
|
97
97
|
sqlVirtualMachineGroupName: string,
|
|
98
98
|
availabilityGroupListenerName: string,
|
|
99
99
|
options?: AvailabilityGroupListenersDeleteOptionalParams
|
|
100
|
-
): Promise<
|
|
100
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
101
101
|
/**
|
|
102
102
|
* Deletes an availability group listener.
|
|
103
103
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
SqlVirtualMachineGroup,
|
|
13
13
|
SqlVirtualMachineGroupsListByResourceGroupOptionalParams,
|
|
@@ -68,8 +68,8 @@ export interface SqlVirtualMachineGroups {
|
|
|
68
68
|
parameters: SqlVirtualMachineGroup,
|
|
69
69
|
options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams
|
|
70
70
|
): Promise<
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
SimplePollerLike<
|
|
72
|
+
OperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>,
|
|
73
73
|
SqlVirtualMachineGroupsCreateOrUpdateResponse
|
|
74
74
|
>
|
|
75
75
|
>;
|
|
@@ -98,7 +98,7 @@ export interface SqlVirtualMachineGroups {
|
|
|
98
98
|
resourceGroupName: string,
|
|
99
99
|
sqlVirtualMachineGroupName: string,
|
|
100
100
|
options?: SqlVirtualMachineGroupsDeleteOptionalParams
|
|
101
|
-
): Promise<
|
|
101
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
102
102
|
/**
|
|
103
103
|
* Deletes a SQL virtual machine group.
|
|
104
104
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -125,8 +125,8 @@ export interface SqlVirtualMachineGroups {
|
|
|
125
125
|
parameters: SqlVirtualMachineGroupUpdate,
|
|
126
126
|
options?: SqlVirtualMachineGroupsUpdateOptionalParams
|
|
127
127
|
): Promise<
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
SimplePollerLike<
|
|
129
|
+
OperationState<SqlVirtualMachineGroupsUpdateResponse>,
|
|
130
130
|
SqlVirtualMachineGroupsUpdateResponse
|
|
131
131
|
>
|
|
132
132
|
>;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
|
+
import {
|
|
11
|
+
SqlVmTroubleshooting,
|
|
12
|
+
SqlVirtualMachineTroubleshootTroubleshootOptionalParams,
|
|
13
|
+
SqlVirtualMachineTroubleshootTroubleshootResponse
|
|
14
|
+
} from "../models";
|
|
15
|
+
|
|
16
|
+
/** Interface representing a SqlVirtualMachineTroubleshoot. */
|
|
17
|
+
export interface SqlVirtualMachineTroubleshoot {
|
|
18
|
+
/**
|
|
19
|
+
* Starts SQL virtual machine troubleshooting.
|
|
20
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
21
|
+
* value from the Azure Resource Manager API or the portal.
|
|
22
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
23
|
+
* @param parameters The SQL virtual machine troubleshooting entity.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
beginTroubleshoot(
|
|
27
|
+
resourceGroupName: string,
|
|
28
|
+
sqlVirtualMachineName: string,
|
|
29
|
+
parameters: SqlVmTroubleshooting,
|
|
30
|
+
options?: SqlVirtualMachineTroubleshootTroubleshootOptionalParams
|
|
31
|
+
): Promise<
|
|
32
|
+
SimplePollerLike<
|
|
33
|
+
OperationState<SqlVirtualMachineTroubleshootTroubleshootResponse>,
|
|
34
|
+
SqlVirtualMachineTroubleshootTroubleshootResponse
|
|
35
|
+
>
|
|
36
|
+
>;
|
|
37
|
+
/**
|
|
38
|
+
* Starts SQL virtual machine troubleshooting.
|
|
39
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
40
|
+
* value from the Azure Resource Manager API or the portal.
|
|
41
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
42
|
+
* @param parameters The SQL virtual machine troubleshooting entity.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
beginTroubleshootAndWait(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
sqlVirtualMachineName: string,
|
|
48
|
+
parameters: SqlVmTroubleshooting,
|
|
49
|
+
options?: SqlVirtualMachineTroubleshootTroubleshootOptionalParams
|
|
50
|
+
): Promise<SqlVirtualMachineTroubleshootTroubleshootResponse>;
|
|
51
|
+
}
|
|
@@ -7,14 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
SqlVirtualMachine,
|
|
13
13
|
SqlVirtualMachinesListBySqlVmGroupOptionalParams,
|
|
14
14
|
SqlVirtualMachinesListOptionalParams,
|
|
15
15
|
SqlVirtualMachinesListByResourceGroupOptionalParams,
|
|
16
|
-
SqlVirtualMachinesStartAssessmentOptionalParams,
|
|
17
|
-
SqlVirtualMachinesRedeployOptionalParams,
|
|
18
16
|
SqlVirtualMachinesGetOptionalParams,
|
|
19
17
|
SqlVirtualMachinesGetResponse,
|
|
20
18
|
SqlVirtualMachinesCreateOrUpdateOptionalParams,
|
|
@@ -22,7 +20,9 @@ import {
|
|
|
22
20
|
SqlVirtualMachinesDeleteOptionalParams,
|
|
23
21
|
SqlVirtualMachineUpdate,
|
|
24
22
|
SqlVirtualMachinesUpdateOptionalParams,
|
|
25
|
-
SqlVirtualMachinesUpdateResponse
|
|
23
|
+
SqlVirtualMachinesUpdateResponse,
|
|
24
|
+
SqlVirtualMachinesStartAssessmentOptionalParams,
|
|
25
|
+
SqlVirtualMachinesRedeployOptionalParams
|
|
26
26
|
} from "../models";
|
|
27
27
|
|
|
28
28
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -57,54 +57,6 @@ export interface SqlVirtualMachines {
|
|
|
57
57
|
resourceGroupName: string,
|
|
58
58
|
options?: SqlVirtualMachinesListByResourceGroupOptionalParams
|
|
59
59
|
): PagedAsyncIterableIterator<SqlVirtualMachine>;
|
|
60
|
-
/**
|
|
61
|
-
* Starts Assessment on SQL virtual machine.
|
|
62
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
63
|
-
* value from the Azure Resource Manager API or the portal.
|
|
64
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
65
|
-
* @param options The options parameters.
|
|
66
|
-
*/
|
|
67
|
-
beginStartAssessment(
|
|
68
|
-
resourceGroupName: string,
|
|
69
|
-
sqlVirtualMachineName: string,
|
|
70
|
-
options?: SqlVirtualMachinesStartAssessmentOptionalParams
|
|
71
|
-
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
72
|
-
/**
|
|
73
|
-
* Starts Assessment on SQL virtual machine.
|
|
74
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
75
|
-
* value from the Azure Resource Manager API or the portal.
|
|
76
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
77
|
-
* @param options The options parameters.
|
|
78
|
-
*/
|
|
79
|
-
beginStartAssessmentAndWait(
|
|
80
|
-
resourceGroupName: string,
|
|
81
|
-
sqlVirtualMachineName: string,
|
|
82
|
-
options?: SqlVirtualMachinesStartAssessmentOptionalParams
|
|
83
|
-
): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
86
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
87
|
-
* value from the Azure Resource Manager API or the portal.
|
|
88
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
89
|
-
* @param options The options parameters.
|
|
90
|
-
*/
|
|
91
|
-
beginRedeploy(
|
|
92
|
-
resourceGroupName: string,
|
|
93
|
-
sqlVirtualMachineName: string,
|
|
94
|
-
options?: SqlVirtualMachinesRedeployOptionalParams
|
|
95
|
-
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
96
|
-
/**
|
|
97
|
-
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
98
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
99
|
-
* value from the Azure Resource Manager API or the portal.
|
|
100
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
101
|
-
* @param options The options parameters.
|
|
102
|
-
*/
|
|
103
|
-
beginRedeployAndWait(
|
|
104
|
-
resourceGroupName: string,
|
|
105
|
-
sqlVirtualMachineName: string,
|
|
106
|
-
options?: SqlVirtualMachinesRedeployOptionalParams
|
|
107
|
-
): Promise<void>;
|
|
108
60
|
/**
|
|
109
61
|
* Gets a SQL virtual machine.
|
|
110
62
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -131,8 +83,8 @@ export interface SqlVirtualMachines {
|
|
|
131
83
|
parameters: SqlVirtualMachine,
|
|
132
84
|
options?: SqlVirtualMachinesCreateOrUpdateOptionalParams
|
|
133
85
|
): Promise<
|
|
134
|
-
|
|
135
|
-
|
|
86
|
+
SimplePollerLike<
|
|
87
|
+
OperationState<SqlVirtualMachinesCreateOrUpdateResponse>,
|
|
136
88
|
SqlVirtualMachinesCreateOrUpdateResponse
|
|
137
89
|
>
|
|
138
90
|
>;
|
|
@@ -161,7 +113,7 @@ export interface SqlVirtualMachines {
|
|
|
161
113
|
resourceGroupName: string,
|
|
162
114
|
sqlVirtualMachineName: string,
|
|
163
115
|
options?: SqlVirtualMachinesDeleteOptionalParams
|
|
164
|
-
): Promise<
|
|
116
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
165
117
|
/**
|
|
166
118
|
* Deletes a SQL virtual machine.
|
|
167
119
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -188,8 +140,8 @@ export interface SqlVirtualMachines {
|
|
|
188
140
|
parameters: SqlVirtualMachineUpdate,
|
|
189
141
|
options?: SqlVirtualMachinesUpdateOptionalParams
|
|
190
142
|
): Promise<
|
|
191
|
-
|
|
192
|
-
|
|
143
|
+
SimplePollerLike<
|
|
144
|
+
OperationState<SqlVirtualMachinesUpdateResponse>,
|
|
193
145
|
SqlVirtualMachinesUpdateResponse
|
|
194
146
|
>
|
|
195
147
|
>;
|
|
@@ -207,4 +159,52 @@ export interface SqlVirtualMachines {
|
|
|
207
159
|
parameters: SqlVirtualMachineUpdate,
|
|
208
160
|
options?: SqlVirtualMachinesUpdateOptionalParams
|
|
209
161
|
): Promise<SqlVirtualMachinesUpdateResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Starts SQL best practices Assessment on SQL virtual machine.
|
|
164
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
165
|
+
* value from the Azure Resource Manager API or the portal.
|
|
166
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
167
|
+
* @param options The options parameters.
|
|
168
|
+
*/
|
|
169
|
+
beginStartAssessment(
|
|
170
|
+
resourceGroupName: string,
|
|
171
|
+
sqlVirtualMachineName: string,
|
|
172
|
+
options?: SqlVirtualMachinesStartAssessmentOptionalParams
|
|
173
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
174
|
+
/**
|
|
175
|
+
* Starts SQL best practices Assessment on SQL virtual machine.
|
|
176
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
177
|
+
* value from the Azure Resource Manager API or the portal.
|
|
178
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
179
|
+
* @param options The options parameters.
|
|
180
|
+
*/
|
|
181
|
+
beginStartAssessmentAndWait(
|
|
182
|
+
resourceGroupName: string,
|
|
183
|
+
sqlVirtualMachineName: string,
|
|
184
|
+
options?: SqlVirtualMachinesStartAssessmentOptionalParams
|
|
185
|
+
): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* Uninstalls and reinstalls the SQL IaaS Extension.
|
|
188
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
189
|
+
* value from the Azure Resource Manager API or the portal.
|
|
190
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
beginRedeploy(
|
|
194
|
+
resourceGroupName: string,
|
|
195
|
+
sqlVirtualMachineName: string,
|
|
196
|
+
options?: SqlVirtualMachinesRedeployOptionalParams
|
|
197
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
198
|
+
/**
|
|
199
|
+
* Uninstalls and reinstalls the SQL IaaS Extension.
|
|
200
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
201
|
+
* value from the Azure Resource Manager API or the portal.
|
|
202
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
205
|
+
beginRedeployAndWait(
|
|
206
|
+
resourceGroupName: string,
|
|
207
|
+
sqlVirtualMachineName: string,
|
|
208
|
+
options?: SqlVirtualMachinesRedeployOptionalParams
|
|
209
|
+
): Promise<void>;
|
|
210
210
|
}
|
|
@@ -18,13 +18,15 @@ import {
|
|
|
18
18
|
AvailabilityGroupListenersImpl,
|
|
19
19
|
OperationsImpl,
|
|
20
20
|
SqlVirtualMachineGroupsImpl,
|
|
21
|
-
SqlVirtualMachinesImpl
|
|
21
|
+
SqlVirtualMachinesImpl,
|
|
22
|
+
SqlVirtualMachineTroubleshootImpl
|
|
22
23
|
} from "./operations";
|
|
23
24
|
import {
|
|
24
25
|
AvailabilityGroupListeners,
|
|
25
26
|
Operations,
|
|
26
27
|
SqlVirtualMachineGroups,
|
|
27
|
-
SqlVirtualMachines
|
|
28
|
+
SqlVirtualMachines,
|
|
29
|
+
SqlVirtualMachineTroubleshoot
|
|
28
30
|
} from "./operationsInterfaces";
|
|
29
31
|
import { SqlVirtualMachineManagementClientOptionalParams } from "./models";
|
|
30
32
|
|
|
@@ -60,7 +62,7 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
60
62
|
credential: credentials
|
|
61
63
|
};
|
|
62
64
|
|
|
63
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.
|
|
65
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.8`;
|
|
64
66
|
const userAgentPrefix =
|
|
65
67
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
66
68
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -113,11 +115,14 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
113
115
|
|
|
114
116
|
// Assigning values to Constant parameters
|
|
115
117
|
this.$host = options.$host || "https://management.azure.com";
|
|
116
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
118
|
+
this.apiVersion = options.apiVersion || "2022-08-01-preview";
|
|
117
119
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
118
120
|
this.operations = new OperationsImpl(this);
|
|
119
121
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|
|
120
122
|
this.sqlVirtualMachines = new SqlVirtualMachinesImpl(this);
|
|
123
|
+
this.sqlVirtualMachineTroubleshoot = new SqlVirtualMachineTroubleshootImpl(
|
|
124
|
+
this
|
|
125
|
+
);
|
|
121
126
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
122
127
|
}
|
|
123
128
|
|
|
@@ -153,4 +158,5 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
153
158
|
operations: Operations;
|
|
154
159
|
sqlVirtualMachineGroups: SqlVirtualMachineGroups;
|
|
155
160
|
sqlVirtualMachines: SqlVirtualMachines;
|
|
161
|
+
sqlVirtualMachineTroubleshoot: SqlVirtualMachineTroubleshoot;
|
|
156
162
|
}
|