Skip to content

Commit ba32556

Browse files
author
SDKAuto
committed
CodeGen from PR 23623 in Azure/azure-rest-api-specs
add constraint for servername (#23623) * add constraint for servername * fix model validation * update 2022-01-01 for servernameparameter * unify servernameparameter for 2021-12-01-preview
1 parent f92417e commit ba32556

File tree

4 files changed

+712
-1
lines changed

4 files changed

+712
-1
lines changed

schemas/2021-12-01-preview/Microsoft.DBforMySQL.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
"description": "The geo-location where the resource lives"
3030
},
3131
"name": {
32-
"type": "string",
32+
"oneOf": [
33+
{
34+
"type": "string",
35+
"pattern": "^[a-z0-9][-a-z0-9]*(?<!-)$"
36+
},
37+
{
38+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
39+
}
40+
],
3341
"description": "The name of the server."
3442
},
3543
"properties": {
@@ -1003,6 +1011,21 @@
10031011
],
10041012
"description": "Storage IOPS for a server."
10051013
},
1014+
"logOnDisk": {
1015+
"oneOf": [
1016+
{
1017+
"type": "string",
1018+
"enum": [
1019+
"Enabled",
1020+
"Disabled"
1021+
]
1022+
},
1023+
{
1024+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1025+
}
1026+
],
1027+
"description": "Enable Log On Disk or not."
1028+
},
10061029
"storageSizeGB": {
10071030
"oneOf": [
10081031
{

schemas/2022-01-01/Microsoft.DBforMySQL.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,21 @@
10591059
],
10601060
"description": "Storage IOPS for a server."
10611061
},
1062+
"logOnDisk": {
1063+
"oneOf": [
1064+
{
1065+
"type": "string",
1066+
"enum": [
1067+
"Enabled",
1068+
"Disabled"
1069+
]
1070+
},
1071+
{
1072+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1073+
}
1074+
],
1075+
"description": "Enable Log On Disk or not."
1076+
},
10621077
"storageSizeGB": {
10631078
"oneOf": [
10641079
{

0 commit comments

Comments
 (0)