diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-22 20:05:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-22 20:05:02 +0000 |
commit | f1c3ceb48d48f5245d0889353145294cf390a3a2 (patch) | |
tree | d3f6110fdd9a677f8f0df19ba323ad6818ee45bc /api-ref | |
parent | bfaa8e05834d4d3c78069af22387427c12e0e496 (diff) | |
parent | 60a2fe0ba8e59f4abbb5e9c5a9cd093818d5b26c (diff) | |
download | swift-f1c3ceb48d48f5245d0889353145294cf390a3a2.tar.gz |
Merge "Use separate headers for versioned_writes' stack and history modes"
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/parameters.yaml | 60 | ||||
-rw-r--r-- | api-ref/source/storage-container-services.inc | 9 |
2 files changed, 40 insertions, 29 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index c43210e7e..d69f866b9 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -666,6 +666,27 @@ X-Fresh-Metadata: in: header required: false type: boolean +X-History-Location: + description: | + The URL-encoded UTF-8 representation of the container that stores + previous versions of objects. If neither this nor ``X-Versions-Location`` + is set, versioning is disabled for this container. ``X-History-Location`` + and ``X-Versions-Location`` cannot both be set at the same time. For more + information about object versioning, see `Object versioning + <http://docs.openstack.org/ developer/swift/api/object_versioning.html>`_. + in: header + required: false + type: string +X-History-Location_resp: + description: | + If present, this container has versioning enabled and the value + is the UTF-8 encoded name of another container. + For more information about object versioning, + see `Object versioning <http://docs.openstack.org/developer/ + swift/api/object_versioning.html>`_. + in: header + required: false + type: string X-Newest: description: | If set to true , Object Storage queries all @@ -728,9 +749,17 @@ X-Remove-Container-name: in: header required: false type: string +X-Remove-History-Location: + description: | + Set to any value to disable versioning. Note that this disables version + that was set via ``X-Versions-Location`` as well. + in: header + required: false + type: string X-Remove-Versions-Location: description: | - Set to any value to disable versioning. + Set to any value to disable versioning. Note that this disables version + that was set via ``X-History-Location`` as well. in: header required: false type: string @@ -801,10 +830,11 @@ X-Trans-Id-Extra: X-Versions-Location: description: | The URL-encoded UTF-8 representation of the container that stores - previous versions of objects. If not set, versioning is disabled - for this container. For more information about object versioning, - see `Object versioning <http://docs.openstack.org/developer/ - swift/api/object_versioning.html>`_. + previous versions of objects. If neither this nor ``X-History-Location`` + is set, versioning is disabled for this container. ``X-Versions-Location`` + and ``X-History-Location`` cannot both be set at the same time. For more + information about object versioning, see `Object versioning + <http://docs.openstack.org/ developer/swift/api/object_versioning.html>`_. in: header required: false type: string @@ -818,26 +848,6 @@ X-Versions-Location_resp: in: header required: false type: string -X-Versions-Mode: - description: | - The versioning mode for this container. The value must be either - ``stack`` or ``history``. If not set, ``stack`` mode will be used. - This setting has no impact unless ``X-Versions-Location`` is set - for the container. For more information about object versioning, - see `Object versioning <http://docs.openstack.org/developer/ - swift/api/object_versioning.html>`_. - in: header - required: false - type: string -X-Versions-Mode_resp: - description: | - If set, this is the versioning mode for this container. The value is either - ``stack`` or ``history``. For more information about object versioning, - see `Object versioning <http://docs.openstack.org/developer/ - swift/api/object_versioning.html>`_. - in: header - required: false - type: string # variables in path account: diff --git a/api-ref/source/storage-container-services.inc b/api-ref/source/storage-container-services.inc index f45a03b26..07edbbb99 100644 --- a/api-ref/source/storage-container-services.inc +++ b/api-ref/source/storage-container-services.inc @@ -85,7 +85,7 @@ Response Parameters - X-Container-Sync-Key: X-Container-Sync-Key_resp - X-Container-Sync-To: X-Container-Sync-To_resp - X-Versions-Location: X-Versions-Location_resp - - X-Versions-Mode: X-Versions-Mode_resp + - X-History-Location: X-History-Location_resp - X-Timestamp: X-Timestamp - X-Trans-Id: X-Trans-Id - Content_Type: Content-Type_listing_resp @@ -199,7 +199,7 @@ Request - X-Container-Sync-To: X-Container-Sync-To - X-Container-Sync-Key: X-Container-Sync-Key - X-Versions-Location: X-Versions-Location - - X-Versions-Mode: X-Versions-Mode + - X-History-Location: X-History-Location - X-Container-Meta-name: X-Container-Meta-name_req - X-Container-Meta-Access-Control-Allow-Origin: X-Container-Meta-Access-Control-Allow-Origin - X-Container-Meta-Access-Control-Max-Age: X-Container-Meta-Access-Control-Max-Age @@ -335,8 +335,9 @@ Request - X-Container-Sync-To: X-Container-Sync-To - X-Container-Sync-Key: X-Container-Sync-Key - X-Versions-Location: X-Versions-Location - - X-Versions-Mode: X-Versions-Mode + - X-History-Location: X-History-Location - X-Remove-Versions-Location: X-Remove-Versions-Location + - X-Remove-History-Location: X-Remove-History-Location - X-Container-Meta-name: X-Container-Meta-name_req - X-Container-Meta-Access-Control-Allow-Origin: X-Container-Meta-Access-Control-Allow-Origin - X-Container-Meta-Access-Control-Max-Age: X-Container-Meta-Access-Control-Max-Age @@ -440,7 +441,7 @@ Response Parameters - X-Trans-Id: X-Trans-Id - Content-Type: Content-Type_cud_resp - X-Versions-Location: X-Versions-Location_resp - - X-Versions-Mode: X-Versions-Mode_resp + - X-History-Location: X-History-Location_resp - X-Storage-Policy: X-Storage-Policy |