terraform/vendor/github.com/jen20/riviera/dns/api.go

19 lines
634 B
Go
Raw Normal View History

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)
}
}
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)
}
}