@@ -34,7 +34,8 @@ import (
3434type AddTagArg struct {
3535 // Path : Path to the item to be tagged.
3636 Path string `json:"path"`
37- // TagText : The value of the tag to add.
37+ // TagText : The value of the tag to add. Will be automatically converted to
38+ // lowercase letters.
3839 TagText string `json:"tag_text"`
3940}
4041
@@ -923,6 +924,8 @@ type Metadata struct {
923924 // `FileSharingInfo.parent_shared_folder_id` or
924925 // `FolderSharingInfo.parent_shared_folder_id` instead.
925926 ParentSharedFolderId string `json:"parent_shared_folder_id,omitempty"`
927+ // PreviewUrl : The preview URL of the file.
928+ PreviewUrl string `json:"preview_url,omitempty"`
926929}
927930
928931// NewMetadata returns a new Metadata instance
@@ -3552,7 +3555,8 @@ func (u *RelocationResult) UnmarshalJSON(b []byte) error {
35523555type RemoveTagArg struct {
35533556 // Path : Path to the item to tag.
35543557 Path string `json:"path"`
3555- // TagText : The tag to remove.
3558+ // TagText : The tag to remove. Will be automatically converted to lowercase
3559+ // letters.
35563560 TagText string `json:"tag_text"`
35573561}
35583562
@@ -4087,6 +4091,8 @@ type SearchOptions struct {
40874091 // FileCategories : Restricts search to only the file categories specified.
40884092 // Only supported for active file search.
40894093 FileCategories []* FileCategory `json:"file_categories,omitempty"`
4094+ // AccountId : Restricts results to the given account id.
4095+ AccountId string `json:"account_id,omitempty"`
40904096}
40914097
40924098// NewSearchOptions returns a new SearchOptions instance
@@ -4546,9 +4552,9 @@ func NewUnlockFileBatchArg(Entries []*UnlockFileArg) *UnlockFileBatchArg {
45464552// UploadArg : has no documentation (yet)
45474553type UploadArg struct {
45484554 CommitInfo
4549- // ContentHash : NOT YET SUPPORTED. A hash of the file content uploaded in
4550- // this call. If provided and the uploaded content does not match this hash,
4551- // an error will be returned. For more information see our `Content hash`
4555+ // ContentHash : A hash of the file content uploaded in this call. If
4556+ // provided and the uploaded content does not match this hash, an error will
4557+ // be returned. For more information see our `Content hash`
45524558 // <https://www.dropbox.com/developers/reference/content-hash> page.
45534559 ContentHash string `json:"content_hash,omitempty"`
45544560}
@@ -4618,9 +4624,9 @@ type UploadSessionAppendArg struct {
46184624 // won't be able to call `uploadSessionAppend` anymore with the current
46194625 // session.
46204626 Close bool `json:"close"`
4621- // ContentHash : NOT YET SUPPORTED. A hash of the file content uploaded in
4622- // this call. If provided and the uploaded content does not match this hash,
4623- // an error will be returned. For more information see our `Content hash`
4627+ // ContentHash : A hash of the file content uploaded in this call. If
4628+ // provided and the uploaded content does not match this hash, an error will
4629+ // be returned. For more information see our `Content hash`
46244630 // <https://www.dropbox.com/developers/reference/content-hash> page.
46254631 ContentHash string `json:"content_hash,omitempty"`
46264632}
@@ -4746,9 +4752,9 @@ type UploadSessionFinishArg struct {
47464752 Cursor * UploadSessionCursor `json:"cursor"`
47474753 // Commit : Contains the path and other optional modifiers for the commit.
47484754 Commit * CommitInfo `json:"commit"`
4749- // ContentHash : NOT YET SUPPORTED. A hash of the file content uploaded in
4750- // this call. If provided and the uploaded content does not match this hash,
4751- // an error will be returned. For more information see our `Content hash`
4755+ // ContentHash : A hash of the file content uploaded in this call. If
4756+ // provided and the uploaded content does not match this hash, an error will
4757+ // be returned. For more information see our `Content hash`
47524758 // <https://www.dropbox.com/developers/reference/content-hash> page.
47534759 ContentHash string `json:"content_hash,omitempty"`
47544760}
@@ -4998,9 +5004,9 @@ type UploadSessionStartArg struct {
49985004 // SessionType : Type of upload session you want to start. If not specified,
49995005 // default is `UploadSessionType.sequential`.
50005006 SessionType * UploadSessionType `json:"session_type,omitempty"`
5001- // ContentHash : NOT YET SUPPORTED. A hash of the file content uploaded in
5002- // this call. If provided and the uploaded content does not match this hash,
5003- // an error will be returned. For more information see our `Content hash`
5007+ // ContentHash : A hash of the file content uploaded in this call. If
5008+ // provided and the uploaded content does not match this hash, an error will
5009+ // be returned. For more information see our `Content hash`
50045010 // <https://www.dropbox.com/developers/reference/content-hash> page.
50055011 ContentHash string `json:"content_hash,omitempty"`
50065012}
@@ -5012,6 +5018,36 @@ func NewUploadSessionStartArg() *UploadSessionStartArg {
50125018 return s
50135019}
50145020
5021+ // UploadSessionStartBatchArg : has no documentation (yet)
5022+ type UploadSessionStartBatchArg struct {
5023+ // SessionType : Type of upload session you want to start. If not specified,
5024+ // default is `UploadSessionType.sequential`.
5025+ SessionType * UploadSessionType `json:"session_type,omitempty"`
5026+ // NumSessions : The number of upload sessions to start.
5027+ NumSessions uint64 `json:"num_sessions"`
5028+ }
5029+
5030+ // NewUploadSessionStartBatchArg returns a new UploadSessionStartBatchArg instance
5031+ func NewUploadSessionStartBatchArg (NumSessions uint64 ) * UploadSessionStartBatchArg {
5032+ s := new (UploadSessionStartBatchArg )
5033+ s .NumSessions = NumSessions
5034+ return s
5035+ }
5036+
5037+ // UploadSessionStartBatchResult : has no documentation (yet)
5038+ type UploadSessionStartBatchResult struct {
5039+ // SessionIds : A List of unique identifiers for the upload session. Pass
5040+ // each session_id to `uploadSessionAppend` and `uploadSessionFinish`.
5041+ SessionIds []string `json:"session_ids"`
5042+ }
5043+
5044+ // NewUploadSessionStartBatchResult returns a new UploadSessionStartBatchResult instance
5045+ func NewUploadSessionStartBatchResult (SessionIds []string ) * UploadSessionStartBatchResult {
5046+ s := new (UploadSessionStartBatchResult )
5047+ s .SessionIds = SessionIds
5048+ return s
5049+ }
5050+
50155051// UploadSessionStartError : has no documentation (yet)
50165052type UploadSessionStartError struct {
50175053 dropbox.Tagged
0 commit comments