@azure/arm-postgresql 6.0.2-alpha.20221102.1 → 6.1.0-alpha.20221202.2

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 (86) hide show
  1. package/CHANGELOG.md +24 -11
  2. package/dist/index.js +271 -93
  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/index.d.ts +1 -0
  7. package/dist-esm/src/index.d.ts.map +1 -1
  8. package/dist-esm/src/index.js +1 -0
  9. package/dist-esm/src/index.js.map +1 -1
  10. package/dist-esm/src/models/index.d.ts +84 -35
  11. package/dist-esm/src/models/index.d.ts.map +1 -1
  12. package/dist-esm/src/models/index.js +48 -0
  13. package/dist-esm/src/models/index.js.map +1 -1
  14. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  15. package/dist-esm/src/operations/configurations.js +8 -4
  16. package/dist-esm/src/operations/configurations.js.map +1 -1
  17. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  18. package/dist-esm/src/operations/databases.js +8 -4
  19. package/dist-esm/src/operations/databases.js.map +1 -1
  20. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  21. package/dist-esm/src/operations/firewallRules.js +8 -4
  22. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  23. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
  24. package/dist-esm/src/operations/locationBasedPerformanceTier.js +8 -4
  25. package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
  26. package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
  27. package/dist-esm/src/operations/logFiles.js +8 -4
  28. package/dist-esm/src/operations/logFiles.js.map +1 -1
  29. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  30. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  31. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  32. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  33. package/dist-esm/src/operations/privateLinkResources.js +19 -7
  34. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  35. package/dist-esm/src/operations/replicas.d.ts.map +1 -1
  36. package/dist-esm/src/operations/replicas.js +8 -4
  37. package/dist-esm/src/operations/replicas.js.map +1 -1
  38. package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
  39. package/dist-esm/src/operations/serverAdministrators.js +8 -4
  40. package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
  41. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
  42. package/dist-esm/src/operations/serverBasedPerformanceTier.js +8 -4
  43. package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
  44. package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
  45. package/dist-esm/src/operations/serverKeys.js +19 -7
  46. package/dist-esm/src/operations/serverKeys.js.map +1 -1
  47. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
  48. package/dist-esm/src/operations/serverSecurityAlertPolicies.js +19 -7
  49. package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
  50. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  51. package/dist-esm/src/operations/servers.js +16 -8
  52. package/dist-esm/src/operations/servers.js.map +1 -1
  53. package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
  54. package/dist-esm/src/operations/virtualNetworkRules.js +19 -7
  55. package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
  56. package/dist-esm/src/pagingHelper.d.ts +13 -0
  57. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  58. package/dist-esm/src/pagingHelper.js +32 -0
  59. package/dist-esm/src/pagingHelper.js.map +1 -0
  60. package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -1
  61. package/dist-esm/src/postgreSQLManagementClient.js +20 -18
  62. package/dist-esm/src/postgreSQLManagementClient.js.map +1 -1
  63. package/dist-esm/test/sampleTest.js +11 -13
  64. package/dist-esm/test/sampleTest.js.map +1 -1
  65. package/package.json +12 -8
  66. package/review/arm-postgresql.api.md +68 -112
  67. package/src/index.ts +1 -0
  68. package/src/models/index.ts +85 -35
  69. package/src/operations/configurations.ts +13 -11
  70. package/src/operations/databases.ts +13 -11
  71. package/src/operations/firewallRules.ts +13 -11
  72. package/src/operations/locationBasedPerformanceTier.ts +10 -5
  73. package/src/operations/logFiles.ts +11 -9
  74. package/src/operations/privateEndpointConnections.ts +23 -13
  75. package/src/operations/privateLinkResources.ts +22 -12
  76. package/src/operations/replicas.ts +11 -9
  77. package/src/operations/serverAdministrators.ts +17 -7
  78. package/src/operations/serverBasedPerformanceTier.ts +15 -5
  79. package/src/operations/serverKeys.ts +26 -8
  80. package/src/operations/serverSecurityAlertPolicies.ts +23 -13
  81. package/src/operations/servers.ts +25 -11
  82. package/src/operations/virtualNetworkRules.ts +23 -13
  83. package/src/pagingHelper.ts +39 -0
  84. package/src/postgreSQLManagementClient.ts +26 -20
  85. package/types/arm-postgresql.d.ts +93 -35
  86. package/types/tsdoc-metadata.json +1 -1
@@ -82,47 +82,53 @@ export class PostgreSQLManagementClient extends coreClient.ServiceClient {
82
82
  credential: credentials
83
83
  };
84
84
 
85
- const packageDetails = `azsdk-js-arm-postgresql/6.0.2`;
85
+ const packageDetails = `azsdk-js-arm-postgresql/6.1.0`;
86
86
  const userAgentPrefix =
87
87
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
88
88
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
89
89
  : `${packageDetails}`;
90
90
 
91
- if (!options.credentialScopes) {
92
- options.credentialScopes = ["https://management.azure.com/.default"];
93
- }
94
91
  const optionsWithDefaults = {
95
92
  ...defaults,
96
93
  ...options,
97
94
  userAgentOptions: {
98
95
  userAgentPrefix
99
96
  },
100
- baseUri:
97
+ endpoint:
101
98
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
102
99
  };
103
100
  super(optionsWithDefaults);
104
101
 
102
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
105
103
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
106
104
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
107
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
105
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
108
106
  (pipelinePolicy) =>
109
107
  pipelinePolicy.name ===
110
108
  coreRestPipeline.bearerTokenAuthenticationPolicyName
111
109
  );
112
- if (!bearerTokenAuthenticationPolicyFound) {
113
- this.pipeline.removePolicy({
114
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
115
- });
116
- this.pipeline.addPolicy(
117
- coreRestPipeline.bearerTokenAuthenticationPolicy({
118
- scopes: `${optionsWithDefaults.baseUri}/.default`,
119
- challengeCallbacks: {
120
- authorizeRequestOnChallenge:
121
- coreClient.authorizeRequestOnClaimChallenge
122
- }
123
- })
124
- );
125
- }
110
+ }
111
+ if (
112
+ !options ||
113
+ !options.pipeline ||
114
+ options.pipeline.getOrderedPolicies().length == 0 ||
115
+ !bearerTokenAuthenticationPolicyFound
116
+ ) {
117
+ this.pipeline.removePolicy({
118
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
119
+ });
120
+ this.pipeline.addPolicy(
121
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
122
+ credential: credentials,
123
+ scopes:
124
+ optionsWithDefaults.credentialScopes ??
125
+ `${optionsWithDefaults.endpoint}/.default`,
126
+ challengeCallbacks: {
127
+ authorizeRequestOnChallenge:
128
+ coreClient.authorizeRequestOnClaimChallenge
129
+ }
130
+ })
131
+ );
126
132
  }
127
133
  // Parameter assignments
128
134
  this.subscriptionId = subscriptionId;
@@ -28,7 +28,7 @@ export declare interface CloudError {
28
28
  }
29
29
 
30
30
  /** Represents a Configuration. */
31
- export declare type Configuration = ProxyResource & {
31
+ export declare interface Configuration extends ProxyResource {
32
32
  /** Value of the configuration. */
33
33
  value?: string;
34
34
  /**
@@ -53,7 +53,7 @@ export declare type Configuration = ProxyResource & {
53
53
  readonly allowedValues?: string;
54
54
  /** Source of the configuration. */
55
55
  source?: string;
56
- };
56
+ }
57
57
 
58
58
  /** A list of server configurations. */
59
59
  export declare interface ConfigurationListResult {
@@ -136,12 +136,12 @@ export declare type ConfigurationsListByServerResponse = ConfigurationListResult
136
136
  export declare type CreateMode = string;
137
137
 
138
138
  /** Represents a Database. */
139
- export declare type Database = ProxyResource & {
139
+ export declare interface Database extends ProxyResource {
140
140
  /** The charset of the database. */
141
141
  charset?: string;
142
142
  /** The collation of the database. */
143
143
  collation?: string;
144
- };
144
+ }
145
145
 
146
146
  /** A List of databases. */
147
147
  export declare interface DatabaseListResult {
@@ -279,12 +279,12 @@ export declare interface ErrorResponse {
279
279
  }
280
280
 
281
281
  /** Represents a server firewall rule. */
282
- export declare type FirewallRule = ProxyResource & {
282
+ export declare interface FirewallRule extends ProxyResource {
283
283
  /** The start IP address of the server firewall rule. Must be IPv4 format. */
284
284
  startIpAddress: string;
285
285
  /** The end IP address of the server firewall rule. Must be IPv4 format. */
286
286
  endIpAddress: string;
287
- };
287
+ }
288
288
 
289
289
  /** A list of firewall rules. */
290
290
  export declare interface FirewallRuleListResult {
@@ -388,6 +388,15 @@ export declare type FirewallRulesListByServerResponse = FirewallRuleListResult;
388
388
  */
389
389
  export declare type GeoRedundantBackup = string;
390
390
 
391
+ /**
392
+ * Given a result page from a pageable operation, returns a
393
+ * continuation token that can be used to begin paging from
394
+ * that point later.
395
+ * @param page A result object from calling .byPage() on a paged operation.
396
+ * @returns The continuation token that can be passed into byPage().
397
+ */
398
+ export declare function getContinuationToken(page: unknown): string | undefined;
399
+
391
400
  /**
392
401
  * Defines values for IdentityType. \
393
402
  * {@link KnownIdentityType} can be used interchangeably with IdentityType,
@@ -409,20 +418,27 @@ export declare type InfrastructureEncryption = string;
409
418
 
410
419
  /** Known values of {@link CreateMode} that the service accepts. */
411
420
  export declare enum KnownCreateMode {
421
+ /** Default */
412
422
  Default = "Default",
423
+ /** PointInTimeRestore */
413
424
  PointInTimeRestore = "PointInTimeRestore",
425
+ /** GeoRestore */
414
426
  GeoRestore = "GeoRestore",
427
+ /** Replica */
415
428
  Replica = "Replica"
416
429
  }
417
430
 
418
431
  /** Known values of {@link GeoRedundantBackup} that the service accepts. */
419
432
  export declare enum KnownGeoRedundantBackup {
433
+ /** Enabled */
420
434
  Enabled = "Enabled",
435
+ /** Disabled */
421
436
  Disabled = "Disabled"
422
437
  }
423
438
 
424
439
  /** Known values of {@link IdentityType} that the service accepts. */
425
440
  export declare enum KnownIdentityType {
441
+ /** SystemAssigned */
426
442
  SystemAssigned = "SystemAssigned"
427
443
  }
428
444
 
@@ -436,94 +452,135 @@ export declare enum KnownInfrastructureEncryption {
436
452
 
437
453
  /** Known values of {@link MinimalTlsVersionEnum} that the service accepts. */
438
454
  export declare enum KnownMinimalTlsVersionEnum {
455
+ /** TLS10 */
439
456
  TLS10 = "TLS1_0",
457
+ /** TLS11 */
440
458
  TLS11 = "TLS1_1",
459
+ /** TLS12 */
441
460
  TLS12 = "TLS1_2",
461
+ /** TLSEnforcementDisabled */
442
462
  TLSEnforcementDisabled = "TLSEnforcementDisabled"
443
463
  }
444
464
 
445
465
  /** Known values of {@link OperationOrigin} that the service accepts. */
446
466
  export declare enum KnownOperationOrigin {
467
+ /** NotSpecified */
447
468
  NotSpecified = "NotSpecified",
469
+ /** User */
448
470
  User = "user",
471
+ /** System */
449
472
  System = "system"
450
473
  }
451
474
 
452
475
  /** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */
453
476
  export declare enum KnownPrivateEndpointProvisioningState {
477
+ /** Approving */
454
478
  Approving = "Approving",
479
+ /** Ready */
455
480
  Ready = "Ready",
481
+ /** Dropping */
456
482
  Dropping = "Dropping",
483
+ /** Failed */
457
484
  Failed = "Failed",
485
+ /** Rejecting */
458
486
  Rejecting = "Rejecting"
459
487
  }
460
488
 
461
489
  /** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */
462
490
  export declare enum KnownPrivateLinkServiceConnectionStateActionsRequire {
491
+ /** None */
463
492
  None = "None"
464
493
  }
465
494
 
466
495
  /** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */
467
496
  export declare enum KnownPrivateLinkServiceConnectionStateStatus {
497
+ /** Approved */
468
498
  Approved = "Approved",
499
+ /** Pending */
469
500
  Pending = "Pending",
501
+ /** Rejected */
470
502
  Rejected = "Rejected",
503
+ /** Disconnected */
471
504
  Disconnected = "Disconnected"
472
505
  }
473
506
 
474
507
  /** Known values of {@link PublicNetworkAccessEnum} that the service accepts. */
475
508
  export declare enum KnownPublicNetworkAccessEnum {
509
+ /** Enabled */
476
510
  Enabled = "Enabled",
511
+ /** Disabled */
477
512
  Disabled = "Disabled"
478
513
  }
479
514
 
480
515
  /** Known values of {@link SecurityAlertPolicyName} that the service accepts. */
481
516
  export declare enum KnownSecurityAlertPolicyName {
517
+ /** Default */
482
518
  Default = "Default"
483
519
  }
484
520
 
485
521
  /** Known values of {@link ServerKeyType} that the service accepts. */
486
522
  export declare enum KnownServerKeyType {
523
+ /** AzureKeyVault */
487
524
  AzureKeyVault = "AzureKeyVault"
488
525
  }
489
526
 
490
527
  /** Known values of {@link ServerState} that the service accepts. */
491
528
  export declare enum KnownServerState {
529
+ /** Ready */
492
530
  Ready = "Ready",
531
+ /** Dropping */
493
532
  Dropping = "Dropping",
533
+ /** Disabled */
494
534
  Disabled = "Disabled",
535
+ /** Inaccessible */
495
536
  Inaccessible = "Inaccessible"
496
537
  }
497
538
 
498
539
  /** Known values of {@link ServerVersion} that the service accepts. */
499
540
  export declare enum KnownServerVersion {
541
+ /** Nine5 */
500
542
  Nine5 = "9.5",
543
+ /** Nine6 */
501
544
  Nine6 = "9.6",
545
+ /** Ten */
502
546
  Ten = "10",
547
+ /** Ten0 */
503
548
  Ten0 = "10.0",
549
+ /** Ten2 */
504
550
  Ten2 = "10.2",
551
+ /** Eleven */
505
552
  Eleven = "11"
506
553
  }
507
554
 
508
555
  /** Known values of {@link SkuTier} that the service accepts. */
509
556
  export declare enum KnownSkuTier {
557
+ /** Basic */
510
558
  Basic = "Basic",
559
+ /** GeneralPurpose */
511
560
  GeneralPurpose = "GeneralPurpose",
561
+ /** MemoryOptimized */
512
562
  MemoryOptimized = "MemoryOptimized"
513
563
  }
514
564
 
515
565
  /** Known values of {@link StorageAutogrow} that the service accepts. */
516
566
  export declare enum KnownStorageAutogrow {
567
+ /** Enabled */
517
568
  Enabled = "Enabled",
569
+ /** Disabled */
518
570
  Disabled = "Disabled"
519
571
  }
520
572
 
521
573
  /** Known values of {@link VirtualNetworkRuleState} that the service accepts. */
522
574
  export declare enum KnownVirtualNetworkRuleState {
575
+ /** Initializing */
523
576
  Initializing = "Initializing",
577
+ /** InProgress */
524
578
  InProgress = "InProgress",
579
+ /** Ready */
525
580
  Ready = "Ready",
581
+ /** Deleting */
526
582
  Deleting = "Deleting",
583
+ /** Unknown */
527
584
  Unknown = "Unknown"
528
585
  }
529
586
 
@@ -545,7 +602,7 @@ export declare interface LocationBasedPerformanceTierListOptionalParams extends
545
602
  export declare type LocationBasedPerformanceTierListResponse = PerformanceTierListResult;
546
603
 
547
604
  /** Represents a log file. */
548
- export declare type LogFile = ProxyResource & {
605
+ export declare interface LogFile extends ProxyResource {
549
606
  /** Size of the log file. */
550
607
  sizeInKB?: number;
551
608
  /**
@@ -562,7 +619,7 @@ export declare type LogFile = ProxyResource & {
562
619
  typePropertiesType?: string;
563
620
  /** The url to download the log file from. */
564
621
  url?: string;
565
- };
622
+ }
566
623
 
567
624
  /** A list of log files. */
568
625
  export declare interface LogFileListResult {
@@ -786,7 +843,7 @@ export declare interface PostgreSQLManagementClientOptionalParams extends coreCl
786
843
  }
787
844
 
788
845
  /** A private endpoint connection */
789
- export declare type PrivateEndpointConnection = ProxyResource & {
846
+ export declare interface PrivateEndpointConnection extends ProxyResource {
790
847
  /** Private endpoint which the connection belongs to. */
791
848
  privateEndpoint?: PrivateEndpointProperty;
792
849
  /** Connection state of the private endpoint connection. */
@@ -796,7 +853,7 @@ export declare type PrivateEndpointConnection = ProxyResource & {
796
853
  * NOTE: This property will not be serialized. It can only be populated by the server.
797
854
  */
798
855
  readonly provisioningState?: string;
799
- };
856
+ }
800
857
 
801
858
  /** A list of private endpoint connections. */
802
859
  export declare interface PrivateEndpointConnectionListResult {
@@ -953,13 +1010,13 @@ export declare interface PrivateEndpointProperty {
953
1010
  export declare type PrivateEndpointProvisioningState = string;
954
1011
 
955
1012
  /** A private link resource */
956
- export declare type PrivateLinkResource = ProxyResource & {
1013
+ export declare interface PrivateLinkResource extends ProxyResource {
957
1014
  /**
958
1015
  * The private link resource group id.
959
1016
  * NOTE: This property will not be serialized. It can only be populated by the server.
960
1017
  */
961
1018
  readonly properties?: PrivateLinkResourceProperties;
962
- };
1019
+ }
963
1020
 
964
1021
  /** A list of private link resources */
965
1022
  export declare interface PrivateLinkResourceListResult {
@@ -1063,7 +1120,8 @@ export declare interface PrivateLinkServiceConnectionStateProperty {
1063
1120
  export declare type PrivateLinkServiceConnectionStateStatus = string;
1064
1121
 
1065
1122
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
1066
- export declare type ProxyResource = Resource & {};
1123
+ export declare interface ProxyResource extends Resource {
1124
+ }
1067
1125
 
1068
1126
  /**
1069
1127
  * Defines values for PublicNetworkAccessEnum. \
@@ -1076,7 +1134,7 @@ export declare type ProxyResource = Resource & {};
1076
1134
  export declare type PublicNetworkAccessEnum = string;
1077
1135
 
1078
1136
  /** A recoverable server resource. */
1079
- export declare type RecoverableServerResource = ProxyResource & {
1137
+ export declare interface RecoverableServerResource extends ProxyResource {
1080
1138
  /**
1081
1139
  * The last available backup date time.
1082
1140
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1107,7 +1165,7 @@ export declare type RecoverableServerResource = ProxyResource & {
1107
1165
  * NOTE: This property will not be serialized. It can only be populated by the server.
1108
1166
  */
1109
1167
  readonly version?: string;
1110
- };
1168
+ }
1111
1169
 
1112
1170
  /** Interface representing a RecoverableServers. */
1113
1171
  export declare interface RecoverableServers {
@@ -1190,7 +1248,7 @@ export declare interface ResourceIdentity {
1190
1248
  export declare type SecurityAlertPolicyName = string;
1191
1249
 
1192
1250
  /** Represents a server. */
1193
- export declare type Server = TrackedResource & {
1251
+ export declare interface Server extends TrackedResource {
1194
1252
  /** The Azure Active Directory identity of the server. */
1195
1253
  identity?: ResourceIdentity;
1196
1254
  /** The SKU (pricing tier) of the server. */
@@ -1231,10 +1289,10 @@ export declare type Server = TrackedResource & {
1231
1289
  * NOTE: This property will not be serialized. It can only be populated by the server.
1232
1290
  */
1233
1291
  readonly privateEndpointConnections?: ServerPrivateEndpointConnection[];
1234
- };
1292
+ }
1235
1293
 
1236
1294
  /** Represents a and external administrator to be created. */
1237
- export declare type ServerAdministratorResource = ProxyResource & {
1295
+ export declare interface ServerAdministratorResource extends ProxyResource {
1238
1296
  /** The type of administrator. */
1239
1297
  administratorType?: "ActiveDirectory";
1240
1298
  /** The server administrator login account name. */
@@ -1243,7 +1301,7 @@ export declare type ServerAdministratorResource = ProxyResource & {
1243
1301
  sid?: string;
1244
1302
  /** The server Active Directory Administrator tenant id. */
1245
1303
  tenantId?: string;
1246
- };
1304
+ }
1247
1305
 
1248
1306
  /** The response to a list Active Directory Administrators request. */
1249
1307
  export declare interface ServerAdministratorResourceListResult {
@@ -1369,7 +1427,7 @@ export declare interface ServerForCreate {
1369
1427
  }
1370
1428
 
1371
1429
  /** A PostgreSQL Server key. */
1372
- export declare type ServerKey = ProxyResource & {
1430
+ export declare interface ServerKey extends ProxyResource {
1373
1431
  /**
1374
1432
  * Kind of encryption protector used to protect the key.
1375
1433
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1384,7 +1442,7 @@ export declare type ServerKey = ProxyResource & {
1384
1442
  * NOTE: This property will not be serialized. It can only be populated by the server.
1385
1443
  */
1386
1444
  readonly creationDate?: Date;
1387
- };
1445
+ }
1388
1446
 
1389
1447
  /** A list of PostgreSQL Server keys. */
1390
1448
  export declare interface ServerKeyListResult {
@@ -1599,7 +1657,7 @@ export declare interface ServerPropertiesForCreate {
1599
1657
  export declare type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore | ServerPropertiesForReplica;
1600
1658
 
1601
1659
  /** The properties used to create a new server. */
1602
- export declare type ServerPropertiesForDefaultCreate = ServerPropertiesForCreate & {
1660
+ export declare interface ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate {
1603
1661
  /** Polymorphic discriminator, which specifies the different types this object can be */
1604
1662
  createMode: "Default";
1605
1663
  /** The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). */
@@ -1609,33 +1667,33 @@ export declare type ServerPropertiesForDefaultCreate = ServerPropertiesForCreate
1609
1667
  * This value contains a credential. Consider obscuring before showing to users
1610
1668
  */
1611
1669
  administratorLoginPassword: string;
1612
- };
1670
+ }
1613
1671
 
1614
1672
  /** The properties used to create a new server by restoring to a different region from a geo replicated backup. */
1615
- export declare type ServerPropertiesForGeoRestore = ServerPropertiesForCreate & {
1673
+ export declare interface ServerPropertiesForGeoRestore extends ServerPropertiesForCreate {
1616
1674
  /** Polymorphic discriminator, which specifies the different types this object can be */
1617
1675
  createMode: "GeoRestore";
1618
1676
  /** The source server id to restore from. */
1619
1677
  sourceServerId: string;
1620
- };
1678
+ }
1621
1679
 
1622
1680
  /** The properties to create a new replica. */
1623
- export declare type ServerPropertiesForReplica = ServerPropertiesForCreate & {
1681
+ export declare interface ServerPropertiesForReplica extends ServerPropertiesForCreate {
1624
1682
  /** Polymorphic discriminator, which specifies the different types this object can be */
1625
1683
  createMode: "Replica";
1626
1684
  /** The master server id to create replica from. */
1627
1685
  sourceServerId: string;
1628
- };
1686
+ }
1629
1687
 
1630
1688
  /** The properties used to create a new server by restoring from a backup. */
1631
- export declare type ServerPropertiesForRestore = ServerPropertiesForCreate & {
1689
+ export declare interface ServerPropertiesForRestore extends ServerPropertiesForCreate {
1632
1690
  /** Polymorphic discriminator, which specifies the different types this object can be */
1633
1691
  createMode: "PointInTimeRestore";
1634
1692
  /** The source server id to restore from. */
1635
1693
  sourceServerId: string;
1636
1694
  /** Restore point creation time (ISO8601 format), specifying the time to restore from. */
1637
1695
  restorePointInTime: Date;
1638
- };
1696
+ }
1639
1697
 
1640
1698
  /** Interface representing a Servers. */
1641
1699
  export declare interface Servers {
@@ -1810,7 +1868,7 @@ export declare interface ServerSecurityAlertPoliciesListByServerOptionalParams e
1810
1868
  export declare type ServerSecurityAlertPoliciesListByServerResponse = ServerSecurityAlertPolicyListResult;
1811
1869
 
1812
1870
  /** A server security alert policy. */
1813
- export declare type ServerSecurityAlertPolicy = ProxyResource & {
1871
+ export declare interface ServerSecurityAlertPolicy extends ProxyResource {
1814
1872
  /** Specifies the state of the policy, whether it is enabled or disabled. */
1815
1873
  state?: ServerSecurityAlertPolicyState;
1816
1874
  /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly */
@@ -1825,7 +1883,7 @@ export declare type ServerSecurityAlertPolicy = ProxyResource & {
1825
1883
  storageAccountAccessKey?: string;
1826
1884
  /** Specifies the number of days to keep in the Threat Detection audit logs. */
1827
1885
  retentionDays?: number;
1828
- };
1886
+ }
1829
1887
 
1830
1888
  /** A list of the server's security alert policies. */
1831
1889
  export declare interface ServerSecurityAlertPolicyListResult {
@@ -1998,17 +2056,17 @@ export declare interface TagsObject {
1998
2056
  }
1999
2057
 
2000
2058
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
2001
- export declare type TrackedResource = Resource & {
2059
+ export declare interface TrackedResource extends Resource {
2002
2060
  /** Resource tags. */
2003
2061
  tags?: {
2004
2062
  [propertyName: string]: string;
2005
2063
  };
2006
2064
  /** The geo-location where the resource lives */
2007
2065
  location: string;
2008
- };
2066
+ }
2009
2067
 
2010
2068
  /** A virtual network rule. */
2011
- export declare type VirtualNetworkRule = ProxyResource & {
2069
+ export declare interface VirtualNetworkRule extends ProxyResource {
2012
2070
  /** The ARM resource id of the virtual network subnet. */
2013
2071
  virtualNetworkSubnetId?: string;
2014
2072
  /** Create firewall rule before the virtual network has vnet service endpoint enabled. */
@@ -2018,7 +2076,7 @@ export declare type VirtualNetworkRule = ProxyResource & {
2018
2076
  * NOTE: This property will not be serialized. It can only be populated by the server.
2019
2077
  */
2020
2078
  readonly state?: VirtualNetworkRuleState;
2021
- };
2079
+ }
2022
2080
 
2023
2081
  /** A list of virtual network rules. */
2024
2082
  export declare interface VirtualNetworkRuleListResult {
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.5"
8
+ "packageVersion": "7.33.6"
9
9
  }
10
10
  ]
11
11
  }