@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
package/rollup.config.js CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
14
14
 
15
15
  import nodeBuiltins from "builtin-modules";
16
16
 
17
- /**
18
- * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
- *
20
- * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
- * __exportStar downleveled helper function to declare its exports which confuses
22
- * rollup's automatic discovery mechanism.
23
- *
24
- * @returns an object reference that can be `...`'d into your cjs() configuration.
25
- */
26
- export function openTelemetryCommonJs() {
27
- const namedExports = {};
28
-
29
- for (const key of [
30
- "@opentelemetry/api",
31
- "@azure/core-tracing/node_modules/@opentelemetry/api"
32
- ]) {
33
- namedExports[key] = [
34
- "SpanKind",
35
- "TraceFlags",
36
- "getSpan",
37
- "setSpan",
38
- "SpanStatusCode",
39
- "getSpanContext",
40
- "setSpanContext"
41
- ];
42
- }
43
-
44
- const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
-
46
- for (const version of releasedOpenTelemetryVersions) {
47
- namedExports[
48
- // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
- `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
- ] = [
51
- "SpanKind",
52
- "TraceFlags",
53
- "getSpan",
54
- "setSpan",
55
- "StatusCode",
56
- "CanonicalCode",
57
- "getSpanContext",
58
- "setSpanContext"
59
- ];
60
- }
61
-
62
- return namedExports;
63
- }
64
-
65
17
  // #region Warning Handler
66
18
 
67
19
  /**
68
- * A function that can determine whether a rollupwarning should be ignored. If
20
+ * A function that can determine whether a rollup warning should be ignored. If
69
21
  * the function returns `true`, then the warning will not be displayed.
70
22
  */
71
23
 
72
- function ignoreNiseSinonEvalWarnings(warning) {
24
+ function ignoreNiseSinonEval(warning) {
73
25
  return (
74
26
  warning.code === "EVAL" &&
75
27
  warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
78
30
  );
79
31
  }
80
32
 
81
- function ignoreChaiCircularDependencyWarnings(warning) {
33
+ function ignoreChaiCircularDependency(warning) {
82
34
  return (
83
35
  warning.code === "CIRCULAR_DEPENDENCY" &&
84
36
  warning.importer && warning.importer.includes("node_modules/chai") === true
85
37
  );
86
38
  }
87
39
 
88
- const warningInhibitors = [
89
- ignoreChaiCircularDependencyWarnings,
90
- ignoreNiseSinonEvalWarnings
91
- ];
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
92
41
 
93
42
  /**
94
43
  * Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
122
71
  nodeResolve({
123
72
  mainFields: ["module", "browser"]
124
73
  }),
125
- cjs({
126
- namedExports: {
127
- // Chai's strange internal architecture makes it impossible to statically
128
- // analyze its exports.
129
- chai: [
130
- "version",
131
- "use",
132
- "util",
133
- "config",
134
- "expect",
135
- "should",
136
- "assert"
137
- ],
138
- ...openTelemetryCommonJs()
139
- }
140
- }),
74
+ cjs(),
141
75
  json(),
142
76
  sourcemaps()
143
77
  //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173
107
  ],
174
108
  output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
109
  preserveSymlinks: false,
176
- plugins: [sourcemaps(), nodeResolve(), cjs()]
110
+ plugins: [sourcemaps(), nodeResolve()]
177
111
  };
178
112
 
179
113
  const config = [baseConfig];
@@ -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?: AutoBackupDaysOfWeek[];
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?: AssessmentDayOfWeek;
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. */
@@ -334,7 +435,7 @@ export interface SqlVirtualMachineUpdate {
334
435
  }
335
436
 
336
437
  /** ARM proxy resource. */
337
- export type ProxyResource = Resource & {};
438
+ export type ProxyResource = Resource;
338
439
 
339
440
  /** ARM tracked top level resource. */
340
441
  export type TrackedResource = Resource & {
@@ -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 AutoBackupDaysOfWeek} that the service accepts. */
816
+ export enum KnownAutoBackupDaysOfWeek {
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 AutoBackupDaysOfWeek. \
828
+ * {@link KnownAutoBackupDaysOfWeek} can be used interchangeably with AutoBackupDaysOfWeek,
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 AutoBackupDaysOfWeek = string;
840
+
607
841
  /** Known values of {@link ConnectivityType} that the service accepts. */
608
842
  export enum KnownConnectivityType {
609
843
  Local = "LOCAL",
@@ -677,6 +911,16 @@ export enum KnownStorageWorkloadType {
677
911
  export type StorageWorkloadType = string;
678
912
  /** Defines values for DayOfWeek. */
679
913
  export type DayOfWeek =
914
+ | "Everyday"
915
+ | "Monday"
916
+ | "Tuesday"
917
+ | "Wednesday"
918
+ | "Thursday"
919
+ | "Friday"
920
+ | "Saturday"
921
+ | "Sunday";
922
+ /** Defines values for AssessmentDayOfWeek. */
923
+ export type AssessmentDayOfWeek =
680
924
  | "Monday"
681
925
  | "Tuesday"
682
926
  | "Wednesday"
@@ -687,7 +931,10 @@ export type DayOfWeek =
687
931
 
688
932
  /** Optional parameters. */
689
933
  export interface AvailabilityGroupListenersGetOptionalParams
690
- extends coreClient.OperationOptions {}
934
+ extends coreClient.OperationOptions {
935
+ /** The child resources to include in the response. */
936
+ expand?: string;
937
+ }
691
938
 
692
939
  /** Contains response data for the get operation. */
693
940
  export type AvailabilityGroupListenersGetResponse = AvailabilityGroupListener;
@@ -823,6 +1070,15 @@ export interface SqlVirtualMachinesListOptionalParams
823
1070
  /** Contains response data for the list operation. */
824
1071
  export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
825
1072
 
1073
+ /** Optional parameters. */
1074
+ export interface SqlVirtualMachinesRedeployOptionalParams
1075
+ extends coreClient.OperationOptions {
1076
+ /** Delay to wait until next poll, in milliseconds. */
1077
+ updateIntervalInMs?: number;
1078
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1079
+ resumeFrom?: string;
1080
+ }
1081
+
826
1082
  /** Optional parameters. */
827
1083
  export interface SqlVirtualMachinesGetOptionalParams
828
1084
  extends coreClient.OperationOptions {
@@ -873,6 +1129,15 @@ export interface SqlVirtualMachinesListByResourceGroupOptionalParams
873
1129
  /** Contains response data for the listByResourceGroup operation. */
874
1130
  export type SqlVirtualMachinesListByResourceGroupResponse = SqlVirtualMachineListResult;
875
1131
 
1132
+ /** Optional parameters. */
1133
+ export interface SqlVirtualMachinesStartAssessmentOptionalParams
1134
+ extends coreClient.OperationOptions {
1135
+ /** Delay to wait until next poll, in milliseconds. */
1136
+ updateIntervalInMs?: number;
1137
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1138
+ resumeFrom?: string;
1139
+ }
1140
+
876
1141
  /** Optional parameters. */
877
1142
  export interface SqlVirtualMachinesListBySqlVmGroupNextOptionalParams
878
1143
  extends coreClient.OperationOptions {}