@azure/arm-sqlvirtualmachine 5.0.0-beta.6 → 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.
Files changed (187) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1065 -306
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +98 -0
  11. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +40 -0
  15. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +40 -0
  19. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +60 -0
  23. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  27. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  28. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +55 -0
  31. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +39 -0
  35. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +1 -0
  36. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +39 -0
  39. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +1 -0
  40. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +59 -0
  43. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -0
  44. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +58 -0
  47. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -0
  48. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +40 -0
  51. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js +45 -0
  55. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js.map +1 -0
  56. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +290 -0
  59. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +39 -0
  63. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +1 -0
  64. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +39 -0
  67. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +1 -0
  68. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +59 -0
  71. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -0
  72. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +60 -0
  75. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -0
  76. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +58 -0
  79. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -0
  80. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +2 -0
  81. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +39 -0
  83. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +1 -0
  84. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +39 -0
  87. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -0
  88. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +40 -0
  91. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +1 -0
  92. package/dist-esm/src/index.d.ts +1 -0
  93. package/dist-esm/src/index.d.ts.map +1 -1
  94. package/dist-esm/src/index.js +1 -0
  95. package/dist-esm/src/index.js.map +1 -1
  96. package/dist-esm/src/lroImpl.d.ts +6 -11
  97. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  98. package/dist-esm/src/lroImpl.js +12 -20
  99. package/dist-esm/src/lroImpl.js.map +1 -1
  100. package/dist-esm/src/models/index.d.ts +234 -68
  101. package/dist-esm/src/models/index.d.ts.map +1 -1
  102. package/dist-esm/src/models/index.js +8 -0
  103. package/dist-esm/src/models/index.js.map +1 -1
  104. package/dist-esm/src/models/mappers.d.ts +14 -0
  105. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  106. package/dist-esm/src/models/mappers.js +325 -0
  107. package/dist-esm/src/models/mappers.js.map +1 -1
  108. package/dist-esm/src/models/parameters.d.ts +1 -0
  109. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  110. package/dist-esm/src/models/parameters.js +11 -2
  111. package/dist-esm/src/models/parameters.js.map +1 -1
  112. package/dist-esm/src/operations/availabilityGroupListeners.d.ts +3 -3
  113. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
  114. package/dist-esm/src/operations/availabilityGroupListeners.js +86 -41
  115. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
  116. package/dist-esm/src/operations/index.d.ts +1 -0
  117. package/dist-esm/src/operations/index.d.ts.map +1 -1
  118. package/dist-esm/src/operations/index.js +1 -0
  119. package/dist-esm/src/operations/index.js.map +1 -1
  120. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  121. package/dist-esm/src/operations/operations.js +37 -15
  122. package/dist-esm/src/operations/operations.js.map +1 -1
  123. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +4 -4
  124. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
  125. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +134 -51
  126. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
  127. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
  128. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  129. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js +118 -0
  130. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
  131. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +29 -29
  132. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  133. package/dist-esm/src/operations/sqlVirtualMachines.js +270 -148
  134. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  135. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +3 -3
  136. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  138. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  140. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts +4 -4
  142. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
  144. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
  146. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +26 -26
  148. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  149. package/dist-esm/src/pagingHelper.d.ts +13 -0
  150. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  151. package/dist-esm/src/pagingHelper.js +32 -0
  152. package/dist-esm/src/pagingHelper.js.map +1 -0
  153. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -1
  154. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  155. package/dist-esm/src/sqlVirtualMachineManagementClient.js +7 -9
  156. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  157. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts +4 -0
  158. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts.map +1 -0
  159. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js +78 -0
  160. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js.map +1 -0
  161. package/package.json +22 -12
  162. package/review/arm-sqlvirtualmachine.api.md +134 -13
  163. package/src/index.ts +1 -0
  164. package/src/lroImpl.ts +31 -23
  165. package/src/models/index.ts +210 -25
  166. package/src/models/mappers.ts +340 -0
  167. package/src/models/parameters.ts +15 -2
  168. package/src/operations/availabilityGroupListeners.ts +81 -42
  169. package/src/operations/index.ts +1 -0
  170. package/src/operations/operations.ts +27 -11
  171. package/src/operations/sqlVirtualMachineGroups.ts +134 -61
  172. package/src/operations/sqlVirtualMachineTroubleshoot.ts +172 -0
  173. package/src/operations/sqlVirtualMachines.ts +312 -213
  174. package/src/operationsInterfaces/availabilityGroupListeners.ts +4 -4
  175. package/src/operationsInterfaces/index.ts +1 -0
  176. package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +6 -6
  177. package/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.ts +51 -0
  178. package/src/operationsInterfaces/sqlVirtualMachines.ts +57 -57
  179. package/src/pagingHelper.ts +39 -0
  180. package/src/sqlVirtualMachineManagementClient.ts +14 -9
  181. package/tsconfig.json +8 -2
  182. package/types/arm-sqlvirtualmachine.d.ts +254 -38
  183. package/types/tsdoc-metadata.json +1 -1
  184. package/dist-esm/test/sampleTest.d.ts +0 -2
  185. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  186. package/dist-esm/test/sampleTest.js +0 -38
  187. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -93,6 +93,55 @@ export interface Resource {
93
93
  readonly type?: string;
94
94
  }
95
95
 
96
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
97
+ export interface ErrorResponse {
98
+ /** The error object. */
99
+ error?: ErrorDetail;
100
+ }
101
+
102
+ /** The error detail. */
103
+ export interface ErrorDetail {
104
+ /**
105
+ * The error code.
106
+ * NOTE: This property will not be serialized. It can only be populated by the server.
107
+ */
108
+ readonly code?: string;
109
+ /**
110
+ * The error message.
111
+ * NOTE: This property will not be serialized. It can only be populated by the server.
112
+ */
113
+ readonly message?: string;
114
+ /**
115
+ * The error target.
116
+ * NOTE: This property will not be serialized. It can only be populated by the server.
117
+ */
118
+ readonly target?: string;
119
+ /**
120
+ * The error details.
121
+ * NOTE: This property will not be serialized. It can only be populated by the server.
122
+ */
123
+ readonly details?: ErrorDetail[];
124
+ /**
125
+ * The error additional info.
126
+ * NOTE: This property will not be serialized. It can only be populated by the server.
127
+ */
128
+ readonly additionalInfo?: ErrorAdditionalInfo[];
129
+ }
130
+
131
+ /** The resource management error additional info. */
132
+ export interface ErrorAdditionalInfo {
133
+ /**
134
+ * The additional info type.
135
+ * NOTE: This property will not be serialized. It can only be populated by the server.
136
+ */
137
+ readonly type?: string;
138
+ /**
139
+ * The additional info.
140
+ * NOTE: This property will not be serialized. It can only be populated by the server.
141
+ */
142
+ readonly info?: Record<string, unknown>;
143
+ }
144
+
96
145
  /** A list of availability group listeners. */
97
146
  export interface AvailabilityGroupListenerListResult {
98
147
  /**
@@ -321,6 +370,8 @@ export interface ServerConfigurationsManagementSettings {
321
370
  additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
322
371
  /** SQL Instance settings. */
323
372
  sqlInstanceSettings?: SQLInstanceSettings;
373
+ /** Azure AD authentication Settings. */
374
+ azureAdAuthenticationSettings?: AADAuthenticationSettings;
324
375
  }
325
376
 
326
377
  /** Set the access level and network port settings for SQL Server. */
@@ -375,6 +426,12 @@ export interface SQLInstanceSettings {
375
426
  isIfiEnabled?: boolean;
376
427
  }
377
428
 
429
+ /** Enable AAD authentication for SQL VM. */
430
+ export interface AADAuthenticationSettings {
431
+ /** The client Id of the Managed Identity to query Microsoft Graph API. An empty string must be used for the system assigned Managed Identity */
432
+ clientId?: string;
433
+ }
434
+
378
435
  /** Storage Configurations for SQL Data, Log and TempDb. */
379
436
  export interface StorageConfigurationSettings {
380
437
  /** SQL Server Data Storage Settings. */
@@ -421,13 +478,59 @@ export interface SQLTempDbSettings {
421
478
  defaultFilePath?: string;
422
479
  }
423
480
 
424
- /** Configure assessment for databases in your SQL virtual machine. */
481
+ /** Status of last troubleshooting operation on this SQL VM */
482
+ export interface TroubleshootingStatus {
483
+ /**
484
+ * Root cause of the issue
485
+ * NOTE: This property will not be serialized. It can only be populated by the server.
486
+ */
487
+ readonly rootCause?: string;
488
+ /**
489
+ * Last troubleshooting trigger time in UTC timezone
490
+ * NOTE: This property will not be serialized. It can only be populated by the server.
491
+ */
492
+ readonly lastTriggerTimeUtc?: Date;
493
+ /**
494
+ * Start time in UTC timezone.
495
+ * NOTE: This property will not be serialized. It can only be populated by the server.
496
+ */
497
+ readonly startTimeUtc?: Date;
498
+ /**
499
+ * End time in UTC timezone.
500
+ * NOTE: This property will not be serialized. It can only be populated by the server.
501
+ */
502
+ readonly endTimeUtc?: Date;
503
+ /**
504
+ * SQL VM troubleshooting scenario.
505
+ * NOTE: This property will not be serialized. It can only be populated by the server.
506
+ */
507
+ readonly troubleshootingScenario?: TroubleshootingScenario;
508
+ /**
509
+ * Troubleshooting properties
510
+ * NOTE: This property will not be serialized. It can only be populated by the server.
511
+ */
512
+ readonly properties?: TroubleshootingAdditionalProperties;
513
+ }
514
+
515
+ /** SQL VM Troubleshooting additional properties. */
516
+ export interface TroubleshootingAdditionalProperties {
517
+ /** The unhealthy replica information */
518
+ unhealthyReplicaInfo?: UnhealthyReplicaInfo;
519
+ }
520
+
521
+ /** SQL VM Troubleshoot UnhealthyReplica scenario information. */
522
+ export interface UnhealthyReplicaInfo {
523
+ /** The name of the availability group */
524
+ availabilityGroupName?: string;
525
+ }
526
+
527
+ /** Configure SQL best practices Assessment for databases in your SQL virtual machine. */
425
528
  export interface AssessmentSettings {
426
- /** Enable or disable assessment feature on SQL virtual machine. */
529
+ /** Enable or disable SQL best practices Assessment feature on SQL virtual machine. */
427
530
  enable?: boolean;
428
- /** Run assessment immediately on SQL virtual machine. */
531
+ /** Run SQL best practices Assessment immediately on SQL virtual machine. */
429
532
  runImmediately?: boolean;
430
- /** Schedule for Assessment. */
533
+ /** Schedule for SQL best practices Assessment. */
431
534
  schedule?: Schedule;
432
535
  }
433
536
 
@@ -451,6 +554,23 @@ export interface SqlVirtualMachineUpdate {
451
554
  tags?: { [propertyName: string]: string };
452
555
  }
453
556
 
557
+ /** Details required for SQL VM troubleshooting */
558
+ export interface SqlVmTroubleshooting {
559
+ /** Start time in UTC timezone. */
560
+ startTimeUtc?: Date;
561
+ /** End time in UTC timezone. */
562
+ endTimeUtc?: Date;
563
+ /** SQL VM troubleshooting scenario. */
564
+ troubleshootingScenario?: TroubleshootingScenario;
565
+ /** Troubleshooting properties */
566
+ properties?: TroubleshootingAdditionalProperties;
567
+ /**
568
+ * Virtual machine resource id for response.
569
+ * NOTE: This property will not be serialized. It can only be populated by the server.
570
+ */
571
+ readonly virtualMachineResourceId?: string;
572
+ }
573
+
454
574
  /** ARM proxy resource. */
455
575
  export interface ProxyResource extends Resource {}
456
576
 
@@ -565,12 +685,47 @@ export interface SqlVirtualMachine extends TrackedResource {
565
685
  serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
566
686
  /** Storage Configuration Settings. */
567
687
  storageConfigurationSettings?: StorageConfigurationSettings;
568
- /** Assessment Settings. */
688
+ /**
689
+ * Troubleshooting status
690
+ * NOTE: This property will not be serialized. It can only be populated by the server.
691
+ */
692
+ readonly troubleshootingStatus?: TroubleshootingStatus;
693
+ /** SQL best practices Assessment Settings. */
569
694
  assessmentSettings?: AssessmentSettings;
570
695
  /** Enable automatic upgrade of Sql IaaS extension Agent. */
571
696
  enableAutomaticUpgrade?: boolean;
572
697
  }
573
698
 
699
+ /** Defines headers for AvailabilityGroupListeners_delete operation. */
700
+ export interface AvailabilityGroupListenersDeleteHeaders {
701
+ location?: string;
702
+ }
703
+
704
+ /** Defines headers for SqlVirtualMachineGroups_delete operation. */
705
+ export interface SqlVirtualMachineGroupsDeleteHeaders {
706
+ location?: string;
707
+ }
708
+
709
+ /** Defines headers for SqlVirtualMachines_delete operation. */
710
+ export interface SqlVirtualMachinesDeleteHeaders {
711
+ location?: string;
712
+ }
713
+
714
+ /** Defines headers for SqlVirtualMachines_startAssessment operation. */
715
+ export interface SqlVirtualMachinesStartAssessmentHeaders {
716
+ location?: string;
717
+ }
718
+
719
+ /** Defines headers for SqlVirtualMachines_redeploy operation. */
720
+ export interface SqlVirtualMachinesRedeployHeaders {
721
+ location?: string;
722
+ }
723
+
724
+ /** Defines headers for SqlVirtualMachineTroubleshoot_troubleshoot operation. */
725
+ export interface SqlVirtualMachineTroubleshootTroubleshootHeaders {
726
+ location?: string;
727
+ }
728
+
574
729
  /** Known values of {@link Role} that the service accepts. */
575
730
  export enum KnownRole {
576
731
  /** Primary */
@@ -832,7 +987,9 @@ export type SqlManagementMode = string;
832
987
  /** Known values of {@link LeastPrivilegeMode} that the service accepts. */
833
988
  export enum KnownLeastPrivilegeMode {
834
989
  /** Enabled */
835
- Enabled = "Enabled"
990
+ Enabled = "Enabled",
991
+ /** NotSet */
992
+ NotSet = "NotSet"
836
993
  }
837
994
 
838
995
  /**
@@ -840,7 +997,8 @@ export enum KnownLeastPrivilegeMode {
840
997
  * {@link KnownLeastPrivilegeMode} can be used interchangeably with LeastPrivilegeMode,
841
998
  * this enum contains the known values that the service supports.
842
999
  * ### Known values supported by the service
843
- * **Enabled**
1000
+ * **Enabled** \
1001
+ * **NotSet**
844
1002
  */
845
1003
  export type LeastPrivilegeMode = string;
846
1004
 
@@ -1023,6 +1181,21 @@ export enum KnownStorageWorkloadType {
1023
1181
  * **DW**
1024
1182
  */
1025
1183
  export type StorageWorkloadType = string;
1184
+
1185
+ /** Known values of {@link TroubleshootingScenario} that the service accepts. */
1186
+ export enum KnownTroubleshootingScenario {
1187
+ /** UnhealthyReplica */
1188
+ UnhealthyReplica = "UnhealthyReplica"
1189
+ }
1190
+
1191
+ /**
1192
+ * Defines values for TroubleshootingScenario. \
1193
+ * {@link KnownTroubleshootingScenario} can be used interchangeably with TroubleshootingScenario,
1194
+ * this enum contains the known values that the service supports.
1195
+ * ### Known values supported by the service
1196
+ * **UnhealthyReplica**
1197
+ */
1198
+ export type TroubleshootingScenario = string;
1026
1199
  /** Defines values for DayOfWeek. */
1027
1200
  export type DayOfWeek =
1028
1201
  | "Everyday"
@@ -1184,24 +1357,6 @@ export interface SqlVirtualMachinesListOptionalParams
1184
1357
  /** Contains response data for the list operation. */
1185
1358
  export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
1186
1359
 
1187
- /** Optional parameters. */
1188
- export interface SqlVirtualMachinesStartAssessmentOptionalParams
1189
- extends coreClient.OperationOptions {
1190
- /** Delay to wait until next poll, in milliseconds. */
1191
- updateIntervalInMs?: number;
1192
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1193
- resumeFrom?: string;
1194
- }
1195
-
1196
- /** Optional parameters. */
1197
- export interface SqlVirtualMachinesRedeployOptionalParams
1198
- extends coreClient.OperationOptions {
1199
- /** Delay to wait until next poll, in milliseconds. */
1200
- updateIntervalInMs?: number;
1201
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1202
- resumeFrom?: string;
1203
- }
1204
-
1205
1360
  /** Optional parameters. */
1206
1361
  export interface SqlVirtualMachinesGetOptionalParams
1207
1362
  extends coreClient.OperationOptions {
@@ -1252,6 +1407,24 @@ export interface SqlVirtualMachinesListByResourceGroupOptionalParams
1252
1407
  /** Contains response data for the listByResourceGroup operation. */
1253
1408
  export type SqlVirtualMachinesListByResourceGroupResponse = SqlVirtualMachineListResult;
1254
1409
 
1410
+ /** Optional parameters. */
1411
+ export interface SqlVirtualMachinesStartAssessmentOptionalParams
1412
+ extends coreClient.OperationOptions {
1413
+ /** Delay to wait until next poll, in milliseconds. */
1414
+ updateIntervalInMs?: number;
1415
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1416
+ resumeFrom?: string;
1417
+ }
1418
+
1419
+ /** Optional parameters. */
1420
+ export interface SqlVirtualMachinesRedeployOptionalParams
1421
+ extends coreClient.OperationOptions {
1422
+ /** Delay to wait until next poll, in milliseconds. */
1423
+ updateIntervalInMs?: number;
1424
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1425
+ resumeFrom?: string;
1426
+ }
1427
+
1255
1428
  /** Optional parameters. */
1256
1429
  export interface SqlVirtualMachinesListBySqlVmGroupNextOptionalParams
1257
1430
  extends coreClient.OperationOptions {}
@@ -1273,6 +1446,18 @@ export interface SqlVirtualMachinesListByResourceGroupNextOptionalParams
1273
1446
  /** Contains response data for the listByResourceGroupNext operation. */
1274
1447
  export type SqlVirtualMachinesListByResourceGroupNextResponse = SqlVirtualMachineListResult;
1275
1448
 
1449
+ /** Optional parameters. */
1450
+ export interface SqlVirtualMachineTroubleshootTroubleshootOptionalParams
1451
+ extends coreClient.OperationOptions {
1452
+ /** Delay to wait until next poll, in milliseconds. */
1453
+ updateIntervalInMs?: number;
1454
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1455
+ resumeFrom?: string;
1456
+ }
1457
+
1458
+ /** Contains response data for the troubleshoot operation. */
1459
+ export type SqlVirtualMachineTroubleshootTroubleshootResponse = SqlVmTroubleshooting;
1460
+
1276
1461
  /** Optional parameters. */
1277
1462
  export interface SqlVirtualMachineManagementClientOptionalParams
1278
1463
  extends coreClient.ServiceClientOptions {
@@ -232,6 +232,102 @@ export const Resource: coreClient.CompositeMapper = {
232
232
  }
233
233
  };
234
234
 
235
+ export const ErrorResponse: coreClient.CompositeMapper = {
236
+ type: {
237
+ name: "Composite",
238
+ className: "ErrorResponse",
239
+ modelProperties: {
240
+ error: {
241
+ serializedName: "error",
242
+ type: {
243
+ name: "Composite",
244
+ className: "ErrorDetail"
245
+ }
246
+ }
247
+ }
248
+ }
249
+ };
250
+
251
+ export const ErrorDetail: coreClient.CompositeMapper = {
252
+ type: {
253
+ name: "Composite",
254
+ className: "ErrorDetail",
255
+ modelProperties: {
256
+ code: {
257
+ serializedName: "code",
258
+ readOnly: true,
259
+ type: {
260
+ name: "String"
261
+ }
262
+ },
263
+ message: {
264
+ serializedName: "message",
265
+ readOnly: true,
266
+ type: {
267
+ name: "String"
268
+ }
269
+ },
270
+ target: {
271
+ serializedName: "target",
272
+ readOnly: true,
273
+ type: {
274
+ name: "String"
275
+ }
276
+ },
277
+ details: {
278
+ serializedName: "details",
279
+ readOnly: true,
280
+ type: {
281
+ name: "Sequence",
282
+ element: {
283
+ type: {
284
+ name: "Composite",
285
+ className: "ErrorDetail"
286
+ }
287
+ }
288
+ }
289
+ },
290
+ additionalInfo: {
291
+ serializedName: "additionalInfo",
292
+ readOnly: true,
293
+ type: {
294
+ name: "Sequence",
295
+ element: {
296
+ type: {
297
+ name: "Composite",
298
+ className: "ErrorAdditionalInfo"
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ };
306
+
307
+ export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
308
+ type: {
309
+ name: "Composite",
310
+ className: "ErrorAdditionalInfo",
311
+ modelProperties: {
312
+ type: {
313
+ serializedName: "type",
314
+ readOnly: true,
315
+ type: {
316
+ name: "String"
317
+ }
318
+ },
319
+ info: {
320
+ serializedName: "info",
321
+ readOnly: true,
322
+ type: {
323
+ name: "Dictionary",
324
+ value: { type: { name: "any" } }
325
+ }
326
+ }
327
+ }
328
+ }
329
+ };
330
+
235
331
  export const AvailabilityGroupListenerListResult: coreClient.CompositeMapper = {
236
332
  type: {
237
333
  name: "Composite",
@@ -779,6 +875,13 @@ export const ServerConfigurationsManagementSettings: coreClient.CompositeMapper
779
875
  name: "Composite",
780
876
  className: "SQLInstanceSettings"
781
877
  }
878
+ },
879
+ azureAdAuthenticationSettings: {
880
+ serializedName: "azureAdAuthenticationSettings",
881
+ type: {
882
+ name: "Composite",
883
+ className: "AADAuthenticationSettings"
884
+ }
782
885
  }
783
886
  }
784
887
  }
@@ -925,6 +1028,21 @@ export const SQLInstanceSettings: coreClient.CompositeMapper = {
925
1028
  }
926
1029
  };
927
1030
 
1031
+ export const AADAuthenticationSettings: coreClient.CompositeMapper = {
1032
+ type: {
1033
+ name: "Composite",
1034
+ className: "AADAuthenticationSettings",
1035
+ modelProperties: {
1036
+ clientId: {
1037
+ serializedName: "clientId",
1038
+ type: {
1039
+ name: "String"
1040
+ }
1041
+ }
1042
+ }
1043
+ }
1044
+ };
1045
+
928
1046
  export const StorageConfigurationSettings: coreClient.CompositeMapper = {
929
1047
  type: {
930
1048
  name: "Composite",
@@ -1067,6 +1185,88 @@ export const SQLTempDbSettings: coreClient.CompositeMapper = {
1067
1185
  }
1068
1186
  };
1069
1187
 
1188
+ export const TroubleshootingStatus: coreClient.CompositeMapper = {
1189
+ type: {
1190
+ name: "Composite",
1191
+ className: "TroubleshootingStatus",
1192
+ modelProperties: {
1193
+ rootCause: {
1194
+ serializedName: "rootCause",
1195
+ readOnly: true,
1196
+ type: {
1197
+ name: "String"
1198
+ }
1199
+ },
1200
+ lastTriggerTimeUtc: {
1201
+ serializedName: "lastTriggerTimeUtc",
1202
+ readOnly: true,
1203
+ type: {
1204
+ name: "DateTime"
1205
+ }
1206
+ },
1207
+ startTimeUtc: {
1208
+ serializedName: "startTimeUtc",
1209
+ readOnly: true,
1210
+ type: {
1211
+ name: "DateTime"
1212
+ }
1213
+ },
1214
+ endTimeUtc: {
1215
+ serializedName: "endTimeUtc",
1216
+ readOnly: true,
1217
+ type: {
1218
+ name: "DateTime"
1219
+ }
1220
+ },
1221
+ troubleshootingScenario: {
1222
+ serializedName: "troubleshootingScenario",
1223
+ readOnly: true,
1224
+ type: {
1225
+ name: "String"
1226
+ }
1227
+ },
1228
+ properties: {
1229
+ serializedName: "properties",
1230
+ type: {
1231
+ name: "Composite",
1232
+ className: "TroubleshootingAdditionalProperties"
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ };
1238
+
1239
+ export const TroubleshootingAdditionalProperties: coreClient.CompositeMapper = {
1240
+ type: {
1241
+ name: "Composite",
1242
+ className: "TroubleshootingAdditionalProperties",
1243
+ modelProperties: {
1244
+ unhealthyReplicaInfo: {
1245
+ serializedName: "unhealthyReplicaInfo",
1246
+ type: {
1247
+ name: "Composite",
1248
+ className: "UnhealthyReplicaInfo"
1249
+ }
1250
+ }
1251
+ }
1252
+ }
1253
+ };
1254
+
1255
+ export const UnhealthyReplicaInfo: coreClient.CompositeMapper = {
1256
+ type: {
1257
+ name: "Composite",
1258
+ className: "UnhealthyReplicaInfo",
1259
+ modelProperties: {
1260
+ availabilityGroupName: {
1261
+ serializedName: "availabilityGroupName",
1262
+ type: {
1263
+ name: "String"
1264
+ }
1265
+ }
1266
+ }
1267
+ }
1268
+ };
1269
+
1070
1270
  export const AssessmentSettings: coreClient.CompositeMapper = {
1071
1271
  type: {
1072
1272
  name: "Composite",
@@ -1159,6 +1359,47 @@ export const SqlVirtualMachineUpdate: coreClient.CompositeMapper = {
1159
1359
  }
1160
1360
  };
1161
1361
 
1362
+ export const SqlVmTroubleshooting: coreClient.CompositeMapper = {
1363
+ type: {
1364
+ name: "Composite",
1365
+ className: "SqlVmTroubleshooting",
1366
+ modelProperties: {
1367
+ startTimeUtc: {
1368
+ serializedName: "startTimeUtc",
1369
+ type: {
1370
+ name: "DateTime"
1371
+ }
1372
+ },
1373
+ endTimeUtc: {
1374
+ serializedName: "endTimeUtc",
1375
+ type: {
1376
+ name: "DateTime"
1377
+ }
1378
+ },
1379
+ troubleshootingScenario: {
1380
+ serializedName: "troubleshootingScenario",
1381
+ type: {
1382
+ name: "String"
1383
+ }
1384
+ },
1385
+ properties: {
1386
+ serializedName: "properties",
1387
+ type: {
1388
+ name: "Composite",
1389
+ className: "TroubleshootingAdditionalProperties"
1390
+ }
1391
+ },
1392
+ virtualMachineResourceId: {
1393
+ serializedName: "virtualMachineResourceId",
1394
+ readOnly: true,
1395
+ type: {
1396
+ name: "String"
1397
+ }
1398
+ }
1399
+ }
1400
+ }
1401
+ };
1402
+
1162
1403
  export const ProxyResource: coreClient.CompositeMapper = {
1163
1404
  type: {
1164
1405
  name: "Composite",
@@ -1382,6 +1623,7 @@ export const SqlVirtualMachine: coreClient.CompositeMapper = {
1382
1623
  }
1383
1624
  },
1384
1625
  leastPrivilegeMode: {
1626
+ defaultValue: "NotSet",
1385
1627
  serializedName: "properties.leastPrivilegeMode",
1386
1628
  type: {
1387
1629
  name: "String"
@@ -1447,6 +1689,13 @@ export const SqlVirtualMachine: coreClient.CompositeMapper = {
1447
1689
  className: "StorageConfigurationSettings"
1448
1690
  }
1449
1691
  },
1692
+ troubleshootingStatus: {
1693
+ serializedName: "properties.troubleshootingStatus",
1694
+ type: {
1695
+ name: "Composite",
1696
+ className: "TroubleshootingStatus"
1697
+ }
1698
+ },
1450
1699
  assessmentSettings: {
1451
1700
  serializedName: "properties.assessmentSettings",
1452
1701
  type: {
@@ -1455,6 +1704,7 @@ export const SqlVirtualMachine: coreClient.CompositeMapper = {
1455
1704
  }
1456
1705
  },
1457
1706
  enableAutomaticUpgrade: {
1707
+ defaultValue: false,
1458
1708
  serializedName: "properties.enableAutomaticUpgrade",
1459
1709
  type: {
1460
1710
  name: "Boolean"
@@ -1463,3 +1713,93 @@ export const SqlVirtualMachine: coreClient.CompositeMapper = {
1463
1713
  }
1464
1714
  }
1465
1715
  };
1716
+
1717
+ export const AvailabilityGroupListenersDeleteHeaders: coreClient.CompositeMapper = {
1718
+ type: {
1719
+ name: "Composite",
1720
+ className: "AvailabilityGroupListenersDeleteHeaders",
1721
+ modelProperties: {
1722
+ location: {
1723
+ serializedName: "location",
1724
+ type: {
1725
+ name: "String"
1726
+ }
1727
+ }
1728
+ }
1729
+ }
1730
+ };
1731
+
1732
+ export const SqlVirtualMachineGroupsDeleteHeaders: coreClient.CompositeMapper = {
1733
+ type: {
1734
+ name: "Composite",
1735
+ className: "SqlVirtualMachineGroupsDeleteHeaders",
1736
+ modelProperties: {
1737
+ location: {
1738
+ serializedName: "location",
1739
+ type: {
1740
+ name: "String"
1741
+ }
1742
+ }
1743
+ }
1744
+ }
1745
+ };
1746
+
1747
+ export const SqlVirtualMachinesDeleteHeaders: coreClient.CompositeMapper = {
1748
+ type: {
1749
+ name: "Composite",
1750
+ className: "SqlVirtualMachinesDeleteHeaders",
1751
+ modelProperties: {
1752
+ location: {
1753
+ serializedName: "location",
1754
+ type: {
1755
+ name: "String"
1756
+ }
1757
+ }
1758
+ }
1759
+ }
1760
+ };
1761
+
1762
+ export const SqlVirtualMachinesStartAssessmentHeaders: coreClient.CompositeMapper = {
1763
+ type: {
1764
+ name: "Composite",
1765
+ className: "SqlVirtualMachinesStartAssessmentHeaders",
1766
+ modelProperties: {
1767
+ location: {
1768
+ serializedName: "location",
1769
+ type: {
1770
+ name: "String"
1771
+ }
1772
+ }
1773
+ }
1774
+ }
1775
+ };
1776
+
1777
+ export const SqlVirtualMachinesRedeployHeaders: coreClient.CompositeMapper = {
1778
+ type: {
1779
+ name: "Composite",
1780
+ className: "SqlVirtualMachinesRedeployHeaders",
1781
+ modelProperties: {
1782
+ location: {
1783
+ serializedName: "location",
1784
+ type: {
1785
+ name: "String"
1786
+ }
1787
+ }
1788
+ }
1789
+ }
1790
+ };
1791
+
1792
+ export const SqlVirtualMachineTroubleshootTroubleshootHeaders: coreClient.CompositeMapper = {
1793
+ type: {
1794
+ name: "Composite",
1795
+ className: "SqlVirtualMachineTroubleshootTroubleshootHeaders",
1796
+ modelProperties: {
1797
+ location: {
1798
+ serializedName: "location",
1799
+ type: {
1800
+ name: "String"
1801
+ }
1802
+ }
1803
+ }
1804
+ }
1805
+ };