From f9e56749ce1a9df18dc5c6dd95c56f84e2726407 Mon Sep 17 00:00:00 2001 From: Sebastian Gatti Date: Thu, 16 May 2024 20:28:28 +0100 Subject: [PATCH] Update `databasemigration` API version from `2018-04-19` to `2021-06-30` (#25997) * Update `databasemigration` to use API version `2021-06-30` * add test for MongoDb * Update website documentation --- .../databasemigration/client/client.go | 4 +- .../database_migration_project_data_source.go | 2 +- ...base_migration_project_data_source_test.go | 2 +- .../database_migration_project_resource.go | 13 +- ...atabase_migration_project_resource_test.go | 70 +++++++++-- .../database_migration_service_data_source.go | 2 +- .../database_migration_service_resource.go | 2 +- ...atabase_migration_service_resource_test.go | 2 +- .../projectresource/model_project.go | 13 -- .../model_projecttaskproperties.go | 11 -- .../projectresource/README.md | 12 +- .../projectresource/client.go | 0 .../projectresource/constants.go | 37 ++++-- .../projectresource/id_project.go | 0 .../projectresource/id_service.go | 0 .../method_projectscreateorupdate.go | 0 .../projectresource/method_projectsdelete.go | 0 .../projectresource/method_projectsget.go | 0 .../projectresource/method_projectslist.go} | 22 ++-- .../projectresource/method_projectsupdate.go | 0 .../projectresource/model_connectioninfo.go | 0 .../projectresource/model_databaseinfo.go | 0 .../projectresource/model_project.go | 18 +++ .../model_projectproperties.go | 0 .../projectresource/predicates.go | 0 .../projectresource/version.go | 2 +- .../serviceresource/README.md | 23 +++- .../serviceresource/client.go | 0 .../serviceresource/constants.go | 0 .../serviceresource/id_project.go | 0 .../serviceresource/id_resourcegroup.go | 0 .../serviceresource/id_service.go | 0 .../method_servicescheckstatus.go | 0 .../method_servicescreateorupdate.go | 0 .../serviceresource/method_servicesdelete.go | 0 .../serviceresource/method_servicesget.go | 0 .../serviceresource/method_serviceslist.go | 0 .../method_serviceslistbyresourcegroup.go | 0 .../method_serviceslistskus.go | 0 .../serviceresource/method_servicesstart.go | 0 .../serviceresource/method_servicesstop.go | 0 .../serviceresource/method_servicesupdate.go | 0 .../method_servicetaskslist.go | 119 ++++++++++++++++++ .../serviceresource/method_taskslist.go | 0 .../model_availableservicesku.go | 0 .../model_availableserviceskucapacity.go | 0 .../model_availableserviceskusku.go | 0 .../model_commandproperties.go | 0 .../model_datamigrationservice.go | 5 + .../model_datamigrationserviceproperties.go | 1 + ...odel_datamigrationservicestatusresponse.go | 0 .../serviceresource/model_odataerror.go | 0 .../serviceresource/model_projecttask.go | 5 + .../model_projecttaskproperties.go | 12 ++ .../serviceresource/model_servicesku.go | 0 .../serviceresource/predicates.go | 0 .../serviceresource/version.go | 2 +- vendor/modules.txt | 4 +- .../database_migration_project.html.markdown | 4 +- 59 files changed, 308 insertions(+), 79 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_project.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttaskproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/README.md (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/constants.go (64%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/id_project.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/method_projectscreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/method_projectsdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/method_projectsget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19/projectresource/method_projectslistbyresourcegroup.go => 2021-06-30/projectresource/method_projectslist.go} (56%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/method_projectsupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/model_connectioninfo.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/model_databaseinfo.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_project.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/model_projectproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/projectresource/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/id_project.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/id_resourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/id_service.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicescheckstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicescreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicesdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_serviceslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_serviceslistbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_serviceslistskus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicesstart.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicesstop.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_servicesupdate.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/method_taskslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_availableservicesku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_availableserviceskucapacity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_availableserviceskusku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_commandproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_datamigrationservice.go (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_datamigrationserviceproperties.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_datamigrationservicestatusresponse.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_odataerror.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_projecttask.go (77%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttaskproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/model_servicesku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/{2018-04-19 => 2021-06-30}/serviceresource/version.go (88%) diff --git a/internal/services/databasemigration/client/client.go b/internal/services/databasemigration/client/client.go index 2f22797ff0da..07debf9bff46 100644 --- a/internal/services/databasemigration/client/client.go +++ b/internal/services/databasemigration/client/client.go @@ -6,8 +6,8 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/databasemigration/database_migration_project_data_source.go b/internal/services/databasemigration/database_migration_project_data_source.go index 403abcb84795..25b465e6b980 100644 --- a/internal/services/databasemigration/database_migration_project_data_source.go +++ b/internal/services/databasemigration/database_migration_project_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/databasemigration/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/databasemigration/database_migration_project_data_source_test.go b/internal/services/databasemigration/database_migration_project_data_source_test.go index 95887632ffba..ca184cacfe29 100644 --- a/internal/services/databasemigration/database_migration_project_data_source_test.go +++ b/internal/services/databasemigration/database_migration_project_data_source_test.go @@ -37,5 +37,5 @@ data "azurerm_database_migration_project" "test" { service_name = azurerm_database_migration_project.test.service_name resource_group_name = azurerm_database_migration_project.test.resource_group_name } -`, DatabaseMigrationProjectResource{}.basic(data)) +`, DatabaseMigrationProjectResource{}.basic(data, "SQL", "SQLDB")) } diff --git a/internal/services/databasemigration/database_migration_project_resource.go b/internal/services/databasemigration/database_migration_project_resource.go index 0a9e5c330978..e265bcf46123 100644 --- a/internal/services/databasemigration/database_migration_project_resource.go +++ b/internal/services/databasemigration/database_migration_project_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -66,8 +66,11 @@ func resourceDatabaseMigrationProject() *pluginsdk.Resource { Required: true, ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ - // Now that go sdk only export SQL as source platform type, we only allow it here. + string(projectresource.ProjectSourcePlatformMongoDb), + string(projectresource.ProjectSourcePlatformMySQL), + string(projectresource.ProjectSourcePlatformPostgreSql), string(projectresource.ProjectSourcePlatformSQL), + string(projectresource.ProjectSourcePlatformUnknown), }, false), }, @@ -76,8 +79,12 @@ func resourceDatabaseMigrationProject() *pluginsdk.Resource { Required: true, ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ - // Now that go sdk only export SQL as source platform type, we only allow it here. + string(projectresource.ProjectTargetPlatformAzureDbForMySql), + string(projectresource.ProjectTargetPlatformAzureDbForPostgreSql), + string(projectresource.ProjectTargetPlatformMongoDb), string(projectresource.ProjectTargetPlatformSQLDB), + string(projectresource.ProjectTargetPlatformSQLMI), + string(projectresource.ProjectTargetPlatformUnknown), }, false), }, diff --git a/internal/services/databasemigration/database_migration_project_resource_test.go b/internal/services/databasemigration/database_migration_project_resource_test.go index dc44b3244ada..79988e1112a2 100644 --- a/internal/services/databasemigration/database_migration_project_resource_test.go +++ b/internal/services/databasemigration/database_migration_project_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -18,12 +18,12 @@ import ( type DatabaseMigrationProjectResource struct{} -func TestAccDatabaseMigrationProject_basic(t *testing.T) { +func TestAccDatabaseMigrationProject_basicSQLToSQLDB(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_database_migration_project", "test") r := DatabaseMigrationProjectResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basic(data), + Config: r.basic(data, "SQL", "SQLDB"), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("source_platform").HasValue("SQL"), @@ -34,6 +34,54 @@ func TestAccDatabaseMigrationProject_basic(t *testing.T) { }) } +func TestAccDatabaseMigrationProject_basicPostgreSqlToAzureDbForPostgreSql(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_database_migration_project", "test") + r := DatabaseMigrationProjectResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data, "PostgreSql", "AzureDbForPostgreSql"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("source_platform").HasValue("PostgreSql"), + check.That(data.ResourceName).Key("target_platform").HasValue("AzureDbForPostgreSql"), + ), + }, + data.ImportStep(), + }) +} + +func TestAccDatabaseMigrationProject_basicMySQLToAzureDbForMySql(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_database_migration_project", "test") + r := DatabaseMigrationProjectResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data, "MySQL", "AzureDbForMySql"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("source_platform").HasValue("MySQL"), + check.That(data.ResourceName).Key("target_platform").HasValue("AzureDbForMySql"), + ), + }, + data.ImportStep(), + }) +} + +func TestAccDatabaseMigrationProject_basicMongoDbToMongoDb(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_database_migration_project", "test") + r := DatabaseMigrationProjectResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data, "MongoDb", "MongoDb"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("source_platform").HasValue("MongoDb"), + check.That(data.ResourceName).Key("target_platform").HasValue("MongoDb"), + ), + }, + data.ImportStep(), + }) +} + func TestAccDatabaseMigrationProject_complete(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_database_migration_project", "test") r := DatabaseMigrationProjectResource{} @@ -58,7 +106,7 @@ func TestAccDatabaseMigrationProject_requiresImport(t *testing.T) { data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basic(data), + Config: r.basic(data, "SQL", "SQLDB"), }, data.RequiresImportErrorStep(r.requiresImport), }) @@ -70,7 +118,7 @@ func TestAccDatabaseMigrationProject_update(t *testing.T) { data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basic(data), + Config: r.basic(data, "SQL", "SQLDB"), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -85,7 +133,7 @@ func TestAccDatabaseMigrationProject_update(t *testing.T) { }, data.ImportStep(), { - Config: r.basic(data), + Config: r.basic(data, "SQL", "SQLDB"), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -108,7 +156,7 @@ func (t DatabaseMigrationProjectResource) Exists(ctx context.Context, clients *c return utils.Bool(resp.Model != nil), nil } -func (DatabaseMigrationProjectResource) basic(data acceptance.TestData) string { +func (DatabaseMigrationProjectResource) basic(data acceptance.TestData, sourcePlatform string, targetPlatform string) string { return fmt.Sprintf(` %s @@ -117,10 +165,10 @@ resource "azurerm_database_migration_project" "test" { service_name = azurerm_database_migration_service.test.name resource_group_name = azurerm_resource_group.test.name location = azurerm_resource_group.test.location - source_platform = "SQL" - target_platform = "SQLDB" + source_platform = "%s" + target_platform = "%s" } -`, DatabaseMigrationServiceResource{}.basic(data), data.RandomInteger) +`, DatabaseMigrationServiceResource{}.basic(data), data.RandomInteger, sourcePlatform, targetPlatform) } func (DatabaseMigrationProjectResource) complete(data acceptance.TestData) string { @@ -142,7 +190,7 @@ resource "azurerm_database_migration_project" "test" { } func (DatabaseMigrationProjectResource) requiresImport(data acceptance.TestData) string { - template := DatabaseMigrationProjectResource{}.basic(data) + template := DatabaseMigrationProjectResource{}.basic(data, "SQL", "SQLDB") return fmt.Sprintf(` %s diff --git a/internal/services/databasemigration/database_migration_service_data_source.go b/internal/services/databasemigration/database_migration_service_data_source.go index 06a98f5cbc1e..d5860d5eb37f 100644 --- a/internal/services/databasemigration/database_migration_service_data_source.go +++ b/internal/services/databasemigration/database_migration_service_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/databasemigration/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/databasemigration/database_migration_service_resource.go b/internal/services/databasemigration/database_migration_service_resource.go index 467d1c428131..a3b2609e4e00 100644 --- a/internal/services/databasemigration/database_migration_service_resource.go +++ b/internal/services/databasemigration/database_migration_service_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/databasemigration/database_migration_service_resource_test.go b/internal/services/databasemigration/database_migration_service_resource_test.go index 9189bc429860..7c5aa9ceb7e9 100644 --- a/internal/services/databasemigration/database_migration_service_resource_test.go +++ b/internal/services/databasemigration/database_migration_service_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_project.go deleted file mode 100644 index a683e6652f11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_project.go +++ /dev/null @@ -1,13 +0,0 @@ -package projectresource - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Project struct { - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *ProjectProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttaskproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttaskproperties.go deleted file mode 100644 index ee9af00dfc17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttaskproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package serviceresource - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProjectTaskProperties struct { - Commands *[]CommandProperties `json:"commands,omitempty"` - Errors *[]ODataError `json:"errors,omitempty"` - State *TaskState `json:"state,omitempty"` - TaskType string `json:"taskType"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md index c24a8ae16ccc..701fc40df0a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource` Documentation -The `projectresource` SDK allows for interaction with the Azure Resource Manager Service `datamigration` (API Version `2018-04-19`). +The `projectresource` SDK allows for interaction with the Azure Resource Manager Service `datamigration` (API Version `2021-06-30`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource" +import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource" ``` @@ -73,14 +73,14 @@ if model := read.Model; model != nil { ``` -### Example Usage: `ProjectResourceClient.ProjectsListByResourceGroup` +### Example Usage: `ProjectResourceClient.ProjectsList` ```go ctx := context.TODO() id := projectresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") -// alternatively `client.ProjectsListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ProjectsListByResourceGroupComplete(ctx, id) +// alternatively `client.ProjectsList(ctx, id)` can be used to do batched pagination +items, err := client.ProjectsListComplete(ctx, id) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/constants.go similarity index 64% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/constants.go index 8d6a352d128c..e2e88c2c6708 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/constants.go @@ -53,12 +53,18 @@ func parseProjectProvisioningState(input string) (*ProjectProvisioningState, err type ProjectSourcePlatform string const ( - ProjectSourcePlatformSQL ProjectSourcePlatform = "SQL" - ProjectSourcePlatformUnknown ProjectSourcePlatform = "Unknown" + ProjectSourcePlatformMongoDb ProjectSourcePlatform = "MongoDb" + ProjectSourcePlatformMySQL ProjectSourcePlatform = "MySQL" + ProjectSourcePlatformPostgreSql ProjectSourcePlatform = "PostgreSql" + ProjectSourcePlatformSQL ProjectSourcePlatform = "SQL" + ProjectSourcePlatformUnknown ProjectSourcePlatform = "Unknown" ) func PossibleValuesForProjectSourcePlatform() []string { return []string{ + string(ProjectSourcePlatformMongoDb), + string(ProjectSourcePlatformMySQL), + string(ProjectSourcePlatformPostgreSql), string(ProjectSourcePlatformSQL), string(ProjectSourcePlatformUnknown), } @@ -79,8 +85,11 @@ func (s *ProjectSourcePlatform) UnmarshalJSON(bytes []byte) error { func parseProjectSourcePlatform(input string) (*ProjectSourcePlatform, error) { vals := map[string]ProjectSourcePlatform{ - "sql": ProjectSourcePlatformSQL, - "unknown": ProjectSourcePlatformUnknown, + "mongodb": ProjectSourcePlatformMongoDb, + "mysql": ProjectSourcePlatformMySQL, + "postgresql": ProjectSourcePlatformPostgreSql, + "sql": ProjectSourcePlatformSQL, + "unknown": ProjectSourcePlatformUnknown, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil @@ -94,13 +103,21 @@ func parseProjectSourcePlatform(input string) (*ProjectSourcePlatform, error) { type ProjectTargetPlatform string const ( - ProjectTargetPlatformSQLDB ProjectTargetPlatform = "SQLDB" - ProjectTargetPlatformUnknown ProjectTargetPlatform = "Unknown" + ProjectTargetPlatformAzureDbForMySql ProjectTargetPlatform = "AzureDbForMySql" + ProjectTargetPlatformAzureDbForPostgreSql ProjectTargetPlatform = "AzureDbForPostgreSql" + ProjectTargetPlatformMongoDb ProjectTargetPlatform = "MongoDb" + ProjectTargetPlatformSQLDB ProjectTargetPlatform = "SQLDB" + ProjectTargetPlatformSQLMI ProjectTargetPlatform = "SQLMI" + ProjectTargetPlatformUnknown ProjectTargetPlatform = "Unknown" ) func PossibleValuesForProjectTargetPlatform() []string { return []string{ + string(ProjectTargetPlatformAzureDbForMySql), + string(ProjectTargetPlatformAzureDbForPostgreSql), + string(ProjectTargetPlatformMongoDb), string(ProjectTargetPlatformSQLDB), + string(ProjectTargetPlatformSQLMI), string(ProjectTargetPlatformUnknown), } } @@ -120,8 +137,12 @@ func (s *ProjectTargetPlatform) UnmarshalJSON(bytes []byte) error { func parseProjectTargetPlatform(input string) (*ProjectTargetPlatform, error) { vals := map[string]ProjectTargetPlatform{ - "sqldb": ProjectTargetPlatformSQLDB, - "unknown": ProjectTargetPlatformUnknown, + "azuredbformysql": ProjectTargetPlatformAzureDbForMySql, + "azuredbforpostgresql": ProjectTargetPlatformAzureDbForPostgreSql, + "mongodb": ProjectTargetPlatformMongoDb, + "sqldb": ProjectTargetPlatformSQLDB, + "sqlmi": ProjectTargetPlatformSQLMI, + "unknown": ProjectTargetPlatformUnknown, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_project.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/id_project.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_project.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go index 78ed220b34b1..d2b75c20877c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go @@ -12,19 +12,19 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ProjectsListByResourceGroupOperationResponse struct { +type ProjectsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Project } -type ProjectsListByResourceGroupCompleteResult struct { +type ProjectsListCompleteResult struct { LatestHttpResponse *http.Response Items []Project } -// ProjectsListByResourceGroup ... -func (c ProjectResourceClient) ProjectsListByResourceGroup(ctx context.Context, id ServiceId) (result ProjectsListByResourceGroupOperationResponse, err error) { +// ProjectsList ... +func (c ProjectResourceClient) ProjectsList(ctx context.Context, id ServiceId) (result ProjectsListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -61,16 +61,16 @@ func (c ProjectResourceClient) ProjectsListByResourceGroup(ctx context.Context, return } -// ProjectsListByResourceGroupComplete retrieves all the results into a single object -func (c ProjectResourceClient) ProjectsListByResourceGroupComplete(ctx context.Context, id ServiceId) (ProjectsListByResourceGroupCompleteResult, error) { - return c.ProjectsListByResourceGroupCompleteMatchingPredicate(ctx, id, ProjectOperationPredicate{}) +// ProjectsListComplete retrieves all the results into a single object +func (c ProjectResourceClient) ProjectsListComplete(ctx context.Context, id ServiceId) (ProjectsListCompleteResult, error) { + return c.ProjectsListCompleteMatchingPredicate(ctx, id, ProjectOperationPredicate{}) } -// ProjectsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ProjectResourceClient) ProjectsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate ProjectOperationPredicate) (result ProjectsListByResourceGroupCompleteResult, err error) { +// ProjectsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProjectResourceClient) ProjectsListCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate ProjectOperationPredicate) (result ProjectsListCompleteResult, err error) { items := make([]Project, 0) - resp, err := c.ProjectsListByResourceGroup(ctx, id) + resp, err := c.ProjectsList(ctx, id) if err != nil { err = fmt.Errorf("loading results: %+v", err) return @@ -83,7 +83,7 @@ func (c ProjectResourceClient) ProjectsListByResourceGroupCompleteMatchingPredic } } - result = ProjectsListByResourceGroupCompleteResult{ + result = ProjectsListCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/method_projectsupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_connectioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_connectioninfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_connectioninfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_connectioninfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_databaseinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_databaseinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_databaseinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_databaseinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_project.go new file mode 100644 index 000000000000..0fa4c911a332 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_project.go @@ -0,0 +1,18 @@ +package projectresource + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Project struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ProjectProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_projectproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_projectproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/model_projectproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/model_projectproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go index 79d19c463ff8..97be01773f3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2018-04-19" +const defaultApiVersion = "2021-06-30" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/projectresource/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md index 2c55a226711c..6695ccca3013 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource` Documentation -The `serviceresource` SDK allows for interaction with the Azure Resource Manager Service `datamigration` (API Version `2018-04-19`). +The `serviceresource` SDK allows for interaction with the Azure Resource Manager Service `datamigration` (API Version `2021-06-30`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource" +import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource" ``` @@ -21,6 +21,23 @@ client.Client.Authorizer = authorizer ``` +### Example Usage: `ServiceResourceClient.ServiceTasksList` + +```go +ctx := context.TODO() +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") + +// alternatively `client.ServiceTasksList(ctx, id, serviceresource.DefaultServiceTasksListOperationOptions())` can be used to do batched pagination +items, err := client.ServiceTasksListComplete(ctx, id, serviceresource.DefaultServiceTasksListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + ### Example Usage: `ServiceResourceClient.ServicesCheckStatus` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_project.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/id_project.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_project.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/id_resourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_resourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/id_resourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_resourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_service.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/id_service.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_service.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicescheckstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescheckstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicescheckstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescheckstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistskus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistskus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistskus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesstart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesstart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesstart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesstart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesstop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesstop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesstop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesstop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go new file mode 100644 index 000000000000..db76195c4e4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go @@ -0,0 +1,119 @@ +package serviceresource + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTasksListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProjectTask +} + +type ServiceTasksListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ProjectTask +} + +type ServiceTasksListOperationOptions struct { + TaskType *string +} + +func DefaultServiceTasksListOperationOptions() ServiceTasksListOperationOptions { + return ServiceTasksListOperationOptions{} +} + +func (o ServiceTasksListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ServiceTasksListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ServiceTasksListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.TaskType != nil { + out.Append("taskType", fmt.Sprintf("%v", *o.TaskType)) + } + return &out +} + +// ServiceTasksList ... +func (c ServiceResourceClient) ServiceTasksList(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (result ServiceTasksListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/serviceTasks", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProjectTask `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ServiceTasksListComplete retrieves all the results into a single object +func (c ServiceResourceClient) ServiceTasksListComplete(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (ServiceTasksListCompleteResult, error) { + return c.ServiceTasksListCompleteMatchingPredicate(ctx, id, options, ProjectTaskOperationPredicate{}) +} + +// ServiceTasksListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServiceResourceClient) ServiceTasksListCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions, predicate ProjectTaskOperationPredicate) (result ServiceTasksListCompleteResult, err error) { + items := make([]ProjectTask, 0) + + resp, err := c.ServiceTasksList(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ServiceTasksListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_taskslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/method_taskslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_availableservicesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_availableservicesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_availableservicesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_availableservicesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_availableserviceskucapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_availableserviceskucapacity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_availableserviceskucapacity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_availableserviceskucapacity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_availableserviceskusku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_availableserviceskusku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_availableserviceskusku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_availableserviceskusku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_commandproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_commandproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_commandproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_commandproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationservice.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationservice.go index dad011b248f8..7045e79b9ff4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationservice.go @@ -1,5 +1,9 @@ package serviceresource +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -11,6 +15,7 @@ type DataMigrationService struct { Name *string `json:"name,omitempty"` Properties *DataMigrationServiceProperties `json:"properties,omitempty"` Sku *ServiceSku `json:"sku,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationserviceproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationserviceproperties.go index 3acef1029418..4c2289ec0fdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationserviceproperties.go @@ -6,5 +6,6 @@ package serviceresource type DataMigrationServiceProperties struct { ProvisioningState *ServiceProvisioningState `json:"provisioningState,omitempty"` PublicKey *string `json:"publicKey,omitempty"` + VirtualNicId *string `json:"virtualNicId,omitempty"` VirtualSubnetId string `json:"virtualSubnetId"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationservicestatusresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationservicestatusresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_datamigrationservicestatusresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_datamigrationservicestatusresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_odataerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_odataerror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_odataerror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_odataerror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttask.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttask.go similarity index 77% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttask.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttask.go index 5bfe05144a3e..246b90d99cc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_projecttask.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttask.go @@ -1,5 +1,9 @@ package serviceresource +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -8,5 +12,6 @@ type ProjectTask struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ProjectTaskProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttaskproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttaskproperties.go new file mode 100644 index 000000000000..f51a01cb032a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_projecttaskproperties.go @@ -0,0 +1,12 @@ +package serviceresource + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProjectTaskProperties struct { + ClientData *map[string]string `json:"clientData,omitempty"` + Commands *[]CommandProperties `json:"commands,omitempty"` + Errors *[]ODataError `json:"errors,omitempty"` + State *TaskState `json:"state,omitempty"` + TaskType string `json:"taskType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_servicesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_servicesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/model_servicesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/model_servicesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go index 0b34147d4646..760bade3a0ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2018-04-19" +const defaultApiVersion = "2021-06-30" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/serviceresource/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index 6f59582b7964..ca367fce4e72 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -427,8 +427,8 @@ github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/creden github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks -github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource -github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource +github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource +github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults diff --git a/website/docs/r/database_migration_project.html.markdown b/website/docs/r/database_migration_project.html.markdown index e53c04c59983..e33cb691eb1d 100644 --- a/website/docs/r/database_migration_project.html.markdown +++ b/website/docs/r/database_migration_project.html.markdown @@ -64,9 +64,9 @@ The following arguments are supported: * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. -* `source_platform` - (Required) The platform type of the migration source. Currently only support: `SQL`(on-premises SQL Server). Changing this forces a new resource to be created. +* `source_platform` - (Required) The platform type of the migration source. Possible values are `SQL`, `PostgreSQL`, `MySQL` and `MongoDb`. Changing this forces a new resource to be created. -* `target_platform` - (Required) The platform type of the migration target. Currently only support: `SQLDB`(Azure SQL Database). Changing this forces a new resource to be created. +* `target_platform` - (Required) The platform type of the migration target. Possible values are `SQLDB`, `AzureDbForPostgreSql`, `AzureDbForMySql` and `MongoDb`. Changing this forces a new resource to be created. * `tags` - (Optional) A mapping of tags to assigned to the resource.