From 258cff2eac5bbc8caf493b7c345cb2cc9711fa01 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Fri, 12 Jan 2024 11:04:52 +0100 Subject: [PATCH] remove atlasSDK alias --- .../sharedtier/data_source_cloud_shared_tier_restore_jobs.go | 4 ++-- .../service/sharedtier/data_source_shared_tier_snapshots.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/service/sharedtier/data_source_cloud_shared_tier_restore_jobs.go b/internal/service/sharedtier/data_source_cloud_shared_tier_restore_jobs.go index c87de70367..a1d9b4c214 100644 --- a/internal/service/sharedtier/data_source_cloud_shared_tier_restore_jobs.go +++ b/internal/service/sharedtier/data_source_cloud_shared_tier_restore_jobs.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - atlasSDK "go.mongodb.org/atlas-sdk/v20231115003/admin" + "go.mongodb.org/atlas-sdk/v20231115003/admin" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" @@ -109,7 +109,7 @@ func dataSourceMongoDBAtlasCloudSharedTierRestoreJobRead(ctx context.Context, d return nil } -func flattenShardTierRestoreJobs(sharedTierJobs []atlasSDK.TenantRestore) []map[string]any { +func flattenShardTierRestoreJobs(sharedTierJobs []admin.TenantRestore) []map[string]any { if len(sharedTierJobs) == 0 { return nil } diff --git a/internal/service/sharedtier/data_source_shared_tier_snapshots.go b/internal/service/sharedtier/data_source_shared_tier_snapshots.go index b7ab78cb26..a75cbf16d0 100644 --- a/internal/service/sharedtier/data_source_shared_tier_snapshots.go +++ b/internal/service/sharedtier/data_source_shared_tier_snapshots.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - atlasSDK "go.mongodb.org/atlas-sdk/v20231115003/admin" + "go.mongodb.org/atlas-sdk/v20231115003/admin" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" @@ -92,7 +92,7 @@ func dataSourceMongoDBAtlasSharedTierSnapshotsRead(ctx context.Context, d *schem return nil } -func flattenSharedTierSnapshots(sharedTierSnapshots []atlasSDK.BackupTenantSnapshot) []map[string]any { +func flattenSharedTierSnapshots(sharedTierSnapshots []admin.BackupTenantSnapshot) []map[string]any { if len(sharedTierSnapshots) == 0 { return nil }