Documentation ¶
Overview ¶
Package sharing : This namespace contains endpoints and data types for creating and managing shared links and shared folders.
Index ¶
- Constants
- type AccessInheritance
- type AccessLevel
- type AclUpdatePolicy
- type AddFileMemberAPIError
- type AddFileMemberArgs
- type AddFileMemberError
- type AddFolderMemberAPIError
- type AddFolderMemberArg
- type AddFolderMemberError
- type AddMember
- type AddMemberSelectorError
- type AudienceExceptionContentInfo
- type AudienceExceptions
- type AudienceRestrictingSharedFolder
- type ChangeFileMemberAccessAPIError
- type ChangeFileMemberAccessArgs
- type CheckJobStatusAPIError
- type CheckRemoveMemberJobStatusAPIError
- type CheckShareJobStatusAPIError
- type Client
- type CollectionLinkMetadata
- type CreateSharedLinkAPIError
- type CreateSharedLinkArg
- type CreateSharedLinkError
- type CreateSharedLinkWithSettingsAPIError
- type CreateSharedLinkWithSettingsArg
- type CreateSharedLinkWithSettingsError
- type ExpectedSharedContentLinkMetadata
- type FileAction
- type FileErrorResult
- type FileLinkMetadata
- type FileMemberActionError
- type FileMemberActionIndividualResult
- type FileMemberActionResult
- type FileMemberRemoveActionResult
- type FilePermission
- type FolderAction
- type FolderLinkMetadata
- type FolderPermission
- type FolderPolicy
- type GetFileMetadataAPIError
- type GetFileMetadataArg
- type GetFileMetadataBatchAPIError
- type GetFileMetadataBatchArg
- type GetFileMetadataBatchResult
- type GetFileMetadataError
- type GetFileMetadataIndividualResult
- type GetFolderMetadataAPIError
- type GetMetadataArgs
- type GetSharedLinkFileAPIError
- type GetSharedLinkFileError
- type GetSharedLinkMetadataAPIError
- type GetSharedLinkMetadataArg
- type GetSharedLinksAPIError
- type GetSharedLinksArg
- type GetSharedLinksError
- type GetSharedLinksResult
- type GroupInfo
- type GroupMembershipInfo
- type InsufficientPlan
- type InsufficientQuotaAmounts
- type InviteeInfo
- type InviteeMembershipInfo
- type IsLinkMetadata
- type IsSharedLinkMetadata
- type JobError
- type JobStatus
- type LinkAccessLevel
- type LinkAction
- type LinkAudience
- type LinkExpiry
- type LinkMetadata
- type LinkPassword
- type LinkPermission
- type LinkPermissions
- type LinkSettings
- type ListFileMembersAPIError
- type ListFileMembersArg
- type ListFileMembersBatchAPIError
- type ListFileMembersBatchArg
- type ListFileMembersBatchResult
- type ListFileMembersContinueAPIError
- type ListFileMembersContinueArg
- type ListFileMembersContinueError
- type ListFileMembersCountResult
- type ListFileMembersError
- type ListFileMembersIndividualResult
- type ListFilesArg
- type ListFilesContinueArg
- type ListFilesContinueError
- type ListFilesResult
- type ListFolderMembersAPIError
- type ListFolderMembersArgs
- type ListFolderMembersContinueAPIError
- type ListFolderMembersContinueArg
- type ListFolderMembersContinueError
- type ListFolderMembersCursorArg
- type ListFoldersAPIError
- type ListFoldersArgs
- type ListFoldersContinueAPIError
- type ListFoldersContinueArg
- type ListFoldersContinueError
- type ListFoldersResult
- type ListMountableFoldersAPIError
- type ListMountableFoldersContinueAPIError
- type ListReceivedFilesAPIError
- type ListReceivedFilesContinueAPIError
- type ListSharedLinksAPIError
- type ListSharedLinksArg
- type ListSharedLinksError
- type ListSharedLinksResult
- type MemberAccessLevelResult
- type MemberAction
- type MemberPermission
- type MemberPolicy
- type MemberSelector
- type MembershipInfo
- type ModifySharedLinkSettingsAPIError
- type ModifySharedLinkSettingsArgs
- type ModifySharedLinkSettingsError
- type MountFolderAPIError
- type MountFolderArg
- type MountFolderError
- type ParentFolderAccessInfo
- type PathLinkMetadata
- type PendingUploadMode
- type PermissionDeniedReason
- type RelinquishFileMembershipAPIError
- type RelinquishFileMembershipArg
- type RelinquishFileMembershipError
- type RelinquishFolderMembershipAPIError
- type RelinquishFolderMembershipArg
- type RelinquishFolderMembershipError
- type RemoveFileMember2APIError
- type RemoveFileMemberAPIError
- type RemoveFileMemberArg
- type RemoveFileMemberError
- type RemoveFolderMemberAPIError
- type RemoveFolderMemberArg
- type RemoveFolderMemberError
- type RemoveMemberJobStatus
- type RequestedLinkAccessLevel
- type RequestedVisibility
- type ResolvedVisibility
- type RevokeSharedLinkAPIError
- type RevokeSharedLinkArg
- type RevokeSharedLinkError
- type SetAccessInheritanceAPIError
- type SetAccessInheritanceArg
- type SetAccessInheritanceError
- type ShareFolderAPIError
- type ShareFolderArg
- type ShareFolderArgBase
- type ShareFolderError
- type ShareFolderErrorBase
- type ShareFolderJobStatus
- type ShareFolderLaunch
- type SharePathError
- type SharedContentLinkMetadata
- type SharedContentLinkMetadataBase
- type SharedFileMembers
- type SharedFileMetadata
- type SharedFolderAccessError
- type SharedFolderMemberError
- type SharedFolderMembers
- type SharedFolderMetadata
- type SharedFolderMetadataBase
- type SharedLinkAccessFailureReason
- type SharedLinkAlreadyExistsMetadata
- type SharedLinkError
- type SharedLinkMetadata
- type SharedLinkPolicy
- type SharedLinkSettings
- type SharedLinkSettingsError
- type SharingFileAccessError
- type SharingUserError
- type TeamMemberInfo
- type TransferFolderAPIError
- type TransferFolderArg
- type TransferFolderError
- type UnmountFolderAPIError
- type UnmountFolderArg
- type UnmountFolderError
- type UnshareFileAPIError
- type UnshareFileArg
- type UnshareFileError
- type UnshareFolderAPIError
- type UnshareFolderArg
- type UnshareFolderError
- type UpdateFileMemberAPIError
- type UpdateFileMemberArgs
- type UpdateFolderMemberAPIError
- type UpdateFolderMemberArg
- type UpdateFolderMemberError
- type UpdateFolderPolicyAPIError
- type UpdateFolderPolicyArg
- type UpdateFolderPolicyError
- type UserFileMembershipInfo
- type UserInfo
- type UserMembershipInfo
- type ViewerInfoPolicy
- type Visibility
Constants ¶
const ( AccessInheritanceInherit = "inherit" AccessInheritanceNoInherit = "no_inherit" AccessInheritanceOther = "other" )
Valid tag values for AccessInheritance
const ( AccessLevelOwner = "owner" AccessLevelEditor = "editor" AccessLevelViewer = "viewer" AccessLevelViewerNoComment = "viewer_no_comment" AccessLevelOther = "other" )
Valid tag values for AccessLevel
const ( AclUpdatePolicyOwner = "owner" AclUpdatePolicyEditors = "editors" AclUpdatePolicyOther = "other" )
Valid tag values for AclUpdatePolicy
const ( AddFileMemberErrorUserError = "user_error" AddFileMemberErrorAccessError = "access_error" AddFileMemberErrorRateLimit = "rate_limit" AddFileMemberErrorInvalidComment = "invalid_comment" AddFileMemberErrorOther = "other" )
Valid tag values for AddFileMemberError
const ( AddFolderMemberErrorAccessError = "access_error" AddFolderMemberErrorEmailUnverified = "email_unverified" AddFolderMemberErrorBannedMember = "banned_member" AddFolderMemberErrorBadMember = "bad_member" AddFolderMemberErrorTooManyMembers = "too_many_members" AddFolderMemberErrorTooManyPendingInvites = "too_many_pending_invites" AddFolderMemberErrorRateLimit = "rate_limit" AddFolderMemberErrorTooManyInvitees = "too_many_invitees" AddFolderMemberErrorInsufficientPlan = "insufficient_plan" AddFolderMemberErrorTeamFolder = "team_folder" AddFolderMemberErrorNoPermission = "no_permission" AddFolderMemberErrorOther = "other" )
Valid tag values for AddFolderMemberError
const ( AddMemberSelectorErrorAutomaticGroup = "automatic_group" AddMemberSelectorErrorInvalidDropboxId = "invalid_dropbox_id" AddMemberSelectorErrorInvalidEmail = "invalid_email" AddMemberSelectorErrorUnverifiedDropboxId = "unverified_dropbox_id" AddMemberSelectorErrorGroupDeleted = "group_deleted" AddMemberSelectorErrorGroupNotOnTeam = "group_not_on_team" AddMemberSelectorErrorOther = "other" )
Valid tag values for AddMemberSelectorError
const ( LinkMetadataPath = "path" LinkMetadataCollection = "collection" )
Valid tag values for LinkMetadata
const ()
Valid tag values for CreateSharedLinkError
const ()
Valid tag values for CreateSharedLinkWithSettingsError
const ( FileActionDisableViewerInfo = "disable_viewer_info" FileActionEditContents = "edit_contents" FileActionEnableViewerInfo = "enable_viewer_info" FileActionInviteViewer = "invite_viewer" FileActionInviteViewerNoComment = "invite_viewer_no_comment" FileActionInviteEditor = "invite_editor" FileActionRelinquishMembership = "relinquish_membership" FileActionCreateLink = "create_link" FileActionCreateViewLink = "create_view_link" FileActionCreateEditLink = "create_edit_link" FileActionOther = "other" )
Valid tag values for FileAction
const ( FileErrorResultFileNotFoundError = "file_not_found_error" FileErrorResultInvalidFileActionError = "invalid_file_action_error" FileErrorResultPermissionDeniedError = "permission_denied_error" FileErrorResultOther = "other" )
Valid tag values for FileErrorResult
const ()
Valid tag values for SharedLinkMetadata
const ( FileMemberActionErrorInvalidMember = "invalid_member" FileMemberActionErrorNoPermission = "no_permission" FileMemberActionErrorAccessError = "access_error" FileMemberActionErrorNoExplicitAccess = "no_explicit_access" FileMemberActionErrorOther = "other" )
Valid tag values for FileMemberActionError
const ( FileMemberActionIndividualResultSuccess = "success" FileMemberActionIndividualResultMemberError = "member_error" )
Valid tag values for FileMemberActionIndividualResult
const ( FileMemberRemoveActionResultSuccess = "success" FileMemberRemoveActionResultMemberError = "member_error" FileMemberRemoveActionResultOther = "other" )
Valid tag values for FileMemberRemoveActionResult
const ( FolderActionChangeOptions = "change_options" FolderActionDisableViewerInfo = "disable_viewer_info" FolderActionEditContents = "edit_contents" FolderActionEnableViewerInfo = "enable_viewer_info" FolderActionInviteEditor = "invite_editor" FolderActionInviteViewer = "invite_viewer" FolderActionInviteViewerNoComment = "invite_viewer_no_comment" FolderActionRelinquishMembership = "relinquish_membership" FolderActionUnmount = "unmount" FolderActionLeaveACopy = "leave_a_copy" FolderActionCreateLink = "create_link" FolderActionSetAccessInheritance = "set_access_inheritance" FolderActionOther = "other" )
Valid tag values for FolderAction
const ( GetFileMetadataErrorUserError = "user_error" GetFileMetadataErrorAccessError = "access_error" GetFileMetadataErrorOther = "other" )
Valid tag values for GetFileMetadataError
const ( GetFileMetadataIndividualResultMetadata = "metadata" GetFileMetadataIndividualResultAccessError = "access_error" GetFileMetadataIndividualResultOther = "other" )
Valid tag values for GetFileMetadataIndividualResult
const ()
Valid tag values for SharedLinkError
const ()
Valid tag values for GetSharedLinkFileError
const ()
Valid tag values for GetSharedLinksError
const ( InviteeInfoEmail = "email" InviteeInfoOther = "other" )
Valid tag values for InviteeInfo
const ( JobErrorRemoveFolderMemberError = "remove_folder_member_error" JobErrorRelinquishFolderMembershipError = "relinquish_folder_membership_error" JobErrorOther = "other" )
Valid tag values for JobError
const ( JobStatusInProgress = "in_progress" JobStatusComplete = "complete" JobStatusFailed = "failed" )
Valid tag values for JobStatus
const ( LinkAccessLevelViewer = "viewer" LinkAccessLevelEditor = "editor" LinkAccessLevelOther = "other" )
Valid tag values for LinkAccessLevel
const ( LinkActionChangeAccessLevel = "change_access_level" LinkActionChangeAudience = "change_audience" LinkActionRemoveExpiry = "remove_expiry" LinkActionRemovePassword = "remove_password" LinkActionSetExpiry = "set_expiry" LinkActionSetPassword = "set_password" LinkActionOther = "other" )
Valid tag values for LinkAction
const ( LinkAudiencePublic = "public" LinkAudienceTeam = "team" LinkAudienceNoOne = "no_one" LinkAudiencePassword = "password" LinkAudienceMembers = "members" LinkAudienceOther = "other" )
Valid tag values for LinkAudience
const ( LinkExpiryRemoveExpiry = "remove_expiry" LinkExpirySetExpiry = "set_expiry" LinkExpiryOther = "other" )
Valid tag values for LinkExpiry
const ( LinkPasswordRemovePassword = "remove_password" LinkPasswordSetPassword = "set_password" LinkPasswordOther = "other" )
Valid tag values for LinkPassword
const ( ListFileMembersContinueErrorUserError = "user_error" ListFileMembersContinueErrorAccessError = "access_error" ListFileMembersContinueErrorInvalidCursor = "invalid_cursor" ListFileMembersContinueErrorOther = "other" )
Valid tag values for ListFileMembersContinueError
const ( ListFileMembersErrorUserError = "user_error" ListFileMembersErrorAccessError = "access_error" ListFileMembersErrorOther = "other" )
Valid tag values for ListFileMembersError
const ( ListFileMembersIndividualResultResult = "result" ListFileMembersIndividualResultAccessError = "access_error" ListFileMembersIndividualResultOther = "other" )
Valid tag values for ListFileMembersIndividualResult
const ( ListFilesContinueErrorUserError = "user_error" ListFilesContinueErrorInvalidCursor = "invalid_cursor" ListFilesContinueErrorOther = "other" )
Valid tag values for ListFilesContinueError
const ( ListFolderMembersContinueErrorAccessError = "access_error" ListFolderMembersContinueErrorInvalidCursor = "invalid_cursor" ListFolderMembersContinueErrorOther = "other" )
Valid tag values for ListFolderMembersContinueError
const ( ListFoldersContinueErrorInvalidCursor = "invalid_cursor" ListFoldersContinueErrorOther = "other" )
Valid tag values for ListFoldersContinueError
const ()
Valid tag values for ListSharedLinksError
const ( MemberActionLeaveACopy = "leave_a_copy" MemberActionMakeEditor = "make_editor" MemberActionMakeOwner = "make_owner" MemberActionMakeViewer = "make_viewer" MemberActionMakeViewerNoComment = "make_viewer_no_comment" MemberActionRemove = "remove" MemberActionOther = "other" )
Valid tag values for MemberAction
const ( MemberPolicyTeam = "team" MemberPolicyAnyone = "anyone" MemberPolicyOther = "other" )
Valid tag values for MemberPolicy
const ( MemberSelectorDropboxId = "dropbox_id" MemberSelectorEmail = "email" MemberSelectorOther = "other" )
Valid tag values for MemberSelector
const ()
Valid tag values for ModifySharedLinkSettingsError
const ( MountFolderErrorAccessError = "access_error" MountFolderErrorInsufficientQuota = "insufficient_quota" MountFolderErrorAlreadyMounted = "already_mounted" MountFolderErrorNoPermission = "no_permission" MountFolderErrorNotMountable = "not_mountable" MountFolderErrorOther = "other" )
Valid tag values for MountFolderError
const ( PendingUploadModeFile = "file" PendingUploadModeFolder = "folder" )
Valid tag values for PendingUploadMode
const ( PermissionDeniedReasonUserNotSameTeamAsOwner = "user_not_same_team_as_owner" PermissionDeniedReasonUserNotAllowedByOwner = "user_not_allowed_by_owner" PermissionDeniedReasonTargetIsIndirectMember = "target_is_indirect_member" PermissionDeniedReasonTargetIsOwner = "target_is_owner" PermissionDeniedReasonTargetIsSelf = "target_is_self" PermissionDeniedReasonTargetNotActive = "target_not_active" PermissionDeniedReasonFolderIsLimitedTeamFolder = "folder_is_limited_team_folder" PermissionDeniedReasonOwnerNotOnTeam = "owner_not_on_team" PermissionDeniedReasonPermissionDenied = "permission_denied" PermissionDeniedReasonRestrictedByTeam = "restricted_by_team" PermissionDeniedReasonUserAccountType = "user_account_type" PermissionDeniedReasonUserNotOnTeam = "user_not_on_team" PermissionDeniedReasonRestrictedByParentFolder = "restricted_by_parent_folder" PermissionDeniedReasonInsufficientPlan = "insufficient_plan" PermissionDeniedReasonOther = "other" )
Valid tag values for PermissionDeniedReason
const ( RelinquishFileMembershipErrorAccessError = "access_error" RelinquishFileMembershipErrorGroupAccess = "group_access" RelinquishFileMembershipErrorNoPermission = "no_permission" RelinquishFileMembershipErrorOther = "other" )
Valid tag values for RelinquishFileMembershipError
const ( RelinquishFolderMembershipErrorAccessError = "access_error" RelinquishFolderMembershipErrorFolderOwner = "folder_owner" RelinquishFolderMembershipErrorMounted = "mounted" RelinquishFolderMembershipErrorGroupAccess = "group_access" RelinquishFolderMembershipErrorTeamFolder = "team_folder" RelinquishFolderMembershipErrorNoPermission = "no_permission" RelinquishFolderMembershipErrorNoExplicitAccess = "no_explicit_access" RelinquishFolderMembershipErrorOther = "other" )
Valid tag values for RelinquishFolderMembershipError
const ( RemoveFileMemberErrorUserError = "user_error" RemoveFileMemberErrorAccessError = "access_error" RemoveFileMemberErrorNoExplicitAccess = "no_explicit_access" RemoveFileMemberErrorOther = "other" )
Valid tag values for RemoveFileMemberError
const ( RemoveFolderMemberErrorAccessError = "access_error" RemoveFolderMemberErrorMemberError = "member_error" RemoveFolderMemberErrorFolderOwner = "folder_owner" RemoveFolderMemberErrorGroupAccess = "group_access" RemoveFolderMemberErrorTeamFolder = "team_folder" RemoveFolderMemberErrorNoPermission = "no_permission" RemoveFolderMemberErrorTooManyFiles = "too_many_files" RemoveFolderMemberErrorOther = "other" )
Valid tag values for RemoveFolderMemberError
const ( RemoveMemberJobStatusInProgress = "in_progress" RemoveMemberJobStatusComplete = "complete" RemoveMemberJobStatusFailed = "failed" )
Valid tag values for RemoveMemberJobStatus
const ( RequestedLinkAccessLevelViewer = "viewer" RequestedLinkAccessLevelEditor = "editor" RequestedLinkAccessLevelMax = "max" RequestedLinkAccessLevelOther = "other" )
Valid tag values for RequestedLinkAccessLevel
const ( RequestedVisibilityPublic = "public" RequestedVisibilityTeamOnly = "team_only" RequestedVisibilityPassword = "password" )
Valid tag values for RequestedVisibility
const ( ResolvedVisibilityPublic = "public" ResolvedVisibilityTeamOnly = "team_only" ResolvedVisibilityPassword = "password" ResolvedVisibilityTeamAndPassword = "team_and_password" ResolvedVisibilityOther = "other" )
Valid tag values for ResolvedVisibility
const ()
Valid tag values for RevokeSharedLinkError
const ( SetAccessInheritanceErrorAccessError = "access_error" SetAccessInheritanceErrorNoPermission = "no_permission" SetAccessInheritanceErrorOther = "other" )
Valid tag values for SetAccessInheritanceError
const ()
Valid tag values for ShareFolderErrorBase
const ()
Valid tag values for ShareFolderError
const ()
Valid tag values for ShareFolderJobStatus
const ()
Valid tag values for ShareFolderLaunch
const ()
Valid tag values for SharePathError
const ()
Valid tag values for SharedFolderAccessError
const ()
Valid tag values for SharedFolderMemberError
const ()
Valid tag values for SharedLinkAccessFailureReason
const ()
Valid tag values for SharedLinkAlreadyExistsMetadata
const ()
Valid tag values for SharedLinkPolicy
const ()
Valid tag values for SharedLinkSettingsError
const ( SharingFileAccessErrorNoPermission = "no_permission" SharingFileAccessErrorInvalidFile = "invalid_file" SharingFileAccessErrorIsFolder = "is_folder" SharingFileAccessErrorInsidePublicFolder = "inside_public_folder" SharingFileAccessErrorInsideOsxPackage = "inside_osx_package" SharingFileAccessErrorOther = "other" )
Valid tag values for SharingFileAccessError
const ( SharingUserErrorEmailUnverified = "email_unverified" SharingUserErrorOther = "other" )
Valid tag values for SharingUserError
const ( TransferFolderErrorAccessError = "access_error" TransferFolderErrorInvalidDropboxId = "invalid_dropbox_id" TransferFolderErrorNewOwnerNotAMember = "new_owner_not_a_member" TransferFolderErrorNewOwnerUnmounted = "new_owner_unmounted" TransferFolderErrorNewOwnerEmailUnverified = "new_owner_email_unverified" TransferFolderErrorTeamFolder = "team_folder" TransferFolderErrorNoPermission = "no_permission" TransferFolderErrorOther = "other" )
Valid tag values for TransferFolderError
const ( UnmountFolderErrorAccessError = "access_error" UnmountFolderErrorNoPermission = "no_permission" UnmountFolderErrorNotUnmountable = "not_unmountable" UnmountFolderErrorOther = "other" )
Valid tag values for UnmountFolderError
const ()
Valid tag values for UnshareFileError
const ()
Valid tag values for UnshareFolderError
const ( UpdateFolderMemberErrorAccessError = "access_error" UpdateFolderMemberErrorMemberError = "member_error" UpdateFolderMemberErrorNoExplicitAccess = "no_explicit_access" UpdateFolderMemberErrorInsufficientPlan = "insufficient_plan" UpdateFolderMemberErrorNoPermission = "no_permission" UpdateFolderMemberErrorOther = "other" )
Valid tag values for UpdateFolderMemberError
const ( UpdateFolderPolicyErrorAccessError = "access_error" UpdateFolderPolicyErrorNotOnTeam = "not_on_team" UpdateFolderPolicyErrorTeamPolicyDisallowsMemberPolicy = "team_policy_disallows_member_policy" UpdateFolderPolicyErrorNoPermission = "no_permission" UpdateFolderPolicyErrorTeamFolder = "team_folder" UpdateFolderPolicyErrorOther = "other" )
Valid tag values for UpdateFolderPolicyError
const ( ViewerInfoPolicyEnabled = "enabled" ViewerInfoPolicyDisabled = "disabled" ViewerInfoPolicyOther = "other" )
Valid tag values for ViewerInfoPolicy
const ( VisibilityPublic = "public" VisibilityTeamOnly = "team_only" VisibilityPassword = "password" VisibilityTeamAndPassword = "team_and_password" VisibilityOther = "other" )
Valid tag values for Visibility
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessInheritance ¶
AccessInheritance : Information about the inheritance policy of a shared folder.
type AccessLevel ¶
AccessLevel : Defines the access levels for collaborators.
type AclUpdatePolicy ¶
AclUpdatePolicy : Who can change a shared folder's access control list (ACL). In other words, who can add, remove, or change the privileges of members.
type AddFileMemberAPIError ¶
type AddFileMemberAPIError struct { dropbox.APIError EndpointError *AddFileMemberError `json:"error"` }
AddFileMemberAPIError is an error-wrapper for the add_file_member route
type AddFileMemberArgs ¶
type AddFileMemberArgs struct { // File : File to which to add members. File string `json:"file"` // Members : Members to add. Note that even an email address is given, this // may result in a user being directy added to the membership if that email // is the user's main account email. Members []*MemberSelector `json:"members"` // CustomMessage : Message to send to added members in their invitation. CustomMessage string `json:"custom_message,omitempty"` // Quiet : Whether added members should be notified via device notifications // of their invitation. Quiet bool `json:"quiet"` // AccessLevel : AccessLevel union object, describing what access level we // want to give new members. AccessLevel *AccessLevel `json:"access_level"` // AddMessageAsComment : If the custom message should be added as a comment // on the file. AddMessageAsComment bool `json:"add_message_as_comment"` }
AddFileMemberArgs : Arguments for `addFileMember`.
func NewAddFileMemberArgs ¶
func NewAddFileMemberArgs(File string, Members []*MemberSelector) *AddFileMemberArgs
NewAddFileMemberArgs returns a new AddFileMemberArgs instance
type AddFileMemberError ¶
type AddFileMemberError struct { dropbox.Tagged // UserError : has no documentation (yet) UserError *SharingUserError `json:"user_error,omitempty"` // AccessError : has no documentation (yet) AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
AddFileMemberError : Errors for `addFileMember`.
func (*AddFileMemberError) UnmarshalJSON ¶
func (u *AddFileMemberError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a AddFileMemberError instance
type AddFolderMemberAPIError ¶
type AddFolderMemberAPIError struct { dropbox.APIError EndpointError *AddFolderMemberError `json:"error"` }
AddFolderMemberAPIError is an error-wrapper for the add_folder_member route
type AddFolderMemberArg ¶
type AddFolderMemberArg struct { string `json:"shared_folder_id"` // Members : The intended list of members to add. Added members will // receive invites to join the shared folder. Members []*AddMember `json:"members"` // Quiet : Whether added members should be notified via email and device // notifications of their invite. Quiet bool `json:"quiet"` // CustomMessage : Optional message to display to added members in their // invitation. CustomMessage string `json:"custom_message,omitempty"` }SharedFolderId
AddFolderMemberArg : has no documentation (yet)
func NewAddFolderMemberArg ¶
func NewAddFolderMemberArg(SharedFolderId string, Members []*AddMember) *AddFolderMemberArg
NewAddFolderMemberArg returns a new AddFolderMemberArg instance
type AddFolderMemberError ¶
type AddFolderMemberError struct { dropbox.Tagged // AccessError : Unable to access shared folder. AccessError *SharedFolderAccessError `json:"access_error,omitempty"` // BadMember : `AddFolderMemberArg.members` contains a bad invitation // recipient. BadMember *AddMemberSelectorError `json:"bad_member,omitempty"` // TooManyMembers : The value is the member limit that was reached. TooManyMembers uint64 `json:"too_many_members,omitempty"` // TooManyPendingInvites : The value is the pending invite limit that was // reached. TooManyPendingInvites uint64 `json:"too_many_pending_invites,omitempty"` }
AddFolderMemberError : has no documentation (yet)
func (*AddFolderMemberError) UnmarshalJSON ¶
func (u *AddFolderMemberError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a AddFolderMemberError instance
type AddMember ¶
type AddMember struct { // Member : The member to add to the shared folder. Member *MemberSelector `json:"member"` // AccessLevel : The access level to grant `member` to the shared folder. // `AccessLevel.owner` is disallowed. AccessLevel *AccessLevel `json:"access_level"` }
AddMember : The member and type of access the member should have when added to a shared folder.
func NewAddMember ¶
func NewAddMember(Member *MemberSelector) *AddMember
NewAddMember returns a new AddMember instance
type AddMemberSelectorError ¶
type AddMemberSelectorError struct { dropbox.Tagged // InvalidDropboxId : The value is the ID that could not be identified. InvalidDropboxId string `json:"invalid_dropbox_id,omitempty"` // InvalidEmail : The value is the e-email address that is malformed. InvalidEmail string `json:"invalid_email,omitempty"` // UnverifiedDropboxId : The value is the ID of the Dropbox user with an // unverified e-mail address. Invite unverified users by e-mail address // instead of by their Dropbox ID. UnverifiedDropboxId string `json:"unverified_dropbox_id,omitempty"` }
AddMemberSelectorError : has no documentation (yet)
func (*AddMemberSelectorError) UnmarshalJSON ¶
func (u *AddMemberSelectorError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a AddMemberSelectorError instance
type AudienceExceptionContentInfo ¶
type AudienceExceptionContentInfo struct { // Name : The name of the content, which is either a file or a folder. Name string `json:"name"` }
AudienceExceptionContentInfo : Information about the content that has a link audience different than that of this folder.
func NewAudienceExceptionContentInfo ¶
func NewAudienceExceptionContentInfo(Name string) *AudienceExceptionContentInfo
NewAudienceExceptionContentInfo returns a new AudienceExceptionContentInfo instance
type AudienceExceptions ¶
type AudienceExceptions struct { // Count : has no documentation (yet) Count uint32 `json:"count"` // Exceptions : A truncated list of some of the content that is an // exception. The length of this list could be smaller than the count since // it is only a sample but will not be empty as long as count is not 0. Exceptions []*AudienceExceptionContentInfo `json:"exceptions"` }
AudienceExceptions : The total count and truncated list of information of content inside this folder that has a different audience than the link on this folder. This is only returned for folders.
func NewAudienceExceptions ¶
func NewAudienceExceptions(Count uint32, Exceptions []*AudienceExceptionContentInfo) *AudienceExceptions
NewAudienceExceptions returns a new AudienceExceptions instance
type AudienceRestrictingSharedFolder ¶
type AudienceRestrictingSharedFolder struct { string `json:"shared_folder_id"` Name string `json:"name"` Audience *LinkAudience `json:"audience"` }SharedFolderId
AudienceRestrictingSharedFolder : Information about the shared folder that prevents the link audience for this link from being more restrictive.
func NewAudienceRestrictingSharedFolder ¶
func NewAudienceRestrictingSharedFolder(SharedFolderId string, Name string, Audience *LinkAudience) *AudienceRestrictingSharedFolder
NewAudienceRestrictingSharedFolder returns a new AudienceRestrictingSharedFolder instance
type ChangeFileMemberAccessAPIError ¶
type ChangeFileMemberAccessAPIError struct { dropbox.APIError EndpointError *FileMemberActionError `json:"error"` }
ChangeFileMemberAccessAPIError is an error-wrapper for the change_file_member_access route
type ChangeFileMemberAccessArgs ¶
type ChangeFileMemberAccessArgs struct { // File : File for which we are changing a member's access. File string `json:"file"` // Member : The member whose access we are changing. Member *MemberSelector `json:"member"` // AccessLevel : The new access level for the member. AccessLevel *AccessLevel `json:"access_level"` }
ChangeFileMemberAccessArgs : Arguments for `changeFileMemberAccess`.
func NewChangeFileMemberAccessArgs ¶
func NewChangeFileMemberAccessArgs(File string, Member *MemberSelector, AccessLevel *AccessLevel) *ChangeFileMemberAccessArgs
NewChangeFileMemberAccessArgs returns a new ChangeFileMemberAccessArgs instance
type CheckJobStatusAPIError ¶
type CheckJobStatusAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
CheckJobStatusAPIError is an error-wrapper for the check_job_status route
type CheckRemoveMemberJobStatusAPIError ¶
type CheckRemoveMemberJobStatusAPIError struct { dropbox.APIError EndpointError *async.PollError `json:"error"` }
CheckRemoveMemberJobStatusAPIError is an error-wrapper for the check_remove_member_job_status route
type CheckShareJobStatusAPIError ¶
type CheckShareJobStatusAPIError struct {}
CheckShareJobStatusAPIError is an error-wrapper for the check_share_job_status route
type Client ¶
type Client interface { // AddFileMember : Adds specified members to a file. AddFileMember(arg *AddFileMemberArgs) (res []*FileMemberActionResult, err error) // AddFolderMember : Allows an owner or editor (if the ACL update policy // allows) of a shared folder to add another member. For the new member to // get access to all the functionality for this folder, you will need to // call `mountFolder` on their behalf. AddFolderMember(arg *AddFolderMemberArg) (err error) // ChangeFileMemberAccess : Identical to update_file_member but with less // information returned. // Deprecated: Use `UpdateFileMember` instead ChangeFileMemberAccess(arg *ChangeFileMemberAccessArgs) (res *FileMemberActionResult, err error) // CheckJobStatus : Returns the status of an asynchronous job. CheckJobStatus(arg *async.PollArg) (res *JobStatus, err error) // CheckRemoveMemberJobStatus : Returns the status of an asynchronous job // for sharing a folder. CheckRemoveMemberJobStatus(arg *async.PollArg) (res *RemoveMemberJobStatus, err error) // sharing a folder. CheckShareJobStatus(arg *async.PollArg) (res *ShareFolderJobStatus, err error) // for the given path, that link is returned. Note that in the returned // `PathLinkMetadata`, the `PathLinkMetadata.url` field is the shortened URL // if `CreateSharedLinkArg.short_url` argument is set to true. Previously, // it was technically possible to break a shared link by moving or renaming // the corresponding file or folder. In the future, this will no longer be // the case, so your app shouldn't rely on this behavior. Instead, if your // app needs to revoke a shared link, use `revokeSharedLink`. // Deprecated: Use `CreateSharedLinkWithSettings` instead CreateSharedLink(arg *CreateSharedLinkArg) (res *PathLinkMetadata, err error) // If no settings are given then the default visibility is // `RequestedVisibility.public` (The resolved visibility, though, may depend // on other aspects such as team and shared folder settings). CreateSharedLinkWithSettings(arg *CreateSharedLinkWithSettingsArg) (res IsSharedLinkMetadata, err error) // GetFileMetadata : Returns shared file metadata. GetFileMetadata(arg *GetFileMetadataArg) (res *SharedFileMetadata, err error) // GetFileMetadataBatch : Returns shared file metadata. GetFileMetadataBatch(arg *GetFileMetadataBatchArg) (res []*GetFileMetadataBatchResult, err error) // GetFolderMetadata : Returns shared folder metadata by its folder ID. GetFolderMetadata(arg *GetMetadataArgs) (res *SharedFolderMetadata, err error) // Dropbox. GetSharedLinkFile(arg *GetSharedLinkMetadataArg) (res IsSharedLinkMetadata, content io.ReadCloser, err error) GetSharedLinkMetadata(arg *GetSharedLinkMetadataArg) (res IsSharedLinkMetadata, err error) // including collection links. If no path is given, returns a list of all // shared links for the current user, including collection links, up to a // maximum of 1000 links. If a non-empty path is given, returns a list of // all shared links that allow access to the given path. Collection links // are never returned in this case. Note that the url field in the response // is never the shortened URL. // Deprecated: Use `ListSharedLinks` instead GetSharedLinks(arg *GetSharedLinksArg) (res *GetSharedLinksResult, err error) // ListFileMembers : Use to obtain the members who have been invited to a // file, both inherited and uninherited members. ListFileMembers(arg *ListFileMembersArg) (res *SharedFileMembers, err error) // ListFileMembersBatch : Get members of multiple files at once. The // arguments to this route are more limited, and the limit on query result // size per file is more strict. To customize the results more, use the // individual file endpoint. Inherited users and groups are not included in // the result, and permissions are not returned for this endpoint. ListFileMembersBatch(arg *ListFileMembersBatchArg) (res []*ListFileMembersBatchResult, err error) // ListFileMembersContinue : Once a cursor has been retrieved from // `listFileMembers` or `listFileMembersBatch`, use this to paginate through // all shared file members. ListFileMembersContinue(arg *ListFileMembersContinueArg) (res *SharedFileMembers, err error) // ListFolderMembers : Returns shared folder membership by its folder ID. ListFolderMembers(arg *ListFolderMembersArgs) (res *SharedFolderMembers, err error) // ListFolderMembersContinue : Once a cursor has been retrieved from // `listFolderMembers`, use this to paginate through all shared folder // members. ListFolderMembersContinue(arg *ListFolderMembersContinueArg) (res *SharedFolderMembers, err error) // ListFolders : Return the list of all shared folders the current user has // access to. ListFolders(arg *ListFoldersArgs) (res *ListFoldersResult, err error) // ListFoldersContinue : Once a cursor has been retrieved from // `listFolders`, use this to paginate through all shared folders. The // cursor must come from a previous call to `listFolders` or // `listFoldersContinue`. ListFoldersContinue(arg *ListFoldersContinueArg) (res *ListFoldersResult, err error) // ListMountableFolders : Return the list of all shared folders the current // user can mount or unmount. ListMountableFolders(arg *ListFoldersArgs) (res *ListFoldersResult, err error) // ListMountableFoldersContinue : Once a cursor has been retrieved from // `listMountableFolders`, use this to paginate through all mountable shared // folders. The cursor must come from a previous call to // `listMountableFolders` or `listMountableFoldersContinue`. ListMountableFoldersContinue(arg *ListFoldersContinueArg) (res *ListFoldersResult, err error) // ListReceivedFiles : Returns a list of all files shared with current user. // Does not include files the user has received via shared folders, and does // not include unclaimed invitations. ListReceivedFiles(arg *ListFilesArg) (res *ListFilesResult, err error) // ListReceivedFilesContinue : Get more results with a cursor from // `listReceivedFiles`. ListReceivedFilesContinue(arg *ListFilesContinueArg) (res *ListFilesResult, err error) // returns a list of all shared links for the current user. If a non-empty // path is given, returns a list of all shared links that allow access to // the given path - direct links to the given path and links to parent // folders of the given path. Links to parent folders can be suppressed by // setting direct_only to true. ListSharedLinks(arg *ListSharedLinksArg) (res *ListSharedLinksResult, err error) // requested visibility conflict with the shared links policy of the team or // the shared folder (in case the linked file is part of a shared folder) // then the `LinkPermissions.resolved_visibility` of the returned // `SharedLinkMetadata` will reflect the actual visibility of the shared // link and the `LinkPermissions.requested_visibility` will reflect the // requested visibility. ModifySharedLinkSettings(arg *ModifySharedLinkSettingsArgs) (res IsSharedLinkMetadata, err error) // MountFolder : The current user mounts the designated folder. Mount a // shared folder for a user after they have been added as a member. Once // mounted, the shared folder will appear in their Dropbox. MountFolder(arg *MountFolderArg) (res *SharedFolderMetadata, err error) // RelinquishFileMembership : The current user relinquishes their membership // in the designated file. Note that the current user may still have // inherited access to this file through the parent folder. RelinquishFileMembership(arg *RelinquishFileMembershipArg) (err error) // RelinquishFolderMembership : The current user relinquishes their // membership in the designated shared folder and will no longer have access // to the folder. A folder owner cannot relinquish membership in their own // folder. This will run synchronously if leave_a_copy is false, and // asynchronously if leave_a_copy is true. RelinquishFolderMembership(arg *RelinquishFolderMembershipArg) (res *async.LaunchEmptyResult, err error) // RemoveFileMember : Identical to remove_file_member_2 but with less // information returned. // Deprecated: Use `RemoveFileMember2` instead RemoveFileMember(arg *RemoveFileMemberArg) (res *FileMemberActionIndividualResult, err error) // RemoveFileMember2 : Removes a specified member from the file. RemoveFileMember2(arg *RemoveFileMemberArg) (res *FileMemberRemoveActionResult, err error) // RemoveFolderMember : Allows an owner or editor (if the ACL update policy // allows) of a shared folder to remove another member. RemoveFolderMember(arg *RemoveFolderMemberArg) (res *async.LaunchResultBase, err error) // shared link to a file, the file may be accessible if there are shared // links leading to any of the file parent folders. To list all shared links // that enable access to a specific file, you can use the `listSharedLinks` // with the file as the `ListSharedLinksArg.path` argument. RevokeSharedLink(arg *RevokeSharedLinkArg) (err error) // SetAccessInheritance : Change the inheritance policy of an existing // Shared Folder. Only permitted for shared folders in a shared team root. // If a `ShareFolderLaunch.async_job_id` is returned, you'll need to call // `checkShareJobStatus` until the action completes to get the metadata for // the folder. SetAccessInheritance(arg *SetAccessInheritanceArg) (res *ShareFolderLaunch, err error) // completed synchronously. Large folders will be completed asynchronously. // To make testing the async case repeatable, set // `ShareFolderArg.force_async`. If a `ShareFolderLaunch.async_job_id` is // returned, you'll need to call `checkShareJobStatus` until the action // completes to get the metadata for the folder. ShareFolder(arg *ShareFolderArg) (res *ShareFolderLaunch, err error) // TransferFolder : Transfer ownership of a shared folder to a member of the // shared folder. User must have `AccessLevel.owner` access to the shared // folder to perform a transfer. TransferFolder(arg *TransferFolderArg) (err error) // UnmountFolder : The current user unmounts the designated folder. They can // re-mount the folder at a later time using `mountFolder`. UnmountFolder(arg *UnmountFolderArg) (err error) // inherited members. UnshareFile(arg *UnshareFileArg) (err error) // You'll need to call `checkJobStatus` to determine if the action has // completed successfully. UnshareFolder(arg *UnshareFolderArg) (res *async.LaunchEmptyResult, err error) // UpdateFileMember : Changes a member's access on a shared file. UpdateFileMember(arg *UpdateFileMemberArgs) (res *MemberAccessLevelResult, err error) // UpdateFolderMember : Allows an owner or editor of a shared folder to // update another member's permissions. UpdateFolderMember(arg *UpdateFolderMemberArg) (res *MemberAccessLevelResult, err error) // UpdateFolderPolicy : Update the sharing policies for a shared folder. // User must have `AccessLevel.owner` access to the shared folder to update // its policies. UpdateFolderPolicy(arg *UpdateFolderPolicyArg) (res *SharedFolderMetadata, err error) }
Client interface describes all routes in this namespace
type CollectionLinkMetadata ¶
type CollectionLinkMetadata struct {
LinkMetadata
}
CollectionLinkMetadata : Metadata for a collection-based shared link.
func NewCollectionLinkMetadata ¶
func NewCollectionLinkMetadata(Url string, Visibility *Visibility) *CollectionLinkMetadata
NewCollectionLinkMetadata returns a new CollectionLinkMetadata instance
type CreateSharedLinkAPIError ¶
type CreateSharedLinkAPIError struct {}
CreateSharedLinkAPIError is an error-wrapper for the create_shared_link route
type CreateSharedLinkArg ¶
type CreateSharedLinkArg struct { string `json:"path"` ShortUrl bool `json:"short_url"` // this to either `PendingUploadMode.file` or `PendingUploadMode.folder` to // indicate whether to assume it's a file or folder. PendingUpload *PendingUploadMode `json:"pending_upload,omitempty"` }Path
CreateSharedLinkArg : has no documentation (yet)
func NewCreateSharedLinkArg ¶
func NewCreateSharedLinkArg(Path string) *CreateSharedLinkArg
NewCreateSharedLinkArg returns a new CreateSharedLinkArg instance
type CreateSharedLinkError ¶
type CreateSharedLinkError struct { files.LookupError `json:"path,omitempty"` }Path *
CreateSharedLinkError : has no documentation (yet)
func (*CreateSharedLinkError) UnmarshalJSON ¶
func (u *CreateSharedLinkError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a CreateSharedLinkError instance
type CreateSharedLinkWithSettingsAPIError ¶
type CreateSharedLinkWithSettingsAPIError struct {}
CreateSharedLinkWithSettingsAPIError is an error-wrapper for the create_shared_link_with_settings route
type CreateSharedLinkWithSettingsArg ¶
type CreateSharedLinkWithSettingsArg struct { string `json:"path"` Settings *SharedLinkSettings `json:"settings,omitempty"` }Path
CreateSharedLinkWithSettingsArg : has no documentation (yet)
func NewCreateSharedLinkWithSettingsArg ¶
func NewCreateSharedLinkWithSettingsArg(Path string) *CreateSharedLinkWithSettingsArg
NewCreateSharedLinkWithSettingsArg returns a new CreateSharedLinkWithSettingsArg instance
type CreateSharedLinkWithSettingsError ¶
type CreateSharedLinkWithSettingsError struct { files.LookupError `json:"path,omitempty"` // `listSharedLinks` to get the existing link, or use the provided metadata // if it is returned. SharedLinkAlreadyExists *SharedLinkAlreadyExistsMetadata `json:"shared_link_already_exists,omitempty"` SettingsError *SharedLinkSettingsError `json:"settings_error,omitempty"` }Path *
CreateSharedLinkWithSettingsError : has no documentation (yet)
func (*CreateSharedLinkWithSettingsError) UnmarshalJSON ¶
func (u *CreateSharedLinkWithSettingsError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a CreateSharedLinkWithSettingsError instance
type ExpectedSharedContentLinkMetadata ¶
type ExpectedSharedContentLinkMetadata struct {
}ExpectedSharedContentLinkMetadata : The expected metadata of a shared link for a file or folder when a link is first created for the content. Absent if the link already exists.
func NewExpectedSharedContentLinkMetadata ¶
func NewExpectedSharedContentLinkMetadata(AudienceOptions []*LinkAudience, CurrentAudience *LinkAudience, LinkPermissions []*LinkPermission, PasswordProtected bool) *ExpectedSharedContentLinkMetadata
NewExpectedSharedContentLinkMetadata returns a new ExpectedSharedContentLinkMetadata instance
type FileAction ¶
FileAction : Sharing actions that may be taken on files.
type FileErrorResult ¶
type FileErrorResult struct { dropbox.Tagged // FileNotFoundError : File specified by id was not found. FileNotFoundError string `json:"file_not_found_error,omitempty"` // InvalidFileActionError : User does not have permission to take the // specified action on the file. InvalidFileActionError string `json:"invalid_file_action_error,omitempty"` // PermissionDeniedError : User does not have permission to access file // specified by file.Id. PermissionDeniedError string `json:"permission_denied_error,omitempty"` }
FileErrorResult : has no documentation (yet)
func (*FileErrorResult) UnmarshalJSON ¶
func (u *FileErrorResult) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a FileErrorResult instance
type FileLinkMetadata ¶
type FileLinkMetadata struct { // ClientModified : The modification time set by the desktop client when the // file was added to Dropbox. Since this time is not verified (the Dropbox // server stores whatever the desktop client sends up), this should only be // used for display purposes (such as sorting) and not, for example, to // determine if a file has changed or not. ClientModified time.Time `json:"client_modified"` // ServerModified : The last time the file was modified on Dropbox. ServerModified time.Time `json:"server_modified"` // Rev : A unique identifier for the current revision of a file. This field // is the same rev as elsewhere in the API and can be used to detect changes // and avoid conflicts. Rev string `json:"rev"` // Size : The file size in bytes. Size uint64 `json:"size"` }
FileLinkMetadata : The metadata of a file shared link.
func NewFileLinkMetadata ¶
func NewFileLinkMetadata(Url string, Name string, LinkPermissions *LinkPermissions, ClientModified time.Time, ServerModified time.Time, Rev string, Size uint64) *FileLinkMetadata
NewFileLinkMetadata returns a new FileLinkMetadata instance
type FileMemberActionError ¶
type FileMemberActionError struct { dropbox.Tagged // AccessError : Specified file was invalid or user does not have access. AccessError *SharingFileAccessError `json:"access_error,omitempty"` // NoExplicitAccess : The action cannot be completed because the target // member does not have explicit access to the file. The return value is the // access that the member has to the file from a parent folder. NoExplicitAccess *MemberAccessLevelResult `json:"no_explicit_access,omitempty"` }
FileMemberActionError : has no documentation (yet)
func (*FileMemberActionError) UnmarshalJSON ¶
func (u *FileMemberActionError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a FileMemberActionError instance
type FileMemberActionIndividualResult ¶
type FileMemberActionIndividualResult struct { dropbox.Tagged // Success : Member was successfully removed from this file. If AccessLevel // is given, the member still has access via a parent shared folder. Success *AccessLevel `json:"success,omitempty"` // MemberError : User was not able to perform this action. MemberError *FileMemberActionError `json:"member_error,omitempty"` }
FileMemberActionIndividualResult : has no documentation (yet)
func (*FileMemberActionIndividualResult) UnmarshalJSON ¶
func (u *FileMemberActionIndividualResult) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a FileMemberActionIndividualResult instance
type FileMemberActionResult ¶
type FileMemberActionResult struct { // Member : One of specified input members. Member *MemberSelector `json:"member"` // Result : The outcome of the action on this member. Result *FileMemberActionIndividualResult `json:"result"` }
FileMemberActionResult : Per-member result for `addFileMember` or `changeFileMemberAccess`.
func NewFileMemberActionResult ¶
func NewFileMemberActionResult(Member *MemberSelector, Result *FileMemberActionIndividualResult) *FileMemberActionResult
NewFileMemberActionResult returns a new FileMemberActionResult instance
type FileMemberRemoveActionResult ¶
type FileMemberRemoveActionResult struct { dropbox.Tagged // Success : Member was successfully removed from this file. Success *MemberAccessLevelResult `json:"success,omitempty"` // MemberError : User was not able to remove this member. MemberError *FileMemberActionError `json:"member_error,omitempty"` }
FileMemberRemoveActionResult : has no documentation (yet)
func (*FileMemberRemoveActionResult) UnmarshalJSON ¶
func (u *FileMemberRemoveActionResult) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a FileMemberRemoveActionResult instance
type FilePermission ¶
type FilePermission struct { // Action : The action that the user may wish to take on the file. Action *FileAction `json:"action"` // Allow : True if the user is allowed to take the action. Allow bool `json:"allow"` // Reason : The reason why the user is denied the permission. Not present if // the action is allowed. Reason *PermissionDeniedReason `json:"reason,omitempty"` }
FilePermission : Whether the user is allowed to take the sharing action on the file.
func NewFilePermission ¶
func NewFilePermission(Action *FileAction, Allow bool) *FilePermission
NewFilePermission returns a new FilePermission instance
type FolderAction ¶
FolderAction : Actions that may be taken on shared folders.
type FolderLinkMetadata ¶
type FolderLinkMetadata struct {
}FolderLinkMetadata : The metadata of a folder shared link.
func NewFolderLinkMetadata ¶
func NewFolderLinkMetadata(Url string, Name string, LinkPermissions *LinkPermissions) *FolderLinkMetadata
NewFolderLinkMetadata returns a new FolderLinkMetadata instance
type FolderPermission ¶
type FolderPermission struct { // Action : The action that the user may wish to take on the folder. Action *FolderAction `json:"action"` // Allow : True if the user is allowed to take the action. Allow bool `json:"allow"` // Reason : The reason why the user is denied the permission. Not present if // the action is allowed, or if no reason is available. Reason *PermissionDeniedReason `json:"reason,omitempty"` }
FolderPermission : Whether the user is allowed to take the action on the shared folder.
func NewFolderPermission ¶
func NewFolderPermission(Action *FolderAction, Allow bool) *FolderPermission
NewFolderPermission returns a new FolderPermission instance
type FolderPolicy ¶
type FolderPolicy struct { // MemberPolicy : Who can be a member of this shared folder, as set on the // folder itself. The effective policy may differ from this value if the // team-wide policy is more restrictive. Present only if the folder is owned // by a team. MemberPolicy *MemberPolicy `json:"member_policy,omitempty"` // ResolvedMemberPolicy : Who can be a member of this shared folder, taking // into account both the folder and the team-wide policy. This value may // differ from that of member_policy if the team-wide policy is more // restrictive than the folder policy. Present only if the folder is owned // by a team. ResolvedMemberPolicy *MemberPolicy `json:"resolved_member_policy,omitempty"` // AclUpdatePolicy : Who can add and remove members from this shared folder. AclUpdatePolicy *AclUpdatePolicy `json:"acl_update_policy"` SharedLinkPolicy *SharedLinkPolicy `json:"shared_link_policy"` // ViewerInfoPolicy : Who can enable/disable viewer info for this shared // folder. ViewerInfoPolicy *ViewerInfoPolicy `json:"viewer_info_policy,omitempty"` }
FolderPolicy : A set of policies governing membership and privileges for a shared folder.
func NewFolderPolicy ¶
func NewFolderPolicy(AclUpdatePolicy *AclUpdatePolicy, SharedLinkPolicy *SharedLinkPolicy) *FolderPolicy
NewFolderPolicy returns a new FolderPolicy instance
type GetFileMetadataAPIError ¶
type GetFileMetadataAPIError struct { dropbox.APIError EndpointError *GetFileMetadataError `json:"error"` }
GetFileMetadataAPIError is an error-wrapper for the get_file_metadata route
type GetFileMetadataArg ¶
type GetFileMetadataArg struct { // File : The file to query. File string `json:"file"` // Actions : A list of `FileAction`s corresponding to `FilePermission`s that // should appear in the response's `SharedFileMetadata.permissions` field // describing the actions the authenticated user can perform on the file. Actions []*FileAction `json:"actions,omitempty"` }
GetFileMetadataArg : Arguments of `getFileMetadata`.
func NewGetFileMetadataArg ¶
func NewGetFileMetadataArg(File string) *GetFileMetadataArg
NewGetFileMetadataArg returns a new GetFileMetadataArg instance
type GetFileMetadataBatchAPIError ¶
type GetFileMetadataBatchAPIError struct { dropbox.APIError EndpointError *SharingUserError `json:"error"` }
GetFileMetadataBatchAPIError is an error-wrapper for the get_file_metadata/batch route
type GetFileMetadataBatchArg ¶
type GetFileMetadataBatchArg struct { // Files : The files to query. Files []string `json:"files"` // Actions : A list of `FileAction`s corresponding to `FilePermission`s that // should appear in the response's `SharedFileMetadata.permissions` field // describing the actions the authenticated user can perform on the file. Actions []*FileAction `json:"actions,omitempty"` }
GetFileMetadataBatchArg : Arguments of `getFileMetadataBatch`.
func NewGetFileMetadataBatchArg ¶
func NewGetFileMetadataBatchArg(Files []string) *GetFileMetadataBatchArg
NewGetFileMetadataBatchArg returns a new GetFileMetadataBatchArg instance
type GetFileMetadataBatchResult ¶
type GetFileMetadataBatchResult struct { // File : This is the input file identifier corresponding to one of // `GetFileMetadataBatchArg.files`. File string `json:"file"` // Result : The result for this particular file. Result *GetFileMetadataIndividualResult `json:"result"` }
GetFileMetadataBatchResult : Per file results of `getFileMetadataBatch`.
func NewGetFileMetadataBatchResult ¶
func NewGetFileMetadataBatchResult(File string, Result *GetFileMetadataIndividualResult) *GetFileMetadataBatchResult
NewGetFileMetadataBatchResult returns a new GetFileMetadataBatchResult instance
type GetFileMetadataError ¶
type GetFileMetadataError struct { dropbox.Tagged // UserError : has no documentation (yet) UserError *SharingUserError `json:"user_error,omitempty"` // AccessError : has no documentation (yet) AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
GetFileMetadataError : Error result for `getFileMetadata`.
func (*GetFileMetadataError) UnmarshalJSON ¶
func (u *GetFileMetadataError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a GetFileMetadataError instance
type GetFileMetadataIndividualResult ¶
type GetFileMetadataIndividualResult struct { dropbox.Tagged // Metadata : The result for this file if it was successful. Metadata *SharedFileMetadata `json:"metadata,omitempty"` // AccessError : The result for this file if it was an error. AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
GetFileMetadataIndividualResult : has no documentation (yet)
func (*GetFileMetadataIndividualResult) UnmarshalJSON ¶
func (u *GetFileMetadataIndividualResult) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a GetFileMetadataIndividualResult instance
type GetFolderMetadataAPIError ¶
type GetFolderMetadataAPIError struct { dropbox.APIError EndpointError *SharedFolderAccessError `json:"error"` }
GetFolderMetadataAPIError is an error-wrapper for the get_folder_metadata route
type GetMetadataArgs ¶
type GetMetadataArgs struct { string `json:"shared_folder_id"` // Actions : A list of `FolderAction`s corresponding to `FolderPermission`s // that should appear in the response's `SharedFolderMetadata.permissions` // field describing the actions the authenticated user can perform on the // folder. Actions []*FolderAction `json:"actions,omitempty"` }SharedFolderId
GetMetadataArgs : has no documentation (yet)
func NewGetMetadataArgs ¶
func NewGetMetadataArgs(SharedFolderId string) *GetMetadataArgs
NewGetMetadataArgs returns a new GetMetadataArgs instance
type GetSharedLinkFileAPIError ¶
type GetSharedLinkFileAPIError struct {}
GetSharedLinkFileAPIError is an error-wrapper for the get_shared_link_file route
type GetSharedLinkFileError ¶
type GetSharedLinkFileError struct {
}GetSharedLinkFileError : has no documentation (yet)
type GetSharedLinkMetadataAPIError ¶
type GetSharedLinkMetadataAPIError struct {}
GetSharedLinkMetadataAPIError is an error-wrapper for the get_shared_link_metadata route
type GetSharedLinkMetadataArg ¶
type GetSharedLinkMetadataArg struct { string `json:"url"` // retrieve the metadata for a specific file or sub-folder in this folder. A // relative path should be used. Path string `json:"path,omitempty"` // used. LinkPassword string `json:"link_password,omitempty"` }Url
GetSharedLinkMetadataArg : has no documentation (yet)
func NewGetSharedLinkMetadataArg ¶
func NewGetSharedLinkMetadataArg(Url string) *GetSharedLinkMetadataArg
NewGetSharedLinkMetadataArg returns a new GetSharedLinkMetadataArg instance
type GetSharedLinksAPIError ¶
type GetSharedLinksAPIError struct {}
GetSharedLinksAPIError is an error-wrapper for the get_shared_links route
type GetSharedLinksArg ¶
type GetSharedLinksArg struct { string `json:"path,omitempty"` }Path
GetSharedLinksArg : has no documentation (yet)
func NewGetSharedLinksArg ¶
func NewGetSharedLinksArg() *GetSharedLinksArg
NewGetSharedLinksArg returns a new GetSharedLinksArg instance
type GetSharedLinksError ¶
type GetSharedLinksError struct { string `json:"path,omitempty"` }Path
GetSharedLinksError : has no documentation (yet)
func (*GetSharedLinksError) UnmarshalJSON ¶
func (u *GetSharedLinksError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a GetSharedLinksError instance
type GetSharedLinksResult ¶
type GetSharedLinksResult struct { IsLinkMetadata `json:"links"` }Links []
GetSharedLinksResult : has no documentation (yet)
func NewGetSharedLinksResult ¶
func NewGetSharedLinksResult(Links []IsLinkMetadata) *GetSharedLinksResult
NewGetSharedLinksResult returns a new GetSharedLinksResult instance
func (*GetSharedLinksResult) UnmarshalJSON ¶
func (u *GetSharedLinksResult) UnmarshalJSON(b []byte) error
UnmarshalJSON deserializes into a GetSharedLinksResult instance
type GroupInfo ¶
type GroupInfo struct { team_common.GroupSummary // GroupType : The type of group. GroupType *team_common.GroupType `json:"group_type"` // IsMember : If the current user is a member of the group. IsMember bool `json:"is_member"` // IsOwner : If the current user is an owner of the group. IsOwner bool `json:"is_owner"` // SameTeam : If the group is owned by the current user's team. SameTeam bool `json:"same_team"` }
GroupInfo : The information about a group. Groups is a way to manage a list of users who need same access permission to the shared folder.
func NewGroupInfo ¶
func NewGroupInfo(GroupName string, GroupId string, GroupManagementType *team_common.GroupManagementType, GroupType *team_common.GroupType, IsMember bool, IsOwner bool, SameTeam bool) *GroupInfo
NewGroupInfo returns a new GroupInfo instance
type GroupMembershipInfo ¶
type GroupMembershipInfo struct { MembershipInfo // Group : The information about the membership group. Group *GroupInfo `json:"group"` }
GroupMembershipInfo : The information about a group member of the shared content.
func NewGroupMembershipInfo ¶
func NewGroupMembershipInfo(AccessType *AccessLevel, Group *GroupInfo) *GroupMembershipInfo
NewGroupMembershipInfo returns a new GroupMembershipInfo instance
type InsufficientPlan ¶
type InsufficientPlan struct { // Message : A message to tell the user to upgrade in order to support // expected action. Message string `json:"message"` // UpsellUrl : A URL to send the user to in order to obtain the account type // they need, e.g. upgrading. Absent if there is no action the user can take // to upgrade. UpsellUrl string `json:"upsell_url,omitempty"` }
InsufficientPlan : has no documentation (yet)
func NewInsufficientPlan ¶
func NewInsufficientPlan(Message string) *InsufficientPlan
NewInsufficientPlan returns a new InsufficientPlan instance
type InsufficientQuotaAmounts ¶
type InsufficientQuotaAmounts struct { // SpaceNeeded : The amount of space needed to add the item (the size of the // item). SpaceNeeded uint64 `json:"space_needed"` // SpaceShortage : The amount of extra space needed to add the item. SpaceShortage uint64 `json:"space_shortage"` // SpaceLeft : The amount of space left in the user's Dropbox, less than // space_needed. SpaceLeft uint64 `json:"space_left"` }
InsufficientQuotaAmounts : has no documentation (yet)
func NewInsufficientQuotaAmounts ¶
func NewInsufficientQuotaAmounts(SpaceNeeded uint64, SpaceShortage uint64, SpaceLeft uint64) *InsufficientQuotaAmounts
NewInsufficientQuotaAmounts returns a new InsufficientQuotaAmounts instance
type InviteeInfo ¶
type InviteeInfo struct { dropbox.Tagged // Email : E-mail address of invited user. Email string `json:"email,omitempty"` }
InviteeInfo : Information about the recipient of a shared content invitation.
func (*InviteeInfo) UnmarshalJSON ¶
func (u *InviteeInfo) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a InviteeInfo instance
type InviteeMembershipInfo ¶
type InviteeMembershipInfo struct { MembershipInfo // Invitee : Recipient of the invitation. Invitee *InviteeInfo `json:"invitee"` // User : The user this invitation is tied to, if available. User *UserInfo `json:"user,omitempty"` }
InviteeMembershipInfo : Information about an invited member of a shared content.
func NewInviteeMembershipInfo ¶
func NewInviteeMembershipInfo(AccessType *AccessLevel, Invitee *InviteeInfo) *InviteeMembershipInfo
NewInviteeMembershipInfo returns a new InviteeMembershipInfo instance
type IsLinkMetadata ¶
type IsLinkMetadata interface {
IsLinkMetadata()
}
IsLinkMetadata is the interface type for LinkMetadata and its subtypes
func IsLinkMetadataFromJSON ¶
func IsLinkMetadataFromJSON(data []byte) (IsLinkMetadata, error)
IsLinkMetadataFromJSON converts JSON to a concrete IsLinkMetadata instance
type IsSharedLinkMetadata ¶
type IsSharedLinkMetadata interface {
}IsSharedLinkMetadata is the interface type for SharedLinkMetadata and its subtypes
func IsSharedLinkMetadataFromJSON ¶
func IsSharedLinkMetadataFromJSON(data []byte) (IsSharedLinkMetadata, error)
IsSharedLinkMetadataFromJSON converts JSON to a concrete IsSharedLinkMetadata instance
type JobError ¶
type JobError struct { dropbox.Tagged // action. UnshareFolderError *UnshareFolderError `json:"unshare_folder_error,omitempty"` // RemoveFolderMemberError : Error occurred while performing // `removeFolderMember` action. RemoveFolderMemberError *RemoveFolderMemberError `json:"remove_folder_member_error,omitempty"` // RelinquishFolderMembershipError : Error occurred while performing // `relinquishFolderMembership` action. RelinquishFolderMembershipError *RelinquishFolderMembershipError `json:"relinquish_folder_membership_error,omitempty"` }
JobError : Error occurred while performing an asynchronous job from `unshareFolder` or `removeFolderMember`.
func (*JobError) UnmarshalJSON ¶
UnmarshalJSON deserializes into a JobError instance
type JobStatus ¶
type JobStatus struct { dropbox.Tagged // Failed : The asynchronous job returned an error. Failed *JobError `json:"failed,omitempty"` }
JobStatus : has no documentation (yet)
func (*JobStatus) UnmarshalJSON ¶
UnmarshalJSON deserializes into a JobStatus instance
type LinkAccessLevel ¶
LinkAccessLevel : has no documentation (yet)
type LinkAction ¶
LinkAction : Actions that can be performed on a link.
type LinkAudience ¶
LinkAudience : has no documentation (yet)
type LinkExpiry ¶
type LinkExpiry struct { dropbox.Tagged // SetExpiry : Set a new expiry or change an existing expiry. SetExpiry time.Time `json:"set_expiry,omitempty"` }
LinkExpiry : has no documentation (yet)
func (*LinkExpiry) UnmarshalJSON ¶
func (u *LinkExpiry) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a LinkExpiry instance
type LinkMetadata ¶
type LinkMetadata struct { // Url : URL of the shared link. Url string `json:"url"` // Visibility : Who can access the link. Visibility *Visibility `json:"visibility"` // Expires : Expiration time, if set. By default the link won't expire. Expires time.Time `json:"expires,omitempty"` }
LinkMetadata : Metadata for a shared link. This can be either a `PathLinkMetadata` or `CollectionLinkMetadata`.
func NewLinkMetadata ¶
func NewLinkMetadata(Url string, Visibility *Visibility) *LinkMetadata
NewLinkMetadata returns a new LinkMetadata instance
func (*LinkMetadata) IsLinkMetadata ¶
func (u *LinkMetadata) IsLinkMetadata()
IsLinkMetadata implements the IsLinkMetadata interface
type LinkPassword ¶
type LinkPassword struct { dropbox.Tagged // SetPassword : Set a new password or change an existing password. SetPassword string `json:"set_password,omitempty"` }
LinkPassword : has no documentation (yet)
func (*LinkPassword) UnmarshalJSON ¶
func (u *LinkPassword) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a LinkPassword instance
type LinkPermission ¶
type LinkPermission struct { // Action : has no documentation (yet) Action *LinkAction `json:"action"` // Allow : has no documentation (yet) Allow bool `json:"allow"` // Reason : has no documentation (yet) Reason *PermissionDeniedReason `json:"reason,omitempty"` }
LinkPermission : Permissions for actions that can be performed on a link.
func NewLinkPermission ¶
func NewLinkPermission(Action *LinkAction, Allow bool) *LinkPermission
NewLinkPermission returns a new LinkPermission instance
type LinkPermissions ¶
type LinkPermissions struct { // ResolvedVisibility : The current visibility of the link after considering // the shared links policies of the the team (in case the link's owner is // part of a team) and the shared folder (in case the linked file is part of // a shared folder). This field is shown only if the caller has access to // this info (the link's owner always has access to this data). For some // links, an effective_audience value is returned instead. ResolvedVisibility *ResolvedVisibility `json:"resolved_visibility,omitempty"` // RequestedVisibility : The shared link's requested visibility. This can be // overridden by the team and shared folder policies. The final visibility, // after considering these policies, can be found in `resolved_visibility`. // This is shown only if the caller is the link's owner and // resolved_visibility is returned instead of effective_audience. RequestedVisibility *RequestedVisibility `json:"requested_visibility,omitempty"` // CanRevoke : Whether the caller can revoke the shared link. CanRevoke bool `json:"can_revoke"` // RevokeFailureReason : The failure reason for revoking the link. This // field will only be present if the `can_revoke` is false. RevokeFailureReason *SharedLinkAccessFailureReason `json:"revoke_failure_reason,omitempty"` // EffectiveAudience : The type of audience who can benefit from the access // level specified by the `link_access_level` field. EffectiveAudience *LinkAudience `json:"effective_audience,omitempty"` // LinkAccessLevel : The access level that the link will grant to its users. // A link can grant additional rights to a user beyond their current access // level. For example, if a user was invited as a viewer to a file, and then // opens a link with `link_access_level` set to `editor`, then they will // gain editor privileges. The `link_access_level` is a property of the // link, and does not depend on who is calling this API. In particular, // `link_access_level` does not take into account the API caller's current // permissions to the content. LinkAccessLevel *LinkAccessLevel `json:"link_access_level,omitempty"` }
LinkPermissions : has no documentation (yet)
func NewLinkPermissions ¶
func NewLinkPermissions(CanRevoke bool) *LinkPermissions
NewLinkPermissions returns a new LinkPermissions instance
type LinkSettings ¶
type LinkSettings struct { // AccessLevel : The access level on the link for this file. Currently, it // only accepts 'viewer' and 'viewer_no_comment'. AccessLevel *AccessLevel `json:"access_level,omitempty"` // Audience : The type of audience on the link for this file. Audience *LinkAudience `json:"audience,omitempty"` // Expiry : An expiry timestamp to set on a link. Expiry *LinkExpiry `json:"expiry,omitempty"` // Password : The password for the link. Password *LinkPassword `json:"password,omitempty"` }
LinkSettings : Settings that apply to a link.
func NewLinkSettings ¶
func NewLinkSettings() *LinkSettings
NewLinkSettings returns a new LinkSettings instance
type ListFileMembersAPIError ¶
type ListFileMembersAPIError struct { dropbox.APIError EndpointError *ListFileMembersError `json:"error"` }
ListFileMembersAPIError is an error-wrapper for the list_file_members route
type ListFileMembersArg ¶
type ListFileMembersArg struct { // File : The file for which you want to see members. File string `json:"file"` // Actions : The actions for which to return permissions on a member. Actions []*MemberAction `json:"actions,omitempty"` // IncludeInherited : Whether to include members who only have access from a // parent shared folder. IncludeInherited bool `json:"include_inherited"` // Limit : Number of members to return max per query. Defaults to 100 if no // limit is specified. Limit uint32 `json:"limit"` }
ListFileMembersArg : Arguments for `listFileMembers`.
func NewListFileMembersArg ¶
func NewListFileMembersArg(File string) *ListFileMembersArg
NewListFileMembersArg returns a new ListFileMembersArg instance
type ListFileMembersBatchAPIError ¶
type ListFileMembersBatchAPIError struct { dropbox.APIError EndpointError *SharingUserError `json:"error"` }
ListFileMembersBatchAPIError is an error-wrapper for the list_file_members/batch route
type ListFileMembersBatchArg ¶
type ListFileMembersBatchArg struct { // Files : Files for which to return members. Files []string `json:"files"` // Limit : Number of members to return max per query. Defaults to 10 if no // limit is specified. Limit uint32 `json:"limit"` }
ListFileMembersBatchArg : Arguments for `listFileMembersBatch`.
func NewListFileMembersBatchArg ¶
func NewListFileMembersBatchArg(Files []string) *ListFileMembersBatchArg
NewListFileMembersBatchArg returns a new ListFileMembersBatchArg instance
type ListFileMembersBatchResult ¶
type ListFileMembersBatchResult struct { // File : This is the input file identifier, whether an ID or a path. File string `json:"file"` // Result : The result for this particular file. Result *ListFileMembersIndividualResult `json:"result"` }
ListFileMembersBatchResult : Per-file result for `listFileMembersBatch`.
func NewListFileMembersBatchResult ¶
func NewListFileMembersBatchResult(File string, Result *ListFileMembersIndividualResult) *ListFileMembersBatchResult
NewListFileMembersBatchResult returns a new ListFileMembersBatchResult instance
type ListFileMembersContinueAPIError ¶
type ListFileMembersContinueAPIError struct { dropbox.APIError EndpointError *ListFileMembersContinueError `json:"error"` }
ListFileMembersContinueAPIError is an error-wrapper for the list_file_members/continue route
type ListFileMembersContinueArg ¶
type ListFileMembersContinueArg struct { // Cursor : The cursor returned by your last call to `listFileMembers`, // `listFileMembersContinue`, or `listFileMembersBatch`. Cursor string `json:"cursor"` }
ListFileMembersContinueArg : Arguments for `listFileMembersContinue`.
func NewListFileMembersContinueArg ¶
func NewListFileMembersContinueArg(Cursor string) *ListFileMembersContinueArg
NewListFileMembersContinueArg returns a new ListFileMembersContinueArg instance
type ListFileMembersContinueError ¶
type ListFileMembersContinueError struct { dropbox.Tagged // UserError : has no documentation (yet) UserError *SharingUserError `json:"user_error,omitempty"` // AccessError : has no documentation (yet) AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
ListFileMembersContinueError : Error for `listFileMembersContinue`.
func (*ListFileMembersContinueError) UnmarshalJSON ¶
func (u *ListFileMembersContinueError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFileMembersContinueError instance
type ListFileMembersCountResult ¶
type ListFileMembersCountResult struct { // Members : A list of members on this file. Members *SharedFileMembers `json:"members"` // MemberCount : The number of members on this file. This does not include // inherited members. MemberCount uint32 `json:"member_count"` }
ListFileMembersCountResult : has no documentation (yet)
func NewListFileMembersCountResult ¶
func NewListFileMembersCountResult(Members *SharedFileMembers, MemberCount uint32) *ListFileMembersCountResult
NewListFileMembersCountResult returns a new ListFileMembersCountResult instance
type ListFileMembersError ¶
type ListFileMembersError struct { dropbox.Tagged // UserError : has no documentation (yet) UserError *SharingUserError `json:"user_error,omitempty"` // AccessError : has no documentation (yet) AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
ListFileMembersError : Error for `listFileMembers`.
func (*ListFileMembersError) UnmarshalJSON ¶
func (u *ListFileMembersError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFileMembersError instance
type ListFileMembersIndividualResult ¶
type ListFileMembersIndividualResult struct { dropbox.Tagged // Result : The results of the query for this file if it was successful. Result *ListFileMembersCountResult `json:"result,omitempty"` // AccessError : The result of the query for this file if it was an error. AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
ListFileMembersIndividualResult : has no documentation (yet)
func (*ListFileMembersIndividualResult) UnmarshalJSON ¶
func (u *ListFileMembersIndividualResult) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFileMembersIndividualResult instance
type ListFilesArg ¶
type ListFilesArg struct { // Limit : Number of files to return max per query. Defaults to 100 if no // limit is specified. Limit uint32 `json:"limit"` // Actions : A list of `FileAction`s corresponding to `FilePermission`s that // should appear in the response's `SharedFileMetadata.permissions` field // describing the actions the authenticated user can perform on the file. Actions []*FileAction `json:"actions,omitempty"` }
ListFilesArg : Arguments for `listReceivedFiles`.
func NewListFilesArg ¶
func NewListFilesArg() *ListFilesArg
NewListFilesArg returns a new ListFilesArg instance
type ListFilesContinueArg ¶
type ListFilesContinueArg struct { // Cursor : Cursor in `ListFilesResult.cursor`. Cursor string `json:"cursor"` }
ListFilesContinueArg : Arguments for `listReceivedFilesContinue`.
func NewListFilesContinueArg ¶
func NewListFilesContinueArg(Cursor string) *ListFilesContinueArg
NewListFilesContinueArg returns a new ListFilesContinueArg instance
type ListFilesContinueError ¶
type ListFilesContinueError struct { dropbox.Tagged // UserError : User account had a problem. UserError *SharingUserError `json:"user_error,omitempty"` }
ListFilesContinueError : Error results for `listReceivedFilesContinue`.
func (*ListFilesContinueError) UnmarshalJSON ¶
func (u *ListFilesContinueError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFilesContinueError instance
type ListFilesResult ¶
type ListFilesResult struct { // Entries : Information about the files shared with current user. Entries []*SharedFileMetadata `json:"entries"` // Cursor : Cursor used to obtain additional shared files. Cursor string `json:"cursor,omitempty"` }
ListFilesResult : Success results for `listReceivedFiles`.
func NewListFilesResult ¶
func NewListFilesResult(Entries []*SharedFileMetadata) *ListFilesResult
NewListFilesResult returns a new ListFilesResult instance
type ListFolderMembersAPIError ¶
type ListFolderMembersAPIError struct { dropbox.APIError EndpointError *SharedFolderAccessError `json:"error"` }
ListFolderMembersAPIError is an error-wrapper for the list_folder_members route
type ListFolderMembersArgs ¶
type ListFolderMembersArgs struct { ListFolderMembersCursorArg SharedFolderId string `json:"shared_folder_id"` }
ListFolderMembersArgs : has no documentation (yet)
func NewListFolderMembersArgs ¶
func NewListFolderMembersArgs(SharedFolderId string) *ListFolderMembersArgs
NewListFolderMembersArgs returns a new ListFolderMembersArgs instance
type ListFolderMembersContinueAPIError ¶
type ListFolderMembersContinueAPIError struct { dropbox.APIError EndpointError *ListFolderMembersContinueError `json:"error"` }
ListFolderMembersContinueAPIError is an error-wrapper for the list_folder_members/continue route
type ListFolderMembersContinueArg ¶
type ListFolderMembersContinueArg struct { // Cursor : The cursor returned by your last call to `listFolderMembers` or // `listFolderMembersContinue`. Cursor string `json:"cursor"` }
ListFolderMembersContinueArg : has no documentation (yet)
func NewListFolderMembersContinueArg ¶
func NewListFolderMembersContinueArg(Cursor string) *ListFolderMembersContinueArg
NewListFolderMembersContinueArg returns a new ListFolderMembersContinueArg instance
type ListFolderMembersContinueError ¶
type ListFolderMembersContinueError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` }
ListFolderMembersContinueError : has no documentation (yet)
func (*ListFolderMembersContinueError) UnmarshalJSON ¶
func (u *ListFolderMembersContinueError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListFolderMembersContinueError instance
type ListFolderMembersCursorArg ¶
type ListFolderMembersCursorArg struct { // Actions : This is a list indicating whether each returned member will // include a boolean value `MemberPermission.allow` that describes whether // the current user can perform the MemberAction on the member. Actions []*MemberAction `json:"actions,omitempty"` // Limit : The maximum number of results that include members, groups and // invitees to return per request. Limit uint32 `json:"limit"` }
ListFolderMembersCursorArg : has no documentation (yet)
func NewListFolderMembersCursorArg ¶
func NewListFolderMembersCursorArg() *ListFolderMembersCursorArg
NewListFolderMembersCursorArg returns a new ListFolderMembersCursorArg instance
type ListFoldersAPIError ¶
ListFoldersAPIError is an error-wrapper for the list_folders route
type ListFoldersArgs ¶
type ListFoldersArgs struct { // Limit : The maximum number of results to return per request. Limit uint32 `json:"limit"` // Actions : A list of `FolderAction`s corresponding to `FolderPermission`s // that should appear in the response's `SharedFolderMetadata.permissions` // field describing the actions the authenticated user can perform on the // folder. Actions []*FolderAction `json:"actions,omitempty"` }
ListFoldersArgs : has no documentation (yet)
func NewListFoldersArgs ¶
func NewListFoldersArgs() *ListFoldersArgs
NewListFoldersArgs returns a new ListFoldersArgs instance
type ListFoldersContinueAPIError ¶
type ListFoldersContinueAPIError struct { dropbox.APIError EndpointError *ListFoldersContinueError `json:"error"` }
ListFoldersContinueAPIError is an error-wrapper for the list_folders/continue route
type ListFoldersContinueArg ¶
type ListFoldersContinueArg struct { // Cursor : The cursor returned by the previous API call specified in the // endpoint description. Cursor string `json:"cursor"` }
ListFoldersContinueArg : has no documentation (yet)
func NewListFoldersContinueArg ¶
func NewListFoldersContinueArg(Cursor string) *ListFoldersContinueArg
NewListFoldersContinueArg returns a new ListFoldersContinueArg instance
type ListFoldersContinueError ¶
ListFoldersContinueError : has no documentation (yet)
type ListFoldersResult ¶
type ListFoldersResult struct { // Entries : List of all shared folders the authenticated user has access // to. Entries []*SharedFolderMetadata `json:"entries"` // Cursor : Present if there are additional shared folders that have not // been returned yet. Pass the cursor into the corresponding continue // endpoint (either `listFoldersContinue` or `listMountableFoldersContinue`) // to list additional folders. Cursor string `json:"cursor,omitempty"` }
ListFoldersResult : Result for `listFolders` or `listMountableFolders`, depending on which endpoint was requested. Unmounted shared folders can be identified by the absence of `SharedFolderMetadata.path_lower`.
func NewListFoldersResult ¶
func NewListFoldersResult(Entries []*SharedFolderMetadata) *ListFoldersResult
NewListFoldersResult returns a new ListFoldersResult instance
type ListMountableFoldersAPIError ¶
ListMountableFoldersAPIError is an error-wrapper for the list_mountable_folders route
type ListMountableFoldersContinueAPIError ¶
type ListMountableFoldersContinueAPIError struct { dropbox.APIError EndpointError *ListFoldersContinueError `json:"error"` }
ListMountableFoldersContinueAPIError is an error-wrapper for the list_mountable_folders/continue route
type ListReceivedFilesAPIError ¶
type ListReceivedFilesAPIError struct { dropbox.APIError EndpointError *SharingUserError `json:"error"` }
ListReceivedFilesAPIError is an error-wrapper for the list_received_files route
type ListReceivedFilesContinueAPIError ¶
type ListReceivedFilesContinueAPIError struct { dropbox.APIError EndpointError *ListFilesContinueError `json:"error"` }
ListReceivedFilesContinueAPIError is an error-wrapper for the list_received_files/continue route
type ListSharedLinksAPIError ¶
type ListSharedLinksAPIError struct {}
ListSharedLinksAPIError is an error-wrapper for the list_shared_links route
type ListSharedLinksArg ¶
type ListSharedLinksArg struct { string `json:"path,omitempty"` Cursor string `json:"cursor,omitempty"` DirectOnly bool `json:"direct_only,omitempty"` }Path
ListSharedLinksArg : has no documentation (yet)
func NewListSharedLinksArg ¶
func NewListSharedLinksArg() *ListSharedLinksArg
NewListSharedLinksArg returns a new ListSharedLinksArg instance
type ListSharedLinksError ¶
type ListSharedLinksError struct { files.LookupError `json:"path,omitempty"` }Path *
ListSharedLinksError : has no documentation (yet)
func (*ListSharedLinksError) UnmarshalJSON ¶
func (u *ListSharedLinksError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ListSharedLinksError instance
type ListSharedLinksResult ¶
type ListSharedLinksResult struct { IsSharedLinkMetadata `json:"links"` // returned yet. Pass the cursor into `listSharedLinks` to retrieve them. HasMore bool `json:"has_more"` // links. Cursor is returned only if no path is given. Cursor string `json:"cursor,omitempty"` }Links []
ListSharedLinksResult : has no documentation (yet)
func NewListSharedLinksResult ¶
func NewListSharedLinksResult(Links []IsSharedLinkMetadata, HasMore bool) *ListSharedLinksResult
NewListSharedLinksResult returns a new ListSharedLinksResult instance
func (*ListSharedLinksResult) UnmarshalJSON ¶
func (u *ListSharedLinksResult) UnmarshalJSON(b []byte) error
UnmarshalJSON deserializes into a ListSharedLinksResult instance
type MemberAccessLevelResult ¶
type MemberAccessLevelResult struct { // AccessLevel : The member still has this level of access to the content // through a parent folder. AccessLevel *AccessLevel `json:"access_level,omitempty"` // Warning : A localized string with additional information about why the // user has this access level to the content. Warning string `json:"warning,omitempty"` // AccessDetails : The parent folders that a member has access to. The field // is present if the user has access to the first parent folder where the // member gains access. AccessDetails []*ParentFolderAccessInfo `json:"access_details,omitempty"` }
MemberAccessLevelResult : Contains information about a member's access level to content after an operation.
func NewMemberAccessLevelResult ¶
func NewMemberAccessLevelResult() *MemberAccessLevelResult
NewMemberAccessLevelResult returns a new MemberAccessLevelResult instance
type MemberAction ¶
MemberAction : Actions that may be taken on members of a shared folder.
type MemberPermission ¶
type MemberPermission struct { // Action : The action that the user may wish to take on the member. Action *MemberAction `json:"action"` // Allow : True if the user is allowed to take the action. Allow bool `json:"allow"` // Reason : The reason why the user is denied the permission. Not present if // the action is allowed. Reason *PermissionDeniedReason `json:"reason,omitempty"` }
MemberPermission : Whether the user is allowed to take the action on the associated member.
func NewMemberPermission ¶
func NewMemberPermission(Action *MemberAction, Allow bool) *MemberPermission
NewMemberPermission returns a new MemberPermission instance
type MemberPolicy ¶
MemberPolicy : Policy governing who can be a member of a shared folder. Only applicable to folders owned by a user on a team.
type MemberSelector ¶
type MemberSelector struct { dropbox.Tagged // DropboxId : Dropbox account, team member, or group ID of member. DropboxId string `json:"dropbox_id,omitempty"` // Email : E-mail address of member. Email string `json:"email,omitempty"` }
MemberSelector : Includes different ways to identify a member of a shared folder.
func (*MemberSelector) UnmarshalJSON ¶
func (u *MemberSelector) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a MemberSelector instance
type MembershipInfo ¶
type MembershipInfo struct { // AccessType : The access type for this member. It contains inherited // access type from parent folder, and acquired access type from this // folder. AccessType *AccessLevel `json:"access_type"` // Permissions : The permissions that requesting user has on this member. // The set of permissions corresponds to the MemberActions in the request. Permissions []*MemberPermission `json:"permissions,omitempty"` // Initials : Never set. Initials string `json:"initials,omitempty"` // IsInherited : True if the member has access from a parent folder. IsInherited bool `json:"is_inherited"` }
MembershipInfo : The information about a member of the shared content.
func NewMembershipInfo ¶
func NewMembershipInfo(AccessType *AccessLevel) *MembershipInfo
NewMembershipInfo returns a new MembershipInfo instance
type ModifySharedLinkSettingsAPIError ¶
type ModifySharedLinkSettingsAPIError struct {}
ModifySharedLinkSettingsAPIError is an error-wrapper for the modify_shared_link_settings route
type ModifySharedLinkSettingsArgs ¶
type ModifySharedLinkSettingsArgs struct { string `json:"url"` Settings *SharedLinkSettings `json:"settings"` // link. RemoveExpiration bool `json:"remove_expiration"` }Url
ModifySharedLinkSettingsArgs : has no documentation (yet)
func NewModifySharedLinkSettingsArgs ¶
func NewModifySharedLinkSettingsArgs(Url string, Settings *SharedLinkSettings) *ModifySharedLinkSettingsArgs
NewModifySharedLinkSettingsArgs returns a new ModifySharedLinkSettingsArgs instance
type ModifySharedLinkSettingsError ¶
type ModifySharedLinkSettingsError struct { SharedLinkSettingsError `json:"settings_error,omitempty"` }SettingsError *
ModifySharedLinkSettingsError : has no documentation (yet)
func (*ModifySharedLinkSettingsError) UnmarshalJSON ¶
func (u *ModifySharedLinkSettingsError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ModifySharedLinkSettingsError instance
type MountFolderAPIError ¶
type MountFolderAPIError struct { dropbox.APIError EndpointError *MountFolderError `json:"error"` }
MountFolderAPIError is an error-wrapper for the mount_folder route
type MountFolderArg ¶
type MountFolderArg struct { string `json:"shared_folder_id"` }SharedFolderId
MountFolderArg : has no documentation (yet)
func NewMountFolderArg ¶
func NewMountFolderArg(SharedFolderId string) *MountFolderArg
NewMountFolderArg returns a new MountFolderArg instance
type MountFolderError ¶
type MountFolderError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` // InsufficientQuota : The current user does not have enough space to mount // the shared folder. InsufficientQuota *InsufficientQuotaAmounts `json:"insufficient_quota,omitempty"` }
MountFolderError : has no documentation (yet)
func (*MountFolderError) UnmarshalJSON ¶
func (u *MountFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a MountFolderError instance
type ParentFolderAccessInfo ¶
type ParentFolderAccessInfo struct { // FolderName : Display name for the folder. FolderName string `json:"folder_name"` SharedFolderId string `json:"shared_folder_id"` // Permissions : The user's permissions for the parent shared folder. Permissions []*MemberPermission `json:"permissions"` // Path : The full path to the parent shared folder relative to the acting // user's root. Path string `json:"path"` }
ParentFolderAccessInfo : Contains information about a parent folder that a member has access to.
func NewParentFolderAccessInfo ¶
func NewParentFolderAccessInfo(FolderName string, SharedFolderId string, Permissions []*MemberPermission, Path string) *ParentFolderAccessInfo
NewParentFolderAccessInfo returns a new ParentFolderAccessInfo instance
type PathLinkMetadata ¶
type PathLinkMetadata struct { LinkMetadata // Path : Path in user's Dropbox. Path string `json:"path"` }
PathLinkMetadata : Metadata for a path-based shared link.
func NewPathLinkMetadata ¶
func NewPathLinkMetadata(Url string, Visibility *Visibility, Path string) *PathLinkMetadata
NewPathLinkMetadata returns a new PathLinkMetadata instance
type PendingUploadMode ¶
PendingUploadMode : Flag to indicate pending upload default (for linking to not-yet-existing paths).
type PermissionDeniedReason ¶
type PermissionDeniedReason struct { dropbox.Tagged // InsufficientPlan : has no documentation (yet) InsufficientPlan *InsufficientPlan `json:"insufficient_plan,omitempty"` }
PermissionDeniedReason : Possible reasons the user is denied a permission.
func (*PermissionDeniedReason) UnmarshalJSON ¶
func (u *PermissionDeniedReason) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a PermissionDeniedReason instance
type RelinquishFileMembershipAPIError ¶
type RelinquishFileMembershipAPIError struct { dropbox.APIError EndpointError *RelinquishFileMembershipError `json:"error"` }
RelinquishFileMembershipAPIError is an error-wrapper for the relinquish_file_membership route
type RelinquishFileMembershipArg ¶
type RelinquishFileMembershipArg struct { // File : The path or id for the file. File string `json:"file"` }
RelinquishFileMembershipArg : has no documentation (yet)
func NewRelinquishFileMembershipArg ¶
func NewRelinquishFileMembershipArg(File string) *RelinquishFileMembershipArg
NewRelinquishFileMembershipArg returns a new RelinquishFileMembershipArg instance
type RelinquishFileMembershipError ¶
type RelinquishFileMembershipError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharingFileAccessError `json:"access_error,omitempty"` }
RelinquishFileMembershipError : has no documentation (yet)
func (*RelinquishFileMembershipError) UnmarshalJSON ¶
func (u *RelinquishFileMembershipError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RelinquishFileMembershipError instance
type RelinquishFolderMembershipAPIError ¶
type RelinquishFolderMembershipAPIError struct { dropbox.APIError EndpointError *RelinquishFolderMembershipError `json:"error"` }
RelinquishFolderMembershipAPIError is an error-wrapper for the relinquish_folder_membership route
type RelinquishFolderMembershipArg ¶
type RelinquishFolderMembershipArg struct { string `json:"shared_folder_id"` // LeaveACopy : Keep a copy of the folder's contents upon relinquishing // membership. LeaveACopy bool `json:"leave_a_copy"` }SharedFolderId
RelinquishFolderMembershipArg : has no documentation (yet)
func NewRelinquishFolderMembershipArg ¶
func NewRelinquishFolderMembershipArg(SharedFolderId string) *RelinquishFolderMembershipArg
NewRelinquishFolderMembershipArg returns a new RelinquishFolderMembershipArg instance
type RelinquishFolderMembershipError ¶
type RelinquishFolderMembershipError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` }
RelinquishFolderMembershipError : has no documentation (yet)
func (*RelinquishFolderMembershipError) UnmarshalJSON ¶
func (u *RelinquishFolderMembershipError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RelinquishFolderMembershipError instance
type RemoveFileMember2APIError ¶
type RemoveFileMember2APIError struct { dropbox.APIError EndpointError *RemoveFileMemberError `json:"error"` }
RemoveFileMember2APIError is an error-wrapper for the remove_file_member_2 route
type RemoveFileMemberAPIError ¶
type RemoveFileMemberAPIError struct { dropbox.APIError EndpointError *RemoveFileMemberError `json:"error"` }
RemoveFileMemberAPIError is an error-wrapper for the remove_file_member route
type RemoveFileMemberArg ¶
type RemoveFileMemberArg struct { // File : File from which to remove members. File string `json:"file"` // Member : Member to remove from this file. Note that even if an email is // specified, it may result in the removal of a user (not an invitee) if the // user's main account corresponds to that email address. Member *MemberSelector `json:"member"` }
RemoveFileMemberArg : Arguments for `removeFileMember2`.
func NewRemoveFileMemberArg ¶
func NewRemoveFileMemberArg(File string, Member *MemberSelector) *RemoveFileMemberArg
NewRemoveFileMemberArg returns a new RemoveFileMemberArg instance
type RemoveFileMemberError ¶
type RemoveFileMemberError struct { dropbox.Tagged // UserError : has no documentation (yet) UserError *SharingUserError `json:"user_error,omitempty"` // AccessError : has no documentation (yet) AccessError *SharingFileAccessError `json:"access_error,omitempty"` // NoExplicitAccess : This member does not have explicit access to the file // and therefore cannot be removed. The return value is the access that a // user might have to the file from a parent folder. NoExplicitAccess *MemberAccessLevelResult `json:"no_explicit_access,omitempty"` }
RemoveFileMemberError : Errors for `removeFileMember2`.
func (*RemoveFileMemberError) UnmarshalJSON ¶
func (u *RemoveFileMemberError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RemoveFileMemberError instance
type RemoveFolderMemberAPIError ¶
type RemoveFolderMemberAPIError struct { dropbox.APIError EndpointError *RemoveFolderMemberError `json:"error"` }
RemoveFolderMemberAPIError is an error-wrapper for the remove_folder_member route
type RemoveFolderMemberArg ¶
type RemoveFolderMemberArg struct { string `json:"shared_folder_id"` // Member : The member to remove from the folder. Member *MemberSelector `json:"member"` // LeaveACopy : If true, the removed user will keep their copy of the folder // after it's unshared, assuming it was mounted. Otherwise, it will be // removed from their Dropbox. Also, this must be set to false when kicking // a group. LeaveACopy bool `json:"leave_a_copy"` }SharedFolderId
RemoveFolderMemberArg : has no documentation (yet)
func NewRemoveFolderMemberArg ¶
func NewRemoveFolderMemberArg(SharedFolderId string, Member *MemberSelector, LeaveACopy bool) *RemoveFolderMemberArg
NewRemoveFolderMemberArg returns a new RemoveFolderMemberArg instance
type RemoveFolderMemberError ¶
type RemoveFolderMemberError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` // MemberError : has no documentation (yet) MemberError *SharedFolderMemberError `json:"member_error,omitempty"` }
RemoveFolderMemberError : has no documentation (yet)
func (*RemoveFolderMemberError) UnmarshalJSON ¶
func (u *RemoveFolderMemberError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RemoveFolderMemberError instance
type RemoveMemberJobStatus ¶
type RemoveMemberJobStatus struct { dropbox.Tagged // Complete : Removing the folder member has finished. The value is // information about whether the member has another form of access. Complete *MemberAccessLevelResult `json:"complete,omitempty"` // Failed : has no documentation (yet) Failed *RemoveFolderMemberError `json:"failed,omitempty"` }
RemoveMemberJobStatus : has no documentation (yet)
func (*RemoveMemberJobStatus) UnmarshalJSON ¶
func (u *RemoveMemberJobStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a RemoveMemberJobStatus instance
type RequestedLinkAccessLevel ¶
RequestedLinkAccessLevel : has no documentation (yet)
type RequestedVisibility ¶
RequestedVisibility : The access permission that can be requested by the caller for the shared link. Note that the final resolved visibility of the shared link takes into account other aspects, such as team and shared folder settings. Check the `ResolvedVisibility` for more info on the possible resolved visibility values of shared links.
type ResolvedVisibility ¶
ResolvedVisibility : The actual access permissions values of shared links after taking into account user preferences and the team and shared folder settings. Check the `RequestedVisibility` for more info on the possible visibility values that can be set by the shared link's owner.
type RevokeSharedLinkAPIError ¶
type RevokeSharedLinkAPIError struct {}
RevokeSharedLinkAPIError is an error-wrapper for the revoke_shared_link route
type RevokeSharedLinkArg ¶
type RevokeSharedLinkArg struct { string `json:"url"` }Url
RevokeSharedLinkArg : has no documentation (yet)
func NewRevokeSharedLinkArg ¶
func NewRevokeSharedLinkArg(Url string) *RevokeSharedLinkArg
NewRevokeSharedLinkArg returns a new RevokeSharedLinkArg instance
type RevokeSharedLinkError ¶
type RevokeSharedLinkError struct {
}RevokeSharedLinkError : has no documentation (yet)
type SetAccessInheritanceAPIError ¶
type SetAccessInheritanceAPIError struct { dropbox.APIError EndpointError *SetAccessInheritanceError `json:"error"` }
SetAccessInheritanceAPIError is an error-wrapper for the set_access_inheritance route
type SetAccessInheritanceArg ¶
type SetAccessInheritanceArg struct { // AccessInheritance : The access inheritance settings for the folder. AccessInheritance *AccessInheritance `json:"access_inheritance"` SharedFolderId string `json:"shared_folder_id"` }
SetAccessInheritanceArg : has no documentation (yet)
func NewSetAccessInheritanceArg ¶
func NewSetAccessInheritanceArg(SharedFolderId string) *SetAccessInheritanceArg
NewSetAccessInheritanceArg returns a new SetAccessInheritanceArg instance
type SetAccessInheritanceError ¶
type SetAccessInheritanceError struct { dropbox.Tagged // AccessError : Unable to access shared folder. AccessError *SharedFolderAccessError `json:"access_error,omitempty"` }
SetAccessInheritanceError : has no documentation (yet)
func (*SetAccessInheritanceError) UnmarshalJSON ¶
func (u *SetAccessInheritanceError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SetAccessInheritanceError instance
type ShareFolderAPIError ¶
type ShareFolderAPIError struct {}
ShareFolderAPIError is an error-wrapper for the share_folder route
type ShareFolderArg ¶
type ShareFolderArg struct { // that should appear in the response's `SharedFolderMetadata.permissions` // field describing the actions the authenticated user can perform on the // folder. Actions []*FolderAction `json:"actions,omitempty"` LinkSettings *LinkSettings `json:"link_settings,omitempty"` }
ShareFolderArg : has no documentation (yet)
func NewShareFolderArg ¶
func NewShareFolderArg(Path string) *ShareFolderArg
NewShareFolderArg returns a new ShareFolderArg instance
type ShareFolderArgBase ¶
type ShareFolderArgBase struct { AclUpdatePolicy `json:"acl_update_policy,omitempty"` ForceAsync bool `json:"force_async"` // if the current user is on a team. MemberPolicy *MemberPolicy `json:"member_policy,omitempty"` // one is created. Path string `json:"path"` // content inside this shared folder. The current user must be on a team to // set this policy to `SharedLinkPolicy.members`. SharedLinkPolicy *SharedLinkPolicy `json:"shared_link_policy,omitempty"` // folder. ViewerInfoPolicy *ViewerInfoPolicy `json:"viewer_info_policy,omitempty"` AccessInheritance *AccessInheritance `json:"access_inheritance"` }AclUpdatePolicy *
ShareFolderArgBase : has no documentation (yet)
func NewShareFolderArgBase ¶
func NewShareFolderArgBase(Path string) *ShareFolderArgBase
NewShareFolderArgBase returns a new ShareFolderArgBase instance
type ShareFolderError ¶
type ShareFolderError struct { SharePathError `json:"bad_path,omitempty"` }BadPath *
ShareFolderError : has no documentation (yet)
func (*ShareFolderError) UnmarshalJSON ¶
func (u *ShareFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ShareFolderError instance
type ShareFolderErrorBase ¶
type ShareFolderErrorBase struct { SharePathError `json:"bad_path,omitempty"` }BadPath *
ShareFolderErrorBase : has no documentation (yet)
func (*ShareFolderErrorBase) UnmarshalJSON ¶
func (u *ShareFolderErrorBase) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ShareFolderErrorBase instance
type ShareFolderJobStatus ¶
type ShareFolderJobStatus struct { // folder. Complete *SharedFolderMetadata `json:"complete,omitempty"` Failed *ShareFolderError `json:"failed,omitempty"` }
ShareFolderJobStatus : has no documentation (yet)
func (*ShareFolderJobStatus) UnmarshalJSON ¶
func (u *ShareFolderJobStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ShareFolderJobStatus instance
type ShareFolderLaunch ¶
type ShareFolderLaunch struct { // The string is an id that can be used to obtain the status of the // asynchronous job. AsyncJobId string `json:"async_job_id,omitempty"` Complete *SharedFolderMetadata `json:"complete,omitempty"` }
ShareFolderLaunch : has no documentation (yet)
func (*ShareFolderLaunch) UnmarshalJSON ¶
func (u *ShareFolderLaunch) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a ShareFolderLaunch instance
type SharePathError ¶
type SharePathError struct { // existing shared folder. AlreadyShared *SharedFolderMetadata `json:"already_shared,omitempty"` }
SharePathError : has no documentation (yet)
func (*SharePathError) UnmarshalJSON ¶
func (u *SharePathError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SharePathError instance
type SharedContentLinkMetadata ¶
type SharedContentLinkMetadata struct { // different than this folder's. This is only returned when an endpoint that // returns metadata for a single shared folder is called, e.g. // /get_folder_metadata. AudienceExceptions *AudienceExceptions `json:"audience_exceptions,omitempty"` Url string `json:"url"` }
SharedContentLinkMetadata : Metadata of a shared link for a file or folder.
func NewSharedContentLinkMetadata ¶
func NewSharedContentLinkMetadata(AudienceOptions []*LinkAudience, CurrentAudience *LinkAudience, LinkPermissions []*LinkPermission, PasswordProtected bool, Url string) *SharedContentLinkMetadata
NewSharedContentLinkMetadata returns a new SharedContentLinkMetadata instance
type SharedContentLinkMetadataBase ¶
type SharedContentLinkMetadataBase struct { AccessLevel `json:"access_level,omitempty"` // content. Some audience options may be unavailable. For example, team_only // may be unavailable if the content is not owned by a user on a team. The // 'default' audience option is always available if the user can modify link // settings. AudienceOptions []*LinkAudience `json:"audience_options"` // link audience for this link from being more restrictive. AudienceRestrictingSharedFolder *AudienceRestrictingSharedFolder `json:"audience_restricting_shared_folder,omitempty"` CurrentAudience *LinkAudience `json:"current_audience"` // will have its audience changed to members when the expiry is reached. Expiry time.Time `json:"expiry,omitempty"` // the link. LinkPermissions []*LinkPermission `json:"link_permissions"` PasswordProtected bool `json:"password_protected"` }AccessLevel *
SharedContentLinkMetadataBase : has no documentation (yet)
func NewSharedContentLinkMetadataBase ¶
func NewSharedContentLinkMetadataBase(AudienceOptions []*LinkAudience, CurrentAudience *LinkAudience, LinkPermissions []*LinkPermission, PasswordProtected bool) *SharedContentLinkMetadataBase
NewSharedContentLinkMetadataBase returns a new SharedContentLinkMetadataBase instance
type SharedFileMembers ¶
type SharedFileMembers struct { UserFileMembershipInfo `json:"users"` Groups []*GroupMembershipInfo `json:"groups"` // and claimed this. Invitees []*InviteeMembershipInfo `json:"invitees"` // not been returned yet. Pass the cursor into `listFileMembersContinue` to // list additional members. Cursor string `json:"cursor,omitempty"` }Users []*
SharedFileMembers : Shared file user, group, and invitee membership. Used for the results of `listFileMembers` and `listFileMembersContinue`, and used as part of the results for `listFileMembersBatch`.
func NewSharedFileMembers ¶
func NewSharedFileMembers(Users []*UserFileMembershipInfo, Groups []*GroupMembershipInfo, Invitees []*InviteeMembershipInfo) *SharedFileMembers
NewSharedFileMembers returns a new SharedFileMembers instance
type SharedFileMetadata ¶
type SharedFileMetadata struct { AccessLevel `json:"access_type,omitempty"` Id string `json:"id"` // the file when it is first shared. Absent if the link already exists. This // is for an unreleased feature so it may not be returned yet. ExpectedLinkMetadata *ExpectedSharedContentLinkMetadata `json:"expected_link_metadata,omitempty"` // for an unreleased feature so it may not be returned yet. LinkMetadata *SharedContentLinkMetadata `json:"link_metadata,omitempty"` Name string `json:"name"` // the file is part of a team folder, the display names of the team admins // are also included. Absent if the owner display names cannot be fetched. OwnerDisplayNames []string `json:"owner_display_names,omitempty"` // file is not owned by a team. OwnerTeam *users.Team `json:"owner_team,omitempty"` // present only if the file is contained within a shared folder. ParentSharedFolderId string `json:"parent_shared_folder_id,omitempty"` // rare instances the casing will not correctly match the user's filesystem, // but this behavior will match the path provided in the Core API v1. Absent // for unmounted files. PathDisplay string `json:"path_display,omitempty"` // files. PathLower string `json:"path_lower,omitempty"` // file. This corresponds to the entries given in // `GetFileMetadataBatchArg.actions` or `GetFileMetadataArg.actions`. Permissions []*FilePermission `json:"permissions,omitempty"` Policy *FolderPolicy `json:"policy"` PreviewUrl string `json:"preview_url"` // this shared file. If the user was not invited to the shared file, the // timestamp will indicate when the user was invited to the parent shared // folder. This value may be absent. TimeInvited time.Time `json:"time_invited,omitempty"` }AccessType *
SharedFileMetadata : Properties of the shared file.
func NewSharedFileMetadata ¶
func NewSharedFileMetadata(Id string, Name string, Policy *FolderPolicy, PreviewUrl string) *SharedFileMetadata
NewSharedFileMetadata returns a new SharedFileMetadata instance
type SharedFolderAccessError ¶
type SharedFolderAccessError struct {
}SharedFolderAccessError : There is an error accessing the shared folder.
type SharedFolderMemberError ¶
type SharedFolderMemberError struct { // shared folder. NoExplicitAccess *MemberAccessLevelResult `json:"no_explicit_access,omitempty"` }
SharedFolderMemberError : has no documentation (yet)
func (*SharedFolderMemberError) UnmarshalJSON ¶
func (u *SharedFolderMemberError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SharedFolderMemberError instance
type SharedFolderMembers ¶
type SharedFolderMembers struct { UserMembershipInfo `json:"users"` Groups []*GroupMembershipInfo `json:"groups"` Invitees []*InviteeMembershipInfo `json:"invitees"` // not been returned yet. Pass the cursor into `listFolderMembersContinue` // to list additional members. Cursor string `json:"cursor,omitempty"` }Users []*
SharedFolderMembers : Shared folder user and group membership.
func NewSharedFolderMembers ¶
func NewSharedFolderMembers(Users []*UserMembershipInfo, Groups []*GroupMembershipInfo, Invitees []*InviteeMembershipInfo) *SharedFolderMembers
NewSharedFolderMembers returns a new SharedFolderMembers instance
type SharedFolderMetadata ¶
type SharedFolderMetadata struct { // folder. Absent if there is no link on the folder. This is for an // unreleased feature so it may not be returned yet. LinkMetadata *SharedContentLinkMetadata `json:"link_metadata,omitempty"` Name string `json:"name"` // contents. The set of permissions corresponds to the FolderActions in the // request. Permissions []*FolderPermission `json:"permissions,omitempty"` Policy *FolderPolicy `json:"policy"` PreviewUrl string `json:"preview_url"` SharedFolderId string `json:"shared_folder_id"` // this shared folder. TimeInvited time.Time `json:"time_invited"` // parent. AccessInheritance *AccessInheritance `json:"access_inheritance"` }
SharedFolderMetadata : The metadata which includes basic information about the shared folder.
func NewSharedFolderMetadata ¶
func NewSharedFolderMetadata(AccessType *AccessLevel, IsInsideTeamFolder bool, IsTeamFolder bool, Name string, Policy *FolderPolicy, PreviewUrl string, SharedFolderId string, TimeInvited time.Time) *SharedFolderMetadata
NewSharedFolderMetadata returns a new SharedFolderMetadata instance
type SharedFolderMetadataBase ¶
type SharedFolderMetadataBase struct { AccessLevel `json:"access_type"` IsInsideTeamFolder bool `json:"is_inside_team_folder"` // <https://www.dropbox.com/en/help/986>. IsTeamFolder bool `json:"is_team_folder"` // If the folder is part of a team folder, the display names of the team // admins are also included. Absent if the owner display names cannot be // fetched. OwnerDisplayNames []string `json:"owner_display_names,omitempty"` // the folder is not owned by a team. OwnerTeam *users.Team `json:"owner_team,omitempty"` // present only if the folder is contained within another shared folder. ParentSharedFolderId string `json:"parent_shared_folder_id,omitempty"` // unmounted folders. PathLower string `json:"path_lower,omitempty"` }AccessType *
SharedFolderMetadataBase : Properties of the shared folder.
func NewSharedFolderMetadataBase ¶
func NewSharedFolderMetadataBase(AccessType *AccessLevel, IsInsideTeamFolder bool, IsTeamFolder bool) *SharedFolderMetadataBase
NewSharedFolderMetadataBase returns a new SharedFolderMetadataBase instance
type SharedLinkAccessFailureReason ¶
type SharedLinkAccessFailureReason struct {
}SharedLinkAccessFailureReason : has no documentation (yet)
type SharedLinkAlreadyExistsMetadata ¶
type SharedLinkAlreadyExistsMetadata struct { IsSharedLinkMetadata `json:"metadata,omitempty"` }Metadata
SharedLinkAlreadyExistsMetadata : has no documentation (yet)
func (*SharedLinkAlreadyExistsMetadata) UnmarshalJSON ¶
func (u *SharedLinkAlreadyExistsMetadata) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a SharedLinkAlreadyExistsMetadata instance
type SharedLinkMetadata ¶
type SharedLinkMetadata struct { string `json:"url"` Id string `json:"id,omitempty"` // slash. Name string `json:"name"` Expires time.Time `json:"expires,omitempty"` // starts with a slash. This field will only be present only if the linked // file is in the authenticated user's dropbox. PathLower string `json:"path_lower,omitempty"` LinkPermissions *LinkPermissions `json:"link_permissions"` // This field will only be present if the link's owner is a team member. TeamMemberInfo *TeamMemberInfo `json:"team_member_info,omitempty"` // field will only be present if the content's owner is a team member and // the content's owner team is different from the link's owner team. ContentOwnerTeamInfo *users.Team `json:"content_owner_team_info,omitempty"` }Url
SharedLinkMetadata : The metadata of a shared link.
func NewSharedLinkMetadata ¶
func NewSharedLinkMetadata(Url string, Name string, LinkPermissions *LinkPermissions) *SharedLinkMetadata
NewSharedLinkMetadata returns a new SharedLinkMetadata instance
func (*SharedLinkMetadata) IsSharedLinkMetadata ¶
func (u *SharedLinkMetadata) IsSharedLinkMetadata()
IsSharedLinkMetadata implements the IsSharedLinkMetadata interface
type SharedLinkPolicy ¶
type SharedLinkPolicy struct {
}SharedLinkPolicy : Who can view shared links in this folder.
type SharedLinkSettings ¶
type SharedLinkSettings struct { RequestedVisibility `json:"requested_visibility,omitempty"` // `RequestedVisibility.password` this is needed to specify the password to // access the link. LinkPassword string `json:"link_password,omitempty"` // expire. Expires time.Time `json:"expires,omitempty"` // specified by the link's access level specified in the `link_access_level` // field of `LinkPermissions`. This is used in conjunction with team // policies and shared folder policies to determine the final effective // audience type in the `effective_audience` field of `LinkPermissions. Audience *LinkAudience `json:"audience,omitempty"` // link. Access *RequestedLinkAccessLevel `json:"access,omitempty"` }RequestedVisibility *
SharedLinkSettings : has no documentation (yet)
func NewSharedLinkSettings ¶
func NewSharedLinkSettings() *SharedLinkSettings
NewSharedLinkSettings returns a new SharedLinkSettings instance
type SharedLinkSettingsError ¶
type SharedLinkSettingsError struct {
}SharedLinkSettingsError : has no documentation (yet)
type SharingFileAccessError ¶
SharingFileAccessError : User could not access this file.
type SharingUserError ¶
SharingUserError : User account had a problem preventing this action.
type TeamMemberInfo ¶
type TeamMemberInfo struct { // TeamInfo : Information about the member's team. TeamInfo *users.Team `json:"team_info"` // DisplayName : The display name of the user. DisplayName string `json:"display_name"` // MemberId : ID of user as a member of a team. This field will only be // present if the member is in the same team as current user. MemberId string `json:"member_id,omitempty"` }
TeamMemberInfo : Information about a team member.
func NewTeamMemberInfo ¶
func NewTeamMemberInfo(TeamInfo *users.Team, DisplayName string) *TeamMemberInfo
NewTeamMemberInfo returns a new TeamMemberInfo instance
type TransferFolderAPIError ¶
type TransferFolderAPIError struct { dropbox.APIError EndpointError *TransferFolderError `json:"error"` }
TransferFolderAPIError is an error-wrapper for the transfer_folder route
type TransferFolderArg ¶
type TransferFolderArg struct { string `json:"shared_folder_id"` // ToDropboxId : A account or team member ID to transfer ownership to. ToDropboxId string `json:"to_dropbox_id"` }SharedFolderId
TransferFolderArg : has no documentation (yet)
func NewTransferFolderArg ¶
func NewTransferFolderArg(SharedFolderId string, ToDropboxId string) *TransferFolderArg
NewTransferFolderArg returns a new TransferFolderArg instance
type TransferFolderError ¶
type TransferFolderError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` }
TransferFolderError : has no documentation (yet)
func (*TransferFolderError) UnmarshalJSON ¶
func (u *TransferFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a TransferFolderError instance
type UnmountFolderAPIError ¶
type UnmountFolderAPIError struct { dropbox.APIError EndpointError *UnmountFolderError `json:"error"` }
UnmountFolderAPIError is an error-wrapper for the unmount_folder route
type UnmountFolderArg ¶
type UnmountFolderArg struct { string `json:"shared_folder_id"` }SharedFolderId
UnmountFolderArg : has no documentation (yet)
func NewUnmountFolderArg ¶
func NewUnmountFolderArg(SharedFolderId string) *UnmountFolderArg
NewUnmountFolderArg returns a new UnmountFolderArg instance
type UnmountFolderError ¶
type UnmountFolderError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` }
UnmountFolderError : has no documentation (yet)
func (*UnmountFolderError) UnmarshalJSON ¶
func (u *UnmountFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UnmountFolderError instance
type UnshareFileAPIError ¶
type UnshareFileAPIError struct {}
UnshareFileAPIError is an error-wrapper for the unshare_file route
type UnshareFileArg ¶
type UnshareFileArg struct { string `json:"file"` }File
UnshareFileArg : Arguments for `unshareFile`.
func NewUnshareFileArg ¶
func NewUnshareFileArg(File string) *UnshareFileArg
NewUnshareFileArg returns a new UnshareFileArg instance
type UnshareFileError ¶
type UnshareFileError struct { SharingUserError `json:"user_error,omitempty"` AccessError *SharingFileAccessError `json:"access_error,omitempty"` }UserError *
UnshareFileError : Error result for `unshareFile`.
func (*UnshareFileError) UnmarshalJSON ¶
func (u *UnshareFileError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UnshareFileError instance
type UnshareFolderAPIError ¶
type UnshareFolderAPIError struct {}
UnshareFolderAPIError is an error-wrapper for the unshare_folder route
type UnshareFolderArg ¶
type UnshareFolderArg struct { string `json:"shared_folder_id"` // this folder after it's unshared. Otherwise, it will be removed from their // Dropbox. The current user, who is an owner, will always retain their // copy. LeaveACopy bool `json:"leave_a_copy"` }SharedFolderId
UnshareFolderArg : has no documentation (yet)
func NewUnshareFolderArg ¶
func NewUnshareFolderArg(SharedFolderId string) *UnshareFolderArg
NewUnshareFolderArg returns a new UnshareFolderArg instance
type UnshareFolderError ¶
type UnshareFolderError struct { SharedFolderAccessError `json:"access_error,omitempty"` }AccessError *
UnshareFolderError : has no documentation (yet)
func (*UnshareFolderError) UnmarshalJSON ¶
func (u *UnshareFolderError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UnshareFolderError instance
type UpdateFileMemberAPIError ¶
type UpdateFileMemberAPIError struct { dropbox.APIError EndpointError *FileMemberActionError `json:"error"` }
UpdateFileMemberAPIError is an error-wrapper for the update_file_member route
type UpdateFileMemberArgs ¶
type UpdateFileMemberArgs struct {
ChangeFileMemberAccessArgs
}
UpdateFileMemberArgs : Arguments for `updateFileMember`.
func NewUpdateFileMemberArgs ¶
func NewUpdateFileMemberArgs(File string, Member *MemberSelector, AccessLevel *AccessLevel) *UpdateFileMemberArgs
NewUpdateFileMemberArgs returns a new UpdateFileMemberArgs instance
type UpdateFolderMemberAPIError ¶
type UpdateFolderMemberAPIError struct { dropbox.APIError EndpointError *UpdateFolderMemberError `json:"error"` }
UpdateFolderMemberAPIError is an error-wrapper for the update_folder_member route
type UpdateFolderMemberArg ¶
type UpdateFolderMemberArg struct { string `json:"shared_folder_id"` // Member : The member of the shared folder to update. Only the // `MemberSelector.dropbox_id` may be set at this time. Member *MemberSelector `json:"member"` // AccessLevel : The new access level for `member`. `AccessLevel.owner` is // disallowed. AccessLevel *AccessLevel `json:"access_level"` }SharedFolderId
UpdateFolderMemberArg : has no documentation (yet)
func NewUpdateFolderMemberArg ¶
func NewUpdateFolderMemberArg(SharedFolderId string, Member *MemberSelector, AccessLevel *AccessLevel) *UpdateFolderMemberArg
NewUpdateFolderMemberArg returns a new UpdateFolderMemberArg instance
type UpdateFolderMemberError ¶
type UpdateFolderMemberError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` // MemberError : has no documentation (yet) MemberError *SharedFolderMemberError `json:"member_error,omitempty"` // NoExplicitAccess : If updating the access type required the member to be // added to the shared folder and there was an error when adding the member. NoExplicitAccess *AddFolderMemberError `json:"no_explicit_access,omitempty"` }
UpdateFolderMemberError : has no documentation (yet)
func (*UpdateFolderMemberError) UnmarshalJSON ¶
func (u *UpdateFolderMemberError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UpdateFolderMemberError instance
type UpdateFolderPolicyAPIError ¶
type UpdateFolderPolicyAPIError struct { dropbox.APIError EndpointError *UpdateFolderPolicyError `json:"error"` }
UpdateFolderPolicyAPIError is an error-wrapper for the update_folder_policy route
type UpdateFolderPolicyArg ¶
type UpdateFolderPolicyArg struct { string `json:"shared_folder_id"` // MemberPolicy : Who can be a member of this shared folder. Only applicable // if the current user is on a team. MemberPolicy *MemberPolicy `json:"member_policy,omitempty"` // AclUpdatePolicy : Who can add and remove members of this shared folder. AclUpdatePolicy *AclUpdatePolicy `json:"acl_update_policy,omitempty"` // ViewerInfoPolicy : Who can enable/disable viewer info for this shared // folder. ViewerInfoPolicy *ViewerInfoPolicy `json:"viewer_info_policy,omitempty"` // content inside this shared folder. The current user must be on a team to // set this policy to `SharedLinkPolicy.members`. SharedLinkPolicy *SharedLinkPolicy `json:"shared_link_policy,omitempty"` // LinkSettings : Settings on the link for this folder. LinkSettings *LinkSettings `json:"link_settings,omitempty"` // Actions : A list of `FolderAction`s corresponding to `FolderPermission`s // that should appear in the response's `SharedFolderMetadata.permissions` // field describing the actions the authenticated user can perform on the // folder. Actions []*FolderAction `json:"actions,omitempty"` }SharedFolderId
UpdateFolderPolicyArg : If any of the policies are unset, then they retain their current setting.
func NewUpdateFolderPolicyArg ¶
func NewUpdateFolderPolicyArg(SharedFolderId string) *UpdateFolderPolicyArg
NewUpdateFolderPolicyArg returns a new UpdateFolderPolicyArg instance
type UpdateFolderPolicyError ¶
type UpdateFolderPolicyError struct { dropbox.Tagged // AccessError : has no documentation (yet) AccessError *SharedFolderAccessError `json:"access_error,omitempty"` }
UpdateFolderPolicyError : has no documentation (yet)
func (*UpdateFolderPolicyError) UnmarshalJSON ¶
func (u *UpdateFolderPolicyError) UnmarshalJSON(body []byte) error
UnmarshalJSON deserializes into a UpdateFolderPolicyError instance
type UserFileMembershipInfo ¶
type UserFileMembershipInfo struct { UserMembershipInfo // TimeLastSeen : The UTC timestamp of when the user has last seen the // content, if they have. TimeLastSeen time.Time `json:"time_last_seen,omitempty"` // PlatformType : The platform on which the user has last seen the content, // or unknown. PlatformType *seen_state.PlatformType `json:"platform_type,omitempty"` }
UserFileMembershipInfo : The information about a user member of the shared content with an appended last seen timestamp.
func NewUserFileMembershipInfo ¶
func NewUserFileMembershipInfo(AccessType *AccessLevel, User *UserInfo) *UserFileMembershipInfo
NewUserFileMembershipInfo returns a new UserFileMembershipInfo instance
type UserInfo ¶
type UserInfo struct { // AccountId : The account ID of the user. AccountId string `json:"account_id"` // Email : Email address of user. Email string `json:"email"` // DisplayName : The display name of the user. DisplayName string `json:"display_name"` // SameTeam : If the user is in the same team as current user. SameTeam bool `json:"same_team"` // TeamMemberId : The team member ID of the shared folder member. Only // present if `same_team` is true. TeamMemberId string `json:"team_member_id,omitempty"` }
UserInfo : Basic information about a user. Use `usersAccount` and `usersAccountBatch` to obtain more detailed information.
type UserMembershipInfo ¶
type UserMembershipInfo struct { MembershipInfo // User : The account information for the membership user. User *UserInfo `json:"user"` }
UserMembershipInfo : The information about a user member of the shared content.
func NewUserMembershipInfo ¶
func NewUserMembershipInfo(AccessType *AccessLevel, User *UserInfo) *UserMembershipInfo
NewUserMembershipInfo returns a new UserMembershipInfo instance
type ViewerInfoPolicy ¶
ViewerInfoPolicy : has no documentation (yet)
type Visibility ¶
Visibility : Who can access a shared link. The most open visibility is `public`. The default depends on many aspects, such as team and user preferences and shared folder settings.