@azure/arm-sqlvirtualmachine 5.0.0-beta.1 → 5.0.0-beta.4

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 (53) hide show
  1. package/CHANGELOG.md +7 -10
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +689 -90
  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/src/models/index.d.ts +233 -2
  9. package/dist-esm/src/models/index.d.ts.map +1 -1
  10. package/dist-esm/src/models/index.js +45 -0
  11. package/dist-esm/src/models/index.js.map +1 -1
  12. package/dist-esm/src/models/mappers.d.ts +7 -0
  13. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  14. package/dist-esm/src/models/mappers.js +333 -3
  15. package/dist-esm/src/models/mappers.js.map +1 -1
  16. package/dist-esm/src/models/parameters.d.ts +1 -1
  17. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  18. package/dist-esm/src/models/parameters.js +10 -10
  19. package/dist-esm/src/models/parameters.js.map +1 -1
  20. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
  21. package/dist-esm/src/operations/availabilityGroupListeners.js +7 -3
  22. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
  23. package/dist-esm/src/operations/operations.d.ts +2 -2
  24. package/dist-esm/src/operations/operations.js +2 -2
  25. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
  26. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
  27. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
  28. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +33 -1
  29. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  30. package/dist-esm/src/operations/sqlVirtualMachines.js +142 -4
  31. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  32. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  33. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +33 -1
  34. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  35. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  36. package/dist-esm/src/sqlVirtualMachineManagementClient.js +21 -3
  37. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  38. package/package.json +31 -13
  39. package/review/arm-sqlvirtualmachine.api.md +171 -1
  40. package/rollup.config.js +6 -72
  41. package/src/models/index.ts +258 -3
  42. package/src/models/mappers.ts +343 -1
  43. package/src/models/parameters.ts +11 -11
  44. package/src/operations/availabilityGroupListeners.ts +7 -3
  45. package/src/operations/operations.ts +2 -2
  46. package/src/operations/sqlVirtualMachineGroups.ts +9 -3
  47. package/src/operations/sqlVirtualMachines.ts +208 -4
  48. package/src/operationsInterfaces/operations.ts +1 -1
  49. package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
  50. package/src/sqlVirtualMachineManagementClient.ts +28 -3
  51. package/tsconfig.json +12 -4
  52. package/types/arm-sqlvirtualmachine.d.ts +287 -3
  53. package/types/tsdoc-metadata.json +1 -1
@@ -30,6 +30,45 @@ export interface PrivateIPAddress {
30
30
  subnetResourceId?: string;
31
31
  }
32
32
 
33
+ /** Availability group configuration. */
34
+ export interface AgConfiguration {
35
+ /**
36
+ * Replica configurations.
37
+ * NOTE: This property will not be serialized. It can only be populated by the server.
38
+ */
39
+ readonly replicas?: AgReplica[];
40
+ }
41
+
42
+ /** Availability group replica configuration. */
43
+ export interface AgReplica {
44
+ /** Sql VirtualMachine Instance Id. */
45
+ sqlVirtualMachineInstanceId?: string;
46
+ /** Replica Role in availability group. */
47
+ role?: Role;
48
+ /** Replica commit mode in availability group. */
49
+ commit?: Commit;
50
+ /** Replica failover mode in availability group. */
51
+ failover?: Failover;
52
+ /** Replica readable secondary mode in availability group. */
53
+ readableSecondary?: ReadableSecondary;
54
+ }
55
+
56
+ /** Metadata pertaining to creation and last modification of the resource. */
57
+ export interface SystemData {
58
+ /** The identity that created the resource. */
59
+ createdBy?: string;
60
+ /** The type of identity that created the resource. */
61
+ createdByType?: CreatedByType;
62
+ /** The timestamp of resource creation (UTC). */
63
+ createdAt?: Date;
64
+ /** The identity that last modified the resource. */
65
+ lastModifiedBy?: string;
66
+ /** The type of identity that last modified the resource. */
67
+ lastModifiedByType?: CreatedByType;
68
+ /** The timestamp of resource last modification (UTC) */
69
+ lastModifiedAt?: Date;
70
+ }
71
+
33
72
  /** ARM resource. */
34
73
  export interface Resource {
35
74
  /**
@@ -223,10 +262,12 @@ export interface AutoBackupSettings {
223
262
  enable?: boolean;
224
263
  /** Enable or disable encryption for backup on SQL virtual machine. */
225
264
  enableEncryption?: boolean;
226
- /** Retention period of backup: 1-30 days. */
265
+ /** Retention period of backup: 1-90 days. */
227
266
  retentionPeriod?: number;
228
267
  /** Storage account url where backup will be taken to. */
229
268
  storageAccountUrl?: string;
269
+ /** Storage container name where backup will be taken to. */
270
+ storageContainerName?: string;
230
271
  /** Storage account key where backup will be taken to. */
231
272
  storageAccessKey?: string;
232
273
  /** Password for encryption on backup. */
@@ -237,6 +278,8 @@ export interface AutoBackupSettings {
237
278
  backupScheduleType?: BackupScheduleType;
238
279
  /** Frequency of full backups. In both cases, full backups begin during the next scheduled time window. */
239
280
  fullBackupFrequency?: FullBackupFrequencyType;
281
+ /** Days of the week for the backups when FullBackupFrequency is set to Weekly. */
282
+ daysOfWeek?: DaysOfWeek[];
240
283
  /** Start time of a given day during which full backups can take place. 0-23 hours. */
241
284
  fullBackupStartTime?: number;
242
285
  /** Duration of the time window of a given day during which full backups can take place. 1-23 hours. */
@@ -269,6 +312,8 @@ export interface ServerConfigurationsManagementSettings {
269
312
  sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
270
313
  /** Additional SQL feature settings. */
271
314
  additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
315
+ /** SQL Instance settings. */
316
+ sqlInstanceSettings?: SQLInstanceSettings;
272
317
  }
273
318
 
274
319
  /** Set the access level and network port settings for SQL Server. */
@@ -305,6 +350,20 @@ export interface AdditionalFeaturesServerConfigurations {
305
350
  isRServicesEnabled?: boolean;
306
351
  }
307
352
 
353
+ /** Set the server/instance-level settings for SQL Server. */
354
+ export interface SQLInstanceSettings {
355
+ /** SQL Server Collation. */
356
+ collation?: string;
357
+ /** SQL Server MAXDOP. */
358
+ maxDop?: number;
359
+ /** SQL Server Optimize for Adhoc workloads. */
360
+ isOptimizeForAdHocWorkloadsEnabled?: boolean;
361
+ /** SQL Server minimum memory. */
362
+ minServerMemoryMB?: number;
363
+ /** SQL Server maximum memory. */
364
+ maxServerMemoryMB?: number;
365
+ }
366
+
308
367
  /** Storage Configurations for SQL Data, Log and TempDb. */
309
368
  export interface StorageConfigurationSettings {
310
369
  /** SQL Server Data Storage Settings. */
@@ -312,7 +371,9 @@ export interface StorageConfigurationSettings {
312
371
  /** SQL Server Log Storage Settings. */
313
372
  sqlLogSettings?: SQLStorageSettings;
314
373
  /** SQL Server TempDb Storage Settings. */
315
- sqlTempDbSettings?: SQLStorageSettings;
374
+ sqlTempDbSettings?: SQLTempDbSettings;
375
+ /** SQL Server SystemDb Storage on DataPool if true. */
376
+ sqlSystemDbOnDataDisk?: boolean;
316
377
  /** Disk configuration to apply to SQL Server. */
317
378
  diskConfigurationType?: DiskConfigurationType;
318
379
  /** Storage workload type. */
@@ -327,6 +388,46 @@ export interface SQLStorageSettings {
327
388
  defaultFilePath?: string;
328
389
  }
329
390
 
391
+ export interface SQLTempDbSettings {
392
+ /** SQL Server default file size */
393
+ dataFileSize?: number;
394
+ /** SQL Server default file autoGrowth size */
395
+ dataGrowth?: number;
396
+ /** SQL Server default file size */
397
+ logFileSize?: number;
398
+ /** SQL Server default file autoGrowth size */
399
+ logGrowth?: number;
400
+ /** SQL Server default file count */
401
+ dataFileCount?: number;
402
+ /** Logical Unit Numbers for the disks. */
403
+ luns?: number[];
404
+ /** SQL Server default file path */
405
+ defaultFilePath?: string;
406
+ }
407
+
408
+ /** Configure assessment for databases in your SQL virtual machine. */
409
+ export interface AssessmentSettings {
410
+ /** Enable or disable assessment feature on SQL virtual machine. */
411
+ enable?: boolean;
412
+ /** Run assessment immediately on SQL virtual machine. */
413
+ runImmediately?: boolean;
414
+ /** Schedule for Assessment. */
415
+ schedule?: Schedule;
416
+ }
417
+
418
+ export interface Schedule {
419
+ /** Enable or disable assessment schedule on SQL virtual machine. */
420
+ enable?: boolean;
421
+ /** Number of weeks to schedule between 2 assessment runs. Takes value from 1-6 */
422
+ weeklyInterval?: number;
423
+ /** 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 */
424
+ monthlyOccurrence?: number;
425
+ /** Day of the week to run assessment. */
426
+ dayOfWeek?: DayOfWeek;
427
+ /** Time of the day in HH:mm format. Eg. 17:30 */
428
+ startTime?: string;
429
+ }
430
+
330
431
  /** An update to a SQL virtual machine. */
331
432
  export interface SqlVirtualMachineUpdate {
332
433
  /** Resource tags. */
@@ -346,6 +447,11 @@ export type TrackedResource = Resource & {
346
447
 
347
448
  /** A SQL Server availability group listener. */
348
449
  export type AvailabilityGroupListener = ProxyResource & {
450
+ /**
451
+ * Metadata pertaining to creation and last modification of the resource.
452
+ * NOTE: This property will not be serialized. It can only be populated by the server.
453
+ */
454
+ readonly systemData?: SystemData;
349
455
  /**
350
456
  * Provisioning state to track the async operation status.
351
457
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -359,10 +465,17 @@ export type AvailabilityGroupListener = ProxyResource & {
359
465
  createDefaultAvailabilityGroupIfNotExist?: boolean;
360
466
  /** Listener port. */
361
467
  port?: number;
468
+ /** Availability Group configuration. */
469
+ availabilityGroupConfiguration?: AgConfiguration;
362
470
  };
363
471
 
364
472
  /** A SQL virtual machine group. */
365
473
  export type SqlVirtualMachineGroup = TrackedResource & {
474
+ /**
475
+ * Metadata pertaining to creation and last modification of the resource.
476
+ * NOTE: This property will not be serialized. It can only be populated by the server.
477
+ */
478
+ readonly systemData?: SystemData;
366
479
  /**
367
480
  * Provisioning state to track the async operation status.
368
481
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -395,6 +508,11 @@ export type SqlVirtualMachineGroup = TrackedResource & {
395
508
  export type SqlVirtualMachine = TrackedResource & {
396
509
  /** Azure Active Directory identity of the server. */
397
510
  identity?: ResourceIdentity;
511
+ /**
512
+ * Metadata pertaining to creation and last modification of the resource.
513
+ * NOTE: This property will not be serialized. It can only be populated by the server.
514
+ */
515
+ readonly systemData?: SystemData;
398
516
  /** ARM Resource id of underlying virtual machine created from SQL marketplace image. */
399
517
  virtualMachineResourceId?: string;
400
518
  /**
@@ -424,8 +542,96 @@ export type SqlVirtualMachine = TrackedResource & {
424
542
  serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
425
543
  /** Storage Configuration Settings. */
426
544
  storageConfigurationSettings?: StorageConfigurationSettings;
545
+ /** Assessment Settings. */
546
+ assessmentSettings?: AssessmentSettings;
427
547
  };
428
548
 
549
+ /** Known values of {@link Role} that the service accepts. */
550
+ export enum KnownRole {
551
+ Primary = "PRIMARY",
552
+ Secondary = "SECONDARY"
553
+ }
554
+
555
+ /**
556
+ * Defines values for Role. \
557
+ * {@link KnownRole} can be used interchangeably with Role,
558
+ * this enum contains the known values that the service supports.
559
+ * ### Known values supported by the service
560
+ * **PRIMARY** \
561
+ * **SECONDARY**
562
+ */
563
+ export type Role = string;
564
+
565
+ /** Known values of {@link Commit} that the service accepts. */
566
+ export enum KnownCommit {
567
+ SynchronousCommit = "SYNCHRONOUS_COMMIT",
568
+ AsynchronousCommit = "ASYNCHRONOUS_COMMIT"
569
+ }
570
+
571
+ /**
572
+ * Defines values for Commit. \
573
+ * {@link KnownCommit} can be used interchangeably with Commit,
574
+ * this enum contains the known values that the service supports.
575
+ * ### Known values supported by the service
576
+ * **SYNCHRONOUS_COMMIT** \
577
+ * **ASYNCHRONOUS_COMMIT**
578
+ */
579
+ export type Commit = string;
580
+
581
+ /** Known values of {@link Failover} that the service accepts. */
582
+ export enum KnownFailover {
583
+ Automatic = "AUTOMATIC",
584
+ Manual = "MANUAL"
585
+ }
586
+
587
+ /**
588
+ * Defines values for Failover. \
589
+ * {@link KnownFailover} can be used interchangeably with Failover,
590
+ * this enum contains the known values that the service supports.
591
+ * ### Known values supported by the service
592
+ * **AUTOMATIC** \
593
+ * **MANUAL**
594
+ */
595
+ export type Failover = string;
596
+
597
+ /** Known values of {@link ReadableSecondary} that the service accepts. */
598
+ export enum KnownReadableSecondary {
599
+ NO = "NO",
600
+ ALL = "ALL",
601
+ ReadOnly = "READ_ONLY"
602
+ }
603
+
604
+ /**
605
+ * Defines values for ReadableSecondary. \
606
+ * {@link KnownReadableSecondary} can be used interchangeably with ReadableSecondary,
607
+ * this enum contains the known values that the service supports.
608
+ * ### Known values supported by the service
609
+ * **NO** \
610
+ * **ALL** \
611
+ * **READ_ONLY**
612
+ */
613
+ export type ReadableSecondary = string;
614
+
615
+ /** Known values of {@link CreatedByType} that the service accepts. */
616
+ export enum KnownCreatedByType {
617
+ User = "User",
618
+ Application = "Application",
619
+ ManagedIdentity = "ManagedIdentity",
620
+ Key = "Key"
621
+ }
622
+
623
+ /**
624
+ * Defines values for CreatedByType. \
625
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
626
+ * this enum contains the known values that the service supports.
627
+ * ### Known values supported by the service
628
+ * **User** \
629
+ * **Application** \
630
+ * **ManagedIdentity** \
631
+ * **Key**
632
+ */
633
+ export type CreatedByType = string;
634
+
429
635
  /** Known values of {@link OperationOrigin} that the service accepts. */
430
636
  export enum KnownOperationOrigin {
431
637
  User = "user",
@@ -502,6 +708,7 @@ export type ClusterConfiguration = string;
502
708
 
503
709
  /** Known values of {@link IdentityType} that the service accepts. */
504
710
  export enum KnownIdentityType {
711
+ None = "None",
505
712
  SystemAssigned = "SystemAssigned"
506
713
  }
507
714
 
@@ -510,6 +717,7 @@ export enum KnownIdentityType {
510
717
  * {@link KnownIdentityType} can be used interchangeably with IdentityType,
511
718
  * this enum contains the known values that the service supports.
512
719
  * ### Known values supported by the service
720
+ * **None** \
513
721
  * **SystemAssigned**
514
722
  */
515
723
  export type IdentityType = string;
@@ -604,6 +812,32 @@ export enum KnownFullBackupFrequencyType {
604
812
  */
605
813
  export type FullBackupFrequencyType = string;
606
814
 
815
+ /** Known values of {@link DaysOfWeek} that the service accepts. */
816
+ export enum KnownDaysOfWeek {
817
+ Monday = "Monday",
818
+ Tuesday = "Tuesday",
819
+ Wednesday = "Wednesday",
820
+ Thursday = "Thursday",
821
+ Friday = "Friday",
822
+ Saturday = "Saturday",
823
+ Sunday = "Sunday"
824
+ }
825
+
826
+ /**
827
+ * Defines values for DaysOfWeek. \
828
+ * {@link KnownDaysOfWeek} can be used interchangeably with DaysOfWeek,
829
+ * this enum contains the known values that the service supports.
830
+ * ### Known values supported by the service
831
+ * **Monday** \
832
+ * **Tuesday** \
833
+ * **Wednesday** \
834
+ * **Thursday** \
835
+ * **Friday** \
836
+ * **Saturday** \
837
+ * **Sunday**
838
+ */
839
+ export type DaysOfWeek = string;
840
+
607
841
  /** Known values of {@link ConnectivityType} that the service accepts. */
608
842
  export enum KnownConnectivityType {
609
843
  Local = "LOCAL",
@@ -687,7 +921,10 @@ export type DayOfWeek =
687
921
 
688
922
  /** Optional parameters. */
689
923
  export interface AvailabilityGroupListenersGetOptionalParams
690
- extends coreClient.OperationOptions {}
924
+ extends coreClient.OperationOptions {
925
+ /** The child resources to include in the response. */
926
+ expand?: string;
927
+ }
691
928
 
692
929
  /** Contains response data for the get operation. */
693
930
  export type AvailabilityGroupListenersGetResponse = AvailabilityGroupListener;
@@ -823,6 +1060,15 @@ export interface SqlVirtualMachinesListOptionalParams
823
1060
  /** Contains response data for the list operation. */
824
1061
  export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
825
1062
 
1063
+ /** Optional parameters. */
1064
+ export interface SqlVirtualMachinesRedeployOptionalParams
1065
+ extends coreClient.OperationOptions {
1066
+ /** Delay to wait until next poll, in milliseconds. */
1067
+ updateIntervalInMs?: number;
1068
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1069
+ resumeFrom?: string;
1070
+ }
1071
+
826
1072
  /** Optional parameters. */
827
1073
  export interface SqlVirtualMachinesGetOptionalParams
828
1074
  extends coreClient.OperationOptions {
@@ -873,6 +1119,15 @@ export interface SqlVirtualMachinesListByResourceGroupOptionalParams
873
1119
  /** Contains response data for the listByResourceGroup operation. */
874
1120
  export type SqlVirtualMachinesListByResourceGroupResponse = SqlVirtualMachineListResult;
875
1121
 
1122
+ /** Optional parameters. */
1123
+ export interface SqlVirtualMachinesStartAssessmentOptionalParams
1124
+ extends coreClient.OperationOptions {
1125
+ /** Delay to wait until next poll, in milliseconds. */
1126
+ updateIntervalInMs?: number;
1127
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1128
+ resumeFrom?: string;
1129
+ }
1130
+
876
1131
  /** Optional parameters. */
877
1132
  export interface SqlVirtualMachinesListBySqlVmGroupNextOptionalParams
878
1133
  extends coreClient.OperationOptions {}