2016-02-03 19:00:55 +01:00
|
|
|
package dns
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
const apiVersion = "2015-05-04-preview"
|
|
|
|
const apiProvider = "Microsoft.Network"
|
|
|
|
|
|
|
|
func dnsZoneDefaultURLPathFunc(resourceGroupName, dnsZoneName string) func() string {
|
|
|
|
return func() string {
|
|
|
|
return fmt.Sprintf("resourceGroups/%s/providers/%s/dnsZones/%s", resourceGroupName, apiProvider, dnsZoneName)
|
|
|
|
}
|
|
|
|
}
|
2016-02-05 12:28:48 +01:00
|
|
|
|
|
|
|
func dnsRecordSetDefaultURLPathFunc(resourceGroupName, dnsZoneName, recordSetType, recordSetName string) func() string {
|
|
|
|
return func() string {
|
|
|
|
return fmt.Sprintf("resourceGroups/%s/providers/%s/dnsZones/%s/%s/%s", resourceGroupName, apiProvider, dnsZoneName, recordSetType, recordSetName)
|
|
|
|
}
|
|
|
|
}
|