@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
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for SqlVirtualMachineManagementClient.",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
6
|
+
"version": "5.0.0-beta.8",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.
|
|
11
|
+
"@azure/core-lro": "^2.5.3",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"types": "./types/arm-sqlvirtualmachine.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
-
"@rollup/plugin-commonjs": "^
|
|
33
|
-
"@rollup/plugin-json": "^
|
|
34
|
-
"@rollup/plugin-multi-entry": "^
|
|
32
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
-
"mkdirp": "^1.
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~
|
|
39
|
+
"typescript": "~5.0.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
|
-
"dotenv": "^
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
43
43
|
"@azure/identity": "^2.0.1",
|
|
44
|
-
"@azure-tools/test-recorder": "^
|
|
44
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
45
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
46
46
|
"mocha": "^7.1.1",
|
|
47
47
|
"@types/chai": "^4.2.8",
|
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export interface AADAuthenticationSettings {
|
|
15
|
+
clientId?: string;
|
|
16
|
+
}
|
|
12
17
|
|
|
13
18
|
// @public
|
|
14
19
|
export interface AdditionalFeaturesServerConfigurations {
|
|
@@ -88,9 +93,9 @@ export interface AvailabilityGroupListenerListResult {
|
|
|
88
93
|
|
|
89
94
|
// @public
|
|
90
95
|
export interface AvailabilityGroupListeners {
|
|
91
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<
|
|
96
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AvailabilityGroupListenersCreateOrUpdateResponse>, AvailabilityGroupListenersCreateOrUpdateResponse>>;
|
|
92
97
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<AvailabilityGroupListenersCreateOrUpdateResponse>;
|
|
93
|
-
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<
|
|
98
|
+
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
94
99
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<void>;
|
|
95
100
|
get(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersGetOptionalParams): Promise<AvailabilityGroupListenersGetResponse>;
|
|
96
101
|
listByGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: AvailabilityGroupListenersListByGroupOptionalParams): PagedAsyncIterableIterator<AvailabilityGroupListener>;
|
|
@@ -105,6 +110,12 @@ export interface AvailabilityGroupListenersCreateOrUpdateOptionalParams extends
|
|
|
105
110
|
// @public
|
|
106
111
|
export type AvailabilityGroupListenersCreateOrUpdateResponse = AvailabilityGroupListener;
|
|
107
112
|
|
|
113
|
+
// @public
|
|
114
|
+
export interface AvailabilityGroupListenersDeleteHeaders {
|
|
115
|
+
// (undocumented)
|
|
116
|
+
location?: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
108
119
|
// @public
|
|
109
120
|
export interface AvailabilityGroupListenersDeleteOptionalParams extends coreClient.OperationOptions {
|
|
110
121
|
resumeFrom?: string;
|
|
@@ -160,6 +171,26 @@ export type DayOfWeek = "Everyday" | "Monday" | "Tuesday" | "Wednesday" | "Thurs
|
|
|
160
171
|
// @public
|
|
161
172
|
export type DiskConfigurationType = string;
|
|
162
173
|
|
|
174
|
+
// @public
|
|
175
|
+
export interface ErrorAdditionalInfo {
|
|
176
|
+
readonly info?: Record<string, unknown>;
|
|
177
|
+
readonly type?: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export interface ErrorDetail {
|
|
182
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
183
|
+
readonly code?: string;
|
|
184
|
+
readonly details?: ErrorDetail[];
|
|
185
|
+
readonly message?: string;
|
|
186
|
+
readonly target?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// @public
|
|
190
|
+
export interface ErrorResponse {
|
|
191
|
+
error?: ErrorDetail;
|
|
192
|
+
}
|
|
193
|
+
|
|
163
194
|
// @public
|
|
164
195
|
export type Failover = string;
|
|
165
196
|
|
|
@@ -262,7 +293,8 @@ export enum KnownIdentityType {
|
|
|
262
293
|
|
|
263
294
|
// @public
|
|
264
295
|
export enum KnownLeastPrivilegeMode {
|
|
265
|
-
Enabled = "Enabled"
|
|
296
|
+
Enabled = "Enabled",
|
|
297
|
+
NotSet = "NotSet"
|
|
266
298
|
}
|
|
267
299
|
|
|
268
300
|
// @public
|
|
@@ -332,6 +364,11 @@ export enum KnownStorageWorkloadType {
|
|
|
332
364
|
Oltp = "OLTP"
|
|
333
365
|
}
|
|
334
366
|
|
|
367
|
+
// @public
|
|
368
|
+
export enum KnownTroubleshootingScenario {
|
|
369
|
+
UnhealthyReplica = "UnhealthyReplica"
|
|
370
|
+
}
|
|
371
|
+
|
|
335
372
|
// @public
|
|
336
373
|
export type LeastPrivilegeMode = string;
|
|
337
374
|
|
|
@@ -441,6 +478,7 @@ export interface Schedule {
|
|
|
441
478
|
// @public
|
|
442
479
|
export interface ServerConfigurationsManagementSettings {
|
|
443
480
|
additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
|
|
481
|
+
azureAdAuthenticationSettings?: AADAuthenticationSettings;
|
|
444
482
|
sqlConnectivityUpdateSettings?: SqlConnectivityUpdateSettings;
|
|
445
483
|
sqlInstanceSettings?: SQLInstanceSettings;
|
|
446
484
|
sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
|
|
@@ -519,6 +557,7 @@ export interface SqlVirtualMachine extends TrackedResource {
|
|
|
519
557
|
sqlVirtualMachineGroupResourceId?: string;
|
|
520
558
|
storageConfigurationSettings?: StorageConfigurationSettings;
|
|
521
559
|
readonly systemData?: SystemData;
|
|
560
|
+
readonly troubleshootingStatus?: TroubleshootingStatus;
|
|
522
561
|
virtualMachineResourceId?: string;
|
|
523
562
|
wsfcDomainCredentials?: WsfcDomainCredentials;
|
|
524
563
|
wsfcStaticIp?: string;
|
|
@@ -544,11 +583,11 @@ export interface SqlVirtualMachineGroupListResult {
|
|
|
544
583
|
|
|
545
584
|
// @public
|
|
546
585
|
export interface SqlVirtualMachineGroups {
|
|
547
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<
|
|
586
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>, SqlVirtualMachineGroupsCreateOrUpdateResponse>>;
|
|
548
587
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse>;
|
|
549
|
-
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<
|
|
588
|
+
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
550
589
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<void>;
|
|
551
|
-
beginUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<
|
|
590
|
+
beginUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachineGroupsUpdateResponse>, SqlVirtualMachineGroupsUpdateResponse>>;
|
|
552
591
|
beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<SqlVirtualMachineGroupsUpdateResponse>;
|
|
553
592
|
get(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsGetOptionalParams): Promise<SqlVirtualMachineGroupsGetResponse>;
|
|
554
593
|
list(options?: SqlVirtualMachineGroupsListOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachineGroup>;
|
|
@@ -564,6 +603,12 @@ export interface SqlVirtualMachineGroupsCreateOrUpdateOptionalParams extends cor
|
|
|
564
603
|
// @public
|
|
565
604
|
export type SqlVirtualMachineGroupsCreateOrUpdateResponse = SqlVirtualMachineGroup;
|
|
566
605
|
|
|
606
|
+
// @public
|
|
607
|
+
export interface SqlVirtualMachineGroupsDeleteHeaders {
|
|
608
|
+
// (undocumented)
|
|
609
|
+
location?: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
567
612
|
// @public
|
|
568
613
|
export interface SqlVirtualMachineGroupsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
569
614
|
resumeFrom?: string;
|
|
@@ -643,6 +688,8 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
643
688
|
// (undocumented)
|
|
644
689
|
sqlVirtualMachines: SqlVirtualMachines;
|
|
645
690
|
// (undocumented)
|
|
691
|
+
sqlVirtualMachineTroubleshoot: SqlVirtualMachineTroubleshoot;
|
|
692
|
+
// (undocumented)
|
|
646
693
|
subscriptionId: string;
|
|
647
694
|
}
|
|
648
695
|
|
|
@@ -655,15 +702,15 @@ export interface SqlVirtualMachineManagementClientOptionalParams extends coreCli
|
|
|
655
702
|
|
|
656
703
|
// @public
|
|
657
704
|
export interface SqlVirtualMachines {
|
|
658
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<
|
|
705
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachinesCreateOrUpdateResponse>, SqlVirtualMachinesCreateOrUpdateResponse>>;
|
|
659
706
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SqlVirtualMachinesCreateOrUpdateResponse>;
|
|
660
|
-
beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<
|
|
707
|
+
beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
661
708
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<void>;
|
|
662
|
-
beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<
|
|
709
|
+
beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
663
710
|
beginRedeployAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<void>;
|
|
664
|
-
beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<
|
|
711
|
+
beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
665
712
|
beginStartAssessmentAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<void>;
|
|
666
|
-
beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<
|
|
713
|
+
beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachinesUpdateResponse>, SqlVirtualMachinesUpdateResponse>>;
|
|
667
714
|
beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SqlVirtualMachinesUpdateResponse>;
|
|
668
715
|
get(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesGetOptionalParams): Promise<SqlVirtualMachinesGetResponse>;
|
|
669
716
|
list(options?: SqlVirtualMachinesListOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachine>;
|
|
@@ -680,6 +727,12 @@ export interface SqlVirtualMachinesCreateOrUpdateOptionalParams extends coreClie
|
|
|
680
727
|
// @public
|
|
681
728
|
export type SqlVirtualMachinesCreateOrUpdateResponse = SqlVirtualMachine;
|
|
682
729
|
|
|
730
|
+
// @public
|
|
731
|
+
export interface SqlVirtualMachinesDeleteHeaders {
|
|
732
|
+
// (undocumented)
|
|
733
|
+
location?: string;
|
|
734
|
+
}
|
|
735
|
+
|
|
683
736
|
// @public
|
|
684
737
|
export interface SqlVirtualMachinesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
685
738
|
resumeFrom?: string;
|
|
@@ -736,12 +789,24 @@ export interface SqlVirtualMachinesListOptionalParams extends coreClient.Operati
|
|
|
736
789
|
// @public
|
|
737
790
|
export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
|
|
738
791
|
|
|
792
|
+
// @public
|
|
793
|
+
export interface SqlVirtualMachinesRedeployHeaders {
|
|
794
|
+
// (undocumented)
|
|
795
|
+
location?: string;
|
|
796
|
+
}
|
|
797
|
+
|
|
739
798
|
// @public
|
|
740
799
|
export interface SqlVirtualMachinesRedeployOptionalParams extends coreClient.OperationOptions {
|
|
741
800
|
resumeFrom?: string;
|
|
742
801
|
updateIntervalInMs?: number;
|
|
743
802
|
}
|
|
744
803
|
|
|
804
|
+
// @public
|
|
805
|
+
export interface SqlVirtualMachinesStartAssessmentHeaders {
|
|
806
|
+
// (undocumented)
|
|
807
|
+
location?: string;
|
|
808
|
+
}
|
|
809
|
+
|
|
745
810
|
// @public
|
|
746
811
|
export interface SqlVirtualMachinesStartAssessmentOptionalParams extends coreClient.OperationOptions {
|
|
747
812
|
resumeFrom?: string;
|
|
@@ -757,6 +822,27 @@ export interface SqlVirtualMachinesUpdateOptionalParams extends coreClient.Opera
|
|
|
757
822
|
// @public
|
|
758
823
|
export type SqlVirtualMachinesUpdateResponse = SqlVirtualMachine;
|
|
759
824
|
|
|
825
|
+
// @public
|
|
826
|
+
export interface SqlVirtualMachineTroubleshoot {
|
|
827
|
+
beginTroubleshoot(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVmTroubleshooting, options?: SqlVirtualMachineTroubleshootTroubleshootOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachineTroubleshootTroubleshootResponse>, SqlVirtualMachineTroubleshootTroubleshootResponse>>;
|
|
828
|
+
beginTroubleshootAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVmTroubleshooting, options?: SqlVirtualMachineTroubleshootTroubleshootOptionalParams): Promise<SqlVirtualMachineTroubleshootTroubleshootResponse>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// @public
|
|
832
|
+
export interface SqlVirtualMachineTroubleshootTroubleshootHeaders {
|
|
833
|
+
// (undocumented)
|
|
834
|
+
location?: string;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// @public
|
|
838
|
+
export interface SqlVirtualMachineTroubleshootTroubleshootOptionalParams extends coreClient.OperationOptions {
|
|
839
|
+
resumeFrom?: string;
|
|
840
|
+
updateIntervalInMs?: number;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
// @public
|
|
844
|
+
export type SqlVirtualMachineTroubleshootTroubleshootResponse = SqlVmTroubleshooting;
|
|
845
|
+
|
|
760
846
|
// @public
|
|
761
847
|
export interface SqlVirtualMachineUpdate {
|
|
762
848
|
tags?: {
|
|
@@ -767,6 +853,15 @@ export interface SqlVirtualMachineUpdate {
|
|
|
767
853
|
// @public
|
|
768
854
|
export type SqlVmGroupImageSku = string;
|
|
769
855
|
|
|
856
|
+
// @public
|
|
857
|
+
export interface SqlVmTroubleshooting {
|
|
858
|
+
endTimeUtc?: Date;
|
|
859
|
+
properties?: TroubleshootingAdditionalProperties;
|
|
860
|
+
startTimeUtc?: Date;
|
|
861
|
+
troubleshootingScenario?: TroubleshootingScenario;
|
|
862
|
+
readonly virtualMachineResourceId?: string;
|
|
863
|
+
}
|
|
864
|
+
|
|
770
865
|
// @public
|
|
771
866
|
export type SqlWorkloadType = string;
|
|
772
867
|
|
|
@@ -806,6 +901,29 @@ export interface TrackedResource extends Resource {
|
|
|
806
901
|
};
|
|
807
902
|
}
|
|
808
903
|
|
|
904
|
+
// @public
|
|
905
|
+
export interface TroubleshootingAdditionalProperties {
|
|
906
|
+
unhealthyReplicaInfo?: UnhealthyReplicaInfo;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
// @public
|
|
910
|
+
export type TroubleshootingScenario = string;
|
|
911
|
+
|
|
912
|
+
// @public
|
|
913
|
+
export interface TroubleshootingStatus {
|
|
914
|
+
readonly endTimeUtc?: Date;
|
|
915
|
+
readonly lastTriggerTimeUtc?: Date;
|
|
916
|
+
readonly properties?: TroubleshootingAdditionalProperties;
|
|
917
|
+
readonly rootCause?: string;
|
|
918
|
+
readonly startTimeUtc?: Date;
|
|
919
|
+
readonly troubleshootingScenario?: TroubleshootingScenario;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
// @public
|
|
923
|
+
export interface UnhealthyReplicaInfo {
|
|
924
|
+
availabilityGroupName?: string;
|
|
925
|
+
}
|
|
926
|
+
|
|
809
927
|
// @public
|
|
810
928
|
export interface WsfcDomainCredentials {
|
|
811
929
|
clusterBootstrapAccountPassword?: string;
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|