diff options
author | Zuul <zuul@review.opendev.org> | 2022-08-25 07:38:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-08-25 07:38:36 +0000 |
commit | 662e530d8d4e8e74ba087733f1f51cb98d5145cc (patch) | |
tree | b281d66873c596213b6a80fb683eb7ef0b1bafa2 /swiftclient/shell.py | |
parent | 02509acc71e6f609b6a9f3c8055479872bedaf2a (diff) | |
parent | defbb4a8f390c7de73ac6a90fc1ab5009e8105ee (diff) | |
download | python-swiftclient-4.1.0.tar.gz |
Merge "Allow tempurl times to have units"4.1.0
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-x | swiftclient/shell.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py index 4bcb251..882a1c0 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -1388,14 +1388,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) |