Skip to content

Commit f348535

Browse files
authored
Set publicNetworkAccess to read only in MySQL Flexible Server swagger (Azure#10738)
1 parent ff5a5ea commit f348535

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ServerCreate.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"administratorLogin": "cloudsa",
1111
"administratorLoginPassword": "pass$w0rd",
1212
"sslEnforcement": "Enabled",
13-
"publicNetworkAccess": "Enabled",
1413
"storageProfile": {
1514
"storageMB": 128000,
1615
"storageIops": 200,

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ServerGet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"haEnabled": "Enabled",
3232
"haState": "Healthy",
3333
"availabilityZone": "1",
34-
"standByAvailabilityZone": "2",
34+
"standbyAvailabilityZone": "2",
3535
"maintenanceWindow": {
3636
"dayOfWeek": 0,
3737
"startHour": 0,

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ServerGetWithVnet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"replicationRole": "None",
2727
"sourceServerId": "",
2828
"replicaCapacity": 5,
29-
"publicNetworkAccess": "Enabled",
29+
"publicNetworkAccess": "Disabled",
3030
"haEnabled": "Disabled",
3131
"delegatedSubnetArguments": {
3232
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ServerUpdate.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"parameters": {
88
"properties": {
99
"administratorLoginPassword": "newpa$$w0rd",
10-
"sslEnforcement": "Disabled",
11-
"publicNetworkAccess": "Disabled"
10+
"sslEnforcement": "Disabled"
1211
}
1312
}
1413
},
@@ -27,13 +26,13 @@
2726
},
2827
"version": "5.7",
2928
"sslEnforcement": "Disabled",
30-
"publicNetworkAccess": "Disabled",
29+
"publicNetworkAccess": "Enabled",
3130
"state": "Ready",
3231
"fullyQualifiedDomainName": "mysqltestsvc4.mysql.database.azure.com",
3332
"haEnabled": "Enabled",
3433
"haState": "Healthy",
3534
"availabilityZone": "1",
36-
"standByAvailabilityZone": "2",
35+
"standbyAvailabilityZone": "2",
3736
"maintenanceWindow": {
3837
"dayOfWeek": 0,
3938
"startHour": 0,

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ServerUpdateWithCustomerMaintenanceWindow.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
},
3131
"version": "5.7",
3232
"sslEnforcement": "Disabled",
33-
"publicNetworkAccess": "Disabled",
33+
"publicNetworkAccess": "Enabled",
3434
"state": "Ready",
3535
"fullyQualifiedDomainName": "mysqltestsvc4.mysql.database.azure.com",
3636
"haEnabled": "Disabled",
3737
"haState": "NotEnabled",
3838
"availabilityZone": "1",
39-
"standByAvailabilityZone": null,
39+
"standbyAvailabilityZone": null,
4040
"maintenanceWindow": {
4141
"dayOfWeek": 0,
4242
"startHour": 8,

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/mysql.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@
16451645
"earliestRestoreDate": {
16461646
"type": "string",
16471647
"format": "date-time",
1648+
"readOnly": true,
16481649
"description": "Earliest restore point creation time (ISO8601 format)"
16491650
},
16501651
"storageProfile": {
@@ -1659,10 +1660,12 @@
16591660
"type": "integer",
16601661
"format": "int32",
16611662
"minimum": 0,
1663+
"readOnly": true,
16621664
"description": "The maximum number of replicas that a primary server can have."
16631665
},
16641666
"publicNetworkAccess": {
16651667
"$ref": "#/definitions/PublicNetworkAccess",
1668+
"readOnly": true,
16661669
"description": "Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'"
16671670
},
16681671
"maintenanceWindow": {
@@ -1689,7 +1692,7 @@
16891692
"type": "string",
16901693
"description": "availability Zone information of the server."
16911694
},
1692-
"standByAvailabilityZone": {
1695+
"standbyAvailabilityZone": {
16931696
"type": "string",
16941697
"description": "availability Zone information of the server.",
16951698
"readOnly": true
@@ -1776,10 +1779,6 @@
17761779
"$ref": "#/definitions/HaEnabled",
17771780
"description": "Enable HA or not for a server."
17781781
},
1779-
"publicNetworkAccess": {
1780-
"$ref": "#/definitions/PublicNetworkAccess",
1781-
"description": "Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'"
1782-
},
17831782
"maintenanceWindow": {
17841783
"$ref": "#/definitions/MaintenanceWindow",
17851784
"description": "Maintenance window of a server."

0 commit comments

Comments
 (0)