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
27 changes: 27 additions & 0 deletions jdcloud_sdk/services/ossopenapi/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
更新历史
---------------------------------------------------------------------
API版本:0.8.5

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

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class AbortHistoricalReplicatTaskRequest(JDCloudRequest):
"""
停止bucket名称获取该bucket下的同步任务
"""

def __init__(self, parameters, header=None, version="v1"):
super(AbortHistoricalReplicatTaskRequest, self).__init__(
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/{taskId}/abort', 'POST', header, version)
self.parameters = parameters


class AbortHistoricalReplicatTaskParameters(object):

def __init__(self, regionId, bucketName, taskId, ):
"""
:param regionId: 区域ID
:param bucketName: Bucket名称
:param taskId: 任务ID
"""

self.regionId = regionId
self.bucketName = bucketName
self.taskId = taskId

Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class CreateHistoricalReplicatTaskRequest(JDCloudRequest):
"""
创建历史同步任务
"""

def __init__(self, parameters, header=None, version="v1"):
super(CreateHistoricalReplicatTaskRequest, self).__init__(
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/', 'POST', header, version)
self.parameters = parameters


class CreateHistoricalReplicatTaskParameters(object):

def __init__(self, regionId, bucketName, action, bucketName, bucketRegion, targetBucketName, targetBucketRegion, storageClass, ):
"""
:param regionId: 区域ID
:param bucketName: Bucket名称
:param action: 是否覆盖
:param bucketName: bucket名称
:param bucketRegion: bucket所属区域
:param targetBucketName: 目标bucket名称
:param targetBucketRegion: 目标bucket所属区域
:param storageClass: 存储类型
"""

self.regionId = regionId
self.bucketName = bucketName
self.action = action
self.bucketName = bucketName
self.bucketRegion = bucketRegion
self.targetBucketName = targetBucketName
self.targetBucketRegion = targetBucketRegion
self.storageClass = storageClass
self.prefixSet = None

def setPrefixSet(self, prefixSet):
"""
:param prefixSet: (Optional)
"""
self.prefixSet = prefixSet

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class DeleteBackSourceConfigurationRequest(JDCloudRequest):
"""
删除回源配置
"""

def __init__(self, parameters, header=None, version="v1"):
super(DeleteBackSourceConfigurationRequest, self).__init__(
'/regions/{regionId}/buckets/{bucketName}/backSource', 'DELETE', header, version)
self.parameters = parameters


class DeleteBackSourceConfigurationParameters(object):

def __init__(self, regionId, bucketName, ):
"""
:param regionId: 区域ID
:param bucketName: Bucket名称
"""

self.regionId = regionId
self.bucketName = bucketName

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class GetBackSourceConfigurationRequest(JDCloudRequest):
"""
获取回源配置
"""

def __init__(self, parameters, header=None, version="v1"):
super(GetBackSourceConfigurationRequest, self).__init__(
'/regions/{regionId}/buckets/{bucketName}/backSource', 'GET', header, version)
self.parameters = parameters


class GetBackSourceConfigurationParameters(object):

def __init__(self, regionId, bucketName, ):
"""
:param regionId: 区域ID
:param bucketName: Bucket名称
"""

self.regionId = regionId
self.bucketName = bucketName

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class GetHistoricalReplicatTaskRequest(JDCloudRequest):
"""
根据bucket名称获取该bucket下的同步任务
"""

def __init__(self, parameters, header=None, version="v1"):
super(GetHistoricalReplicatTaskRequest, self).__init__(
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/{taskId}', 'GET', header, version)
self.parameters = parameters


class GetHistoricalReplicatTaskParameters(object):

def __init__(self, regionId, bucketName, taskId, ):
"""
:param regionId: 区域ID
:param bucketName: Bucket名称
:param taskId: 任务ID
"""

self.regionId = regionId
self.bucketName = bucketName
self.taskId = taskId

Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class GetSingleBucketCapacityRequest(JDCloudRequest):
"""
根据type获取指定bucket用量数据
"""

def __init__(self, parameters, header=None, version="v1"):
super(GetSingleBucketCapacityRequest, self).__init__(
'/regions/{regionId}/capacity/{bucketName}', 'POST', header, version)
self.parameters = parameters


class GetSingleBucketCapacityParameters(object):

def __init__(self, regionId, bucketName, capacityTypes, method):
"""
:param regionId: 区域ID
:param bucketName: 查询用量的指定bucket
: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>:低频数据取回

:param method: 返回数据的方式: <code>1</code>:recent(区间值), <code>2</code>:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。)
"""

self.regionId = regionId
self.bucketName = bucketName
self.capacityTypes = capacityTypes
self.beginTime = None
self.endTime = None
self.periodType = None
self.method = method

def setBeginTime(self, beginTime):
"""
:param beginTime: (Optional) 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z'
"""
self.beginTime = beginTime

def setEndTime(self, endTime):
"""
:param endTime: (Optional) 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z'
"""
self.endTime = endTime

def setPeriodType(self, periodType):
"""
:param periodType: (Optional) 查询数据的聚合方式:<br><code>0</code>:all, 最大查询区间365天 <br><code>1</code>:hour,最大查询区间31天。默认1<br><code>2</code>:day, 最大查询区间365天。
"""
self.periodType = periodType

Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class ListHistoricalReplicatTasksRequest(JDCloudRequest):
"""
根据bucket名称获取该bucket下的同步任务列表
"""

def __init__(self, parameters, header=None, version="v1"):
super(ListHistoricalReplicatTasksRequest, self).__init__(
'/regions/{regionId}/buckets/{bucketName}/historical_replicat_task/', 'GET', header, version)
self.parameters = parameters


class ListHistoricalReplicatTasksParameters(object):

def __init__(self, regionId, bucketName, ):
"""
:param regionId: 区域ID
:param bucketName: Bucket名称
"""

self.regionId = regionId
self.bucketName = bucketName
self.marker = None
self.limit = None

def setMarker(self, marker):
"""
:param marker: (Optional) 同步任务列表开始的key
"""
self.marker = marker

def setLimit(self, limit):
"""
:param limit: (Optional) 每次查询返回的结果数,默认为1000
"""
self.limit = limit

Loading