DBFILESGetTemporaryUploadLinkArg
Objective-C
@interface DBFILESGetTemporaryUploadLinkArg
: NSObject <DBSerializable, NSCopying>
Swift
class DBFILESGetTemporaryUploadLinkArg : NSObject, DBSerializable, NSCopying
The GetTemporaryUploadLinkArg
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Contains the path and other optional modifiers for the future upload commit. Equivalent to the parameters provided to
upload
.Declaration
Objective-C
@property (nonatomic, readonly) DBFILESCommitInfo *_Nonnull commitInfo;
Swift
var commitInfo: DBFILESCommitInfo { get }
-
How long before this link expires, in seconds. Attempting to start an upload with this link longer than this period of time after link creation will result in an error.
Declaration
Objective-C
@property (nonatomic, readonly) NSNumber *_Nonnull duration;
Swift
var duration: NSNumber { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithCommitInfo: (nonnull DBFILESCommitInfo *)commitInfo duration:(nullable NSNumber *)duration;
Swift
init(commitInfo: DBFILESCommitInfo, duration: NSNumber?)
Parameters
commitInfo
Contains the path and other optional modifiers for the future upload commit. Equivalent to the parameters provided to
upload
.duration
How long before this link expires, in seconds. Attempting to start an upload with this link longer than this period of time after link creation will result in an error.
Return Value
An initialized instance.
-
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initWithCommitInfo: (nonnull DBFILESCommitInfo *)commitInfo;
Swift
init(commitInfo: DBFILESCommitInfo)
Parameters
commitInfo
Contains the path and other optional modifiers for the future upload commit. Equivalent to the parameters provided to
upload
.Return Value
An initialized instance.