Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@lukalt
Copy link

@lukalt lukalt commented Apr 2, 2021

Currently, the API supports copying one object to another location within an OpenStack instance. For this purpose, the PUT operation is used and the source object location is specified using the X-Copy-From header (https://docs.openstack.org/api-ref/object-store/?expanded=copy-object-detail#copy-object).

In addition, OpenStack allows specifying different options using headers, e.g. X-Delete-After can be used to set a TTL for an object. For similar operations (like PUT), these headers can be set using the ObjectPutOptions but there is currently no way to do this for the copy operation.

This pr introduces an optional argument of the type ObjectCopyOptions for the copy() option the same way it is implemented for the other operations.
Furthermore, I've added methods for specifying the TTL without explicitly setting the headers.

In addition, I've updated the version of the shade plugin as this significantly speeds up the building process.

I don't think unit tests are applicable here but I have tested my changes manually against OVH OpenStack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.