-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
registration.go
46 lines (37 loc) · 1.49 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
42
43
44
45
46
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package notificationhub
import (
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
)
type Registration struct{}
var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{}
func (r Registration) AssociatedGitHubLabel() string {
return "service/notifications"
}
// Name is the name of this Service
func (r Registration) Name() string {
return "Notification Hub"
}
// WebsiteCategories returns a list of categories which can be used for the sidebar
func (r Registration) WebsiteCategories() []string {
return []string{
"Messaging",
}
}
// SupportedDataSources returns the supported Data Sources supported by this Service
func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource {
return map[string]*pluginsdk.Resource{
"azurerm_notification_hub_namespace": dataSourceNotificationHubNamespace(),
"azurerm_notification_hub": dataSourceNotificationHub(),
}
}
// SupportedResources returns the supported Resources supported by this Service
func (r Registration) SupportedResources() map[string]*pluginsdk.Resource {
return map[string]*pluginsdk.Resource{
"azurerm_notification_hub_authorization_rule": resourceNotificationHubAuthorizationRule(),
"azurerm_notification_hub_namespace": resourceNotificationHubNamespace(),
"azurerm_notification_hub": resourceNotificationHub(),
}
}