-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
registration.go
42 lines (37 loc) · 2.04 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
package automation
import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
type Registration struct{}
// Name is the name of this Service
func (r Registration) Name() string {
return "Automation"
}
// SupportedDataSources returns the supported Data Sources supported by this Service
func (r Registration) SupportedDataSources() map[string]*schema.Resource {
return map[string]*schema.Resource{
"azurerm_automation_account": dataSourceArmAutomationAccount(),
"azurerm_automation_variable_bool": dataSourceArmAutomationVariableBool(),
"azurerm_automation_variable_datetime": dataSourceArmAutomationVariableDateTime(),
"azurerm_automation_variable_int": dataSourceArmAutomationVariableInt(),
"azurerm_automation_variable_string": dataSourceArmAutomationVariableString(),
}
}
// SupportedResources returns the supported Resources supported by this Service
func (r Registration) SupportedResources() map[string]*schema.Resource {
return map[string]*schema.Resource{
"azurerm_automation_account": resourceArmAutomationAccount(),
"azurerm_automation_certificate": resourceArmAutomationCertificate(),
"azurerm_automation_credential": resourceArmAutomationCredential(),
"azurerm_automation_dsc_configuration": resourceArmAutomationDscConfiguration(),
"azurerm_automation_dsc_nodeconfiguration": resourceArmAutomationDscNodeConfiguration(),
"azurerm_automation_job_schedule": resourceArmAutomationJobSchedule(),
"azurerm_automation_module": resourceArmAutomationModule(),
"azurerm_automation_runbook": resourceArmAutomationRunbook(),
"azurerm_automation_schedule": resourceArmAutomationSchedule(),
"azurerm_automation_variable_bool": resourceArmAutomationVariableBool(),
"azurerm_automation_variable_datetime": resourceArmAutomationVariableDateTime(),
"azurerm_automation_variable_int": resourceArmAutomationVariableInt(),
"azurerm_automation_variable_string": resourceArmAutomationVariableString(),
}
}