Skip to content

Commit a116305

Browse files
vasundhraManhasVasundhra Manhas
andauthored
fixing s360 errors and adding secure strings (#18593)
* fixing s360 errors and adding secure strings * nit error * pretty check * fileshare password as secure string * Revert "pretty check" This reverts commit 677d27c. * nit error * Revert "nit error" This reverts commit 345b38a. * removing extra space * moving targetDatabaseCollation and provisioningError Co-authored-by: Vasundhra Manhas <[email protected]>
1 parent 7b1704e commit a116305

File tree

2 files changed

+39
-30
lines changed

2 files changed

+39
-30
lines changed

specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2022-03-30-preview/definitions/Common.json

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@
265265
"type": "string",
266266
"description": "server version"
267267
},
268+
"serverName": {
269+
"type": "string",
270+
"description": "name of the server"
271+
},
268272
"trustServerCertificate": {
269273
"type": "boolean",
270274
"description": "Whether to trust the server certificate",
@@ -280,6 +284,10 @@
280284
"additionalSettings": {
281285
"type": "string",
282286
"description": "Additional connection settings"
287+
},
288+
"authentication": {
289+
"$ref": "#/definitions/AuthenticationType",
290+
"description": "Authentication type to use for connection"
283291
}
284292
},
285293
"required": [
@@ -383,6 +391,10 @@
383391
"authentication": {
384392
"$ref": "#/definitions/AuthenticationType",
385393
"description": "Authentication type to use for connection"
394+
},
395+
"additionalSettings": {
396+
"type": "string",
397+
"description": "Additional connection settings"
386398
}
387399
},
388400
"allOf": [
@@ -403,6 +415,22 @@
403415
"dataSource": {
404416
"type": "string",
405417
"description": "EZConnect or TNSName connection string."
418+
},
419+
"serverName": {
420+
"type": "string",
421+
"description": "name of the server"
422+
},
423+
"serverVersion": {
424+
"type": "string",
425+
"description": "server version"
426+
},
427+
"port": {
428+
"type": "integer",
429+
"description": "port for server"
430+
},
431+
"authentication": {
432+
"$ref": "#/definitions/AuthenticationType",
433+
"description": "Authentication type to use for connection"
406434
}
407435
},
408436
"allOf": [
@@ -518,12 +546,7 @@
518546
"type": "boolean",
519547
"description": "Ignore checking azure permissions on the AAD app"
520548
}
521-
},
522-
"required": [
523-
"applicationId",
524-
"appKey",
525-
"tenantId"
526-
]
549+
}
527550
},
528551
"MiSqlConnectionInfo": {
529552
"x-ms-discriminator-value": "MiSqlConnectionInfo",

specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2022-03-30-preview/sqlmigration.json

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,14 @@
13071307
"$ref": "#/definitions/ErrorInfo",
13081308
"description": "Error details in case of migration failure.",
13091309
"readOnly": true
1310+
},
1311+
"targetDatabaseCollation": {
1312+
"description": "Database collation to be used for the target database.",
1313+
"type": "string"
1314+
},
1315+
"provisioningError": {
1316+
"description": "Error message for migration provisioning failure, if any.",
1317+
"type": "string"
13101318
}
13111319
},
13121320
"discriminator": "kind"
@@ -1326,14 +1334,6 @@
13261334
"description": "Detailed migration status. Not included by default.",
13271335
"readOnly": true
13281336
},
1329-
"targetDatabaseCollation": {
1330-
"description": "Database collation to be used for the target database.",
1331-
"type": "string"
1332-
},
1333-
"provisioningError": {
1334-
"description": "Error message for migration provisioning failure, if any.",
1335-
"type": "string"
1336-
},
13371337
"backupConfiguration": {
13381338
"$ref": "#/definitions/BackupConfiguration",
13391339
"description": "Backup configuration info."
@@ -1359,14 +1359,6 @@
13591359
"description": "Detailed migration status. Not included by default.",
13601360
"readOnly": true
13611361
},
1362-
"targetDatabaseCollation": {
1363-
"description": "Database collation to be used for the target database.",
1364-
"type": "string"
1365-
},
1366-
"provisioningError": {
1367-
"description": "Error message for migration provisioning failure, if any.",
1368-
"type": "string"
1369-
},
13701362
"backupConfiguration": {
13711363
"$ref": "#/definitions/BackupConfiguration",
13721364
"description": "Backup configuration info."
@@ -1407,14 +1399,6 @@
14071399
"items": {
14081400
"type": "string"
14091401
}
1410-
},
1411-
"targetDatabaseCollation": {
1412-
"description": "Database collation to be used for the target database.",
1413-
"type": "string"
1414-
},
1415-
"provisioningError": {
1416-
"description": "Error message for migration provisioning failure, if any.",
1417-
"type": "string"
14181402
}
14191403
}
14201404
},
@@ -1643,6 +1627,7 @@
16431627
"password": {
16441628
"description": "Password to connect to source SQL.",
16451629
"type": "string",
1630+
"format": "password",
16461631
"x-ms-secret": true
16471632
},
16481633
"encryptConnection": {
@@ -1870,6 +1855,7 @@
18701855
"password": {
18711856
"description": "Password for username to access file share location.",
18721857
"type": "string",
1858+
"format": "password",
18731859
"x-ms-secret": true,
18741860
"x-ms-mutability": [
18751861
"create",

0 commit comments

Comments
 (0)