From 03d0f331f7dcea7bc610e96ac887e5912764fb66 Mon Sep 17 00:00:00 2001 From: Yen Hu <61753151+0x59656e@users.noreply.github.com> Date: Mon, 18 Jul 2022 00:07:23 +0800 Subject: [PATCH] onedrive: rename Onedrive(cn) 21Vianet to Vnet Group The old site had shown a redirect page to the new one since 2021-4-21. https://www.21vianet.com The official site had renamed to Vnet Group also. https://www.vnet.com/en/about --- backend/onedrive/onedrive.go | 6 +++--- docs/content/onedrive.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 4e899addc..b209b18f4 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -118,7 +118,7 @@ func init() { Help: "Microsoft Cloud Germany", }, { Value: regionCN, - Help: "Azure and Office 365 operated by 21Vianet in China", + Help: "Azure and Office 365 operated by Vnet Group in China", }, }, }, { @@ -2184,7 +2184,7 @@ func (o *Object) ID() string { * 3. To avoid region-related issues, please don't manually build rest.Opts from scratch. * Instead, use these helper function, and customize the URL afterwards if needed. * - * currently, the 21ViaNet's API differs in the following places: + * currently, the Vnet Group's API differs in the following places: * - https://{Endpoint}/drives/{driveID}/items/{leaf}:/{route} * - this API doesn't work (gives invalid request) * - can be replaced with the following API: @@ -2233,7 +2233,7 @@ func escapeSingleQuote(str string) string { // newOptsCallWithIDPath build the rest.Opts structure with *a normalizedID (driveID#fileID, or simply fileID) and leaf* // using url template https://{Endpoint}/drives/{driveID}/items/{leaf}:/{route} (for international OneDrive) // or https://{Endpoint}/drives/{driveID}/items/children('{leaf}')/{route} -// and https://{Endpoint}/drives/{driveID}/items/children('@a1')/{route}?@a1=URLEncode("'{leaf}'") (for 21ViaNet) +// and https://{Endpoint}/drives/{driveID}/items/children('@a1')/{route}?@a1=URLEncode("'{leaf}'") (for Vnet Group) // if isPath is false, this function will only work when the leaf is "" or a child name (i.e. it doesn't accept multi-level leaf) // if isPath is true, multi-level leaf like a/b/c can be passed func (f *Fs) newOptsCallWithIDPath(normalizedID string, leaf string, isPath bool, method string, route string) (opts rest.Opts, ok bool) { diff --git a/docs/content/onedrive.md b/docs/content/onedrive.md index b31415787..13242910f 100644 --- a/docs/content/onedrive.md +++ b/docs/content/onedrive.md @@ -263,7 +263,7 @@ Properties: - "de" - Microsoft Cloud Germany - "cn" - - Azure and Office 365 operated by 21Vianet in China + - Azure and Office 365 operated by Vnet Group in China ### Advanced options