@@ -25,9 +25,9 @@ class Object(_base.BaseResource):
2525 "content_disposition" : "content-disposition" ,
2626 "content_encoding" : "content-encoding" ,
2727 "content_type" : "content-type" ,
28- "detect_content_type" : "x-detect-content-type" ,
2928 "delete_after" : "x-delete-after" ,
30- "delete_at" : "x-delete-at"
29+ "delete_at" : "x-delete-at" ,
30+ "is_content_type_detected" : "x-detect-content-type" ,
3131 }
3232
3333 base_path = "/%(container)s"
@@ -59,8 +59,8 @@ class Object(_base.BaseResource):
5959 #: the most recent one. If you omit this header, Object Storage
6060 #: responds faster after it finds one valid replica. Because
6161 #: setting this header to True is more expensive for the back end,
62- #: use it only when it is absolutely needed.
63- newest = resource .header ("x-newest" , type = bool )
62+ #: use it only when it is absolutely needed. *Type: bool*
63+ is_newest = resource .header ("x-newest" , type = bool )
6464 #: TODO(briancurtin) there's a lot of content here...
6565 range = resource .header ("range" , type = dict )
6666 #: See http://www.ietf.org/rfc/rfc2616.txt.
@@ -82,7 +82,8 @@ class Object(_base.BaseResource):
8282 #: Used with temporary URLs to specify the expiry time of the
8383 #: signature. For more information about temporary URLs, see
8484 #: OpenStack Object Storage API v1 Reference.
85- expires = resource .header ("expires" )
85+ #: *Type: datetime object parsed from ISO 8601 formatted string*
86+ expires_at = resource .header ("expires" , type = format .ISO8601 )
8687 #: If you include the multipart-manifest=get query parameter and
8788 #: the object is a large object, the object contents are not
8889 #: returned. Instead, the manifest is returned in the
@@ -113,7 +114,9 @@ class Object(_base.BaseResource):
113114 #: was corrupted, so retry the operation.
114115 etag = resource .header ("etag" )
115116 #: Set to True if this object is a static large object manifest object.
116- is_static_large_object = resource .header ("x-static-large-object" )
117+ #: *Type: bool*
118+ is_static_large_object = resource .header ("x-static-large-object" ,
119+ type = bool )
117120 #: If set, the value of the Content-Encoding metadata.
118121 #: If not set, this header is not returned by this operation.
119122 content_encoding = resource .header ("content-encoding" )
@@ -130,25 +133,28 @@ class Object(_base.BaseResource):
130133 #: If set, the time when the object will be deleted by the system
131134 #: in the format of a UNIX Epoch timestamp.
132135 #: If not set, this header is not returned by this operation.
136+ #: *Type: datetime object parsed from a UNIX epoch*
133137 delete_at = resource .header ("x-delete-at" , type = format .UNIXEpoch )
134138 #: If set, to this is a dynamic large object manifest object.
135139 #: The value is the container and object name prefix of the
136140 #: segment objects in the form container/prefix.
137141 object_manifest = resource .header ("x-object-manifest" )
138142 #: The timestamp of the transaction.
143+ #: *Type: datetime object parsed from a UNIX epoch*
139144 timestamp = resource .header ("x-timestamp" , type = format .UNIXEpoch )
140145 #: The date and time that the object was created or the last
141146 #: time that the metadata was changed.
142- last_modified = resource .header ("last_modified" , alias = "last-modified" )
147+ last_modified_at = resource .header ("last_modified" , alias = "last-modified" )
143148
144149 # Headers for PUT and POST requests
145150 #: Set to chunked to enable chunked transfer encoding. If used,
146151 #: do not set the Content-Length header to a non-zero value.
147152 transfer_encoding = resource .header ("transfer-encoding" )
148153 #: If set to true, Object Storage guesses the content type based
149154 #: on the file extension and ignores the value sent in the
150- #: Content-Type header, if present.
151- detect_content_type = resource .header ("x-detect-content-type" , type = bool )
155+ #: Content-Type header, if present. *Type: bool*
156+ is_content_type_detected = resource .header ("x-detect-content-type" ,
157+ type = bool )
152158 #: If set, this is the name of an object used to create the new
153159 #: object by copying the X-Copy-From object. The value is in form
154160 #: {container}/{object}. You must UTF-8-encode and then URL-encode
0 commit comments