@azure/arm-sqlvirtualmachine 5.0.0-beta.2 → 5.0.0-beta.5

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 (136) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +719 -91
  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 +50 -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 +32 -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 +32 -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 +45 -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 +43 -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 +46 -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 +31 -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 +31 -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 +44 -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 +43 -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 +32 -0
  51. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +269 -0
  55. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -0
  56. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +31 -0
  59. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +1 -0
  60. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +31 -0
  63. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +1 -0
  64. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +44 -0
  67. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -0
  68. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +45 -0
  71. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -0
  72. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +43 -0
  75. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -0
  76. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +2 -0
  77. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +31 -0
  79. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +1 -0
  80. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +31 -0
  83. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -0
  84. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +32 -0
  87. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +1 -0
  88. package/dist-esm/src/models/index.d.ts +237 -4
  89. package/dist-esm/src/models/index.d.ts.map +1 -1
  90. package/dist-esm/src/models/index.js +45 -0
  91. package/dist-esm/src/models/index.js.map +1 -1
  92. package/dist-esm/src/models/mappers.d.ts +7 -0
  93. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  94. package/dist-esm/src/models/mappers.js +334 -3
  95. package/dist-esm/src/models/mappers.js.map +1 -1
  96. package/dist-esm/src/models/parameters.d.ts +1 -1
  97. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  98. package/dist-esm/src/models/parameters.js +10 -10
  99. package/dist-esm/src/models/parameters.js.map +1 -1
  100. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
  101. package/dist-esm/src/operations/availabilityGroupListeners.js +7 -3
  102. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
  103. package/dist-esm/src/operations/operations.d.ts +2 -2
  104. package/dist-esm/src/operations/operations.js +2 -2
  105. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
  106. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
  107. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
  108. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +33 -1
  109. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  110. package/dist-esm/src/operations/sqlVirtualMachines.js +142 -4
  111. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  113. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +33 -1
  114. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  115. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -0
  116. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  117. package/dist-esm/src/sqlVirtualMachineManagementClient.js +50 -3
  118. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  119. package/dist-esm/test/sampleTest.js +11 -13
  120. package/dist-esm/test/sampleTest.js.map +1 -1
  121. package/package.json +48 -18
  122. package/review/arm-sqlvirtualmachine.api.md +176 -3
  123. package/rollup.config.js +6 -72
  124. package/src/models/index.ts +269 -4
  125. package/src/models/mappers.ts +344 -1
  126. package/src/models/parameters.ts +11 -11
  127. package/src/operations/availabilityGroupListeners.ts +7 -3
  128. package/src/operations/operations.ts +2 -2
  129. package/src/operations/sqlVirtualMachineGroups.ts +9 -3
  130. package/src/operations/sqlVirtualMachines.ts +208 -4
  131. package/src/operationsInterfaces/operations.ts +1 -1
  132. package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
  133. package/src/sqlVirtualMachineManagementClient.ts +62 -3
  134. package/tsconfig.json +19 -5
  135. package/types/arm-sqlvirtualmachine.d.ts +294 -5
  136. package/types/tsdoc-metadata.json +1 -1
@@ -10,16 +10,69 @@ export declare interface AdditionalFeaturesServerConfigurations {
10
10
  isRServicesEnabled?: boolean;
11
11
  }
12
12
 
13
+ /** Availability group configuration. */
14
+ export declare interface AgConfiguration {
15
+ /**
16
+ * Replica configurations.
17
+ * NOTE: This property will not be serialized. It can only be populated by the server.
18
+ */
19
+ readonly replicas?: AgReplica[];
20
+ }
21
+
22
+ /** Availability group replica configuration. */
23
+ export declare interface AgReplica {
24
+ /** Sql VirtualMachine Instance Id. */
25
+ sqlVirtualMachineInstanceId?: string;
26
+ /** Replica Role in availability group. */
27
+ role?: Role;
28
+ /** Replica commit mode in availability group. */
29
+ commit?: Commit;
30
+ /** Replica failover mode in availability group. */
31
+ failover?: Failover;
32
+ /** Replica readable secondary mode in availability group. */
33
+ readableSecondary?: ReadableSecondary;
34
+ }
35
+
36
+ /** Defines values for AssessmentDayOfWeek. */
37
+ export declare type AssessmentDayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
38
+
39
+ /** Configure assessment for databases in your SQL virtual machine. */
40
+ export declare interface AssessmentSettings {
41
+ /** Enable or disable assessment feature on SQL virtual machine. */
42
+ enable?: boolean;
43
+ /** Run assessment immediately on SQL virtual machine. */
44
+ runImmediately?: boolean;
45
+ /** Schedule for Assessment. */
46
+ schedule?: Schedule;
47
+ }
48
+
49
+ /**
50
+ * Defines values for AutoBackupDaysOfWeek. \
51
+ * {@link KnownAutoBackupDaysOfWeek} can be used interchangeably with AutoBackupDaysOfWeek,
52
+ * this enum contains the known values that the service supports.
53
+ * ### Known values supported by the service
54
+ * **Monday** \
55
+ * **Tuesday** \
56
+ * **Wednesday** \
57
+ * **Thursday** \
58
+ * **Friday** \
59
+ * **Saturday** \
60
+ * **Sunday**
61
+ */
62
+ export declare type AutoBackupDaysOfWeek = string;
63
+
13
64
  /** Configure backups for databases in your SQL virtual machine. */
14
65
  export declare interface AutoBackupSettings {
15
66
  /** Enable or disable autobackup on SQL virtual machine. */
16
67
  enable?: boolean;
17
68
  /** Enable or disable encryption for backup on SQL virtual machine. */
18
69
  enableEncryption?: boolean;
19
- /** Retention period of backup: 1-30 days. */
70
+ /** Retention period of backup: 1-90 days. */
20
71
  retentionPeriod?: number;
21
72
  /** Storage account url where backup will be taken to. */
22
73
  storageAccountUrl?: string;
74
+ /** Storage container name where backup will be taken to. */
75
+ storageContainerName?: string;
23
76
  /** Storage account key where backup will be taken to. */
24
77
  storageAccessKey?: string;
25
78
  /** Password for encryption on backup. */
@@ -30,6 +83,8 @@ export declare interface AutoBackupSettings {
30
83
  backupScheduleType?: BackupScheduleType;
31
84
  /** Frequency of full backups. In both cases, full backups begin during the next scheduled time window. */
32
85
  fullBackupFrequency?: FullBackupFrequencyType;
86
+ /** Days of the week for the backups when FullBackupFrequency is set to Weekly. */
87
+ daysOfWeek?: AutoBackupDaysOfWeek[];
33
88
  /** Start time of a given day during which full backups can take place. 0-23 hours. */
34
89
  fullBackupStartTime?: number;
35
90
  /** Duration of the time window of a given day during which full backups can take place. 1-23 hours. */
@@ -52,6 +107,11 @@ export declare interface AutoPatchingSettings {
52
107
 
53
108
  /** A SQL Server availability group listener. */
54
109
  export declare type AvailabilityGroupListener = ProxyResource & {
110
+ /**
111
+ * Metadata pertaining to creation and last modification of the resource.
112
+ * NOTE: This property will not be serialized. It can only be populated by the server.
113
+ */
114
+ readonly systemData?: SystemData;
55
115
  /**
56
116
  * Provisioning state to track the async operation status.
57
117
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -65,6 +125,8 @@ export declare type AvailabilityGroupListener = ProxyResource & {
65
125
  createDefaultAvailabilityGroupIfNotExist?: boolean;
66
126
  /** Listener port. */
67
127
  port?: number;
128
+ /** Availability Group configuration. */
129
+ availabilityGroupConfiguration?: AgConfiguration;
68
130
  };
69
131
 
70
132
  /** A list of availability group listeners. */
@@ -161,6 +223,8 @@ export declare interface AvailabilityGroupListenersDeleteOptionalParams extends
161
223
 
162
224
  /** Optional parameters. */
163
225
  export declare interface AvailabilityGroupListenersGetOptionalParams extends coreClient.OperationOptions {
226
+ /** The child resources to include in the response. */
227
+ expand?: string;
164
228
  }
165
229
 
166
230
  /** Contains response data for the get operation. */
@@ -208,6 +272,16 @@ export declare type ClusterConfiguration = string;
208
272
  */
209
273
  export declare type ClusterManagerType = string;
210
274
 
275
+ /**
276
+ * Defines values for Commit. \
277
+ * {@link KnownCommit} can be used interchangeably with Commit,
278
+ * this enum contains the known values that the service supports.
279
+ * ### Known values supported by the service
280
+ * **SYNCHRONOUS_COMMIT** \
281
+ * **ASYNCHRONOUS_COMMIT**
282
+ */
283
+ export declare type Commit = string;
284
+
211
285
  /**
212
286
  * Defines values for ConnectivityType. \
213
287
  * {@link KnownConnectivityType} can be used interchangeably with ConnectivityType,
@@ -219,8 +293,20 @@ export declare type ClusterManagerType = string;
219
293
  */
220
294
  export declare type ConnectivityType = string;
221
295
 
296
+ /**
297
+ * Defines values for CreatedByType. \
298
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
299
+ * this enum contains the known values that the service supports.
300
+ * ### Known values supported by the service
301
+ * **User** \
302
+ * **Application** \
303
+ * **ManagedIdentity** \
304
+ * **Key**
305
+ */
306
+ export declare type CreatedByType = string;
307
+
222
308
  /** Defines values for DayOfWeek. */
223
- export declare type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
309
+ export declare type DayOfWeek = "Everyday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
224
310
 
225
311
  /**
226
312
  * Defines values for DiskConfigurationType. \
@@ -233,6 +319,16 @@ export declare type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday"
233
319
  */
234
320
  export declare type DiskConfigurationType = string;
235
321
 
322
+ /**
323
+ * Defines values for Failover. \
324
+ * {@link KnownFailover} can be used interchangeably with Failover,
325
+ * this enum contains the known values that the service supports.
326
+ * ### Known values supported by the service
327
+ * **AUTOMATIC** \
328
+ * **MANUAL**
329
+ */
330
+ export declare type Failover = string;
331
+
236
332
  /**
237
333
  * Defines values for FullBackupFrequencyType. \
238
334
  * {@link KnownFullBackupFrequencyType} can be used interchangeably with FullBackupFrequencyType,
@@ -248,6 +344,7 @@ export declare type FullBackupFrequencyType = string;
248
344
  * {@link KnownIdentityType} can be used interchangeably with IdentityType,
249
345
  * this enum contains the known values that the service supports.
250
346
  * ### Known values supported by the service
347
+ * **None** \
251
348
  * **SystemAssigned**
252
349
  */
253
350
  export declare type IdentityType = string;
@@ -266,6 +363,17 @@ export declare interface KeyVaultCredentialSettings {
266
363
  servicePrincipalSecret?: string;
267
364
  }
268
365
 
366
+ /** Known values of {@link AutoBackupDaysOfWeek} that the service accepts. */
367
+ export declare enum KnownAutoBackupDaysOfWeek {
368
+ Monday = "Monday",
369
+ Tuesday = "Tuesday",
370
+ Wednesday = "Wednesday",
371
+ Thursday = "Thursday",
372
+ Friday = "Friday",
373
+ Saturday = "Saturday",
374
+ Sunday = "Sunday"
375
+ }
376
+
269
377
  /** Known values of {@link BackupScheduleType} that the service accepts. */
270
378
  export declare enum KnownBackupScheduleType {
271
379
  Manual = "Manual",
@@ -282,6 +390,12 @@ export declare enum KnownClusterManagerType {
282
390
  Wsfc = "WSFC"
283
391
  }
284
392
 
393
+ /** Known values of {@link Commit} that the service accepts. */
394
+ export declare enum KnownCommit {
395
+ SynchronousCommit = "SYNCHRONOUS_COMMIT",
396
+ AsynchronousCommit = "ASYNCHRONOUS_COMMIT"
397
+ }
398
+
285
399
  /** Known values of {@link ConnectivityType} that the service accepts. */
286
400
  export declare enum KnownConnectivityType {
287
401
  Local = "LOCAL",
@@ -289,6 +403,14 @@ export declare enum KnownConnectivityType {
289
403
  Public = "PUBLIC"
290
404
  }
291
405
 
406
+ /** Known values of {@link CreatedByType} that the service accepts. */
407
+ export declare enum KnownCreatedByType {
408
+ User = "User",
409
+ Application = "Application",
410
+ ManagedIdentity = "ManagedIdentity",
411
+ Key = "Key"
412
+ }
413
+
292
414
  /** Known values of {@link DiskConfigurationType} that the service accepts. */
293
415
  export declare enum KnownDiskConfigurationType {
294
416
  NEW = "NEW",
@@ -296,6 +418,12 @@ export declare enum KnownDiskConfigurationType {
296
418
  ADD = "ADD"
297
419
  }
298
420
 
421
+ /** Known values of {@link Failover} that the service accepts. */
422
+ export declare enum KnownFailover {
423
+ Automatic = "AUTOMATIC",
424
+ Manual = "MANUAL"
425
+ }
426
+
299
427
  /** Known values of {@link FullBackupFrequencyType} that the service accepts. */
300
428
  export declare enum KnownFullBackupFrequencyType {
301
429
  Daily = "Daily",
@@ -304,6 +432,7 @@ export declare enum KnownFullBackupFrequencyType {
304
432
 
305
433
  /** Known values of {@link IdentityType} that the service accepts. */
306
434
  export declare enum KnownIdentityType {
435
+ None = "None",
307
436
  SystemAssigned = "SystemAssigned"
308
437
  }
309
438
 
@@ -313,6 +442,19 @@ export declare enum KnownOperationOrigin {
313
442
  System = "system"
314
443
  }
315
444
 
445
+ /** Known values of {@link ReadableSecondary} that the service accepts. */
446
+ export declare enum KnownReadableSecondary {
447
+ NO = "NO",
448
+ ALL = "ALL",
449
+ ReadOnly = "READ_ONLY"
450
+ }
451
+
452
+ /** Known values of {@link Role} that the service accepts. */
453
+ export declare enum KnownRole {
454
+ Primary = "PRIMARY",
455
+ Secondary = "SECONDARY"
456
+ }
457
+
316
458
  /** Known values of {@link ScaleType} that the service accepts. */
317
459
  export declare enum KnownScaleType {
318
460
  HA = "HA"
@@ -452,7 +594,7 @@ export declare type OperationOrigin = string;
452
594
  /** Interface representing a Operations. */
453
595
  export declare interface Operations {
454
596
  /**
455
- * Lists all of the available SQL Rest API operations.
597
+ * Lists all of the available SQL Virtual Machine Rest API operations.
456
598
  * @param options The options parameters.
457
599
  */
458
600
  list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
@@ -481,7 +623,18 @@ export declare interface PrivateIPAddress {
481
623
  }
482
624
 
483
625
  /** ARM proxy resource. */
484
- export declare type ProxyResource = Resource & {};
626
+ export declare type ProxyResource = Resource;
627
+
628
+ /**
629
+ * Defines values for ReadableSecondary. \
630
+ * {@link KnownReadableSecondary} can be used interchangeably with ReadableSecondary,
631
+ * this enum contains the known values that the service supports.
632
+ * ### Known values supported by the service
633
+ * **NO** \
634
+ * **ALL** \
635
+ * **READ_ONLY**
636
+ */
637
+ export declare type ReadableSecondary = string;
485
638
 
486
639
  /** ARM resource. */
487
640
  export declare interface Resource {
@@ -518,6 +671,16 @@ export declare interface ResourceIdentity {
518
671
  readonly tenantId?: string;
519
672
  }
520
673
 
674
+ /**
675
+ * Defines values for Role. \
676
+ * {@link KnownRole} can be used interchangeably with Role,
677
+ * this enum contains the known values that the service supports.
678
+ * ### Known values supported by the service
679
+ * **PRIMARY** \
680
+ * **SECONDARY**
681
+ */
682
+ export declare type Role = string;
683
+
521
684
  /**
522
685
  * Defines values for ScaleType. \
523
686
  * {@link KnownScaleType} can be used interchangeably with ScaleType,
@@ -527,6 +690,19 @@ export declare interface ResourceIdentity {
527
690
  */
528
691
  export declare type ScaleType = string;
529
692
 
693
+ export declare interface Schedule {
694
+ /** Enable or disable assessment schedule on SQL virtual machine. */
695
+ enable?: boolean;
696
+ /** Number of weeks to schedule between 2 assessment runs. Takes value from 1-6 */
697
+ weeklyInterval?: number;
698
+ /** Occurrence of the DayOfWeek day within a month to schedule assessment. Takes values: 1,2,3,4 and -1. Use -1 for last DayOfWeek day of the month */
699
+ monthlyOccurrence?: number;
700
+ /** Day of the week to run assessment. */
701
+ dayOfWeek?: AssessmentDayOfWeek;
702
+ /** Time of the day in HH:mm format. Eg. 17:30 */
703
+ startTime?: string;
704
+ }
705
+
530
706
  /** Set the connectivity, storage and workload settings. */
531
707
  export declare interface ServerConfigurationsManagementSettings {
532
708
  /** SQL connectivity type settings. */
@@ -537,6 +713,8 @@ export declare interface ServerConfigurationsManagementSettings {
537
713
  sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
538
714
  /** Additional SQL feature settings. */
539
715
  additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
716
+ /** SQL Instance settings. */
717
+ sqlInstanceSettings?: SQLInstanceSettings;
540
718
  }
541
719
 
542
720
  /** Set the access level and network port settings for SQL Server. */
@@ -564,6 +742,20 @@ export declare interface SqlConnectivityUpdateSettings {
564
742
  */
565
743
  export declare type SqlImageSku = string;
566
744
 
745
+ /** Set the server/instance-level settings for SQL Server. */
746
+ export declare interface SQLInstanceSettings {
747
+ /** SQL Server Collation. */
748
+ collation?: string;
749
+ /** SQL Server MAXDOP. */
750
+ maxDop?: number;
751
+ /** SQL Server Optimize for Adhoc workloads. */
752
+ isOptimizeForAdHocWorkloadsEnabled?: boolean;
753
+ /** SQL Server minimum memory. */
754
+ minServerMemoryMB?: number;
755
+ /** SQL Server maximum memory. */
756
+ maxServerMemoryMB?: number;
757
+ }
758
+
567
759
  /**
568
760
  * Defines values for SqlManagementMode. \
569
761
  * {@link KnownSqlManagementMode} can be used interchangeably with SqlManagementMode,
@@ -604,10 +796,32 @@ export declare interface SqlStorageUpdateSettings {
604
796
  diskConfigurationType?: DiskConfigurationType;
605
797
  }
606
798
 
799
+ export declare interface SQLTempDbSettings {
800
+ /** SQL Server default file size */
801
+ dataFileSize?: number;
802
+ /** SQL Server default file autoGrowth size */
803
+ dataGrowth?: number;
804
+ /** SQL Server default file size */
805
+ logFileSize?: number;
806
+ /** SQL Server default file autoGrowth size */
807
+ logGrowth?: number;
808
+ /** SQL Server default file count */
809
+ dataFileCount?: number;
810
+ /** Logical Unit Numbers for the disks. */
811
+ luns?: number[];
812
+ /** SQL Server default file path */
813
+ defaultFilePath?: string;
814
+ }
815
+
607
816
  /** A SQL virtual machine. */
608
817
  export declare type SqlVirtualMachine = TrackedResource & {
609
818
  /** Azure Active Directory identity of the server. */
610
819
  identity?: ResourceIdentity;
820
+ /**
821
+ * Metadata pertaining to creation and last modification of the resource.
822
+ * NOTE: This property will not be serialized. It can only be populated by the server.
823
+ */
824
+ readonly systemData?: SystemData;
611
825
  /** ARM Resource id of underlying virtual machine created from SQL marketplace image. */
612
826
  virtualMachineResourceId?: string;
613
827
  /**
@@ -637,10 +851,17 @@ export declare type SqlVirtualMachine = TrackedResource & {
637
851
  serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
638
852
  /** Storage Configuration Settings. */
639
853
  storageConfigurationSettings?: StorageConfigurationSettings;
854
+ /** Assessment Settings. */
855
+ assessmentSettings?: AssessmentSettings;
640
856
  };
641
857
 
642
858
  /** A SQL virtual machine group. */
643
859
  export declare type SqlVirtualMachineGroup = TrackedResource & {
860
+ /**
861
+ * Metadata pertaining to creation and last modification of the resource.
862
+ * NOTE: This property will not be serialized. It can only be populated by the server.
863
+ */
864
+ readonly systemData?: SystemData;
644
865
  /**
645
866
  * Provisioning state to track the async operation status.
646
867
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -857,6 +1078,8 @@ export declare class SqlVirtualMachineManagementClient extends coreClient.Servic
857
1078
  * @param options The parameter options
858
1079
  */
859
1080
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SqlVirtualMachineManagementClientOptionalParams);
1081
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1082
+ private addCustomApiVersionPolicy;
860
1083
  availabilityGroupListeners: AvailabilityGroupListeners;
861
1084
  operations: Operations;
862
1085
  sqlVirtualMachineGroups: SqlVirtualMachineGroups;
@@ -895,6 +1118,22 @@ export declare interface SqlVirtualMachines {
895
1118
  * @param options The options parameters.
896
1119
  */
897
1120
  listByResourceGroup(resourceGroupName: string, options?: SqlVirtualMachinesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachine>;
1121
+ /**
1122
+ * Uninstalls and reinstalls the SQL Iaas Extension.
1123
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
1124
+ * value from the Azure Resource Manager API or the portal.
1125
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
1126
+ * @param options The options parameters.
1127
+ */
1128
+ beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1129
+ /**
1130
+ * Uninstalls and reinstalls the SQL Iaas Extension.
1131
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
1132
+ * value from the Azure Resource Manager API or the portal.
1133
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
1134
+ * @param options The options parameters.
1135
+ */
1136
+ beginRedeployAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<void>;
898
1137
  /**
899
1138
  * Gets a SQL virtual machine.
900
1139
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
@@ -955,6 +1194,22 @@ export declare interface SqlVirtualMachines {
955
1194
  * @param options The options parameters.
956
1195
  */
957
1196
  beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SqlVirtualMachinesUpdateResponse>;
1197
+ /**
1198
+ * Starts Assessment on SQL virtual machine.
1199
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
1200
+ * value from the Azure Resource Manager API or the portal.
1201
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
1202
+ * @param options The options parameters.
1203
+ */
1204
+ beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1205
+ /**
1206
+ * Starts Assessment on SQL virtual machine.
1207
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
1208
+ * value from the Azure Resource Manager API or the portal.
1209
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
1210
+ * @param options The options parameters.
1211
+ */
1212
+ beginStartAssessmentAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<void>;
958
1213
  }
959
1214
 
960
1215
  /** Optional parameters. */
@@ -1027,6 +1282,22 @@ export declare interface SqlVirtualMachinesListOptionalParams extends coreClient
1027
1282
  /** Contains response data for the list operation. */
1028
1283
  export declare type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
1029
1284
 
1285
+ /** Optional parameters. */
1286
+ export declare interface SqlVirtualMachinesRedeployOptionalParams extends coreClient.OperationOptions {
1287
+ /** Delay to wait until next poll, in milliseconds. */
1288
+ updateIntervalInMs?: number;
1289
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1290
+ resumeFrom?: string;
1291
+ }
1292
+
1293
+ /** Optional parameters. */
1294
+ export declare interface SqlVirtualMachinesStartAssessmentOptionalParams extends coreClient.OperationOptions {
1295
+ /** Delay to wait until next poll, in milliseconds. */
1296
+ updateIntervalInMs?: number;
1297
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1298
+ resumeFrom?: string;
1299
+ }
1300
+
1030
1301
  /** Optional parameters. */
1031
1302
  export declare interface SqlVirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions {
1032
1303
  /** Delay to wait until next poll, in milliseconds. */
@@ -1080,7 +1351,9 @@ export declare interface StorageConfigurationSettings {
1080
1351
  /** SQL Server Log Storage Settings. */
1081
1352
  sqlLogSettings?: SQLStorageSettings;
1082
1353
  /** SQL Server TempDb Storage Settings. */
1083
- sqlTempDbSettings?: SQLStorageSettings;
1354
+ sqlTempDbSettings?: SQLTempDbSettings;
1355
+ /** SQL Server SystemDb Storage on DataPool if true. */
1356
+ sqlSystemDbOnDataDisk?: boolean;
1084
1357
  /** Disk configuration to apply to SQL Server. */
1085
1358
  diskConfigurationType?: DiskConfigurationType;
1086
1359
  /** Storage workload type. */
@@ -1098,6 +1371,22 @@ export declare interface StorageConfigurationSettings {
1098
1371
  */
1099
1372
  export declare type StorageWorkloadType = string;
1100
1373
 
1374
+ /** Metadata pertaining to creation and last modification of the resource. */
1375
+ export declare interface SystemData {
1376
+ /** The identity that created the resource. */
1377
+ createdBy?: string;
1378
+ /** The type of identity that created the resource. */
1379
+ createdByType?: CreatedByType;
1380
+ /** The timestamp of resource creation (UTC). */
1381
+ createdAt?: Date;
1382
+ /** The identity that last modified the resource. */
1383
+ lastModifiedBy?: string;
1384
+ /** The type of identity that last modified the resource. */
1385
+ lastModifiedByType?: CreatedByType;
1386
+ /** The timestamp of resource last modification (UTC) */
1387
+ lastModifiedAt?: Date;
1388
+ }
1389
+
1101
1390
  /** ARM tracked top level resource. */
1102
1391
  export declare type TrackedResource = Resource & {
1103
1392
  /** Resource location. */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.2"
8
+ "packageVersion": "7.18.11"
9
9
  }
10
10
  ]
11
11
  }