From b6cef8178ef4d4072c8106fbcc699156b54344ee Mon Sep 17 00:00:00 2001 From: arcturusZhang Date: Tue, 24 Dec 2019 10:53:33 +0800 Subject: [PATCH] Rebased to master --- .../data_source_machine_learning_workspace.go | 2 +- .../data_source_machine_learning_workspace_test.go | 2 +- azurerm/internal/services/machinelearning/registration.go | 8 ++++++-- .../resource_arm_machine_learning_workspace.go | 2 +- .../resource_arm_machine_learning_workspace_test.go | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) rename azurerm/{ => internal/services/machinelearning}/data_source_machine_learning_workspace.go (99%) rename azurerm/{ => internal/services/machinelearning}/data_source_machine_learning_workspace_test.go (97%) rename azurerm/{ => internal/services/machinelearning}/resource_arm_machine_learning_workspace.go (99%) rename azurerm/{ => internal/services/machinelearning}/resource_arm_machine_learning_workspace_test.go (99%) diff --git a/azurerm/data_source_machine_learning_workspace.go b/azurerm/internal/services/machinelearning/data_source_machine_learning_workspace.go similarity index 99% rename from azurerm/data_source_machine_learning_workspace.go rename to azurerm/internal/services/machinelearning/data_source_machine_learning_workspace.go index b893755f4d485..e3552cb54ae19 100644 --- a/azurerm/data_source_machine_learning_workspace.go +++ b/azurerm/internal/services/machinelearning/data_source_machine_learning_workspace.go @@ -1,4 +1,4 @@ -package azurerm +package machinelearning import ( "fmt" diff --git a/azurerm/data_source_machine_learning_workspace_test.go b/azurerm/internal/services/machinelearning/data_source_machine_learning_workspace_test.go similarity index 97% rename from azurerm/data_source_machine_learning_workspace_test.go rename to azurerm/internal/services/machinelearning/data_source_machine_learning_workspace_test.go index 3b493615ea94a..08ab4a6540832 100644 --- a/azurerm/data_source_machine_learning_workspace_test.go +++ b/azurerm/internal/services/machinelearning/data_source_machine_learning_workspace_test.go @@ -1,4 +1,4 @@ -package azurerm +package machinelearning import ( "fmt" diff --git a/azurerm/internal/services/machinelearning/registration.go b/azurerm/internal/services/machinelearning/registration.go index 292cc925b4d61..a6ff0ee6d4445 100644 --- a/azurerm/internal/services/machinelearning/registration.go +++ b/azurerm/internal/services/machinelearning/registration.go @@ -11,10 +11,14 @@ func (r Registration) Name() string { // SupportedDataSources returns the supported Data Sources supported by this Service func (r Registration) SupportedDataSources() map[string]*schema.Resource { - return map[string]*schema.Resource{} + return map[string]*schema.Resource{ + "azurerm_machine_learning_workspace": dataSourceArmAMLWorkspace(), + } } // SupportedResources returns the supported Resources supported by this Service func (r Registration) SupportedResources() map[string]*schema.Resource { - return map[string]*schema.Resource{} + return map[string]*schema.Resource{ + "azurerm_machine_learning_workspace": resourceArmAmlWorkspace(), + } } diff --git a/azurerm/resource_arm_machine_learning_workspace.go b/azurerm/internal/services/machinelearning/resource_arm_machine_learning_workspace.go similarity index 99% rename from azurerm/resource_arm_machine_learning_workspace.go rename to azurerm/internal/services/machinelearning/resource_arm_machine_learning_workspace.go index f13ac14c489bc..306f7cc068765 100644 --- a/azurerm/resource_arm_machine_learning_workspace.go +++ b/azurerm/internal/services/machinelearning/resource_arm_machine_learning_workspace.go @@ -1,4 +1,4 @@ -package azurerm +package machinelearning import ( "fmt" diff --git a/azurerm/resource_arm_machine_learning_workspace_test.go b/azurerm/internal/services/machinelearning/resource_arm_machine_learning_workspace_test.go similarity index 99% rename from azurerm/resource_arm_machine_learning_workspace_test.go rename to azurerm/internal/services/machinelearning/resource_arm_machine_learning_workspace_test.go index 0d43fdd5a3ecb..1f8c0771ab95f 100644 --- a/azurerm/resource_arm_machine_learning_workspace_test.go +++ b/azurerm/internal/services/machinelearning/resource_arm_machine_learning_workspace_test.go @@ -1,4 +1,4 @@ -package azurerm +package machinelearning import ( "fmt"