From cf6b7c6d9791bf2c385f2c41806b99534497d525 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Wed, 11 Aug 2021 09:53:47 +0200 Subject: [PATCH] vmware: refactoring the embedded sdk to include the api version --- internal/services/vmware/client/client.go | 6 +-- .../{ => 2020-03-20}/authorizations/client.go | 0 .../authorizations/constants.go | 0 .../authorizations/id_authorization.go | 0 .../authorizations/id_authorization_test.go | 0 .../authorizations/id_privatecloud.go | 0 .../authorizations/id_privatecloud_test.go | 0 .../method_createorupdate_autorest.go | 0 .../authorizations/method_delete_autorest.go | 0 .../authorizations/method_get_autorest.go | 0 .../authorizations/method_list_autorest.go | 0 .../model_expressrouteauthorization.go | 0 ...del_expressrouteauthorizationproperties.go | 0 .../authorizations/version.go | 0 .../sdk/{ => 2020-03-20}/clusters/client.go | 0 .../{ => 2020-03-20}/clusters/constants.go | 0 .../{ => 2020-03-20}/clusters/id_cluster.go | 0 .../clusters/id_cluster_test.go | 0 .../clusters/id_privatecloud.go | 0 .../clusters/id_privatecloud_test.go | 0 .../method_createorupdate_autorest.go | 0 .../clusters/method_delete_autorest.go | 0 .../clusters/method_get_autorest.go | 0 .../clusters/method_list_autorest.go | 0 .../clusters/method_update_autorest.go | 0 .../clusters/model_cluster.go | 0 .../clusters/model_clusterproperties.go | 0 .../clusters/model_clusterupdate.go | 0 .../clusters/model_clusterupdateproperties.go | 0 .../{ => 2020-03-20}/clusters/model_sku.go | 0 .../sdk/{ => 2020-03-20}/clusters/version.go | 0 .../{ => 2020-03-20}/privateclouds/client.go | 0 .../privateclouds/constants.go | 0 .../privateclouds/id_privatecloud.go | 0 .../privateclouds/id_privatecloud_test.go | 0 .../privateclouds/id_resourcegroup.go | 0 .../privateclouds/id_resourcegroup_test.go | 0 .../method_createorupdate_autorest.go | 0 .../privateclouds/method_delete_autorest.go | 0 .../privateclouds/method_get_autorest.go | 0 .../privateclouds/method_list_autorest.go | 0 .../method_listadmincredentials_autorest.go | 0 .../privateclouds/method_update_autorest.go | 0 .../privateclouds/model_admincredentials.go | 0 .../privateclouds/model_circuit.go | 0 .../privateclouds/model_endpoints.go | 0 .../privateclouds/model_identitysource.go | 0 .../privateclouds/model_managementcluster.go | 0 .../privateclouds/model_privatecloud.go | 0 .../model_privatecloudproperties.go | 0 .../privateclouds/model_privatecloudupdate.go | 0 .../model_privatecloudupdateproperties.go | 0 .../privateclouds/model_sku.go | 0 .../{ => 2020-03-20}/privateclouds/version.go | 0 .../services/vmware/validate/cluster_id.go | 2 +- .../express_route_authorization_id.go | 2 +- .../vmware/validate/private_cloud_id.go | 2 +- .../vmware/vmware_cluster_resource.go | 24 ++++++------ .../vmware/vmware_cluster_resource_test.go | 2 +- ...re_express_route_authorization_resource.go | 15 ++++---- ...press_route_authorization_resource_test.go | 2 +- .../services/vmware/vmware_private_cloud.go | 6 +-- .../vmware_private_cloud_data_source.go | 8 ++-- .../vmware/vmware_private_cloud_resource.go | 37 ++++++++++--------- .../vmware_private_cloud_resource_test.go | 2 +- 65 files changed, 55 insertions(+), 53 deletions(-) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/client.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/constants.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/id_authorization.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/id_authorization_test.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/id_privatecloud.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/id_privatecloud_test.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/method_createorupdate_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/method_delete_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/method_get_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/method_list_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/model_expressrouteauthorization.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/model_expressrouteauthorizationproperties.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/authorizations/version.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/client.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/constants.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/id_cluster.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/id_cluster_test.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/id_privatecloud.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/id_privatecloud_test.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/method_createorupdate_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/method_delete_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/method_get_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/method_list_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/method_update_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/model_cluster.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/model_clusterproperties.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/model_clusterupdate.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/model_clusterupdateproperties.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/model_sku.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/clusters/version.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/client.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/constants.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/id_privatecloud.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/id_privatecloud_test.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/id_resourcegroup.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/id_resourcegroup_test.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/method_createorupdate_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/method_delete_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/method_get_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/method_list_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/method_listadmincredentials_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/method_update_autorest.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_admincredentials.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_circuit.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_endpoints.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_identitysource.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_managementcluster.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_privatecloud.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_privatecloudproperties.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_privatecloudupdate.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_privatecloudupdateproperties.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/model_sku.go (100%) rename internal/services/vmware/sdk/{ => 2020-03-20}/privateclouds/version.go (100%) diff --git a/internal/services/vmware/client/client.go b/internal/services/vmware/client/client.go index 89bd06260ccf..30cc9fe27738 100644 --- a/internal/services/vmware/client/client.go +++ b/internal/services/vmware/client/client.go @@ -2,9 +2,9 @@ package client import ( "github.com/hashicorp/terraform-provider-azurerm/internal/common" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/authorizations" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/clusters" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/authorizations" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/clusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" ) type Client struct { diff --git a/internal/services/vmware/sdk/authorizations/client.go b/internal/services/vmware/sdk/2020-03-20/authorizations/client.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/client.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/client.go diff --git a/internal/services/vmware/sdk/authorizations/constants.go b/internal/services/vmware/sdk/2020-03-20/authorizations/constants.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/constants.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/constants.go diff --git a/internal/services/vmware/sdk/authorizations/id_authorization.go b/internal/services/vmware/sdk/2020-03-20/authorizations/id_authorization.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/id_authorization.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/id_authorization.go diff --git a/internal/services/vmware/sdk/authorizations/id_authorization_test.go b/internal/services/vmware/sdk/2020-03-20/authorizations/id_authorization_test.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/id_authorization_test.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/id_authorization_test.go diff --git a/internal/services/vmware/sdk/authorizations/id_privatecloud.go b/internal/services/vmware/sdk/2020-03-20/authorizations/id_privatecloud.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/id_privatecloud.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/id_privatecloud.go diff --git a/internal/services/vmware/sdk/authorizations/id_privatecloud_test.go b/internal/services/vmware/sdk/2020-03-20/authorizations/id_privatecloud_test.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/id_privatecloud_test.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/id_privatecloud_test.go diff --git a/internal/services/vmware/sdk/authorizations/method_createorupdate_autorest.go b/internal/services/vmware/sdk/2020-03-20/authorizations/method_createorupdate_autorest.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/method_createorupdate_autorest.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/method_createorupdate_autorest.go diff --git a/internal/services/vmware/sdk/authorizations/method_delete_autorest.go b/internal/services/vmware/sdk/2020-03-20/authorizations/method_delete_autorest.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/method_delete_autorest.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/method_delete_autorest.go diff --git a/internal/services/vmware/sdk/authorizations/method_get_autorest.go b/internal/services/vmware/sdk/2020-03-20/authorizations/method_get_autorest.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/method_get_autorest.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/method_get_autorest.go diff --git a/internal/services/vmware/sdk/authorizations/method_list_autorest.go b/internal/services/vmware/sdk/2020-03-20/authorizations/method_list_autorest.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/method_list_autorest.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/method_list_autorest.go diff --git a/internal/services/vmware/sdk/authorizations/model_expressrouteauthorization.go b/internal/services/vmware/sdk/2020-03-20/authorizations/model_expressrouteauthorization.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/model_expressrouteauthorization.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/model_expressrouteauthorization.go diff --git a/internal/services/vmware/sdk/authorizations/model_expressrouteauthorizationproperties.go b/internal/services/vmware/sdk/2020-03-20/authorizations/model_expressrouteauthorizationproperties.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/model_expressrouteauthorizationproperties.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/model_expressrouteauthorizationproperties.go diff --git a/internal/services/vmware/sdk/authorizations/version.go b/internal/services/vmware/sdk/2020-03-20/authorizations/version.go similarity index 100% rename from internal/services/vmware/sdk/authorizations/version.go rename to internal/services/vmware/sdk/2020-03-20/authorizations/version.go diff --git a/internal/services/vmware/sdk/clusters/client.go b/internal/services/vmware/sdk/2020-03-20/clusters/client.go similarity index 100% rename from internal/services/vmware/sdk/clusters/client.go rename to internal/services/vmware/sdk/2020-03-20/clusters/client.go diff --git a/internal/services/vmware/sdk/clusters/constants.go b/internal/services/vmware/sdk/2020-03-20/clusters/constants.go similarity index 100% rename from internal/services/vmware/sdk/clusters/constants.go rename to internal/services/vmware/sdk/2020-03-20/clusters/constants.go diff --git a/internal/services/vmware/sdk/clusters/id_cluster.go b/internal/services/vmware/sdk/2020-03-20/clusters/id_cluster.go similarity index 100% rename from internal/services/vmware/sdk/clusters/id_cluster.go rename to internal/services/vmware/sdk/2020-03-20/clusters/id_cluster.go diff --git a/internal/services/vmware/sdk/clusters/id_cluster_test.go b/internal/services/vmware/sdk/2020-03-20/clusters/id_cluster_test.go similarity index 100% rename from internal/services/vmware/sdk/clusters/id_cluster_test.go rename to internal/services/vmware/sdk/2020-03-20/clusters/id_cluster_test.go diff --git a/internal/services/vmware/sdk/clusters/id_privatecloud.go b/internal/services/vmware/sdk/2020-03-20/clusters/id_privatecloud.go similarity index 100% rename from internal/services/vmware/sdk/clusters/id_privatecloud.go rename to internal/services/vmware/sdk/2020-03-20/clusters/id_privatecloud.go diff --git a/internal/services/vmware/sdk/clusters/id_privatecloud_test.go b/internal/services/vmware/sdk/2020-03-20/clusters/id_privatecloud_test.go similarity index 100% rename from internal/services/vmware/sdk/clusters/id_privatecloud_test.go rename to internal/services/vmware/sdk/2020-03-20/clusters/id_privatecloud_test.go diff --git a/internal/services/vmware/sdk/clusters/method_createorupdate_autorest.go b/internal/services/vmware/sdk/2020-03-20/clusters/method_createorupdate_autorest.go similarity index 100% rename from internal/services/vmware/sdk/clusters/method_createorupdate_autorest.go rename to internal/services/vmware/sdk/2020-03-20/clusters/method_createorupdate_autorest.go diff --git a/internal/services/vmware/sdk/clusters/method_delete_autorest.go b/internal/services/vmware/sdk/2020-03-20/clusters/method_delete_autorest.go similarity index 100% rename from internal/services/vmware/sdk/clusters/method_delete_autorest.go rename to internal/services/vmware/sdk/2020-03-20/clusters/method_delete_autorest.go diff --git a/internal/services/vmware/sdk/clusters/method_get_autorest.go b/internal/services/vmware/sdk/2020-03-20/clusters/method_get_autorest.go similarity index 100% rename from internal/services/vmware/sdk/clusters/method_get_autorest.go rename to internal/services/vmware/sdk/2020-03-20/clusters/method_get_autorest.go diff --git a/internal/services/vmware/sdk/clusters/method_list_autorest.go b/internal/services/vmware/sdk/2020-03-20/clusters/method_list_autorest.go similarity index 100% rename from internal/services/vmware/sdk/clusters/method_list_autorest.go rename to internal/services/vmware/sdk/2020-03-20/clusters/method_list_autorest.go diff --git a/internal/services/vmware/sdk/clusters/method_update_autorest.go b/internal/services/vmware/sdk/2020-03-20/clusters/method_update_autorest.go similarity index 100% rename from internal/services/vmware/sdk/clusters/method_update_autorest.go rename to internal/services/vmware/sdk/2020-03-20/clusters/method_update_autorest.go diff --git a/internal/services/vmware/sdk/clusters/model_cluster.go b/internal/services/vmware/sdk/2020-03-20/clusters/model_cluster.go similarity index 100% rename from internal/services/vmware/sdk/clusters/model_cluster.go rename to internal/services/vmware/sdk/2020-03-20/clusters/model_cluster.go diff --git a/internal/services/vmware/sdk/clusters/model_clusterproperties.go b/internal/services/vmware/sdk/2020-03-20/clusters/model_clusterproperties.go similarity index 100% rename from internal/services/vmware/sdk/clusters/model_clusterproperties.go rename to internal/services/vmware/sdk/2020-03-20/clusters/model_clusterproperties.go diff --git a/internal/services/vmware/sdk/clusters/model_clusterupdate.go b/internal/services/vmware/sdk/2020-03-20/clusters/model_clusterupdate.go similarity index 100% rename from internal/services/vmware/sdk/clusters/model_clusterupdate.go rename to internal/services/vmware/sdk/2020-03-20/clusters/model_clusterupdate.go diff --git a/internal/services/vmware/sdk/clusters/model_clusterupdateproperties.go b/internal/services/vmware/sdk/2020-03-20/clusters/model_clusterupdateproperties.go similarity index 100% rename from internal/services/vmware/sdk/clusters/model_clusterupdateproperties.go rename to internal/services/vmware/sdk/2020-03-20/clusters/model_clusterupdateproperties.go diff --git a/internal/services/vmware/sdk/clusters/model_sku.go b/internal/services/vmware/sdk/2020-03-20/clusters/model_sku.go similarity index 100% rename from internal/services/vmware/sdk/clusters/model_sku.go rename to internal/services/vmware/sdk/2020-03-20/clusters/model_sku.go diff --git a/internal/services/vmware/sdk/clusters/version.go b/internal/services/vmware/sdk/2020-03-20/clusters/version.go similarity index 100% rename from internal/services/vmware/sdk/clusters/version.go rename to internal/services/vmware/sdk/2020-03-20/clusters/version.go diff --git a/internal/services/vmware/sdk/privateclouds/client.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/client.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/client.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/client.go diff --git a/internal/services/vmware/sdk/privateclouds/constants.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/constants.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/constants.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/constants.go diff --git a/internal/services/vmware/sdk/privateclouds/id_privatecloud.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/id_privatecloud.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/id_privatecloud.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/id_privatecloud.go diff --git a/internal/services/vmware/sdk/privateclouds/id_privatecloud_test.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/id_privatecloud_test.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/id_privatecloud_test.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/id_privatecloud_test.go diff --git a/internal/services/vmware/sdk/privateclouds/id_resourcegroup.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/id_resourcegroup.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/id_resourcegroup.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/id_resourcegroup.go diff --git a/internal/services/vmware/sdk/privateclouds/id_resourcegroup_test.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/id_resourcegroup_test.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/id_resourcegroup_test.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/id_resourcegroup_test.go diff --git a/internal/services/vmware/sdk/privateclouds/method_createorupdate_autorest.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/method_createorupdate_autorest.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/method_createorupdate_autorest.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/method_createorupdate_autorest.go diff --git a/internal/services/vmware/sdk/privateclouds/method_delete_autorest.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/method_delete_autorest.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/method_delete_autorest.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/method_delete_autorest.go diff --git a/internal/services/vmware/sdk/privateclouds/method_get_autorest.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/method_get_autorest.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/method_get_autorest.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/method_get_autorest.go diff --git a/internal/services/vmware/sdk/privateclouds/method_list_autorest.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/method_list_autorest.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/method_list_autorest.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/method_list_autorest.go diff --git a/internal/services/vmware/sdk/privateclouds/method_listadmincredentials_autorest.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/method_listadmincredentials_autorest.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/method_listadmincredentials_autorest.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/method_listadmincredentials_autorest.go diff --git a/internal/services/vmware/sdk/privateclouds/method_update_autorest.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/method_update_autorest.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/method_update_autorest.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/method_update_autorest.go diff --git a/internal/services/vmware/sdk/privateclouds/model_admincredentials.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_admincredentials.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_admincredentials.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_admincredentials.go diff --git a/internal/services/vmware/sdk/privateclouds/model_circuit.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_circuit.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_circuit.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_circuit.go diff --git a/internal/services/vmware/sdk/privateclouds/model_endpoints.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_endpoints.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_endpoints.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_endpoints.go diff --git a/internal/services/vmware/sdk/privateclouds/model_identitysource.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_identitysource.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_identitysource.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_identitysource.go diff --git a/internal/services/vmware/sdk/privateclouds/model_managementcluster.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_managementcluster.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_managementcluster.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_managementcluster.go diff --git a/internal/services/vmware/sdk/privateclouds/model_privatecloud.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloud.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_privatecloud.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloud.go diff --git a/internal/services/vmware/sdk/privateclouds/model_privatecloudproperties.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloudproperties.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_privatecloudproperties.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloudproperties.go diff --git a/internal/services/vmware/sdk/privateclouds/model_privatecloudupdate.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloudupdate.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_privatecloudupdate.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloudupdate.go diff --git a/internal/services/vmware/sdk/privateclouds/model_privatecloudupdateproperties.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloudupdateproperties.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_privatecloudupdateproperties.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_privatecloudupdateproperties.go diff --git a/internal/services/vmware/sdk/privateclouds/model_sku.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/model_sku.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/model_sku.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/model_sku.go diff --git a/internal/services/vmware/sdk/privateclouds/version.go b/internal/services/vmware/sdk/2020-03-20/privateclouds/version.go similarity index 100% rename from internal/services/vmware/sdk/privateclouds/version.go rename to internal/services/vmware/sdk/2020-03-20/privateclouds/version.go diff --git a/internal/services/vmware/validate/cluster_id.go b/internal/services/vmware/validate/cluster_id.go index edf768524146..4c175df6c129 100644 --- a/internal/services/vmware/validate/cluster_id.go +++ b/internal/services/vmware/validate/cluster_id.go @@ -3,7 +3,7 @@ package validate import ( "fmt" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/clusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/clusters" ) func ClusterID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/vmware/validate/express_route_authorization_id.go b/internal/services/vmware/validate/express_route_authorization_id.go index f8cb8a566863..c4bd6c1bad08 100644 --- a/internal/services/vmware/validate/express_route_authorization_id.go +++ b/internal/services/vmware/validate/express_route_authorization_id.go @@ -3,7 +3,7 @@ package validate import ( "fmt" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/authorizations" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/authorizations" ) func ExpressRouteAuthorizationID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/vmware/validate/private_cloud_id.go b/internal/services/vmware/validate/private_cloud_id.go index fd635cc4bb3e..4059c1c00b88 100644 --- a/internal/services/vmware/validate/private_cloud_id.go +++ b/internal/services/vmware/validate/private_cloud_id.go @@ -3,7 +3,7 @@ package validate import ( "fmt" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" ) func PrivateCloudID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/vmware/vmware_cluster_resource.go b/internal/services/vmware/vmware_cluster_resource.go index fbb97d326985..97fa0a36cabe 100644 --- a/internal/services/vmware/vmware_cluster_resource.go +++ b/internal/services/vmware/vmware_cluster_resource.go @@ -5,12 +5,12 @@ import ( "log" "time" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" + clusters2 "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/clusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/clusters" "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -33,7 +33,7 @@ func resourceVmwareCluster() *pluginsdk.Resource { }, Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := clusters.ParseClusterID(id) + _, err := clusters2.ParseClusterID(id) return err }), @@ -97,7 +97,7 @@ func resourceVmwareClusterCreate(d *pluginsdk.ResourceData, meta interface{}) er return err } - id := clusters.NewClusterID(subscriptionId, privateCloudId.ResourceGroup, privateCloudId.Name, name) + id := clusters2.NewClusterID(subscriptionId, privateCloudId.ResourceGroup, privateCloudId.Name, name) existing, err := client.Get(ctx, id) if err != nil { if !response.WasNotFound(existing.HttpResponse) { @@ -108,11 +108,11 @@ func resourceVmwareClusterCreate(d *pluginsdk.ResourceData, meta interface{}) er return tf.ImportAsExistsError("azurerm_vmware_cluster", id.ID()) } - cluster := clusters.Cluster{ - Sku: clusters.Sku{ + cluster := clusters2.Cluster{ + Sku: clusters2.Sku{ Name: d.Get("sku_name").(string), }, - Properties: clusters.ClusterProperties{ + Properties: clusters2.ClusterProperties{ ClusterSize: int64(d.Get("cluster_node_count").(int)), }, } @@ -130,7 +130,7 @@ func resourceVmwareClusterRead(d *pluginsdk.ResourceData, meta interface{}) erro ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := clusters.ParseClusterID(d.Id()) + id, err := clusters2.ParseClusterID(d.Id()) if err != nil { return err } @@ -163,13 +163,13 @@ func resourceVmwareClusterUpdate(d *pluginsdk.ResourceData, meta interface{}) er ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := clusters.ParseClusterID(d.Id()) + id, err := clusters2.ParseClusterID(d.Id()) if err != nil { return err } - clusterUpdate := clusters.ClusterUpdate{ - Properties: &clusters.ClusterUpdateProperties{}, + clusterUpdate := clusters2.ClusterUpdate{ + Properties: &clusters2.ClusterUpdateProperties{}, } if d.HasChange("cluster_node_count") { clusterUpdate.Properties.ClusterSize = utils.Int64(int64(d.Get("cluster_node_count").(int))) @@ -186,7 +186,7 @@ func resourceVmwareClusterDelete(d *pluginsdk.ResourceData, meta interface{}) er ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := clusters.ParseClusterID(d.Id()) + id, err := clusters2.ParseClusterID(d.Id()) if err != nil { return err } diff --git a/internal/services/vmware/vmware_cluster_resource_test.go b/internal/services/vmware/vmware_cluster_resource_test.go index fff168c61757..b57e61918293 100644 --- a/internal/services/vmware/vmware_cluster_resource_test.go +++ b/internal/services/vmware/vmware_cluster_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/clusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/clusters" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/vmware/vmware_express_route_authorization_resource.go b/internal/services/vmware/vmware_express_route_authorization_resource.go index 5b24f3912242..5daa63b7e6b9 100644 --- a/internal/services/vmware/vmware_express_route_authorization_resource.go +++ b/internal/services/vmware/vmware_express_route_authorization_resource.go @@ -5,11 +5,12 @@ import ( "log" "time" + authorizations2 "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/authorizations" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/authorizations" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -29,7 +30,7 @@ func resourceVmwareExpressRouteAuthorization() *pluginsdk.Resource { }, Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := authorizations.ParseAuthorizationID(id) + _, err := authorizations2.ParseAuthorizationID(id) return err }), @@ -74,7 +75,7 @@ func resourceVmwareExpressRouteAuthorizationCreate(d *pluginsdk.ResourceData, me return err } - id := authorizations.NewAuthorizationID(subscriptionId, privateCloudId.ResourceGroup, privateCloudId.Name, name) + id := authorizations2.NewAuthorizationID(subscriptionId, privateCloudId.ResourceGroup, privateCloudId.Name, name) existing, err := client.Get(ctx, id) if err != nil { if !response.WasNotFound(existing.HttpResponse) { @@ -85,7 +86,7 @@ func resourceVmwareExpressRouteAuthorizationCreate(d *pluginsdk.ResourceData, me return tf.ImportAsExistsError("azurerm_vmware_express_route_authorization", id.ID()) } - props := authorizations.ExpressRouteAuthorization{} + props := authorizations2.ExpressRouteAuthorization{} if err := client.CreateOrUpdateThenPoll(ctx, id, props); err != nil { return fmt.Errorf("creating %q: %+v", id, err) @@ -101,7 +102,7 @@ func resourceVmwareExpressRouteAuthorizationRead(d *pluginsdk.ResourceData, meta ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := authorizations.ParseAuthorizationID(d.Id()) + id, err := authorizations2.ParseAuthorizationID(d.Id()) if err != nil { return err } @@ -135,7 +136,7 @@ func resourceVmwareExpressRouteAuthorizationDelete(d *pluginsdk.ResourceData, me ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := authorizations.ParseAuthorizationID(d.Id()) + id, err := authorizations2.ParseAuthorizationID(d.Id()) if err != nil { return err } diff --git a/internal/services/vmware/vmware_express_route_authorization_resource_test.go b/internal/services/vmware/vmware_express_route_authorization_resource_test.go index 91b77dbc469e..cb5e88e0ea44 100644 --- a/internal/services/vmware/vmware_express_route_authorization_resource_test.go +++ b/internal/services/vmware/vmware_express_route_authorization_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/authorizations" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/authorizations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/vmware/vmware_private_cloud.go b/internal/services/vmware/vmware_private_cloud.go index dd841f4251d0..f92c9785dd9b 100644 --- a/internal/services/vmware/vmware_private_cloud.go +++ b/internal/services/vmware/vmware_private_cloud.go @@ -1,11 +1,11 @@ package vmware import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" + privateclouds2 "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/utils" ) -func flattenPrivateCloudManagementCluster(input privateclouds.ManagementCluster) []interface{} { +func flattenPrivateCloudManagementCluster(input privateclouds2.ManagementCluster) []interface{} { return []interface{}{ map[string]interface{}{ "size": input.ClusterSize, @@ -15,7 +15,7 @@ func flattenPrivateCloudManagementCluster(input privateclouds.ManagementCluster) } } -func flattenPrivateCloudCircuit(input *privateclouds.Circuit) []interface{} { +func flattenPrivateCloudCircuit(input *privateclouds2.Circuit) []interface{} { if input == nil { return make([]interface{}, 0) } diff --git a/internal/services/vmware/vmware_private_cloud_data_source.go b/internal/services/vmware/vmware_private_cloud_data_source.go index 61dbe529163c..d6a83455ea33 100644 --- a/internal/services/vmware/vmware_private_cloud_data_source.go +++ b/internal/services/vmware/vmware_private_cloud_data_source.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hashicorp/go-azure-helpers/response" + privateclouds2 "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" + "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -157,7 +157,7 @@ func dataSourceVmwarePrivateCloudRead(d *pluginsdk.ResourceData, meta interface{ name := d.Get("name").(string) resourceGroup := d.Get("resource_group_name").(string) - id := privateclouds.NewPrivateCloudID(subscriptionId, resourceGroup, name) + id := privateclouds2.NewPrivateCloudID(subscriptionId, resourceGroup, name) resp, err := client.Get(ctx, id) if err != nil { if response.WasNotFound(resp.HttpResponse) { @@ -184,7 +184,7 @@ func dataSourceVmwarePrivateCloudRead(d *pluginsdk.ResourceData, meta interface{ internetConnectionEnabled := false if props.Internet != nil { - internetConnectionEnabled = *props.Internet == privateclouds.InternetEnumEnabled + internetConnectionEnabled = *props.Internet == privateclouds2.InternetEnumEnabled } d.Set("internet_connection_enabled", internetConnectionEnabled) diff --git a/internal/services/vmware/vmware_private_cloud_resource.go b/internal/services/vmware/vmware_private_cloud_resource.go index 7ab533e7c326..915538b61df5 100644 --- a/internal/services/vmware/vmware_private_cloud_resource.go +++ b/internal/services/vmware/vmware_private_cloud_resource.go @@ -5,12 +5,13 @@ import ( "log" "time" + privateclouds2 "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/location" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -33,7 +34,7 @@ func resourceVmwarePrivateCloud() *pluginsdk.Resource { }, Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := privateclouds.ParsePrivateCloudID(id) + _, err := privateclouds2.ParsePrivateCloudID(id) return err }), @@ -196,7 +197,7 @@ func resourceVmwarePrivateCloudCreate(d *pluginsdk.ResourceData, meta interface{ ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() - id := privateclouds.NewPrivateCloudID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) + id := privateclouds2.NewPrivateCloudID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) existing, err := client.Get(ctx, id) if err != nil { if !response.WasNotFound(existing.HttpResponse) { @@ -207,18 +208,18 @@ func resourceVmwarePrivateCloudCreate(d *pluginsdk.ResourceData, meta interface{ return tf.ImportAsExistsError("azurerm_vmware_private_cloud", id.ID()) } - internet := privateclouds.InternetEnumDisabled + internet := privateclouds2.InternetEnumDisabled if d.Get("internet_connection_enabled").(bool) { - internet = privateclouds.InternetEnumEnabled + internet = privateclouds2.InternetEnumEnabled } - privateCloud := privateclouds.PrivateCloud{ + privateCloud := privateclouds2.PrivateCloud{ Location: location.Normalize(d.Get("location").(string)), - Sku: privateclouds.Sku{ + Sku: privateclouds2.Sku{ Name: d.Get("sku_name").(string), }, - Properties: privateclouds.PrivateCloudProperties{ - ManagementCluster: privateclouds.ManagementCluster{ + Properties: privateclouds2.PrivateCloudProperties{ + ManagementCluster: privateclouds2.ManagementCluster{ ClusterSize: int64(d.Get("management_cluster.0.size").(int)), }, NetworkBlock: d.Get("network_subnet_cidr").(string), @@ -242,7 +243,7 @@ func resourceVmwarePrivateCloudRead(d *pluginsdk.ResourceData, meta interface{}) ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := privateclouds.ParsePrivateCloudID(d.Id()) + id, err := privateclouds2.ParsePrivateCloudID(d.Id()) if err != nil { return err } @@ -274,7 +275,7 @@ func resourceVmwarePrivateCloudRead(d *pluginsdk.ResourceData, meta interface{}) internetConnectionEnabled := false if props.Internet != nil { - internetConnectionEnabled = *props.Internet == privateclouds.InternetEnumEnabled + internetConnectionEnabled = *props.Internet == privateclouds2.InternetEnumEnabled } d.Set("internet_connection_enabled", internetConnectionEnabled) @@ -302,13 +303,13 @@ func resourceVmwarePrivateCloudUpdate(d *pluginsdk.ResourceData, meta interface{ ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := privateclouds.ParsePrivateCloudID(d.Id()) + id, err := privateclouds2.ParsePrivateCloudID(d.Id()) if err != nil { return err } - privateCloudUpdate := privateclouds.PrivateCloudUpdate{ - Properties: &privateclouds.PrivateCloudUpdateProperties{}, + privateCloudUpdate := privateclouds2.PrivateCloudUpdate{ + Properties: &privateclouds2.PrivateCloudUpdateProperties{}, } if d.HasChange("management_cluster") && d.HasChange("internet_connection_enabled") { @@ -316,15 +317,15 @@ func resourceVmwarePrivateCloudUpdate(d *pluginsdk.ResourceData, meta interface{ } if d.HasChange("management_cluster") { - privateCloudUpdate.Properties.ManagementCluster = &privateclouds.ManagementCluster{ + privateCloudUpdate.Properties.ManagementCluster = &privateclouds2.ManagementCluster{ ClusterSize: int64(d.Get("management_cluster.0.size").(int)), } } if d.HasChange("internet_connection_enabled") { - internet := privateclouds.InternetEnumDisabled + internet := privateclouds2.InternetEnumDisabled if d.Get("internet_connection_enabled").(bool) { - internet = privateclouds.InternetEnumEnabled + internet = privateclouds2.InternetEnumEnabled } privateCloudUpdate.Properties.Internet = &internet } @@ -345,7 +346,7 @@ func resourceVmwarePrivateCloudDelete(d *pluginsdk.ResourceData, meta interface{ ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := privateclouds.ParsePrivateCloudID(d.Id()) + id, err := privateclouds2.ParsePrivateCloudID(d.Id()) if err != nil { return err } diff --git a/internal/services/vmware/vmware_private_cloud_resource_test.go b/internal/services/vmware/vmware_private_cloud_resource_test.go index 1eec673b976a..4b36faae3e08 100644 --- a/internal/services/vmware/vmware_private_cloud_resource_test.go +++ b/internal/services/vmware/vmware_private_cloud_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/privateclouds" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/sdk/2020-03-20/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"