summaryrefslogtreecommitdiff
path: root/swiftclient/shell.py
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2020-10-15 14:05:28 -0700
committerTim Burke <tim.burke@gmail.com>2022-08-19 17:40:10 -0700
commitdefbb4a8f390c7de73ac6a90fc1ab5009e8105ee (patch)
tree53844949e13846163414cd6f9f21c312c01da6e3 /swiftclient/shell.py
parent7f2649bfb717f0f1cc077c04e206841581d6dab5 (diff)
downloadpython-swiftclient-defbb4a8f390c7de73ac6a90fc1ab5009e8105ee.tar.gz
Allow tempurl times to have units
Specifically, let users add a suffix for seconds, minutes, hours, or days. Change-Id: Ibbe7e5aa8aa8e54935da76109c2ea13fb83bc7ab
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-xswiftclient/shell.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 5bcff7f..ed39b81 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -1381,14 +1381,16 @@ Positional arguments:
<method> An HTTP method to allow for this temporary URL.
Usually 'GET' or 'PUT'.
<time> The amount of time the temporary URL will be
- valid. The time can be specified in two ways:
- an integer representing the time in seconds or an
- ISO 8601 timestamp in a specific format.
- If --absolute is passed and time
- is an integer, the seconds are intepreted as the Unix
- timestamp when the temporary URL will expire. The ISO
- 8601 timestamp can be specified in one of following
- formats:
+ valid. The time can be specified in three ways:
+ an integer representing the time in seconds;
+ a number with a 's', 'm', 'h', or 'd' suffix to specify
+ the time in seconds, minutes, hours, or days; or
+ an ISO 8601 timestamp in a specific format.
+ If --absolute is passed and time is an integer, the
+ seconds are intepreted as the Unix timestamp when the
+ temporary URL will expire.
+ The ISO 8601 timestamp can be specified in one of
+ following formats:
i) Complete date: YYYY-MM-DD (eg 1997-07-16)