Skip to content

Commit d640aef

Browse files
authored
Merge pull request #113 from Tanc009/master
publish jdcloud-sdk-python 1.6.78
2 parents ac0cfd6 + dee8368 commit d640aef

36 files changed

Lines changed: 1176 additions & 1 deletion
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
更新历史
2+
---------------------------------------------------------------------
3+
API版本:0.8.5
4+
5+
| 发布时间 | 版本号 | 更新 | 说明
6+
| ---------------| -----------|-----------|---------|
7+
| 2018-10-17 | 0.1.0 | 自定义域名、用量监控 | 自定义域名、用量监控
8+
| 2018-10-24 | 0.2.0 | 完善接口 |完善接口
9+
| 2018-10-26 | 0.3.0 | 添加原图保护接口,完善自定义域名接口 | 添加原图保护接口,完善自定义域名接口
10+
| 2018-11-21 | 0.4.0 | 添加bucket back source配置openapi | 添加bucket back source配置openapi
11+
| 2018-11-29 | 0.4.2 | 修改bucket back source配置openapi | 修改bucket back source配置openapi
12+
| 2018-12-21 | 0.4.4 | 解决map的生成问题 | 解决map的生成问题
13+
| 2018-12-21 | 0.4.5 | 将镜像回源的接口改为对外的接口 | 将镜像回源的接口改为对外的接口
14+
| 2019-01-03 | 0.5.0 | 添加bucket相关openapi接口 | 添加bucket相关openapi接口
15+
| 2019-04-28 | 0.5.5 | 添加清除缓存中用户的OSS开通状态接口 | 添加清除缓存中用户的OSS开通状态接口
16+
| 2019-05-16 | 0.6.0 | 添加签名接口 | 添加签名接口
17+
| 2019-05-20 | 0.6.5 | 添加开通服务接口 | 添加开通服务接口
18+
| 2019-05-20 | 0.7.0 | 添加Bucket容量接口 | 添加Bucket容量接口
19+
| 2019-06-10 | 0.7.2 | 更新签名接口 | 更新签名接口
20+
| 2019-06-26 | 0.7.5 | 修改Bucket容量接口 | 修改Bucket容量接口
21+
| 2019-07-08 | 0.7.6 | 修改open service接口 | 修改open service接口
22+
| 2019-07-10 | 0.7.9 | 添加设置用户BillCode内部接口 | 添加设置用户BillCode内部接口
23+
| 2019-07-30 | 0.8.0 | 将Single Bucket用量查询接口对外开放 | 将Single Bucket用量查询接口对外开放
24+
| 2019-08-01 | 0.8.2 | 根据bucketId查询bucket信息 | 根据bucketId查询bucket信息
25+
| 2019-08-19 | 0.8.3 | 批量查询bucket信息(用于tagging) | 批量查询bucket信息(用于tagging)
26+
| 2019-09-19 | 0.8.4 | 历史数据同步接口 | 历史数据同步接口
27+
| 2020-08-13 | 0.8.5 | 历史数据同步接口 | 历史数据同步接口

jdcloud_sdk/services/ossopenapi/__init__.py

Whitespace-only changes.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class AbortHistoricalReplicatTaskRequest(JDCloudRequest):
23+
"""
24+
停止bucket名称获取该bucket下的同步任务
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(AbortHistoricalReplicatTaskRequest, self).__init__(
29+
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/{taskId}/abort', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AbortHistoricalReplicatTaskParameters(object):
34+
35+
def __init__(self, regionId, bucketName, taskId, ):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: Bucket名称
39+
:param taskId: 任务ID
40+
"""
41+
42+
self.regionId = regionId
43+
self.bucketName = bucketName
44+
self.taskId = taskId
45+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateHistoricalReplicatTaskRequest(JDCloudRequest):
23+
"""
24+
创建历史同步任务
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateHistoricalReplicatTaskRequest, self).__init__(
29+
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateHistoricalReplicatTaskParameters(object):
34+
35+
def __init__(self, regionId, bucketName, action, bucketName, bucketRegion, targetBucketName, targetBucketRegion, storageClass, ):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: Bucket名称
39+
:param action: 是否覆盖
40+
:param bucketName: bucket名称
41+
:param bucketRegion: bucket所属区域
42+
:param targetBucketName: 目标bucket名称
43+
:param targetBucketRegion: 目标bucket所属区域
44+
:param storageClass: 存储类型
45+
"""
46+
47+
self.regionId = regionId
48+
self.bucketName = bucketName
49+
self.action = action
50+
self.bucketName = bucketName
51+
self.bucketRegion = bucketRegion
52+
self.targetBucketName = targetBucketName
53+
self.targetBucketRegion = targetBucketRegion
54+
self.storageClass = storageClass
55+
self.prefixSet = None
56+
57+
def setPrefixSet(self, prefixSet):
58+
"""
59+
:param prefixSet: (Optional)
60+
"""
61+
self.prefixSet = prefixSet
62+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteBackSourceConfigurationRequest(JDCloudRequest):
23+
"""
24+
删除回源配置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteBackSourceConfigurationRequest, self).__init__(
29+
'/regions/{regionId}/buckets/{bucketName}/backSource', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteBackSourceConfigurationParameters(object):
34+
35+
def __init__(self, regionId, bucketName, ):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: Bucket名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.bucketName = bucketName
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetBackSourceConfigurationRequest(JDCloudRequest):
23+
"""
24+
获取回源配置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GetBackSourceConfigurationRequest, self).__init__(
29+
'/regions/{regionId}/buckets/{bucketName}/backSource', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetBackSourceConfigurationParameters(object):
34+
35+
def __init__(self, regionId, bucketName, ):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: Bucket名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.bucketName = bucketName
43+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetHistoricalReplicatTaskRequest(JDCloudRequest):
23+
"""
24+
根据bucket名称获取该bucket下的同步任务
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GetHistoricalReplicatTaskRequest, self).__init__(
29+
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/{taskId}', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetHistoricalReplicatTaskParameters(object):
34+
35+
def __init__(self, regionId, bucketName, taskId, ):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: Bucket名称
39+
:param taskId: 任务ID
40+
"""
41+
42+
self.regionId = regionId
43+
self.bucketName = bucketName
44+
self.taskId = taskId
45+
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetSingleBucketCapacityRequest(JDCloudRequest):
23+
"""
24+
根据type获取指定bucket用量数据
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GetSingleBucketCapacityRequest, self).__init__(
29+
'/regions/{regionId}/capacity/{bucketName}', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetSingleBucketCapacityParameters(object):
34+
35+
def __init__(self, regionId, bucketName, capacityTypes, method):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: 查询用量的指定bucket
39+
:param capacityTypes: <p>查询用量数据类型:</p><br><code>1000040</code>:标准存储<br><code>1000041</code>:低冗余存储<br><code>1000042</code>:归档存储<br><code>1000043</code>归档overHead存储:<br><code>1000044</code>低频存储:<br><code>1000045</code>低频overHead存储:<br><code>1</code>:内网GET流量<br><code>2</code>:内网HEAD流量<br><code>3</code>:内网PUT流量<br><code>4</code>:内网POST流量<br><code>5</code>:内网DELETE流量<br><code>6</code>:内网OPTIONS流量<br><code>7</code>:内网TRACE流量<br><code>11</code>:外网GET流量<br><code>12</code>:外网HEAD流量<br><code>13</code>:外网PUT流量<br><code>14</code>:外网POST流量<br><code>15</code>:外网DELETE流量<br><code>16</code>:外网OPTIONS流量<br><code>17</code>:外网TRACE流量<br><code>21</code>:CDN GET流量<br><code>22</code>:CDN HEAD流量<br><code>23</code>:CDN PUT流量<br><code>24</code>:CDN POST流量<br><code>25</code>:CDN DELETE流量<br><code>26</code>:CDN OPTIONS流量<br><code>27</code>:CDN TRACE流量<br><code>31</code>:内网GET数<br><code>32</code>:内网HEAD数<br><code>33</code>:内网PUT数<br><code>34</code>:内网POST数<br><code>35</code>:内网DELETE数<br><code>36</code>:内网OPTIONS数<br><code>37</code>:内网TRACE数<br><code>51</code>:外网GET数<br><code>52</code>:外网HEAD数<br><code>53</code>:外网PUT数<br><code>54</code>:外网POST数<br><code>55</code>:外网DELETE数<br><code>56</code>:外网OPTIONS数<br><code>57</code>:外网TRACE数<br><code>61</code>:CDN GET数<br><code>62</code>:CDN HEAD数<br><code>63</code>:CDN PUT数<br><code>64</code>:CDN POST数<br><code>65</code>:CDN DELETE数<br><code>66</code>:CDN OPTIONS数<br><code>67</code>:CDN TRACE数<br><code>71</code>:归档提前删除<br><code>72</code>:低频提前删除<br><code>81</code>:归档取回Bulk<br><code>82</code>:归档取回Std<br><code>83</code>:归档取回Exp<br><code>84</code>:低频数据取回
40+
41+
:param method: 返回数据的方式: <code>1</code>:recent(区间值), <code>2</code>:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。)
42+
"""
43+
44+
self.regionId = regionId
45+
self.bucketName = bucketName
46+
self.capacityTypes = capacityTypes
47+
self.beginTime = None
48+
self.endTime = None
49+
self.periodType = None
50+
self.method = method
51+
52+
def setBeginTime(self, beginTime):
53+
"""
54+
:param beginTime: (Optional) 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z'
55+
"""
56+
self.beginTime = beginTime
57+
58+
def setEndTime(self, endTime):
59+
"""
60+
:param endTime: (Optional) 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z'
61+
"""
62+
self.endTime = endTime
63+
64+
def setPeriodType(self, periodType):
65+
"""
66+
:param periodType: (Optional) 查询数据的聚合方式:<br><code>0</code>:all, 最大查询区间365天 <br><code>1</code>:hour,最大查询区间31天。默认1<br><code>2</code>:day, 最大查询区间365天。
67+
"""
68+
self.periodType = periodType
69+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ListHistoricalReplicatTasksRequest(JDCloudRequest):
23+
"""
24+
根据bucket名称获取该bucket下的同步任务列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ListHistoricalReplicatTasksRequest, self).__init__(
29+
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ListHistoricalReplicatTasksParameters(object):
34+
35+
def __init__(self, regionId, bucketName, ):
36+
"""
37+
:param regionId: 区域ID
38+
:param bucketName: Bucket名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.bucketName = bucketName
43+
self.marker = None
44+
self.limit = None
45+
46+
def setMarker(self, marker):
47+
"""
48+
:param marker: (Optional) 同步任务列表开始的key
49+
"""
50+
self.marker = marker
51+
52+
def setLimit(self, limit):
53+
"""
54+
:param limit: (Optional) 每次查询返回的结果数,默认为1000
55+
"""
56+
self.limit = limit
57+

0 commit comments

Comments
 (0)