@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.
- package/CHANGELOG.md +4 -2
- package/dist/index.js +55 -31
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/migrationsCreateSample.js +42 -0
- package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/migrationsUpdateSample.js +22 -1
- package/dist-esm/samples-dev/migrationsUpdateSample.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +59 -48
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +20 -20
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +2 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +32 -8
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +1 -1
- package/package.json +1 -1
- package/review/arm-postgresql-flexible.api.md +23 -19
- package/src/models/index.ts +59 -48
- package/src/models/mappers.ts +32 -8
- package/src/postgreSQLManagementFlexibleServerClient.ts +1 -1
- package/types/arm-postgresql-flexible.d.ts +66 -55
package/src/models/index.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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?:
|
|
455
|
+
sku?: ServerSku;
|
|
449
456
|
}
|
|
450
457
|
|
|
451
458
|
/** Sku information related properties of a server. */
|
|
452
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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?:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
2064
|
-
|
|
2065
|
-
/**
|
|
2066
|
-
|
|
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
|
-
* **
|
|
2075
|
-
* **
|
|
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
|
-
/**
|
|
2082
|
-
|
|
2083
|
-
/**
|
|
2084
|
-
|
|
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
|
-
* **
|
|
2093
|
-
* **
|
|
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
|
-
/**
|
|
2100
|
-
|
|
2101
|
-
/**
|
|
2102
|
-
|
|
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
|
-
* **
|
|
2111
|
-
* **
|
|
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
|
-
/**
|
|
2118
|
-
|
|
2119
|
-
/**
|
|
2120
|
-
|
|
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
|
-
* **
|
|
2129
|
-
* **
|
|
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
|
-
/**
|
|
2136
|
-
|
|
2137
|
-
/**
|
|
2138
|
-
|
|
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
|
-
* **
|
|
2147
|
-
* **
|
|
2157
|
+
* **True** \
|
|
2158
|
+
* **False**
|
|
2148
2159
|
*/
|
|
2149
2160
|
export type CancelEnum = string;
|
|
2150
2161
|
|
package/src/models/mappers.ts
CHANGED
|
@@ -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: "
|
|
1053
|
+
className: "ServerSku"
|
|
1042
1054
|
}
|
|
1043
1055
|
}
|
|
1044
1056
|
}
|
|
1045
1057
|
}
|
|
1046
1058
|
};
|
|
1047
1059
|
|
|
1048
|
-
export const
|
|
1060
|
+
export const ServerSku: coreClient.CompositeMapper = {
|
|
1049
1061
|
type: {
|
|
1050
1062
|
name: "Composite",
|
|
1051
|
-
className: "
|
|
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
|
|
1868
|
+
export const ServerSkuCapability: coreClient.CompositeMapper = {
|
|
1845
1869
|
type: {
|
|
1846
1870
|
name: "Composite",
|
|
1847
|
-
className: "
|
|
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: "
|
|
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.
|
|
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
|
-
* **
|
|
277
|
-
* **
|
|
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?:
|
|
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?:
|
|
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
|
-
/**
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
|
|
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
|
-
/**
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
|
|
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
|
-
/**
|
|
1610
|
-
|
|
1611
|
-
/**
|
|
1612
|
-
|
|
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
|
-
/**
|
|
1724
|
-
|
|
1725
|
-
/**
|
|
1726
|
-
|
|
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
|
-
/**
|
|
1748
|
-
|
|
1749
|
-
/**
|
|
1750
|
-
|
|
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
|
-
* **
|
|
1846
|
-
* **
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
* **
|
|
2458
|
-
* **
|
|
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
|
|
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
|
-
* **
|
|
3125
|
-
* **
|
|
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
|
-
* **
|
|
3254
|
-
* **
|
|
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. */
|