@azure/arm-postgresql-flexible 8.0.0-beta.1 → 8.0.0-beta.3

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 (51) hide show
  1. package/CHANGELOG.md +293 -2
  2. package/dist/index.js +134 -115
  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/samples-dev/checkMigrationNameAvailabilitySample.js +2 -3
  7. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js.map +1 -1
  8. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -3
  9. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -1
  10. package/dist-esm/samples-dev/migrationsCreateSample.js +43 -3
  11. package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -1
  12. package/dist-esm/samples-dev/migrationsDeleteSample.js +2 -3
  13. package/dist-esm/samples-dev/migrationsDeleteSample.js.map +1 -1
  14. package/dist-esm/samples-dev/migrationsGetSample.js +2 -3
  15. package/dist-esm/samples-dev/migrationsGetSample.js.map +1 -1
  16. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js +2 -3
  17. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js.map +1 -1
  18. package/dist-esm/samples-dev/migrationsUpdateSample.js +23 -4
  19. package/dist-esm/samples-dev/migrationsUpdateSample.js.map +1 -1
  20. package/dist-esm/samples-dev/serversCreateSample.js +2 -2
  21. package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/serversUpdateSample.js +2 -2
  23. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  24. package/dist-esm/src/models/index.d.ts +60 -49
  25. package/dist-esm/src/models/index.d.ts.map +1 -1
  26. package/dist-esm/src/models/index.js +20 -20
  27. package/dist-esm/src/models/index.js.map +1 -1
  28. package/dist-esm/src/models/mappers.d.ts +2 -2
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  30. package/dist-esm/src/models/mappers.js +34 -10
  31. package/dist-esm/src/models/mappers.js.map +1 -1
  32. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +2 -1
  33. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
  34. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +8 -10
  35. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  36. package/dist-esm/test/postgresql_flexible_operations_test.spec.d.ts +4 -0
  37. package/dist-esm/test/postgresql_flexible_operations_test.spec.d.ts.map +1 -0
  38. package/dist-esm/test/postgresql_flexible_operations_test.spec.js +55 -0
  39. package/dist-esm/test/postgresql_flexible_operations_test.spec.js.map +1 -0
  40. package/package.json +12 -18
  41. package/review/arm-postgresql-flexible.api.md +26 -21
  42. package/src/models/index.ts +60 -49
  43. package/src/models/mappers.ts +34 -10
  44. package/src/postgreSQLManagementFlexibleServerClient.ts +20 -4
  45. package/types/arm-postgresql-flexible.d.ts +69 -57
  46. package/types/tsdoc-metadata.json +1 -1
  47. package/dist-esm/test/sampleTest.d.ts +0 -2
  48. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  49. package/dist-esm/test/sampleTest.js +0 -38
  50. package/dist-esm/test/sampleTest.js.map +0 -1
  51. package/rollup.config.js +0 -122
package/dist/index.js CHANGED
@@ -1,14 +1,11 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var tslib = require('tslib');
6
4
  var coreClient = require('@azure/core-client');
7
5
  var coreRestPipeline = require('@azure/core-rest-pipeline');
8
6
  var coreLro = require('@azure/core-lro');
9
7
 
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
8
+ function _interopNamespaceDefault(e) {
12
9
  var n = Object.create(null);
13
10
  if (e) {
14
11
  Object.keys(e).forEach(function (k) {
@@ -21,12 +18,12 @@ function _interopNamespace(e) {
21
18
  }
22
19
  });
23
20
  }
24
- n["default"] = e;
21
+ n.default = e;
25
22
  return Object.freeze(n);
26
23
  }
27
24
 
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
25
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
26
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
30
27
 
31
28
  /*
32
29
  * Copyright (c) Microsoft Corporation.
@@ -432,42 +429,42 @@ exports.KnownMigrationMode = void 0;
432
429
  /** Known values of {@link LogicalReplicationOnSourceDbEnum} that the service accepts. */
433
430
  exports.KnownLogicalReplicationOnSourceDbEnum = void 0;
434
431
  (function (KnownLogicalReplicationOnSourceDbEnum) {
435
- /** Enabled */
436
- KnownLogicalReplicationOnSourceDbEnum["Enabled"] = "Enabled";
437
- /** Disabled */
438
- KnownLogicalReplicationOnSourceDbEnum["Disabled"] = "Disabled";
432
+ /** True */
433
+ KnownLogicalReplicationOnSourceDbEnum["True"] = "True";
434
+ /** False */
435
+ KnownLogicalReplicationOnSourceDbEnum["False"] = "False";
439
436
  })(exports.KnownLogicalReplicationOnSourceDbEnum || (exports.KnownLogicalReplicationOnSourceDbEnum = {}));
440
437
  /** Known values of {@link OverwriteDbsInTargetEnum} that the service accepts. */
441
438
  exports.KnownOverwriteDbsInTargetEnum = void 0;
442
439
  (function (KnownOverwriteDbsInTargetEnum) {
443
- /** Enabled */
444
- KnownOverwriteDbsInTargetEnum["Enabled"] = "Enabled";
445
- /** Disabled */
446
- KnownOverwriteDbsInTargetEnum["Disabled"] = "Disabled";
440
+ /** True */
441
+ KnownOverwriteDbsInTargetEnum["True"] = "True";
442
+ /** False */
443
+ KnownOverwriteDbsInTargetEnum["False"] = "False";
447
444
  })(exports.KnownOverwriteDbsInTargetEnum || (exports.KnownOverwriteDbsInTargetEnum = {}));
448
445
  /** Known values of {@link StartDataMigrationEnum} that the service accepts. */
449
446
  exports.KnownStartDataMigrationEnum = void 0;
450
447
  (function (KnownStartDataMigrationEnum) {
451
- /** Enabled */
452
- KnownStartDataMigrationEnum["Enabled"] = "Enabled";
453
- /** Disabled */
454
- KnownStartDataMigrationEnum["Disabled"] = "Disabled";
448
+ /** True */
449
+ KnownStartDataMigrationEnum["True"] = "True";
450
+ /** False */
451
+ KnownStartDataMigrationEnum["False"] = "False";
455
452
  })(exports.KnownStartDataMigrationEnum || (exports.KnownStartDataMigrationEnum = {}));
456
453
  /** Known values of {@link TriggerCutoverEnum} that the service accepts. */
457
454
  exports.KnownTriggerCutoverEnum = void 0;
458
455
  (function (KnownTriggerCutoverEnum) {
459
- /** Enabled */
460
- KnownTriggerCutoverEnum["Enabled"] = "Enabled";
461
- /** Disabled */
462
- KnownTriggerCutoverEnum["Disabled"] = "Disabled";
456
+ /** True */
457
+ KnownTriggerCutoverEnum["True"] = "True";
458
+ /** False */
459
+ KnownTriggerCutoverEnum["False"] = "False";
463
460
  })(exports.KnownTriggerCutoverEnum || (exports.KnownTriggerCutoverEnum = {}));
464
461
  /** Known values of {@link CancelEnum} that the service accepts. */
465
462
  exports.KnownCancelEnum = void 0;
466
463
  (function (KnownCancelEnum) {
467
- /** Enabled */
468
- KnownCancelEnum["Enabled"] = "Enabled";
469
- /** Disabled */
470
- KnownCancelEnum["Disabled"] = "Disabled";
464
+ /** True */
465
+ KnownCancelEnum["True"] = "True";
466
+ /** False */
467
+ KnownCancelEnum["False"] = "False";
471
468
  })(exports.KnownCancelEnum || (exports.KnownCancelEnum = {}));
472
469
  /** Known values of {@link MigrationListFilter} that the service accepts. */
473
470
  exports.KnownMigrationListFilter = void 0;
@@ -1086,6 +1083,13 @@ const UserAssignedIdentity = {
1086
1083
  type: {
1087
1084
  name: "String"
1088
1085
  }
1086
+ },
1087
+ tenantId: {
1088
+ serializedName: "tenantId",
1089
+ readOnly: true,
1090
+ type: {
1091
+ name: "String"
1092
+ }
1089
1093
  }
1090
1094
  }
1091
1095
  }
@@ -1127,8 +1131,8 @@ const Storage = {
1127
1131
  name: "String"
1128
1132
  }
1129
1133
  },
1130
- iopsTier: {
1131
- serializedName: "iopsTier",
1134
+ tier: {
1135
+ serializedName: "tier",
1132
1136
  type: {
1133
1137
  name: "String"
1134
1138
  }
@@ -1263,14 +1267,12 @@ const Network = {
1263
1267
  }
1264
1268
  },
1265
1269
  delegatedSubnetResourceId: {
1266
- defaultValue: "",
1267
1270
  serializedName: "delegatedSubnetResourceId",
1268
1271
  type: {
1269
1272
  name: "String"
1270
1273
  }
1271
1274
  },
1272
1275
  privateDnsZoneArmResourceId: {
1273
- defaultValue: "",
1274
1276
  serializedName: "privateDnsZoneArmResourceId",
1275
1277
  type: {
1276
1278
  name: "String"
@@ -1435,6 +1437,13 @@ const ServerForUpdate = {
1435
1437
  type: {
1436
1438
  name: "String"
1437
1439
  }
1440
+ },
1441
+ network: {
1442
+ serializedName: "properties.network",
1443
+ type: {
1444
+ name: "Composite",
1445
+ className: "Network"
1446
+ }
1438
1447
  }
1439
1448
  }
1440
1449
  }
@@ -1537,16 +1546,16 @@ const DbServerMetadata = {
1537
1546
  serializedName: "sku",
1538
1547
  type: {
1539
1548
  name: "Composite",
1540
- className: "ServerSkuAutoGenerated"
1549
+ className: "ServerSku"
1541
1550
  }
1542
1551
  }
1543
1552
  }
1544
1553
  }
1545
1554
  };
1546
- const ServerSkuAutoGenerated = {
1555
+ const ServerSku = {
1547
1556
  type: {
1548
1557
  name: "Composite",
1549
- className: "ServerSkuAutoGenerated",
1558
+ className: "ServerSku",
1550
1559
  modelProperties: {
1551
1560
  name: {
1552
1561
  serializedName: "name",
@@ -1576,6 +1585,18 @@ const MigrationSecretParameters = {
1576
1585
  name: "Composite",
1577
1586
  className: "AdminCredentials"
1578
1587
  }
1588
+ },
1589
+ sourceServerUsername: {
1590
+ serializedName: "sourceServerUsername",
1591
+ type: {
1592
+ name: "String"
1593
+ }
1594
+ },
1595
+ targetServerUsername: {
1596
+ serializedName: "targetServerUsername",
1597
+ type: {
1598
+ name: "String"
1599
+ }
1579
1600
  }
1580
1601
  }
1581
1602
  }
@@ -2293,10 +2314,10 @@ const StorageEditionCapability = {
2293
2314
  } })
2294
2315
  }
2295
2316
  };
2296
- const ServerSku = {
2317
+ const ServerSkuCapability = {
2297
2318
  type: {
2298
2319
  name: "Composite",
2299
- className: "ServerSku",
2320
+ className: "ServerSkuCapability",
2300
2321
  modelProperties: Object.assign(Object.assign({}, CapabilityBase.type.modelProperties), { name: {
2301
2322
  serializedName: "name",
2302
2323
  readOnly: true,
@@ -2382,7 +2403,7 @@ const FlexibleServerEditionCapability = {
2382
2403
  element: {
2383
2404
  type: {
2384
2405
  name: "Composite",
2385
- className: "ServerSku"
2406
+ className: "ServerSkuCapability"
2386
2407
  }
2387
2408
  }
2388
2409
  }
@@ -3366,97 +3387,97 @@ const FlexibleServerStartLtrBackupExceptionHeaders = {
3366
3387
 
3367
3388
  var Mappers = /*#__PURE__*/Object.freeze({
3368
3389
  __proto__: null,
3390
+ ActiveDirectoryAdministrator: ActiveDirectoryAdministrator,
3369
3391
  ActiveDirectoryAdministratorAdd: ActiveDirectoryAdministratorAdd,
3370
- Resource: Resource,
3371
- SystemData: SystemData,
3372
- ErrorResponse: ErrorResponse,
3373
- ErrorDetail: ErrorDetail,
3374
- ErrorAdditionalInfo: ErrorAdditionalInfo,
3392
+ AdminCredentials: AdminCredentials,
3375
3393
  AdministratorListResult: AdministratorListResult,
3376
- ServerBackupListResult: ServerBackupListResult,
3394
+ AdministratorsCreateHeaders: AdministratorsCreateHeaders,
3395
+ AdministratorsDeleteHeaders: AdministratorsDeleteHeaders,
3396
+ AuthConfig: AuthConfig,
3397
+ Backup: Backup,
3398
+ BackupRequestBase: BackupRequestBase,
3399
+ BackupSettings: BackupSettings,
3400
+ BackupStoreDetails: BackupStoreDetails,
3377
3401
  CapabilitiesListResult: CapabilitiesListResult,
3378
3402
  CapabilityBase: CapabilityBase,
3379
3403
  CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
3380
3404
  CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
3381
- ConfigurationListResult: ConfigurationListResult,
3405
+ Configuration: Configuration,
3382
3406
  ConfigurationForUpdate: ConfigurationForUpdate,
3407
+ ConfigurationListResult: ConfigurationListResult,
3408
+ ConfigurationsPutHeaders: ConfigurationsPutHeaders,
3409
+ ConfigurationsUpdateHeaders: ConfigurationsUpdateHeaders,
3410
+ DataEncryption: DataEncryption,
3411
+ Database: Database,
3383
3412
  DatabaseListResult: DatabaseListResult,
3413
+ DatabasesCreateHeaders: DatabasesCreateHeaders,
3414
+ DatabasesDeleteHeaders: DatabasesDeleteHeaders,
3415
+ DbServerMetadata: DbServerMetadata,
3416
+ DelegatedSubnetUsage: DelegatedSubnetUsage,
3417
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
3418
+ ErrorDetail: ErrorDetail,
3419
+ ErrorResponse: ErrorResponse,
3420
+ FastProvisioningEditionCapability: FastProvisioningEditionCapability,
3421
+ FirewallRule: FirewallRule,
3384
3422
  FirewallRuleListResult: FirewallRuleListResult,
3385
- Sku: Sku,
3386
- UserAssignedIdentity: UserAssignedIdentity,
3387
- UserIdentity: UserIdentity,
3388
- Storage: Storage,
3389
- AuthConfig: AuthConfig,
3390
- DataEncryption: DataEncryption,
3391
- Backup: Backup,
3392
- Network: Network,
3423
+ FirewallRulesCreateOrUpdateHeaders: FirewallRulesCreateOrUpdateHeaders,
3424
+ FirewallRulesDeleteHeaders: FirewallRulesDeleteHeaders,
3425
+ FlexibleServerCapability: FlexibleServerCapability,
3426
+ FlexibleServerEditionCapability: FlexibleServerEditionCapability,
3427
+ FlexibleServerStartLtrBackupExceptionHeaders: FlexibleServerStartLtrBackupExceptionHeaders,
3428
+ FlexibleServerStartLtrBackupHeaders: FlexibleServerStartLtrBackupHeaders,
3429
+ FlexibleServerTriggerLtrPreBackupExceptionHeaders: FlexibleServerTriggerLtrPreBackupExceptionHeaders,
3430
+ FlexibleServerTriggerLtrPreBackupHeaders: FlexibleServerTriggerLtrPreBackupHeaders,
3393
3431
  HighAvailability: HighAvailability,
3432
+ LogFile: LogFile,
3433
+ LogFileListResult: LogFileListResult,
3434
+ LtrBackupRequest: LtrBackupRequest,
3435
+ LtrBackupResponse: LtrBackupResponse,
3436
+ LtrPreBackupRequest: LtrPreBackupRequest,
3437
+ LtrPreBackupResponse: LtrPreBackupResponse,
3438
+ LtrServerBackupOperation: LtrServerBackupOperation,
3439
+ LtrServerBackupOperationList: LtrServerBackupOperationList,
3394
3440
  MaintenanceWindow: MaintenanceWindow,
3395
- ServerForUpdate: ServerForUpdate,
3396
- ServerListResult: ServerListResult,
3397
- MigrationStatus: MigrationStatus,
3398
- MigrationSubStateDetails: MigrationSubStateDetails,
3399
- DbServerMetadata: DbServerMetadata,
3400
- ServerSkuAutoGenerated: ServerSkuAutoGenerated,
3401
- MigrationSecretParameters: MigrationSecretParameters,
3402
- AdminCredentials: AdminCredentials,
3441
+ MigrationNameAvailabilityResource: MigrationNameAvailabilityResource,
3442
+ MigrationResource: MigrationResource,
3403
3443
  MigrationResourceForPatch: MigrationResourceForPatch,
3404
3444
  MigrationResourceListResult: MigrationResourceListResult,
3405
- MigrationNameAvailabilityResource: MigrationNameAvailabilityResource,
3406
- OperationListResult: OperationListResult,
3445
+ MigrationSecretParameters: MigrationSecretParameters,
3446
+ MigrationStatus: MigrationStatus,
3447
+ MigrationSubStateDetails: MigrationSubStateDetails,
3448
+ NameAvailability: NameAvailability,
3449
+ Network: Network,
3407
3450
  Operation: Operation,
3408
3451
  OperationDisplay: OperationDisplay,
3409
- LogFileListResult: LogFileListResult,
3410
- RestartParameter: RestartParameter,
3411
- VirtualNetworkSubnetUsageParameter: VirtualNetworkSubnetUsageParameter,
3412
- VirtualNetworkSubnetUsageResult: VirtualNetworkSubnetUsageResult,
3413
- DelegatedSubnetUsage: DelegatedSubnetUsage,
3414
- BackupRequestBase: BackupRequestBase,
3415
- BackupSettings: BackupSettings,
3416
- LtrPreBackupResponse: LtrPreBackupResponse,
3417
- BackupStoreDetails: BackupStoreDetails,
3418
- LtrBackupResponse: LtrBackupResponse,
3419
- LtrServerBackupOperationList: LtrServerBackupOperationList,
3452
+ OperationListResult: OperationListResult,
3420
3453
  ProxyResource: ProxyResource,
3421
- TrackedResource: TrackedResource,
3422
- StorageTierCapability: StorageTierCapability,
3423
- StorageMbCapability: StorageMbCapability,
3424
- StorageEditionCapability: StorageEditionCapability,
3454
+ Resource: Resource,
3455
+ RestartParameter: RestartParameter,
3456
+ Server: Server,
3457
+ ServerBackup: ServerBackup,
3458
+ ServerBackupListResult: ServerBackupListResult,
3459
+ ServerForUpdate: ServerForUpdate,
3460
+ ServerListResult: ServerListResult,
3425
3461
  ServerSku: ServerSku,
3426
- FlexibleServerEditionCapability: FlexibleServerEditionCapability,
3462
+ ServerSkuCapability: ServerSkuCapability,
3427
3463
  ServerVersionCapability: ServerVersionCapability,
3428
- FastProvisioningEditionCapability: FastProvisioningEditionCapability,
3429
- FlexibleServerCapability: FlexibleServerCapability,
3430
- NameAvailability: NameAvailability,
3431
- LtrPreBackupRequest: LtrPreBackupRequest,
3432
- LtrBackupRequest: LtrBackupRequest,
3433
- ActiveDirectoryAdministrator: ActiveDirectoryAdministrator,
3434
- ServerBackup: ServerBackup,
3435
- Configuration: Configuration,
3436
- Database: Database,
3437
- FirewallRule: FirewallRule,
3438
- LogFile: LogFile,
3439
- LtrServerBackupOperation: LtrServerBackupOperation,
3440
- Server: Server,
3441
- MigrationResource: MigrationResource,
3442
- AdministratorsCreateHeaders: AdministratorsCreateHeaders,
3443
- AdministratorsDeleteHeaders: AdministratorsDeleteHeaders,
3444
- ConfigurationsUpdateHeaders: ConfigurationsUpdateHeaders,
3445
- ConfigurationsPutHeaders: ConfigurationsPutHeaders,
3446
- DatabasesCreateHeaders: DatabasesCreateHeaders,
3447
- DatabasesDeleteHeaders: DatabasesDeleteHeaders,
3448
- FirewallRulesCreateOrUpdateHeaders: FirewallRulesCreateOrUpdateHeaders,
3449
- FirewallRulesDeleteHeaders: FirewallRulesDeleteHeaders,
3450
3464
  ServersCreateHeaders: ServersCreateHeaders,
3451
- ServersUpdateHeaders: ServersUpdateHeaders,
3452
3465
  ServersDeleteHeaders: ServersDeleteHeaders,
3453
3466
  ServersRestartHeaders: ServersRestartHeaders,
3454
3467
  ServersStartHeaders: ServersStartHeaders,
3455
3468
  ServersStopHeaders: ServersStopHeaders,
3456
- FlexibleServerTriggerLtrPreBackupHeaders: FlexibleServerTriggerLtrPreBackupHeaders,
3457
- FlexibleServerTriggerLtrPreBackupExceptionHeaders: FlexibleServerTriggerLtrPreBackupExceptionHeaders,
3458
- FlexibleServerStartLtrBackupHeaders: FlexibleServerStartLtrBackupHeaders,
3459
- FlexibleServerStartLtrBackupExceptionHeaders: FlexibleServerStartLtrBackupExceptionHeaders
3469
+ ServersUpdateHeaders: ServersUpdateHeaders,
3470
+ Sku: Sku,
3471
+ Storage: Storage,
3472
+ StorageEditionCapability: StorageEditionCapability,
3473
+ StorageMbCapability: StorageMbCapability,
3474
+ StorageTierCapability: StorageTierCapability,
3475
+ SystemData: SystemData,
3476
+ TrackedResource: TrackedResource,
3477
+ UserAssignedIdentity: UserAssignedIdentity,
3478
+ UserIdentity: UserIdentity,
3479
+ VirtualNetworkSubnetUsageParameter: VirtualNetworkSubnetUsageParameter,
3480
+ VirtualNetworkSubnetUsageResult: VirtualNetworkSubnetUsageResult
3460
3481
  });
3461
3482
 
3462
3483
  /*
@@ -7679,19 +7700,17 @@ const listByServerNextOperationSpec = {
7679
7700
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7680
7701
  */
7681
7702
  class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.ServiceClient {
7682
- /**
7683
- * Initializes a new instance of the PostgreSQLManagementFlexibleServerClient class.
7684
- * @param credentials Subscription credentials which uniquely identify client subscription.
7685
- * @param subscriptionId The ID of the target subscription.
7686
- * @param options The parameter options
7687
- */
7688
- constructor(credentials, subscriptionId, options) {
7703
+ constructor(credentials, subscriptionIdOrOptions, options) {
7689
7704
  var _a, _b, _c;
7690
7705
  if (credentials === undefined) {
7691
7706
  throw new Error("'credentials' cannot be null");
7692
7707
  }
7693
- if (subscriptionId === undefined) {
7694
- throw new Error("'subscriptionId' cannot be null");
7708
+ let subscriptionId;
7709
+ if (typeof subscriptionIdOrOptions === "string") {
7710
+ subscriptionId = subscriptionIdOrOptions;
7711
+ }
7712
+ else if (typeof subscriptionIdOrOptions === "object") {
7713
+ options = subscriptionIdOrOptions;
7695
7714
  }
7696
7715
  // Initializing default values for options
7697
7716
  if (!options) {
@@ -7701,7 +7720,7 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
7701
7720
  requestContentType: "application/json; charset=utf-8",
7702
7721
  credential: credentials
7703
7722
  };
7704
- const packageDetails = `azsdk-js-arm-postgresql-flexible/8.0.0-beta.1`;
7723
+ const packageDetails = `azsdk-js-arm-postgresql-flexible/8.0.0-beta.3`;
7705
7724
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7706
7725
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7707
7726
  : `${packageDetails}`;