From 7404c4c8b0797f6d6dc9a9016b819f77ab949105 Mon Sep 17 00:00:00 2001 From: Danny Adams Date: Fri, 20 Jan 2023 09:22:40 -0500 Subject: [PATCH] Update /connector/onedrive package Beta Library replaces msgraph v1.0 --- src/internal/connector/onedrive/collection.go | 2 +- src/internal/connector/onedrive/collection_test.go | 4 ++-- src/internal/connector/onedrive/collections.go | 2 +- src/internal/connector/onedrive/collections_test.go | 2 +- src/internal/connector/onedrive/drive.go | 10 +++++----- src/internal/connector/onedrive/item.go | 4 ++-- src/internal/connector/onedrive/item_test.go | 4 ++-- src/internal/connector/onedrive/service_test.go | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/internal/connector/onedrive/collection.go b/src/internal/connector/onedrive/collection.go index 4ea9ea9eb..438ffc835 100644 --- a/src/internal/connector/onedrive/collection.go +++ b/src/internal/connector/onedrive/collection.go @@ -8,7 +8,7 @@ import ( "sync/atomic" "time" - "github.com/microsoftgraph/msgraph-sdk-go/models" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/spatialcurrent/go-lazy/pkg/lazy" "github.com/alcionai/corso/src/internal/connector/graph" diff --git a/src/internal/connector/onedrive/collection_test.go b/src/internal/connector/onedrive/collection_test.go index a19021ff7..4e8876a92 100644 --- a/src/internal/connector/onedrive/collection_test.go +++ b/src/internal/connector/onedrive/collection_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" - "github.com/microsoftgraph/msgraph-sdk-go/models" + msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/src/internal/connector/onedrive/collections.go b/src/internal/connector/onedrive/collections.go index 6a59104f1..0cd261b24 100644 --- a/src/internal/connector/onedrive/collections.go +++ b/src/internal/connector/onedrive/collections.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/microsoftgraph/msgraph-sdk-go/models" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/pkg/errors" "github.com/alcionai/corso/src/internal/connector/graph" diff --git a/src/internal/connector/onedrive/collections_test.go b/src/internal/connector/onedrive/collections_test.go index 5a0775edc..b45d6f185 100644 --- a/src/internal/connector/onedrive/collections_test.go +++ b/src/internal/connector/onedrive/collections_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/microsoftgraph/msgraph-sdk-go/models" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/src/internal/connector/onedrive/drive.go b/src/internal/connector/onedrive/drive.go index e98e8d35b..98e321523 100644 --- a/src/internal/connector/onedrive/drive.go +++ b/src/internal/connector/onedrive/drive.go @@ -6,12 +6,12 @@ import ( "strings" "time" + msdrive "github.com/microsoftgraph/msgraph-beta-sdk-go/drive" + msdrives "github.com/microsoftgraph/msgraph-beta-sdk-go/drives" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + "github.com/microsoftgraph/msgraph-beta-sdk-go/sites" msgraphgocore "github.com/microsoftgraph/msgraph-sdk-go-core" - msdrive "github.com/microsoftgraph/msgraph-sdk-go/drive" - msdrives "github.com/microsoftgraph/msgraph-sdk-go/drives" - "github.com/microsoftgraph/msgraph-sdk-go/models" - "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" - "github.com/microsoftgraph/msgraph-sdk-go/sites" "github.com/pkg/errors" "github.com/alcionai/corso/src/internal/connector/graph" diff --git a/src/internal/connector/onedrive/item.go b/src/internal/connector/onedrive/item.go index 73391033b..f936de4a1 100644 --- a/src/internal/connector/onedrive/item.go +++ b/src/internal/connector/onedrive/item.go @@ -6,8 +6,8 @@ import ( "io" "strings" - msdrives "github.com/microsoftgraph/msgraph-sdk-go/drives" - "github.com/microsoftgraph/msgraph-sdk-go/models" + msdrives "github.com/microsoftgraph/msgraph-beta-sdk-go/drives" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/pkg/errors" "github.com/alcionai/corso/src/internal/connector/graph" diff --git a/src/internal/connector/onedrive/item_test.go b/src/internal/connector/onedrive/item_test.go index 5c2e8c335..7c94b0ea7 100644 --- a/src/internal/connector/onedrive/item_test.go +++ b/src/internal/connector/onedrive/item_test.go @@ -6,8 +6,8 @@ import ( "io" "testing" - msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" - "github.com/microsoftgraph/msgraph-sdk-go/models" + msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go" + "github.com/microsoftgraph/msgraph-beta-sdk-go/models" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/src/internal/connector/onedrive/service_test.go b/src/internal/connector/onedrive/service_test.go index 00a791f1e..dd9a9a6ff 100644 --- a/src/internal/connector/onedrive/service_test.go +++ b/src/internal/connector/onedrive/service_test.go @@ -3,7 +3,7 @@ package onedrive import ( "testing" - msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" + msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go" "github.com/stretchr/testify/require" "github.com/alcionai/corso/src/internal/connector/graph"