Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
###Change log

#### 0.0.37
- 修复ImageX刷新接口参数限制

#### 0.0.36
- 增加ImageX相关API

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="ttvcloud",
version="0.0.36",
version="0.0.37",
keywords=("pip", "ttvcloud", "vcloud-sdk-python"),
description="The TTvcloud SDK for Python",
license="MIT Licence",
Expand Down
5 changes: 1 addition & 4 deletions ttvcloud/imagex/ImageXService.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,8 @@ def get_upload_auth(self, service_ids, expire=60*60):
inline_policy = Policy([statement])
return self.sign_sts2(inline_policy, expire)

# 更新图片URL:action为0表示刷新,为1表示禁用,为2表示解禁
# 更新图片URL:action为0表示刷新,为1表示禁用,为2表示解禁,为4表示预热,为5表示目录刷新,为6表示样式刷新
def update_image_urls(self, service_id, urls, action=0):
if action < 0 or action > 2:
raise Exception("update action should be [0,2], %d" % action)

query = {
'ServiceId': service_id
}
Expand Down