summaryrefslogtreecommitdiff
path: root/openstackclient/object/v1
Commit message (Collapse)AuthorAgeFilesLines
* Add recursive object delete for containersTerryHowe2016-02-051-0/+14
| | | | Change-Id: Ib291e79864c218464e842a08efd3742193ba5ff0
* log take_action parameters in a single placeAkihiro Motoki2016-02-023-74/+10
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Fix up object-store show commandsSteve Martinelli2015-10-103-0/+6
| | | | | | | | | | | | | | | | 1) Change metadata to appear under a common 'properties' key, and use the utility to format them, this applied to object, account and container. 2) Clean up container and object output, which were setting the x-container-meta-owner property, but this is metadata only for the container, so it's pointless to have, removed it. 3) Container show was showing read/write ACLs and sync stuff, but these are not being returned by my swift by default, so I moved these to be checks, so we don't clutter the output. Change-Id: Ife7521fe9c2724035b06963c118bd6016ba2f5b5
* add set/unset support for objects in object storeSteve Martinelli2015-10-061-0/+74
| | | | | | | | | add docs and command support to set and unset metadata of objects that are stored in an object store (swift). Closes-Bug: #1501945 Change-Id: If838a4b3343b6ddb97cd4bd1cb63f0ba1c1a00a1
* add support for set/unset of container propertiesSteve Martinelli2015-10-061-0/+62
| | | | | | | | include docs and commands to set and unset container properties Partial-Bug: #1501945 Change-Id: I8d7e8cf356a2321a37ed940c4e10cae411b94dfd
* Add support for showing account detailsSteve Martinelli2015-10-021-1/+13
| | | | | | | | | | add the command `openstack account show` that lists details about the object store account that the user authenticated against. Partial-Bug: #1501943 Change-Id: I1246dafee812b63a41d43be4e3598224364a2c11
* Add support for updating swift account propertiesSteve Martinelli2015-10-011-0/+71
| | | | | | | | | this patch adds support for creating/updating and removing properties (nee: metadata) for object store accounts. Partial-Bug: #1501943 Change-Id: I3ed70a5d8bd8920fedb79adc60cdc602261d5eef
* Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-012-8/+8
| | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* More minor docs fixesTerryHowe2015-07-191-0/+0
| | | | Change-Id: Ia74b8e14bacb562d9bac29221f511acbab5296df
* Fine tune some of the helps commandsSteve Martinelli2015-01-132-2/+2
| | | | | | | | | try and add some consistency with the show and delete commands. replace 'show x' with 'display x' change 'delete a y' with just 'delete y' Change-Id: I47dfa8ee23ac5c41b355796415eb515155832f65
* Command object docs: container, objectDean Troyer2014-12-302-25/+25
| | | | Change-Id: Ie3df543a28cbee0cc809310a05f431c97b2c7e70
* Move object-store commands to low-level APIDean Troyer2014-10-014-438/+24
| | | | | | | | api.object_store.APIv1 now contains the formerly top-level functions implementing the object-store REST client. This replaces the old-style ObjectClientv1 that is no longer necessary. Change-Id: I7d8fea326b214481e7d6b24119bd41777c6aa968
* Merge "Multiple args for object and container commands"Jenkins2014-09-182-34/+57
|\
| * Multiple args for object and container commandsTerry Howe2014-09-062-34/+57
| | | | | | | | | | | | | | Have object and container create and delete handle multiple arguments. Change-Id: I389358c13ac2d99655ca26e784e3d299286c0af3
* | Add support for 'file' format objectsSteve Martinelli2014-09-151-0/+4
| | | | | | | | | | | | | | | | Some objects can be saved as 'dirname/filename' which causes the existing support to fail. The correct behaviour should be to create the directories needed. Change-Id: I71c61bc3b0f76a3e6d2703bd45508f9d6483546e
* | Add preliminary save container supportSteve Martinelli2014-09-152-0/+43
| | | | | | | | | | | | | | | | Save all objects from a container implements bp: swift-client Change-Id: I7f2437236574e212033e63d768929d813289ed05
* | Add preliminary support for downloading objectsSteve Martinelli2014-09-152-0/+62
| | | | | | | | | | | | | | Added command and library to download a single object from swift Change-Id: I3dc47b414ff37b526e6f633aa83ac3aa4b5be0ae implements: bp swift-client
* | Use Keystone client session.SessionDean Troyer2014-09-082-8/+8
|/ | | | | | | | | | | | | | This replaces the restapi requests wrapper with the one from Keystone client so we can take advantage of the auth plugins. As a first step only the v2 and v3 token and password plugins are supported. This maintainis no changes to the command options or environment variables. The next steps will include reworking the other API client interfaces to fully utilize the single auth session. Blueprint: ksc-session-auth Change-Id: I47ec63291e4c3cf36c8061299a4764f60b36ab89
* Change app.restapi to app.client_manager.sessionDean Troyer2014-08-254-56/+55
| | | | | | | | | | | This is step 1 toward using Keystone client's session.Session as the primary session/requests interface in OSC. * Move the session create into ClientManager and rename 'restapi' attribute to 'session' * Set up ClientManager and session loggers * Fix container and object command references to restapi/api Change-Id: I013d81520b336c7a6422cd22c05d1d65655e64f8
* Add commands for object upload and deleteSteve Martinelli2014-08-082-0/+109
| | | | | | | | Add commands to upload an object to a container, and to delete an object from a container. Change-Id: I37c02315495bba5abe612733d1109a3d4ce256a1 implements: bp swift-client
* Add container create and delete supportSteve Martinelli2014-08-032-0/+90
| | | | | | | Add basic container create and delete support to OSC. Change-Id: Ia104db9d7e580d33097ea33a5690998f817995d1 implements: bp swift-client
* Fix PEP8 E302 errorsDean Troyer2014-07-222-4/+4
| | | | | | Also add remaining skipped checks to HACKING Change-Id: I0c4333ce29597e0a8a233af17c15bed2b4d0711f
* replace string format arguments with function parametersChristian Berendt2014-05-202-4/+4
| | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* Merge "Remove copyright from empty files"Jenkins2014-01-232-24/+0
|\
| * Remove copyright from empty filesAlexander Ignatov2014-01-202-24/+0
| | | | | | | | | | | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* | Merge "Remove remaining print statements"Jenkins2014-01-231-1/+0
|\ \ | |/ |/|
| * Remove remaining print statementsDean Troyer2014-01-221-1/+0
| | | | | | | | | | | | I think these are the last two stragglers, including debugging lines Change-Id: Ic3dd98480211d0f7d3cc951bec5cd54f902a101f
* | Bring RESTApi closer to ithe imminent keystoneclient.SessionDean Troyer2013-12-032-23/+21
|/ | | | | | | Prepare to use the (soon to be) common Session from keystoneclient * Rework RESTApi to eventually be a subclass of keystoneclient.Session Change-Id: I68e610f8b19a3f6267a93f7bf3de54a228be68aa
* Restore Object API name 'object-store'Dean Troyer2013-11-252-4/+4
| | | | | | It's used in the service catalog, doh! Change-Id: If8f6db49c84756fd8e58cc68910160da4cd99b5d
* Add object-store show commandsDean Troyer2013-09-264-1/+149
| | | | | | | * Add lib.container.show_container() and lib.object.show_object() * Add container and object show commands Change-Id: I963d664c55b59739453345f0f353aa2eaf1bf70e
* Object API commands using our REST API layerDean Troyer2013-08-286-0/+416
* Add object-store API to ClientManager * Add object-store client * Add Object API library in openstackclient.object.v1.lib * Add Object API {container,object} list commands * Add library tests * Add command tests This should complete the Object v1 container and object list commands Change-Id: Ib1770d45efa8871959826b85faafa1e0bcef0a03