You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pangea-sdk/service/share/api.go
+6
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,9 @@ type ItemData struct {
81
81
BillableSizeint`json:"billable_size"`// The number of billable bytes (includes Metadata, Tags, etc.) for the object.
82
82
CreatedAtstring`json:"created_at"`// The date and time the object was created.
83
83
ExternalBucketKeystring`json:"external_bucket_key"`// The key in the external bucket that contains this file.
84
+
FileTTLstring`json:"file_ttl,omitempty"`// The explicit file TTL setting for this object.
85
+
FileTTLEffectivestring`json:"file_ttl_effective,omitempty"`// The effective file TTL setting for this object, either explicitly set or inherited (see file_ttl_from_id.)
86
+
FileTTLFromIDstring`json:"file_ttl_from_id,omitempty"`// The ID of the object the expiry / TTL is set from. Either a service configuration, the object itself, or a parent folder.
84
87
Folderstring`json:"folder"`// The full path to the folder the object is stored in.
85
88
IDstring`json:"id"`// The ID of a stored object.
86
89
MD5string`json:"md5"`// The MD5 hash of the file contents. Cannot be written to.
@@ -146,6 +149,7 @@ type FolderCreateRequest struct {
146
149
pangea.BaseRequest
147
150
148
151
Namestring`json:"name,omitempty"`// The name of an object.
152
+
FileTTL*string`json:"file_ttl,omitempty"`// Duration until files within this folder are automatically deleted.
149
153
MetadataMetadata`json:"metadata,omitempty"`// A set of string-based key/value pairs used to provide additional data about an object.
150
154
ParentIDstring`json:"parent_id,omitempty"`// The ID of a stored object.
151
155
Folderstring`json:"folder,omitempty"`// The folder to place the folder in. Must match `parent_id` if also set.
@@ -226,6 +230,7 @@ type PutRequest struct {
226
230
MimeTypestring`json:"mimetype,omitempty"`// The MIME type of the file, which will be verified by the server if provided. Uploads not matching the supplied MIME type will be rejected.
227
231
ParentIDstring`json:"parent_id,omitempty"`// The parent ID of the object (a folder). Leave blank to keep in the root folder.
228
232
Folderstring`json:"folder,omitempty"`// The path to the parent folder. Leave blank for the root folder. Path must resolve to `parent_id` if also set.
233
+
FileTTL*string`json:"file_ttl,omitempty"`// The TTL before expiry for the file.
229
234
Passwordstring`json:"password,omitempty"`// An optional password to protect the file with. Downloading the file will require this password.
230
235
PasswordAlgorithmstring`json:"password_algorithm,omitempty"`// An optional password algorithm to protect the file with. See symmetric vault password_algorithm.
231
236
SHA1string`json:"sha1,omitempty"`// The hexadecimal-encoded SHA1 hash of the file data, which will be verified by the server if provided.
@@ -304,6 +309,7 @@ type UpdateRequest struct {
304
309
AddPasswordstring`json:"add_password,omitempty"`// Protect the file with the supplied password.
305
310
AddPasswordAlgorithmstring`json:"add_password_algorithm,omitempty"`// The algorithm to use to password protect the file.
306
311
AddTagsTags`json:"add_tags,omitempty"`// A list of Tags to add. It is not an error to provide a tag which already exists.
312
+
FileTTL*string`json:"file_ttl,omitempty"`// Set the file TTL.
307
313
Namestring`json:"name,omitempty"`// Sets the object's Name.
308
314
MetadataMetadata`json:"metadata,omitempty"`// Set the object's metadata.
309
315
RemoveMetadataMetadata`json:"remove_metadata,omitempty"`// A list of metadata key/values to remove in the object. It is not an error for a provided key to not exist. If a provided key exists but doesn't match the provided value, it will not be removed.
0 commit comments