@azure/arm-postgresql-flexible 8.0.0-beta.1 → 8.0.0-beta.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.
@@ -260,6 +260,11 @@ export interface UserAssignedIdentity {
260
260
  userAssignedIdentities?: { [propertyName: string]: UserIdentity };
261
261
  /** the types of identities associated with this resource; currently restricted to 'None and UserAssigned' */
262
262
  type: IdentityType;
263
+ /**
264
+ * Tenant id of the server.
265
+ * NOTE: This property will not be serialized. It can only be populated by the server.
266
+ */
267
+ readonly tenantId?: string;
263
268
  }
264
269
 
265
270
  /** Describes a single user-assigned identity associated with the application. */
@@ -326,16 +331,16 @@ export interface Backup {
326
331
  readonly earliestRestoreDate?: Date;
327
332
  }
328
333
 
329
- /** Network properties of a server */
334
+ /** Network properties of a server. */
330
335
  export interface Network {
331
336
  /**
332
337
  * public network access is enabled or not
333
338
  * NOTE: This property will not be serialized. It can only be populated by the server.
334
339
  */
335
340
  readonly publicNetworkAccess?: ServerPublicNetworkAccessState;
336
- /** delegated subnet arm resource id. */
341
+ /** Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. */
337
342
  delegatedSubnetResourceId?: string;
338
- /** private dns zone arm resource id. */
343
+ /** Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. */
339
344
  privateDnsZoneArmResourceId?: string;
340
345
  }
341
346
 
@@ -395,6 +400,8 @@ export interface ServerForUpdate {
395
400
  createMode?: CreateModeForUpdate;
396
401
  /** Replication role of the server */
397
402
  replicationRole?: ReplicationRole;
403
+ /** Network properties of a server. These are required to be passed only in case if server is a private access server. */
404
+ network?: Network;
398
405
  }
399
406
 
400
407
  /** A list of servers. */
@@ -445,11 +452,11 @@ export interface DbServerMetadata {
445
452
  /** Storage size in MB for database server */
446
453
  storageMb?: number;
447
454
  /** SKU for the database server */
448
- sku?: ServerSkuAutoGenerated;
455
+ sku?: ServerSku;
449
456
  }
450
457
 
451
458
  /** Sku information related properties of a server. */
452
- export interface ServerSkuAutoGenerated {
459
+ export interface ServerSku {
453
460
  /** The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */
454
461
  name: string;
455
462
  /** The tier of the particular SKU, e.g. Burstable. */
@@ -460,6 +467,10 @@ export interface ServerSkuAutoGenerated {
460
467
  export interface MigrationSecretParameters {
461
468
  /** Admin credentials for source and target servers */
462
469
  adminCredentials: AdminCredentials;
470
+ /** Gets or sets the username for the source server. This user need not be an admin. */
471
+ sourceServerUsername?: string;
472
+ /** Gets or sets the username for the target server. This user need not be an admin. */
473
+ targetServerUsername?: string;
463
474
  }
464
475
 
465
476
  /** Server admin credentials. */
@@ -486,19 +497,19 @@ export interface MigrationResourceForPatch {
486
497
  dbsToMigrate?: string[];
487
498
  /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
488
499
  setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
489
- /** Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
500
+ /** Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
490
501
  overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
491
502
  /** Start time in UTC for migration window */
492
503
  migrationWindowStartTimeInUtc?: Date;
493
504
  /** Indicates whether the data migration should start right away */
494
505
  startDataMigration?: StartDataMigrationEnum;
495
- /** To trigger cutover for entire migration we need to send this flag as Enabled */
506
+ /** To trigger cutover for entire migration we need to send this flag as True */
496
507
  triggerCutover?: TriggerCutoverEnum;
497
- /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
508
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array */
498
509
  dbsToTriggerCutoverOn?: string[];
499
- /** To trigger cancel for entire migration we need to send this flag as Enabled */
510
+ /** To trigger cancel for entire migration we need to send this flag as True */
500
511
  cancel?: CancelEnum;
501
- /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
512
+ /** When you want to trigger cancel for specific databases send cancel flag as True and database names in this array */
502
513
  dbsToCancelMigrationOn?: string[];
503
514
  /** There are two types of migration modes Online and Offline */
504
515
  migrationMode?: MigrationMode;
@@ -785,7 +796,7 @@ export interface StorageEditionCapability extends CapabilityBase {
785
796
  }
786
797
 
787
798
  /** Sku capability */
788
- export interface ServerSku extends CapabilityBase {
799
+ export interface ServerSkuCapability extends CapabilityBase {
789
800
  /**
790
801
  * Sku name
791
802
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -839,7 +850,7 @@ export interface FlexibleServerEditionCapability extends CapabilityBase {
839
850
  * List of supported server SKUs.
840
851
  * NOTE: This property will not be serialized. It can only be populated by the server.
841
852
  */
842
- readonly supportedServerSkus?: ServerSku[];
853
+ readonly supportedServerSkus?: ServerSkuCapability[];
843
854
  }
844
855
 
845
856
  /** Server version capabilities. */
@@ -1137,7 +1148,7 @@ export interface Server extends TrackedResource {
1137
1148
  dataEncryption?: DataEncryption;
1138
1149
  /** Backup properties of a server. */
1139
1150
  backup?: Backup;
1140
- /** Network properties of a server. */
1151
+ /** Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server. */
1141
1152
  network?: Network;
1142
1153
  /** High availability properties of a server. */
1143
1154
  highAvailability?: HighAvailability;
@@ -1201,7 +1212,7 @@ export interface MigrationResource extends TrackedResource {
1201
1212
  dbsToMigrate?: string[];
1202
1213
  /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
1203
1214
  setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
1204
- /** Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
1215
+ /** Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
1205
1216
  overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
1206
1217
  /** Start time in UTC for migration window */
1207
1218
  migrationWindowStartTimeInUtc?: Date;
@@ -1209,13 +1220,13 @@ export interface MigrationResource extends TrackedResource {
1209
1220
  migrationWindowEndTimeInUtc?: Date;
1210
1221
  /** Indicates whether the data migration should start right away */
1211
1222
  startDataMigration?: StartDataMigrationEnum;
1212
- /** To trigger cutover for entire migration we need to send this flag as Enabled */
1223
+ /** To trigger cutover for entire migration we need to send this flag as True */
1213
1224
  triggerCutover?: TriggerCutoverEnum;
1214
- /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
1225
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array */
1215
1226
  dbsToTriggerCutoverOn?: string[];
1216
- /** To trigger cancel for entire migration we need to send this flag as Enabled */
1227
+ /** To trigger cancel for entire migration we need to send this flag as True */
1217
1228
  cancel?: CancelEnum;
1218
- /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
1229
+ /** When you want to trigger cancel for specific databases send cancel flag as True and database names in this array */
1219
1230
  dbsToCancelMigrationOn?: string[];
1220
1231
  }
1221
1232
 
@@ -2060,10 +2071,10 @@ export type MigrationMode = string;
2060
2071
 
2061
2072
  /** Known values of {@link LogicalReplicationOnSourceDbEnum} that the service accepts. */
2062
2073
  export enum KnownLogicalReplicationOnSourceDbEnum {
2063
- /** Enabled */
2064
- Enabled = "Enabled",
2065
- /** Disabled */
2066
- Disabled = "Disabled"
2074
+ /** True */
2075
+ True = "True",
2076
+ /** False */
2077
+ False = "False"
2067
2078
  }
2068
2079
 
2069
2080
  /**
@@ -2071,17 +2082,17 @@ export enum KnownLogicalReplicationOnSourceDbEnum {
2071
2082
  * {@link KnownLogicalReplicationOnSourceDbEnum} can be used interchangeably with LogicalReplicationOnSourceDbEnum,
2072
2083
  * this enum contains the known values that the service supports.
2073
2084
  * ### Known values supported by the service
2074
- * **Enabled** \
2075
- * **Disabled**
2085
+ * **True** \
2086
+ * **False**
2076
2087
  */
2077
2088
  export type LogicalReplicationOnSourceDbEnum = string;
2078
2089
 
2079
2090
  /** Known values of {@link OverwriteDbsInTargetEnum} that the service accepts. */
2080
2091
  export enum KnownOverwriteDbsInTargetEnum {
2081
- /** Enabled */
2082
- Enabled = "Enabled",
2083
- /** Disabled */
2084
- Disabled = "Disabled"
2092
+ /** True */
2093
+ True = "True",
2094
+ /** False */
2095
+ False = "False"
2085
2096
  }
2086
2097
 
2087
2098
  /**
@@ -2089,17 +2100,17 @@ export enum KnownOverwriteDbsInTargetEnum {
2089
2100
  * {@link KnownOverwriteDbsInTargetEnum} can be used interchangeably with OverwriteDbsInTargetEnum,
2090
2101
  * this enum contains the known values that the service supports.
2091
2102
  * ### Known values supported by the service
2092
- * **Enabled** \
2093
- * **Disabled**
2103
+ * **True** \
2104
+ * **False**
2094
2105
  */
2095
2106
  export type OverwriteDbsInTargetEnum = string;
2096
2107
 
2097
2108
  /** Known values of {@link StartDataMigrationEnum} that the service accepts. */
2098
2109
  export enum KnownStartDataMigrationEnum {
2099
- /** Enabled */
2100
- Enabled = "Enabled",
2101
- /** Disabled */
2102
- Disabled = "Disabled"
2110
+ /** True */
2111
+ True = "True",
2112
+ /** False */
2113
+ False = "False"
2103
2114
  }
2104
2115
 
2105
2116
  /**
@@ -2107,17 +2118,17 @@ export enum KnownStartDataMigrationEnum {
2107
2118
  * {@link KnownStartDataMigrationEnum} can be used interchangeably with StartDataMigrationEnum,
2108
2119
  * this enum contains the known values that the service supports.
2109
2120
  * ### Known values supported by the service
2110
- * **Enabled** \
2111
- * **Disabled**
2121
+ * **True** \
2122
+ * **False**
2112
2123
  */
2113
2124
  export type StartDataMigrationEnum = string;
2114
2125
 
2115
2126
  /** Known values of {@link TriggerCutoverEnum} that the service accepts. */
2116
2127
  export enum KnownTriggerCutoverEnum {
2117
- /** Enabled */
2118
- Enabled = "Enabled",
2119
- /** Disabled */
2120
- Disabled = "Disabled"
2128
+ /** True */
2129
+ True = "True",
2130
+ /** False */
2131
+ False = "False"
2121
2132
  }
2122
2133
 
2123
2134
  /**
@@ -2125,17 +2136,17 @@ export enum KnownTriggerCutoverEnum {
2125
2136
  * {@link KnownTriggerCutoverEnum} can be used interchangeably with TriggerCutoverEnum,
2126
2137
  * this enum contains the known values that the service supports.
2127
2138
  * ### Known values supported by the service
2128
- * **Enabled** \
2129
- * **Disabled**
2139
+ * **True** \
2140
+ * **False**
2130
2141
  */
2131
2142
  export type TriggerCutoverEnum = string;
2132
2143
 
2133
2144
  /** Known values of {@link CancelEnum} that the service accepts. */
2134
2145
  export enum KnownCancelEnum {
2135
- /** Enabled */
2136
- Enabled = "Enabled",
2137
- /** Disabled */
2138
- Disabled = "Disabled"
2146
+ /** True */
2147
+ True = "True",
2148
+ /** False */
2149
+ False = "False"
2139
2150
  }
2140
2151
 
2141
2152
  /**
@@ -2143,8 +2154,8 @@ export enum KnownCancelEnum {
2143
2154
  * {@link KnownCancelEnum} can be used interchangeably with CancelEnum,
2144
2155
  * this enum contains the known values that the service supports.
2145
2156
  * ### Known values supported by the service
2146
- * **Enabled** \
2147
- * **Disabled**
2157
+ * **True** \
2158
+ * **False**
2148
2159
  */
2149
2160
  export type CancelEnum = string;
2150
2161
 
@@ -574,6 +574,13 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = {
574
574
  type: {
575
575
  name: "String"
576
576
  }
577
+ },
578
+ tenantId: {
579
+ serializedName: "tenantId",
580
+ readOnly: true,
581
+ type: {
582
+ name: "String"
583
+ }
577
584
  }
578
585
  }
579
586
  }
@@ -757,14 +764,12 @@ export const Network: coreClient.CompositeMapper = {
757
764
  }
758
765
  },
759
766
  delegatedSubnetResourceId: {
760
- defaultValue: "",
761
767
  serializedName: "delegatedSubnetResourceId",
762
768
  type: {
763
769
  name: "String"
764
770
  }
765
771
  },
766
772
  privateDnsZoneArmResourceId: {
767
- defaultValue: "",
768
773
  serializedName: "privateDnsZoneArmResourceId",
769
774
  type: {
770
775
  name: "String"
@@ -932,6 +937,13 @@ export const ServerForUpdate: coreClient.CompositeMapper = {
932
937
  type: {
933
938
  name: "String"
934
939
  }
940
+ },
941
+ network: {
942
+ serializedName: "properties.network",
943
+ type: {
944
+ name: "Composite",
945
+ className: "Network"
946
+ }
935
947
  }
936
948
  }
937
949
  }
@@ -1038,17 +1050,17 @@ export const DbServerMetadata: coreClient.CompositeMapper = {
1038
1050
  serializedName: "sku",
1039
1051
  type: {
1040
1052
  name: "Composite",
1041
- className: "ServerSkuAutoGenerated"
1053
+ className: "ServerSku"
1042
1054
  }
1043
1055
  }
1044
1056
  }
1045
1057
  }
1046
1058
  };
1047
1059
 
1048
- export const ServerSkuAutoGenerated: coreClient.CompositeMapper = {
1060
+ export const ServerSku: coreClient.CompositeMapper = {
1049
1061
  type: {
1050
1062
  name: "Composite",
1051
- className: "ServerSkuAutoGenerated",
1063
+ className: "ServerSku",
1052
1064
  modelProperties: {
1053
1065
  name: {
1054
1066
  serializedName: "name",
@@ -1079,6 +1091,18 @@ export const MigrationSecretParameters: coreClient.CompositeMapper = {
1079
1091
  name: "Composite",
1080
1092
  className: "AdminCredentials"
1081
1093
  }
1094
+ },
1095
+ sourceServerUsername: {
1096
+ serializedName: "sourceServerUsername",
1097
+ type: {
1098
+ name: "String"
1099
+ }
1100
+ },
1101
+ targetServerUsername: {
1102
+ serializedName: "targetServerUsername",
1103
+ type: {
1104
+ name: "String"
1105
+ }
1082
1106
  }
1083
1107
  }
1084
1108
  }
@@ -1841,10 +1865,10 @@ export const StorageEditionCapability: coreClient.CompositeMapper = {
1841
1865
  }
1842
1866
  };
1843
1867
 
1844
- export const ServerSku: coreClient.CompositeMapper = {
1868
+ export const ServerSkuCapability: coreClient.CompositeMapper = {
1845
1869
  type: {
1846
1870
  name: "Composite",
1847
- className: "ServerSku",
1871
+ className: "ServerSkuCapability",
1848
1872
  modelProperties: {
1849
1873
  ...CapabilityBase.type.modelProperties,
1850
1874
  name: {
@@ -1944,7 +1968,7 @@ export const FlexibleServerEditionCapability: coreClient.CompositeMapper = {
1944
1968
  element: {
1945
1969
  type: {
1946
1970
  name: "Composite",
1947
- className: "ServerSku"
1971
+ className: "ServerSkuCapability"
1948
1972
  }
1949
1973
  }
1950
1974
  }
@@ -95,7 +95,7 @@ export class PostgreSQLManagementFlexibleServerClient extends coreClient.Service
95
95
  credential: credentials
96
96
  };
97
97
 
98
- const packageDetails = `azsdk-js-arm-postgresql-flexible/8.0.0-beta.1`;
98
+ const packageDetails = `azsdk-js-arm-postgresql-flexible/8.0.0-beta.2`;
99
99
  const userAgentPrefix =
100
100
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
101
101
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -273,8 +273,8 @@ export declare interface BackupStoreDetails {
273
273
  * {@link KnownCancelEnum} can be used interchangeably with CancelEnum,
274
274
  * this enum contains the known values that the service supports.
275
275
  * ### Known values supported by the service
276
- * **Enabled** \
277
- * **Disabled**
276
+ * **True** \
277
+ * **False**
278
278
  */
279
279
  export declare type CancelEnum = string;
280
280
 
@@ -799,7 +799,7 @@ export declare interface DbServerMetadata {
799
799
  /** Storage size in MB for database server */
800
800
  storageMb?: number;
801
801
  /** SKU for the database server */
802
- sku?: ServerSkuAutoGenerated;
802
+ sku?: ServerSku;
803
803
  }
804
804
 
805
805
  /** Delegated subnet usage data. */
@@ -1153,7 +1153,7 @@ export declare interface FlexibleServerEditionCapability extends CapabilityBase
1153
1153
  * List of supported server SKUs.
1154
1154
  * NOTE: This property will not be serialized. It can only be populated by the server.
1155
1155
  */
1156
- readonly supportedServerSkus?: ServerSku[];
1156
+ readonly supportedServerSkus?: ServerSkuCapability[];
1157
1157
  }
1158
1158
 
1159
1159
  /** Defines headers for FlexibleServer_startLtrBackup operation. */
@@ -1354,10 +1354,10 @@ export declare enum KnownAzureManagedDiskPerformanceTiers {
1354
1354
 
1355
1355
  /** Known values of {@link CancelEnum} that the service accepts. */
1356
1356
  export declare enum KnownCancelEnum {
1357
- /** Enabled */
1358
- Enabled = "Enabled",
1359
- /** Disabled */
1360
- Disabled = "Disabled"
1357
+ /** True */
1358
+ True = "True",
1359
+ /** False */
1360
+ False = "False"
1361
1361
  }
1362
1362
 
1363
1363
  /** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
@@ -1502,10 +1502,10 @@ export declare enum KnownKeyStatusEnum {
1502
1502
 
1503
1503
  /** Known values of {@link LogicalReplicationOnSourceDbEnum} that the service accepts. */
1504
1504
  export declare enum KnownLogicalReplicationOnSourceDbEnum {
1505
- /** Enabled */
1506
- Enabled = "Enabled",
1507
- /** Disabled */
1508
- Disabled = "Disabled"
1505
+ /** True */
1506
+ True = "True",
1507
+ /** False */
1508
+ False = "False"
1509
1509
  }
1510
1510
 
1511
1511
  /** Known values of {@link MigrationDetailsLevel} that the service accepts. */
@@ -1606,10 +1606,10 @@ export declare enum KnownOrigin {
1606
1606
 
1607
1607
  /** Known values of {@link OverwriteDbsInTargetEnum} that the service accepts. */
1608
1608
  export declare enum KnownOverwriteDbsInTargetEnum {
1609
- /** Enabled */
1610
- Enabled = "Enabled",
1611
- /** Disabled */
1612
- Disabled = "Disabled"
1609
+ /** True */
1610
+ True = "True",
1611
+ /** False */
1612
+ False = "False"
1613
1613
  }
1614
1614
 
1615
1615
  /** Known values of {@link PasswordAuthEnum} that the service accepts. */
@@ -1720,10 +1720,10 @@ export declare enum KnownSkuTier {
1720
1720
 
1721
1721
  /** Known values of {@link StartDataMigrationEnum} that the service accepts. */
1722
1722
  export declare enum KnownStartDataMigrationEnum {
1723
- /** Enabled */
1724
- Enabled = "Enabled",
1725
- /** Disabled */
1726
- Disabled = "Disabled"
1723
+ /** True */
1724
+ True = "True",
1725
+ /** False */
1726
+ False = "False"
1727
1727
  }
1728
1728
 
1729
1729
  /** Known values of {@link StorageAutoGrow} that the service accepts. */
@@ -1744,10 +1744,10 @@ export declare enum KnownStorageAutoGrowthSupportedEnum {
1744
1744
 
1745
1745
  /** Known values of {@link TriggerCutoverEnum} that the service accepts. */
1746
1746
  export declare enum KnownTriggerCutoverEnum {
1747
- /** Enabled */
1748
- Enabled = "Enabled",
1749
- /** Disabled */
1750
- Disabled = "Disabled"
1747
+ /** True */
1748
+ True = "True",
1749
+ /** False */
1750
+ False = "False"
1751
1751
  }
1752
1752
 
1753
1753
  /** Known values of {@link ZoneRedundantHaAndGeoBackupSupportedEnum} that the service accepts. */
@@ -1842,8 +1842,8 @@ export declare type LogFilesListByServerResponse = LogFileListResult;
1842
1842
  * {@link KnownLogicalReplicationOnSourceDbEnum} can be used interchangeably with LogicalReplicationOnSourceDbEnum,
1843
1843
  * this enum contains the known values that the service supports.
1844
1844
  * ### Known values supported by the service
1845
- * **Enabled** \
1846
- * **Disabled**
1845
+ * **True** \
1846
+ * **False**
1847
1847
  */
1848
1848
  export declare type LogicalReplicationOnSourceDbEnum = string;
1849
1849
 
@@ -2088,7 +2088,7 @@ export declare interface MigrationResource extends TrackedResource {
2088
2088
  dbsToMigrate?: string[];
2089
2089
  /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
2090
2090
  setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
2091
- /** Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
2091
+ /** Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
2092
2092
  overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
2093
2093
  /** Start time in UTC for migration window */
2094
2094
  migrationWindowStartTimeInUtc?: Date;
@@ -2096,13 +2096,13 @@ export declare interface MigrationResource extends TrackedResource {
2096
2096
  migrationWindowEndTimeInUtc?: Date;
2097
2097
  /** Indicates whether the data migration should start right away */
2098
2098
  startDataMigration?: StartDataMigrationEnum;
2099
- /** To trigger cutover for entire migration we need to send this flag as Enabled */
2099
+ /** To trigger cutover for entire migration we need to send this flag as True */
2100
2100
  triggerCutover?: TriggerCutoverEnum;
2101
- /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
2101
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array */
2102
2102
  dbsToTriggerCutoverOn?: string[];
2103
- /** To trigger cancel for entire migration we need to send this flag as Enabled */
2103
+ /** To trigger cancel for entire migration we need to send this flag as True */
2104
2104
  cancel?: CancelEnum;
2105
- /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
2105
+ /** When you want to trigger cancel for specific databases send cancel flag as True and database names in this array */
2106
2106
  dbsToCancelMigrationOn?: string[];
2107
2107
  }
2108
2108
 
@@ -2124,19 +2124,19 @@ export declare interface MigrationResourceForPatch {
2124
2124
  dbsToMigrate?: string[];
2125
2125
  /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
2126
2126
  setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
2127
- /** Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
2127
+ /** Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
2128
2128
  overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
2129
2129
  /** Start time in UTC for migration window */
2130
2130
  migrationWindowStartTimeInUtc?: Date;
2131
2131
  /** Indicates whether the data migration should start right away */
2132
2132
  startDataMigration?: StartDataMigrationEnum;
2133
- /** To trigger cutover for entire migration we need to send this flag as Enabled */
2133
+ /** To trigger cutover for entire migration we need to send this flag as True */
2134
2134
  triggerCutover?: TriggerCutoverEnum;
2135
- /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
2135
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array */
2136
2136
  dbsToTriggerCutoverOn?: string[];
2137
- /** To trigger cancel for entire migration we need to send this flag as Enabled */
2137
+ /** To trigger cancel for entire migration we need to send this flag as True */
2138
2138
  cancel?: CancelEnum;
2139
- /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
2139
+ /** When you want to trigger cancel for specific databases send cancel flag as True and database names in this array */
2140
2140
  dbsToCancelMigrationOn?: string[];
2141
2141
  /** There are two types of migration modes Online and Offline */
2142
2142
  migrationMode?: MigrationMode;
@@ -2222,6 +2222,10 @@ export declare interface MigrationsDeleteOptionalParams extends coreClient.Opera
2222
2222
  export declare interface MigrationSecretParameters {
2223
2223
  /** Admin credentials for source and target servers */
2224
2224
  adminCredentials: AdminCredentials;
2225
+ /** Gets or sets the username for the source server. This user need not be an admin. */
2226
+ sourceServerUsername?: string;
2227
+ /** Gets or sets the username for the target server. This user need not be an admin. */
2228
+ targetServerUsername?: string;
2225
2229
  }
2226
2230
 
2227
2231
  /** Optional parameters. */
@@ -2327,16 +2331,16 @@ export declare interface NameAvailability extends CheckNameAvailabilityResponse
2327
2331
  readonly type?: string;
2328
2332
  }
2329
2333
 
2330
- /** Network properties of a server */
2334
+ /** Network properties of a server. */
2331
2335
  export declare interface Network {
2332
2336
  /**
2333
2337
  * public network access is enabled or not
2334
2338
  * NOTE: This property will not be serialized. It can only be populated by the server.
2335
2339
  */
2336
2340
  readonly publicNetworkAccess?: ServerPublicNetworkAccessState;
2337
- /** delegated subnet arm resource id. */
2341
+ /** Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. */
2338
2342
  delegatedSubnetResourceId?: string;
2339
- /** private dns zone arm resource id. */
2343
+ /** Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. */
2340
2344
  privateDnsZoneArmResourceId?: string;
2341
2345
  }
2342
2346
 
@@ -2454,8 +2458,8 @@ export declare type Origin = string;
2454
2458
  * {@link KnownOverwriteDbsInTargetEnum} can be used interchangeably with OverwriteDbsInTargetEnum,
2455
2459
  * this enum contains the known values that the service supports.
2456
2460
  * ### Known values supported by the service
2457
- * **Enabled** \
2458
- * **Disabled**
2461
+ * **True** \
2462
+ * **False**
2459
2463
  */
2460
2464
  export declare type OverwriteDbsInTargetEnum = string;
2461
2465
 
@@ -2647,7 +2651,7 @@ export declare interface Server extends TrackedResource {
2647
2651
  dataEncryption?: DataEncryption;
2648
2652
  /** Backup properties of a server. */
2649
2653
  backup?: Backup;
2650
- /** Network properties of a server. */
2654
+ /** Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server. */
2651
2655
  network?: Network;
2652
2656
  /** High availability properties of a server. */
2653
2657
  highAvailability?: HighAvailability;
@@ -2746,6 +2750,8 @@ export declare interface ServerForUpdate {
2746
2750
  createMode?: CreateModeForUpdate;
2747
2751
  /** Replication role of the server */
2748
2752
  replicationRole?: ReplicationRole;
2753
+ /** Network properties of a server. These are required to be passed only in case if server is a private access server. */
2754
+ network?: Network;
2749
2755
  }
2750
2756
 
2751
2757
  /**
@@ -2928,8 +2934,16 @@ export declare interface ServersGetOptionalParams extends coreClient.OperationOp
2928
2934
  /** Contains response data for the get operation. */
2929
2935
  export declare type ServersGetResponse = Server;
2930
2936
 
2937
+ /** Sku information related properties of a server. */
2938
+ export declare interface ServerSku {
2939
+ /** The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */
2940
+ name: string;
2941
+ /** The tier of the particular SKU, e.g. Burstable. */
2942
+ tier: SkuTier;
2943
+ }
2944
+
2931
2945
  /** Sku capability */
2932
- export declare interface ServerSku extends CapabilityBase {
2946
+ export declare interface ServerSkuCapability extends CapabilityBase {
2933
2947
  /**
2934
2948
  * Sku name
2935
2949
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2962,14 +2976,6 @@ export declare interface ServerSku extends CapabilityBase {
2962
2976
  readonly supportedHaMode?: HaMode[];
2963
2977
  }
2964
2978
 
2965
- /** Sku information related properties of a server. */
2966
- export declare interface ServerSkuAutoGenerated {
2967
- /** The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */
2968
- name: string;
2969
- /** The tier of the particular SKU, e.g. Burstable. */
2970
- tier: SkuTier;
2971
- }
2972
-
2973
2979
  /** Optional parameters. */
2974
2980
  export declare interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
2975
2981
  }
@@ -3121,8 +3127,8 @@ export declare type SkuTier = string;
3121
3127
  * {@link KnownStartDataMigrationEnum} can be used interchangeably with StartDataMigrationEnum,
3122
3128
  * this enum contains the known values that the service supports.
3123
3129
  * ### Known values supported by the service
3124
- * **Enabled** \
3125
- * **Disabled**
3130
+ * **True** \
3131
+ * **False**
3126
3132
  */
3127
3133
  export declare type StartDataMigrationEnum = string;
3128
3134
 
@@ -3250,8 +3256,8 @@ export declare interface TrackedResource extends Resource {
3250
3256
  * {@link KnownTriggerCutoverEnum} can be used interchangeably with TriggerCutoverEnum,
3251
3257
  * this enum contains the known values that the service supports.
3252
3258
  * ### Known values supported by the service
3253
- * **Enabled** \
3254
- * **Disabled**
3259
+ * **True** \
3260
+ * **False**
3255
3261
  */
3256
3262
  export declare type TriggerCutoverEnum = string;
3257
3263
 
@@ -3263,6 +3269,11 @@ export declare interface UserAssignedIdentity {
3263
3269
  };
3264
3270
  /** the types of identities associated with this resource; currently restricted to 'None and UserAssigned' */
3265
3271
  type: IdentityType;
3272
+ /**
3273
+ * Tenant id of the server.
3274
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3275
+ */
3276
+ readonly tenantId?: string;
3266
3277
  }
3267
3278
 
3268
3279
  /** Describes a single user-assigned identity associated with the application. */