SharedFileMetadata

public class SharedFileMetadata : CustomStringConvertible, JSONRepresentable

Properties of the shared file.

  • The current user’s access level for this shared file.

    Declaration

    Swift

    public let accessType: Sharing.AccessLevel?
  • id

    The ID of the file.

    Declaration

    Swift

    public let id: String
  • The expected metadata of the link associated for 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.

    Declaration

    Swift

    public let expectedLinkMetadata: Sharing.ExpectedSharedContentLinkMetadata?
  • The metadata of the link associated for the file. This is for an unreleased feature so it may not be returned yet.

    Declaration

    Swift

    public let linkMetadata: Sharing.SharedContentLinkMetadata?
  • The name of this file.

    Declaration

    Swift

    public let name: String
  • The display names of the users that own the file. If 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.

    Declaration

    Swift

    public let ownerDisplayNames: [String]?
  • The team that owns the file. This field is not present if the file is not owned by a team.

    Declaration

    Swift

    public let ownerTeam: Users.Team?
  • The ID of the parent shared folder. This field is present only if the file is contained within a shared folder.

    Declaration

    Swift

    public let parentSharedFolderId: String?
  • The cased path to be used for display purposes only. In 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.

    Declaration

    Swift

    public let pathDisplay: String?
  • The lower-case full path of this file. Absent for unmounted files.

    Declaration

    Swift

    public let pathLower: String?
  • The sharing permissions that requesting user has on this file. This corresponds to the entries given in actions in GetFileMetadataBatchArg or actions in GetFileMetadataArg.

    Declaration

    Swift

    public let permissions: [Sharing.FilePermission]?
  • Policies governing this shared file.

    Declaration

    Swift

    public let policy: Sharing.FolderPolicy
  • URL for displaying a web preview of the shared file.

    Declaration

    Swift

    public let previewUrl: String
  • Timestamp indicating when the current user was invited to 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.

    Declaration

    Swift

    public let timeInvited: Date?
  • Declaration

    Swift

    public var description: String { get }