forked from hashicorp/terraform-provider-azurerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.go
41 lines (35 loc) · 1.59 KB
/
registration.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package privatedns
import (
"github.com/kevinklinger/terraform-provider-azurerm/v2/internal/tf/pluginsdk"
)
type Registration struct{}
// Name is the name of this Service
func (r Registration) Name() string {
return "Private DNS"
}
// WebsiteCategories returns a list of categories which can be used for the sidebar
func (r Registration) WebsiteCategories() []string {
return []string{
"Private DNS",
}
}
// SupportedDataSources returns the supported Data Sources supported by this Service
func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource {
return map[string]*pluginsdk.Resource{
"azurerm_private_dns_zone": dataSourcePrivateDnsZone(),
}
}
// SupportedResources returns the supported Resources supported by this Service
func (r Registration) SupportedResources() map[string]*pluginsdk.Resource {
return map[string]*pluginsdk.Resource{
"azurerm_private_dns_zone": resourcePrivateDnsZone(),
"azurerm_private_dns_a_record": resourcePrivateDnsARecord(),
"azurerm_private_dns_aaaa_record": resourcePrivateDnsAaaaRecord(),
"azurerm_private_dns_cname_record": resourcePrivateDnsCNameRecord(),
"azurerm_private_dns_mx_record": resourcePrivateDnsMxRecord(),
"azurerm_private_dns_ptr_record": resourcePrivateDnsPtrRecord(),
"azurerm_private_dns_srv_record": resourcePrivateDnsSrvRecord(),
"azurerm_private_dns_txt_record": resourcePrivateDnsTxtRecord(),
"azurerm_private_dns_zone_virtual_network_link": resourcePrivateDnsZoneVirtualNetworkLink(),
}
}