Skip to content

Commit

Permalink
Changes to conform 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang committed Mar 2, 2020
1 parent aa1255c commit 315fe8c
Show file tree
Hide file tree
Showing 4 changed files with 6,249 additions and 4,792 deletions.
6 changes: 6 additions & 0 deletions azurerm/internal/services/machinelearning/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ func (r Registration) Name() string {
return "Machine Learning"
}

func (r Registration) WebsiteCategories() []string {
return []string{
"Machine Learning",
}
}

// SupportedDataSources returns the supported Data Sources supported by this Service
func (r Registration) SupportedDataSources() map[string]*schema.Resource {
return map[string]*schema.Resource{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/features"
keyVaultValidate "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/keyvault/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/machinelearning/parse"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/machinelearning/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tags"
Expand Down Expand Up @@ -65,11 +66,10 @@ func resourceArmMachineLearningWorkspace() *schema.Resource {
},

"key_vault_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
// TODO -- use the custom validation function of key vault
ValidateFunc: azure.ValidateResourceID,
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: keyVaultValidate.KeyVaultID,
// TODO -- remove when issue https://github.com/Azure/azure-rest-api-specs/issues/8323 is addressed
DiffSuppressFunc: suppress.CaseDifference,
},
Expand All @@ -78,7 +78,7 @@ func resourceArmMachineLearningWorkspace() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
// TODO -- use the custom validation function of storage account
// TODO -- use the custom validation function of storage account, when issue https://github.com/Azure/azure-rest-api-specs/issues/8323 is addressed
ValidateFunc: azure.ValidateResourceID,
// TODO -- remove when issue https://github.com/Azure/azure-rest-api-specs/issues/8323 is addressed
DiffSuppressFunc: suppress.CaseDifference,
Expand Down
Loading

0 comments on commit 315fe8c

Please sign in to comment.