From 49a15959b15dcaefaff48146a7afabf640934f06 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 8 Feb 2018 00:33:41 +0100 Subject: add ObjectHeaders --- generated.go.in | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'generated.go.in') diff --git a/generated.go.in b/generated.go.in index 680b551..4a831d2 100644 --- a/generated.go.in +++ b/generated.go.in @@ -8,7 +8,7 @@ { "Header": "X-Account-Meta-Temp-URL-Key-2", "Attribute": "TempURLKey2", "Type": "String" }, { "Header": "X-Account-Meta-Temp-URL-Key", "Attribute": "TempURLKey", "Type": "String" }, { "Header": "X-Account-Object-Count", "Attribute": "ObjectCount", "Type": "Uint64Readonly" }, - { "Header": "X-Timestamp", "Attribute": "Timestamp", "Type": "UnixTimeReadonly" } + { "Header": "X-Timestamp", "Attribute": "CreatedAt", "Type": "UnixTimeReadonly" } ] }, "Container": { @@ -26,9 +26,24 @@ { "Header": "X-Container-Write", "Attribute": "WriteACL", "Type": "String" }, { "Header": "X-History-Location", "Attribute": "HistoryLocation", "Type": "String" }, { "Header": "X-Storage-Policy", "Attribute": "StoragePolicy", "Type": "String" }, - { "Header": "X-Timestamp", "Attribute": "Timestamp", "Type": "UnixTimeReadonly" }, + { "Header": "X-Timestamp", "Attribute": "CreatedAt", "Type": "UnixTimeReadonly" }, { "Header": "X-Versions-Location", "Attribute": "VersionsLocation", "Type": "String" } ] + }, + "Object": { + "Fields": [ + { "Header": "Content-Disposition", "Attribute": "ContentDisposition", "Type": "String" }, + { "Header": "Content-Encoding", "Attribute": "ContentEncoding", "Type": "String" }, + { "Header": "Content-Length", "Attribute": "SizeBytes", "Type": "Uint64" }, + { "Header": "Content-Type", "Attribute": "ContentType", "Type": "String" }, + { "Header": "Etag", "Attribute": "Etag", "Type": "String" }, + { "Header": "Last-Modified", "Attribute": "UpdatedAt", "Type": "HTTPTimeReadonly" }, + { "Header": "X-Delete-At", "Attribute": "ExpiresAt", "Type": "UnixTime" }, + { "Header": "X-Object-Meta-", "Attribute": "Metadata", "Type": "Metadata" }, + { "Header": "X-Symlink-Target-Account", "Attribute": "SymlinkTargetAccount", "Type": "String" }, + { "Header": "X-Symlink-Target", "Attribute": "SymlinkTarget", "Type": "String" }, + { "Header": "X-Timestamp", "Attribute": "CreatedAt", "Type": "UnixTimeReadonly" } + ] } } --- -- cgit v1.2.3