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

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 (36) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/index.js +276 -94
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/models/index.d.ts +146 -34
  7. package/dist-esm/src/models/index.d.ts.map +1 -1
  8. package/dist-esm/src/models/index.js +81 -11
  9. package/dist-esm/src/models/index.js.map +1 -1
  10. package/dist-esm/src/models/mappers.d.ts +1 -0
  11. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  12. package/dist-esm/src/models/mappers.js +79 -1
  13. package/dist-esm/src/models/mappers.js.map +1 -1
  14. package/dist-esm/src/models/parameters.js +1 -1
  15. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +17 -17
  16. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  17. package/dist-esm/src/operations/sqlVirtualMachines.js +66 -66
  18. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  19. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +17 -17
  20. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  21. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -0
  22. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  23. package/dist-esm/src/sqlVirtualMachineManagementClient.js +48 -14
  24. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  25. package/dist-esm/test/sampleTest.js +11 -13
  26. package/dist-esm/test/sampleTest.js.map +1 -1
  27. package/package.json +12 -9
  28. package/review/arm-sqlvirtualmachine.api.md +83 -103
  29. package/src/models/index.ts +159 -35
  30. package/src/models/mappers.ts +84 -1
  31. package/src/models/parameters.ts +1 -1
  32. package/src/operations/sqlVirtualMachines.ts +99 -99
  33. package/src/operationsInterfaces/sqlVirtualMachines.ts +26 -26
  34. package/src/sqlVirtualMachineManagementClient.ts +58 -17
  35. package/types/arm-sqlvirtualmachine.d.ts +184 -64
  36. package/types/tsdoc-metadata.json +1 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for SqlVirtualMachineManagementClient.",
6
- "version": "5.0.0-beta.4",
6
+ "version": "5.0.0-beta.6",
7
7
  "engines": {
8
8
  "node": ">=12.0.0"
9
9
  },
@@ -28,7 +28,7 @@
28
28
  "module": "./dist-esm/src/index.js",
29
29
  "types": "./types/arm-sqlvirtualmachine.d.ts",
30
30
  "devDependencies": {
31
- "@microsoft/api-extractor": "7.18.11",
31
+ "@microsoft/api-extractor": "^7.31.1",
32
32
  "@rollup/plugin-commonjs": "^21.0.1",
33
33
  "@rollup/plugin-json": "^4.1.0",
34
34
  "@rollup/plugin-multi-entry": "^4.1.0",
@@ -36,13 +36,17 @@
36
36
  "mkdirp": "^1.0.4",
37
37
  "rollup": "^2.66.1",
38
38
  "rollup-plugin-sourcemaps": "^0.6.3",
39
- "typescript": "~4.2.0",
39
+ "typescript": "~4.6.0",
40
40
  "uglify-js": "^3.4.9",
41
41
  "rimraf": "^3.0.0",
42
42
  "@azure/identity": "^2.0.1",
43
- "@azure-tools/test-recorder": "^1.0.0",
43
+ "@azure-tools/test-recorder": "^2.0.0",
44
+ "@azure-tools/test-credential": "^1.0.0",
44
45
  "mocha": "^7.1.1",
45
- "cross-env": "^7.0.2"
46
+ "@types/chai": "^4.2.8",
47
+ "chai": "^4.2.0",
48
+ "cross-env": "^7.0.2",
49
+ "@azure/dev-tool": "^1.0.0"
46
50
  },
47
51
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sqlvirtualmachine/arm-sqlvirtualmachine",
48
52
  "repository": {
@@ -93,9 +97,8 @@
93
97
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
94
98
  "unit-test:browser": "echo skipped",
95
99
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
96
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
97
- "integration-test:browser": "echo skipped",
98
- "docs": "echo skipped"
100
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
101
+ "integration-test:browser": "echo skipped"
99
102
  },
100
103
  "sideEffects": false,
101
104
  "//metadata": {
@@ -107,4 +110,4 @@
107
110
  ]
108
111
  },
109
112
  "autoPublish": true
110
- }
113
+ }
@@ -17,7 +17,7 @@ export interface AdditionalFeaturesServerConfigurations {
17
17
 
18
18
  // @public
19
19
  export interface AgConfiguration {
20
- readonly replicas?: AgReplica[];
20
+ replicas?: AgReplica[];
21
21
  }
22
22
 
23
23
  // @public
@@ -29,6 +29,9 @@ export interface AgReplica {
29
29
  sqlVirtualMachineInstanceId?: string;
30
30
  }
31
31
 
32
+ // @public
33
+ export type AssessmentDayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
34
+
32
35
  // @public
33
36
  export interface AssessmentSettings {
34
37
  enable?: boolean;
@@ -36,11 +39,14 @@ export interface AssessmentSettings {
36
39
  schedule?: Schedule;
37
40
  }
38
41
 
42
+ // @public
43
+ export type AutoBackupDaysOfWeek = string;
44
+
39
45
  // @public
40
46
  export interface AutoBackupSettings {
41
47
  backupScheduleType?: BackupScheduleType;
42
48
  backupSystemDbs?: boolean;
43
- daysOfWeek?: DaysOfWeek[];
49
+ daysOfWeek?: AutoBackupDaysOfWeek[];
44
50
  enable?: boolean;
45
51
  enableEncryption?: boolean;
46
52
  fullBackupFrequency?: FullBackupFrequencyType;
@@ -63,15 +69,16 @@ export interface AutoPatchingSettings {
63
69
  }
64
70
 
65
71
  // @public
66
- export type AvailabilityGroupListener = ProxyResource & {
67
- readonly systemData?: SystemData;
68
- readonly provisioningState?: string;
72
+ export interface AvailabilityGroupListener extends ProxyResource {
73
+ availabilityGroupConfiguration?: AgConfiguration;
69
74
  availabilityGroupName?: string;
70
- loadBalancerConfigurations?: LoadBalancerConfiguration[];
71
75
  createDefaultAvailabilityGroupIfNotExist?: boolean;
76
+ loadBalancerConfigurations?: LoadBalancerConfiguration[];
77
+ multiSubnetIpConfigurations?: MultiSubnetIpConfiguration[];
72
78
  port?: number;
73
- availabilityGroupConfiguration?: AgConfiguration;
74
- };
79
+ readonly provisioningState?: string;
80
+ readonly systemData?: SystemData;
81
+ }
75
82
 
76
83
  // @public
77
84
  export interface AvailabilityGroupListenerListResult {
@@ -135,6 +142,9 @@ export type ClusterConfiguration = string;
135
142
  // @public
136
143
  export type ClusterManagerType = string;
137
144
 
145
+ // @public
146
+ export type ClusterSubnetType = string;
147
+
138
148
  // @public
139
149
  export type Commit = string;
140
150
 
@@ -145,10 +155,7 @@ export type ConnectivityType = string;
145
155
  export type CreatedByType = string;
146
156
 
147
157
  // @public
148
- export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
149
-
150
- // @public
151
- export type DaysOfWeek = string;
158
+ export type DayOfWeek = "Everyday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
152
159
 
153
160
  // @public
154
161
  export type DiskConfigurationType = string;
@@ -171,202 +178,160 @@ export interface KeyVaultCredentialSettings {
171
178
  servicePrincipalSecret?: string;
172
179
  }
173
180
 
181
+ // @public
182
+ export enum KnownAutoBackupDaysOfWeek {
183
+ Friday = "Friday",
184
+ Monday = "Monday",
185
+ Saturday = "Saturday",
186
+ Sunday = "Sunday",
187
+ Thursday = "Thursday",
188
+ Tuesday = "Tuesday",
189
+ Wednesday = "Wednesday"
190
+ }
191
+
174
192
  // @public
175
193
  export enum KnownBackupScheduleType {
176
- // (undocumented)
177
194
  Automated = "Automated",
178
- // (undocumented)
179
195
  Manual = "Manual"
180
196
  }
181
197
 
182
198
  // @public
183
199
  export enum KnownClusterConfiguration {
184
- // (undocumented)
185
200
  Domainful = "Domainful"
186
201
  }
187
202
 
188
203
  // @public
189
204
  export enum KnownClusterManagerType {
190
- // (undocumented)
191
205
  Wsfc = "WSFC"
192
206
  }
193
207
 
208
+ // @public
209
+ export enum KnownClusterSubnetType {
210
+ MultiSubnet = "MultiSubnet",
211
+ SingleSubnet = "SingleSubnet"
212
+ }
213
+
194
214
  // @public
195
215
  export enum KnownCommit {
196
- // (undocumented)
197
216
  AsynchronousCommit = "ASYNCHRONOUS_COMMIT",
198
- // (undocumented)
199
217
  SynchronousCommit = "SYNCHRONOUS_COMMIT"
200
218
  }
201
219
 
202
220
  // @public
203
221
  export enum KnownConnectivityType {
204
- // (undocumented)
205
222
  Local = "LOCAL",
206
- // (undocumented)
207
223
  Private = "PRIVATE",
208
- // (undocumented)
209
224
  Public = "PUBLIC"
210
225
  }
211
226
 
212
227
  // @public
213
228
  export enum KnownCreatedByType {
214
- // (undocumented)
215
229
  Application = "Application",
216
- // (undocumented)
217
230
  Key = "Key",
218
- // (undocumented)
219
231
  ManagedIdentity = "ManagedIdentity",
220
- // (undocumented)
221
232
  User = "User"
222
233
  }
223
234
 
224
- // @public
225
- export enum KnownDaysOfWeek {
226
- // (undocumented)
227
- Friday = "Friday",
228
- // (undocumented)
229
- Monday = "Monday",
230
- // (undocumented)
231
- Saturday = "Saturday",
232
- // (undocumented)
233
- Sunday = "Sunday",
234
- // (undocumented)
235
- Thursday = "Thursday",
236
- // (undocumented)
237
- Tuesday = "Tuesday",
238
- // (undocumented)
239
- Wednesday = "Wednesday"
240
- }
241
-
242
235
  // @public
243
236
  export enum KnownDiskConfigurationType {
244
- // (undocumented)
245
237
  ADD = "ADD",
246
- // (undocumented)
247
238
  Extend = "EXTEND",
248
- // (undocumented)
249
239
  NEW = "NEW"
250
240
  }
251
241
 
252
242
  // @public
253
243
  export enum KnownFailover {
254
- // (undocumented)
255
244
  Automatic = "AUTOMATIC",
256
- // (undocumented)
257
245
  Manual = "MANUAL"
258
246
  }
259
247
 
260
248
  // @public
261
249
  export enum KnownFullBackupFrequencyType {
262
- // (undocumented)
263
250
  Daily = "Daily",
264
- // (undocumented)
265
251
  Weekly = "Weekly"
266
252
  }
267
253
 
268
254
  // @public
269
255
  export enum KnownIdentityType {
270
- // (undocumented)
271
256
  None = "None",
272
- // (undocumented)
273
257
  SystemAssigned = "SystemAssigned"
274
258
  }
275
259
 
260
+ // @public
261
+ export enum KnownLeastPrivilegeMode {
262
+ Enabled = "Enabled"
263
+ }
264
+
276
265
  // @public
277
266
  export enum KnownOperationOrigin {
278
- // (undocumented)
279
267
  System = "system",
280
- // (undocumented)
281
268
  User = "user"
282
269
  }
283
270
 
284
271
  // @public
285
272
  export enum KnownReadableSecondary {
286
- // (undocumented)
287
273
  ALL = "ALL",
288
- // (undocumented)
289
274
  NO = "NO",
290
- // (undocumented)
291
275
  ReadOnly = "READ_ONLY"
292
276
  }
293
277
 
294
278
  // @public
295
279
  export enum KnownRole {
296
- // (undocumented)
297
280
  Primary = "PRIMARY",
298
- // (undocumented)
299
281
  Secondary = "SECONDARY"
300
282
  }
301
283
 
302
284
  // @public
303
285
  export enum KnownScaleType {
304
- // (undocumented)
305
286
  HA = "HA"
306
287
  }
307
288
 
308
289
  // @public
309
290
  export enum KnownSqlImageSku {
310
- // (undocumented)
311
291
  Developer = "Developer",
312
- // (undocumented)
313
292
  Enterprise = "Enterprise",
314
- // (undocumented)
315
293
  Express = "Express",
316
- // (undocumented)
317
294
  Standard = "Standard",
318
- // (undocumented)
319
295
  Web = "Web"
320
296
  }
321
297
 
322
298
  // @public
323
299
  export enum KnownSqlManagementMode {
324
- // (undocumented)
325
300
  Full = "Full",
326
- // (undocumented)
327
301
  LightWeight = "LightWeight",
328
- // (undocumented)
329
302
  NoAgent = "NoAgent"
330
303
  }
331
304
 
332
305
  // @public
333
306
  export enum KnownSqlServerLicenseType {
334
- // (undocumented)
335
307
  Ahub = "AHUB",
336
- // (undocumented)
337
308
  DR = "DR",
338
- // (undocumented)
339
309
  Payg = "PAYG"
340
310
  }
341
311
 
342
312
  // @public
343
313
  export enum KnownSqlVmGroupImageSku {
344
- // (undocumented)
345
314
  Developer = "Developer",
346
- // (undocumented)
347
315
  Enterprise = "Enterprise"
348
316
  }
349
317
 
350
318
  // @public
351
319
  export enum KnownSqlWorkloadType {
352
- // (undocumented)
353
320
  DW = "DW",
354
- // (undocumented)
355
321
  General = "GENERAL",
356
- // (undocumented)
357
322
  Oltp = "OLTP"
358
323
  }
359
324
 
360
325
  // @public
361
326
  export enum KnownStorageWorkloadType {
362
- // (undocumented)
363
327
  DW = "DW",
364
- // (undocumented)
365
328
  General = "GENERAL",
366
- // (undocumented)
367
329
  Oltp = "OLTP"
368
330
  }
369
331
 
332
+ // @public
333
+ export type LeastPrivilegeMode = string;
334
+
370
335
  // @public
371
336
  export interface LoadBalancerConfiguration {
372
337
  loadBalancerResourceId?: string;
@@ -376,6 +341,12 @@ export interface LoadBalancerConfiguration {
376
341
  sqlVirtualMachineInstances?: string[];
377
342
  }
378
343
 
344
+ // @public
345
+ export interface MultiSubnetIpConfiguration {
346
+ privateIpAddress: PrivateIPAddress;
347
+ sqlVirtualMachineInstance: string;
348
+ }
349
+
379
350
  // @public
380
351
  export interface Operation {
381
352
  readonly display?: OperationDisplay;
@@ -429,7 +400,8 @@ export interface PrivateIPAddress {
429
400
  }
430
401
 
431
402
  // @public
432
- export type ProxyResource = Resource & {};
403
+ export interface ProxyResource extends Resource {
404
+ }
433
405
 
434
406
  // @public
435
407
  export type ReadableSecondary = string;
@@ -454,9 +426,9 @@ export type Role = string;
454
426
  // @public
455
427
  export type ScaleType = string;
456
428
 
457
- // @public (undocumented)
429
+ // @public
458
430
  export interface Schedule {
459
- dayOfWeek?: DayOfWeek;
431
+ dayOfWeek?: AssessmentDayOfWeek;
460
432
  enable?: boolean;
461
433
  monthlyOccurrence?: number;
462
434
  startTime?: string;
@@ -486,6 +458,8 @@ export type SqlImageSku = string;
486
458
  // @public
487
459
  export interface SQLInstanceSettings {
488
460
  collation?: string;
461
+ isIfiEnabled?: boolean;
462
+ isLpimEnabled?: boolean;
489
463
  isOptimizeForAdHocWorkloadsEnabled?: boolean;
490
464
  maxDop?: number;
491
465
  maxServerMemoryMB?: number;
@@ -511,7 +485,7 @@ export interface SqlStorageUpdateSettings {
511
485
  startingDeviceId?: number;
512
486
  }
513
487
 
514
- // @public (undocumented)
488
+ // @public
515
489
  export interface SQLTempDbSettings {
516
490
  dataFileCount?: number;
517
491
  dataFileSize?: number;
@@ -520,39 +494,44 @@ export interface SQLTempDbSettings {
520
494
  logFileSize?: number;
521
495
  logGrowth?: number;
522
496
  luns?: number[];
497
+ persistFolder?: boolean;
498
+ persistFolderPath?: string;
523
499
  }
524
500
 
525
501
  // @public
526
- export type SqlVirtualMachine = TrackedResource & {
502
+ export interface SqlVirtualMachine extends TrackedResource {
503
+ assessmentSettings?: AssessmentSettings;
504
+ autoBackupSettings?: AutoBackupSettings;
505
+ autoPatchingSettings?: AutoPatchingSettings;
506
+ enableAutomaticUpgrade?: boolean;
527
507
  identity?: ResourceIdentity;
528
- readonly systemData?: SystemData;
529
- virtualMachineResourceId?: string;
508
+ keyVaultCredentialSettings?: KeyVaultCredentialSettings;
509
+ leastPrivilegeMode?: LeastPrivilegeMode;
530
510
  readonly provisioningState?: string;
511
+ serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
531
512
  sqlImageOffer?: string;
532
- sqlServerLicenseType?: SqlServerLicenseType;
533
- sqlManagement?: SqlManagementMode;
534
513
  sqlImageSku?: SqlImageSku;
514
+ sqlManagement?: SqlManagementMode;
515
+ sqlServerLicenseType?: SqlServerLicenseType;
535
516
  sqlVirtualMachineGroupResourceId?: string;
536
- wsfcDomainCredentials?: WsfcDomainCredentials;
537
- autoPatchingSettings?: AutoPatchingSettings;
538
- autoBackupSettings?: AutoBackupSettings;
539
- keyVaultCredentialSettings?: KeyVaultCredentialSettings;
540
- serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
541
517
  storageConfigurationSettings?: StorageConfigurationSettings;
542
- assessmentSettings?: AssessmentSettings;
543
- };
518
+ readonly systemData?: SystemData;
519
+ virtualMachineResourceId?: string;
520
+ wsfcDomainCredentials?: WsfcDomainCredentials;
521
+ wsfcStaticIp?: string;
522
+ }
544
523
 
545
524
  // @public
546
- export type SqlVirtualMachineGroup = TrackedResource & {
547
- readonly systemData?: SystemData;
525
+ export interface SqlVirtualMachineGroup extends TrackedResource {
526
+ readonly clusterConfiguration?: ClusterConfiguration;
527
+ readonly clusterManagerType?: ClusterManagerType;
548
528
  readonly provisioningState?: string;
529
+ readonly scaleType?: ScaleType;
549
530
  sqlImageOffer?: string;
550
531
  sqlImageSku?: SqlVmGroupImageSku;
551
- readonly scaleType?: ScaleType;
552
- readonly clusterManagerType?: ClusterManagerType;
553
- readonly clusterConfiguration?: ClusterConfiguration;
532
+ readonly systemData?: SystemData;
554
533
  wsfcDomainProfile?: WsfcDomainProfile;
555
- };
534
+ }
556
535
 
557
536
  // @public
558
537
  export interface SqlVirtualMachineGroupListResult {
@@ -817,12 +796,12 @@ export interface SystemData {
817
796
  }
818
797
 
819
798
  // @public
820
- export type TrackedResource = Resource & {
799
+ export interface TrackedResource extends Resource {
821
800
  location: string;
822
801
  tags?: {
823
802
  [propertyName: string]: string;
824
803
  };
825
- };
804
+ }
826
805
 
827
806
  // @public
828
807
  export interface WsfcDomainCredentials {
@@ -835,6 +814,7 @@ export interface WsfcDomainCredentials {
835
814
  export interface WsfcDomainProfile {
836
815
  clusterBootstrapAccount?: string;
837
816
  clusterOperatorAccount?: string;
817
+ clusterSubnetType?: ClusterSubnetType;
838
818
  domainFqdn?: string;
839
819
  fileShareWitnessPath?: string;
840
820
  ouPath?: string;