Skip to content

Commit

Permalink
Add optional param - private DNS zone to server API (#13716)
Browse files Browse the repository at this point in the history
* Add optional param - private DNS zone to server API

* Follow comment to resolve go sdk issue.
  • Loading branch information
taogems authored Apr 16, 2021
1 parent 3cba7d6 commit b39d331
Show file tree
Hide file tree
Showing 18 changed files with 76 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down Expand Up @@ -48,6 +51,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down Expand Up @@ -88,6 +94,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"publicNetworkAccess": "Enabled",
"haEnabled": "Disabled",
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down Expand Up @@ -63,6 +64,7 @@
"publicNetworkAccess": "Enabled",
"haEnabled": "Disabled",
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"backupRetentionDays": 20
},
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"haEnabled": "Disabled",
"availabilityZone": "1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"backupRetentionDays": 20
},
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"haEnabled": "Disabled",
"availabilityZone": "1",
"maintenanceWindow": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,14 @@
}
}
},
"privateDnsZoneArguments": {
"properties": {
"privateDnsZoneArmResourceId": {
"type": "string",
"description": "private dns zone arm resource id."
}
}
},
"createMode": {
"type": "string",
"description": "The mode to create a new PostgreSQL server.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down Expand Up @@ -48,6 +51,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down Expand Up @@ -88,6 +94,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"publicNetworkAccess": "Enabled",
"haEnabled": "Disabled",
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down Expand Up @@ -63,6 +64,7 @@
"publicNetworkAccess": "Enabled",
"haEnabled": "Disabled",
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"storageProfile": {
"storageMB": 524288,
"backupRetentionDays": 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"backupRetentionDays": 20
},
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"haEnabled": "Disabled",
"availabilityZone": "1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"backupRetentionDays": 20
},
"delegatedSubnetArguments": {},
"privateDnsZoneArguments": {},
"haEnabled": "Disabled",
"availabilityZone": "1",
"maintenanceWindow": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,14 @@
}
}
},
"privateDnsZoneArguments": {
"properties": {
"privateDnsZoneArmResourceId": {
"type": "string",
"description": "private dns zone arm resource id."
}
}
},
"createMode": {
"type": "string",
"description": "The mode to create a new PostgreSQL server.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"enableMx": true,
"enableZfs": false,
"postgresqlVersion": "12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"maintenanceWindow": {
"dayOfWeek": 0,
"startHour": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"readReplicas": [
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/hsctestsg2"
],
Expand Down Expand Up @@ -185,6 +188,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"readReplicas": null,
"sourceServerGroup": null,
"serverRoleGroups": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"readReplicas": null,
"sourceServerGroup": null,
"serverRoleGroups": [
Expand Down Expand Up @@ -184,6 +187,9 @@
"delegatedSubnetArguments": {
"subnetArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone"
},
"readReplicas": null,
"sourceServerGroup": null,
"serverRoleGroups": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,15 @@
}
}
},
"privateDnsZoneArguments": {
"description": "The private dns zone arguments for a server group.",
"properties": {
"privateDnsZoneArmResourceId": {
"type": "string",
"description": "private dns zone arm resource id."
}
}
},
"readReplicas": {
"type": "array",
"description": "The array of read replica server groups.",
Expand Down
2 changes: 1 addition & 1 deletion specification/postgresqlhsc/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ These settings apply only when `--tag=package-2020-10-05-privatepreview --go` is
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2020-10-05-privatepreview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-05-privatepreview/$(namespace)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-10-05-preview/$(namespace)
```

0 comments on commit b39d331

Please sign in to comment.