diff --git a/generator/generate-sdk.sh b/generator/generate-sdk.sh index 7a8ce56..6dc364e 100755 --- a/generator/generate-sdk.sh +++ b/generator/generate-sdk.sh @@ -1,21 +1,22 @@ #! /usr/bin/env bash set -euo pipefail -if [[ $# -gt 1 ]]; then +if [[ $# -ne 1 ]]; then echo "$0: Not expecting more than one command-line argument, got $#." 1>&2 exit 1 fi +version=$(echo $1 | cut -f1 -d'.') loc=$(realpath -e $0) base_dir=$(dirname "$loc") spec_dir="$base_dir/dropbox-api-spec" -gen_dir=$(dirname ${base_dir})/dropbox +gen_dir=$(dirname ${base_dir})/v$version/dropbox stone -v -a :all go_types.stoneg.py "$gen_dir" "$spec_dir"/*.stone stone -v -a :all go_client.stoneg.py "$gen_dir" "$spec_dir"/*.stone # Update SDK and API spec versions -sdk_version=${1:-"5.0.0"} +sdk_version=${1} pushd ${spec_dir} spec_version=$(git rev-parse --short HEAD) popd @@ -23,4 +24,6 @@ popd sed -i.bak -e "s/UNKNOWN SDK VERSION/${sdk_version}/" \ -e "s/UNKNOWN SPEC VERSION/${spec_version}/" ${gen_dir}/sdk.go rm ${gen_dir}/sdk.go.bak +pushd ${gen_dir} goimports -l -w ${gen_dir} +popd diff --git a/dropbox/account/client.go b/v6/dropbox/account/client.go similarity index 96% rename from dropbox/account/client.go rename to v6/dropbox/account/client.go index 966b491..1ca4e0c 100644 --- a/dropbox/account/client.go +++ b/v6/dropbox/account/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/account/types.go b/v6/dropbox/account/types.go similarity index 98% rename from dropbox/account/types.go rename to v6/dropbox/account/types.go index f100036..8728b2c 100644 --- a/dropbox/account/types.go +++ b/v6/dropbox/account/types.go @@ -24,7 +24,7 @@ package account import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // PhotoSourceArg : has no documentation (yet) diff --git a/dropbox/async/types.go b/v6/dropbox/async/types.go similarity index 98% rename from dropbox/async/types.go rename to v6/dropbox/async/types.go index 9c549b6..2858c79 100644 --- a/dropbox/async/types.go +++ b/v6/dropbox/async/types.go @@ -24,7 +24,7 @@ package async import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // LaunchResultBase : Result returned by methods that launch an asynchronous diff --git a/dropbox/auth/client.go b/v6/dropbox/auth/client.go similarity index 98% rename from dropbox/auth/client.go rename to v6/dropbox/auth/client.go index 7874c13..6340dc9 100644 --- a/dropbox/auth/client.go +++ b/v6/dropbox/auth/client.go @@ -26,7 +26,7 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // Client interface describes all routes in this namespace diff --git a/dropbox/auth/sdk.go b/v6/dropbox/auth/sdk.go similarity index 96% rename from dropbox/auth/sdk.go rename to v6/dropbox/auth/sdk.go index 88564d9..b72fe4d 100644 --- a/dropbox/auth/sdk.go +++ b/v6/dropbox/auth/sdk.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // AuthAPIError wraps AuthError diff --git a/dropbox/auth/types.go b/v6/dropbox/auth/types.go similarity index 99% rename from dropbox/auth/types.go rename to v6/dropbox/auth/types.go index 57e7741..8f277da 100644 --- a/dropbox/auth/types.go +++ b/v6/dropbox/auth/types.go @@ -24,7 +24,7 @@ package auth import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // AccessError : Error occurred because the account doesn't have permission to diff --git a/dropbox/check/client.go b/v6/dropbox/check/client.go similarity index 97% rename from dropbox/check/client.go rename to v6/dropbox/check/client.go index cc2b3b1..02bb796 100644 --- a/dropbox/check/client.go +++ b/v6/dropbox/check/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/check/types.go b/v6/dropbox/check/types.go similarity index 100% rename from dropbox/check/types.go rename to v6/dropbox/check/types.go diff --git a/dropbox/common/types.go b/v6/dropbox/common/types.go similarity index 99% rename from dropbox/common/types.go rename to v6/dropbox/common/types.go index 5764e34..25be07b 100644 --- a/dropbox/common/types.go +++ b/v6/dropbox/common/types.go @@ -24,7 +24,7 @@ package common import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // PathRoot : has no documentation (yet) diff --git a/dropbox/contacts/client.go b/v6/dropbox/contacts/client.go similarity index 97% rename from dropbox/contacts/client.go rename to v6/dropbox/contacts/client.go index 3624c9e..5527cc4 100644 --- a/dropbox/contacts/client.go +++ b/v6/dropbox/contacts/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/contacts/types.go b/v6/dropbox/contacts/types.go similarity index 97% rename from dropbox/contacts/types.go rename to v6/dropbox/contacts/types.go index 4c984e6..a96936a 100644 --- a/dropbox/contacts/types.go +++ b/v6/dropbox/contacts/types.go @@ -24,7 +24,7 @@ package contacts import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // DeleteManualContactsArg : has no documentation (yet) diff --git a/dropbox/file_properties/client.go b/v6/dropbox/file_properties/client.go similarity index 99% rename from dropbox/file_properties/client.go rename to v6/dropbox/file_properties/client.go index 3679002..ec524ca 100644 --- a/dropbox/file_properties/client.go +++ b/v6/dropbox/file_properties/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/file_properties/types.go b/v6/dropbox/file_properties/types.go similarity index 99% rename from dropbox/file_properties/types.go rename to v6/dropbox/file_properties/types.go index 531150d..f74da54 100644 --- a/dropbox/file_properties/types.go +++ b/v6/dropbox/file_properties/types.go @@ -48,7 +48,7 @@ package file_properties import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // AddPropertiesArg : has no documentation (yet) diff --git a/dropbox/file_requests/client.go b/v6/dropbox/file_requests/client.go similarity index 99% rename from dropbox/file_requests/client.go rename to v6/dropbox/file_requests/client.go index 9eb5737..2967bd0 100644 --- a/dropbox/file_requests/client.go +++ b/v6/dropbox/file_requests/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/file_requests/types.go b/v6/dropbox/file_requests/types.go similarity index 99% rename from dropbox/file_requests/types.go rename to v6/dropbox/file_requests/types.go index 3f378e4..b49f4b7 100644 --- a/dropbox/file_requests/types.go +++ b/v6/dropbox/file_requests/types.go @@ -26,7 +26,7 @@ import ( "encoding/json" "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // GeneralFileRequestsError : There is an error accessing the file requests diff --git a/dropbox/files/client.go b/v6/dropbox/files/client.go similarity index 99% rename from dropbox/files/client.go rename to v6/dropbox/files/client.go index 2db8c63..82a3841 100644 --- a/dropbox/files/client.go +++ b/v6/dropbox/files/client.go @@ -28,10 +28,10 @@ import ( "log" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/async" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/file_properties" ) // Client interface describes all routes in this namespace diff --git a/dropbox/files/types.go b/v6/dropbox/files/types.go similarity index 99% rename from dropbox/files/types.go rename to v6/dropbox/files/types.go index 663bfee..84b2ce9 100644 --- a/dropbox/files/types.go +++ b/v6/dropbox/files/types.go @@ -26,8 +26,8 @@ import ( "encoding/json" "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/file_properties" ) // GetMetadataArg : has no documentation (yet) diff --git a/dropbox/paper/client.go b/v6/dropbox/paper/client.go similarity index 99% rename from dropbox/paper/client.go rename to v6/dropbox/paper/client.go index 23d3c80..87b47c7 100644 --- a/dropbox/paper/client.go +++ b/v6/dropbox/paper/client.go @@ -28,8 +28,8 @@ import ( "log" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/paper/types.go b/v6/dropbox/paper/types.go similarity index 99% rename from dropbox/paper/types.go rename to v6/dropbox/paper/types.go index 59d0c52..34765ba 100644 --- a/dropbox/paper/types.go +++ b/v6/dropbox/paper/types.go @@ -31,8 +31,8 @@ import ( "encoding/json" "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/sharing" ) // AddMember : has no documentation (yet) diff --git a/dropbox/sdk.go b/v6/dropbox/sdk.go similarity index 99% rename from dropbox/sdk.go rename to v6/dropbox/sdk.go index b3ec75f..99cf3cc 100644 --- a/dropbox/sdk.go +++ b/v6/dropbox/sdk.go @@ -38,7 +38,7 @@ const ( hostAPI = "api" hostContent = "content" hostNotify = "notify" - sdkVersion = "5.0.0" + sdkVersion = "6.0.0" specVersion = "85f2eff" ) diff --git a/dropbox/sdk_test.go b/v6/dropbox/sdk_test.go similarity index 97% rename from dropbox/sdk_test.go rename to v6/dropbox/sdk_test.go index cb61d03..9e62274 100644 --- a/dropbox/sdk_test.go +++ b/v6/dropbox/sdk_test.go @@ -28,9 +28,9 @@ import ( "strings" "testing" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/users" ) func generateURL(base string, namespace string, route string) string { diff --git a/dropbox/secondary_emails/types.go b/v6/dropbox/secondary_emails/types.go similarity index 100% rename from dropbox/secondary_emails/types.go rename to v6/dropbox/secondary_emails/types.go diff --git a/dropbox/seen_state/types.go b/v6/dropbox/seen_state/types.go similarity index 96% rename from dropbox/seen_state/types.go rename to v6/dropbox/seen_state/types.go index be6120a..f42f525 100644 --- a/dropbox/seen_state/types.go +++ b/v6/dropbox/seen_state/types.go @@ -21,7 +21,7 @@ // Package seen_state : has no documentation (yet) package seen_state -import "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" +import "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" // PlatformType : Possible platforms on which a user may view content. type PlatformType struct { diff --git a/dropbox/sharing/client.go b/v6/dropbox/sharing/client.go similarity index 99% rename from dropbox/sharing/client.go rename to v6/dropbox/sharing/client.go index 15ea2b6..05e964b 100644 --- a/dropbox/sharing/client.go +++ b/v6/dropbox/sharing/client.go @@ -28,9 +28,9 @@ import ( "log" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/async" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/sharing/types.go b/v6/dropbox/sharing/types.go similarity index 99% rename from dropbox/sharing/types.go rename to v6/dropbox/sharing/types.go index 50b0965..b03e3e8 100644 --- a/dropbox/sharing/types.go +++ b/v6/dropbox/sharing/types.go @@ -26,11 +26,11 @@ import ( "encoding/json" "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/seen_state" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_common" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/files" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/seen_state" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_common" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/users" ) // AccessInheritance : Information about the inheritance policy of a shared diff --git a/dropbox/team/client.go b/v6/dropbox/team/client.go similarity index 99% rename from dropbox/team/client.go rename to v6/dropbox/team/client.go index a941520..008fa87 100644 --- a/dropbox/team/client.go +++ b/v6/dropbox/team/client.go @@ -27,10 +27,10 @@ import ( "log" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/async" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/file_properties" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/async" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/file_properties" ) // Client interface describes all routes in this namespace diff --git a/dropbox/team/types.go b/v6/dropbox/team/types.go similarity index 99% rename from dropbox/team/types.go rename to v6/dropbox/team/types.go index b716988..06c8fca 100644 --- a/dropbox/team/types.go +++ b/v6/dropbox/team/types.go @@ -25,13 +25,13 @@ import ( "encoding/json" "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/account" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/secondary_emails" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_common" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/account" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/files" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/secondary_emails" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_common" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_policies" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/users" ) // DeviceSession : has no documentation (yet) diff --git a/dropbox/team_common/types.go b/v6/dropbox/team_common/types.go similarity index 98% rename from dropbox/team_common/types.go rename to v6/dropbox/team_common/types.go index 057add8..a023e6c 100644 --- a/dropbox/team_common/types.go +++ b/v6/dropbox/team_common/types.go @@ -24,7 +24,7 @@ package team_common import ( "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" ) // GroupManagementType : The group type determines how a group is managed. diff --git a/dropbox/team_log/client.go b/v6/dropbox/team_log/client.go similarity index 97% rename from dropbox/team_log/client.go rename to v6/dropbox/team_log/client.go index 308c81e..22af1a5 100644 --- a/dropbox/team_log/client.go +++ b/v6/dropbox/team_log/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/team_log/types.go b/v6/dropbox/team_log/types.go similarity index 99% rename from dropbox/team_log/types.go rename to v6/dropbox/team_log/types.go index 3f1cf32..6ca4154 100644 --- a/dropbox/team_log/types.go +++ b/v6/dropbox/team_log/types.go @@ -25,12 +25,12 @@ import ( "encoding/json" "time" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_common" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/files" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/sharing" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_common" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_policies" ) // AccessMethodLogInfo : Indicates the method in which the action was performed. diff --git a/dropbox/team_policies/types.go b/v6/dropbox/team_policies/types.go similarity index 99% rename from dropbox/team_policies/types.go rename to v6/dropbox/team_policies/types.go index 3aaf1cf..832a45b 100644 --- a/dropbox/team_policies/types.go +++ b/v6/dropbox/team_policies/types.go @@ -21,7 +21,7 @@ // Package team_policies : has no documentation (yet) package team_policies -import "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" +import "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" // CameraUploadsPolicyState : has no documentation (yet) type CameraUploadsPolicyState struct { diff --git a/dropbox/users/client.go b/v6/dropbox/users/client.go similarity index 98% rename from dropbox/users/client.go rename to v6/dropbox/users/client.go index b53b931..6bd2fe0 100644 --- a/dropbox/users/client.go +++ b/v6/dropbox/users/client.go @@ -26,8 +26,8 @@ import ( "io/ioutil" "net/http" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/auth" ) // Client interface describes all routes in this namespace diff --git a/dropbox/users/types.go b/v6/dropbox/users/types.go similarity index 98% rename from dropbox/users/types.go rename to v6/dropbox/users/types.go index 092caf1..50e2c5d 100644 --- a/dropbox/users/types.go +++ b/v6/dropbox/users/types.go @@ -25,11 +25,11 @@ package users import ( "encoding/json" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/common" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_common" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies" - "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users_common" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/common" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_common" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/team_policies" + "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/users_common" ) // Account : The amount of detail revealed about an account depends on the user diff --git a/dropbox/users_common/types.go b/v6/dropbox/users_common/types.go similarity index 95% rename from dropbox/users_common/types.go rename to v6/dropbox/users_common/types.go index 74abd09..b2044fa 100644 --- a/dropbox/users_common/types.go +++ b/v6/dropbox/users_common/types.go @@ -22,7 +22,7 @@ // the users namespace. package users_common -import "github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" +import "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox" // AccountType : What type of account this user has. type AccountType struct { diff --git a/go.mod b/v6/go.mod similarity index 66% rename from go.mod rename to v6/go.mod index 5a98089..3737a63 100644 --- a/go.mod +++ b/v6/go.mod @@ -1,6 +1,6 @@ -module github.com/dropbox/dropbox-sdk-go-unofficial +module github.com/dropbox/dropbox-sdk-go-unofficial/v6 -go 1.11 +go 1.13 require ( golang.org/x/net v0.0.0-20201224014010-6772e930b67b diff --git a/go.sum b/v6/go.sum similarity index 100% rename from go.sum rename to v6/go.sum