diff --git a/jdcloud_sdk/services/ossopenapi/ChangeLog.md b/jdcloud_sdk/services/ossopenapi/ChangeLog.md new file mode 100644 index 00000000..c48bc511 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/ChangeLog.md @@ -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 | 历史数据同步接口 | 历史数据同步接口 diff --git a/jdcloud_sdk/services/ossopenapi/__init__.py b/jdcloud_sdk/services/ossopenapi/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jdcloud_sdk/services/ossopenapi/apis/AbortHistoricalReplicatTaskRequest.py b/jdcloud_sdk/services/ossopenapi/apis/AbortHistoricalReplicatTaskRequest.py new file mode 100644 index 00000000..552ea043 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/AbortHistoricalReplicatTaskRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/ossopenapi/apis/CreateHistoricalReplicatTaskRequest.py b/jdcloud_sdk/services/ossopenapi/apis/CreateHistoricalReplicatTaskRequest.py new file mode 100644 index 00000000..37467857 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/CreateHistoricalReplicatTaskRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/ossopenapi/apis/DeleteBackSourceConfigurationRequest.py b/jdcloud_sdk/services/ossopenapi/apis/DeleteBackSourceConfigurationRequest.py new file mode 100644 index 00000000..fdd59676 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/DeleteBackSourceConfigurationRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/ossopenapi/apis/GetBackSourceConfigurationRequest.py b/jdcloud_sdk/services/ossopenapi/apis/GetBackSourceConfigurationRequest.py new file mode 100644 index 00000000..0d157028 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/GetBackSourceConfigurationRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/ossopenapi/apis/GetHistoricalReplicatTaskRequest.py b/jdcloud_sdk/services/ossopenapi/apis/GetHistoricalReplicatTaskRequest.py new file mode 100644 index 00000000..959ef090 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/GetHistoricalReplicatTaskRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/ossopenapi/apis/GetSingleBucketCapacityRequest.py b/jdcloud_sdk/services/ossopenapi/apis/GetSingleBucketCapacityRequest.py new file mode 100644 index 00000000..e6ee3e13 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/GetSingleBucketCapacityRequest.py @@ -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:

查询用量数据类型:


1000040:标准存储
1000041:低冗余存储
1000042:归档存储
1000043归档overHead存储:
1000044低频存储:
1000045低频overHead存储:
1:内网GET流量
2:内网HEAD流量
3:内网PUT流量
4:内网POST流量
5:内网DELETE流量
6:内网OPTIONS流量
7:内网TRACE流量
11:外网GET流量
12:外网HEAD流量
13:外网PUT流量
14:外网POST流量
15:外网DELETE流量
16:外网OPTIONS流量
17:外网TRACE流量
21:CDN GET流量
22:CDN HEAD流量
23:CDN PUT流量
24:CDN POST流量
25:CDN DELETE流量
26:CDN OPTIONS流量
27:CDN TRACE流量
31:内网GET数
32:内网HEAD数
33:内网PUT数
34:内网POST数
35:内网DELETE数
36:内网OPTIONS数
37:内网TRACE数
51:外网GET数
52:外网HEAD数
53:外网PUT数
54:外网POST数
55:外网DELETE数
56:外网OPTIONS数
57:外网TRACE数
61:CDN GET数
62:CDN HEAD数
63:CDN PUT数
64:CDN POST数
65:CDN DELETE数
66:CDN OPTIONS数
67:CDN TRACE数
71:归档提前删除
72:低频提前删除
81:归档取回Bulk
82:归档取回Std
83:归档取回Exp
84:低频数据取回 + + :param method: 返回数据的方式: 1:recent(区间值), 2: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) 查询数据的聚合方式:
0:all, 最大查询区间365天
1:hour,最大查询区间31天。默认1
2:day, 最大查询区间365天。 + """ + self.periodType = periodType + diff --git a/jdcloud_sdk/services/ossopenapi/apis/ListHistoricalReplicatTasksRequest.py b/jdcloud_sdk/services/ossopenapi/apis/ListHistoricalReplicatTasksRequest.py new file mode 100644 index 00000000..d32ecebb --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/ListHistoricalReplicatTasksRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/ossopenapi/apis/PutBackSourceConfigurationRequest.py b/jdcloud_sdk/services/ossopenapi/apis/PutBackSourceConfigurationRequest.py new file mode 100644 index 00000000..8bc234af --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/apis/PutBackSourceConfigurationRequest.py @@ -0,0 +1,50 @@ +# 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 PutBackSourceConfigurationRequest(JDCloudRequest): + """ + 添加修改回源配置 + """ + + def __init__(self, parameters, header=None, version="v1"): + super(PutBackSourceConfigurationRequest, self).__init__( + '/regions/{regionId}/buckets/{bucketName}/backSource', 'PUT', header, version) + self.parameters = parameters + + +class PutBackSourceConfigurationParameters(object): + + def __init__(self, regionId, bucketName, ): + """ + :param regionId: 区域ID + :param bucketName: Bucket名称 + """ + + self.regionId = regionId + self.bucketName = bucketName + self.backSourceRules = None + + def setBackSourceRules(self, backSourceRules): + """ + :param backSourceRules: (Optional) 回源配置规则 + """ + self.backSourceRules = backSourceRules + diff --git a/jdcloud_sdk/services/ossopenapi/apis/__init__.py b/jdcloud_sdk/services/ossopenapi/apis/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jdcloud_sdk/services/ossopenapi/client/OssopenapiClient.py b/jdcloud_sdk/services/ossopenapi/client/OssopenapiClient.py new file mode 100644 index 00000000..b82009e7 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/client/OssopenapiClient.py @@ -0,0 +1,29 @@ +# 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.jdcloudclient import JDCloudClient +from jdcloud_sdk.core.config import Config + + +class OssopenapiClient(JDCloudClient): + + def __init__(self, credential, config=None, logger=None): + if config is None: + config = Config('ossopenapi.jdcloud-api.com') + + super(OssopenapiClient, self).__init__(credential, config, 'ossopenapi', '0.8.5', logger) diff --git a/jdcloud_sdk/services/ossopenapi/client/__init__.py b/jdcloud_sdk/services/ossopenapi/client/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jdcloud_sdk/services/ossopenapi/models/BackSourceAddress.py b/jdcloud_sdk/services/ossopenapi/models/BackSourceAddress.py new file mode 100644 index 00000000..9769df56 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BackSourceAddress.py @@ -0,0 +1,35 @@ +# 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. + + +class BackSourceAddress(object): + + def __init__(self, protocol=None, hostName=None, replaceKeyPrefixWith=None, replaceKeyWith=None, replaceKeySuffixWith=None): + """ + :param protocol: (Optional) 地址协议, 如http + :param hostName: (Optional) 域名 + :param replaceKeyPrefixWith: (Optional) 将前缀替换为指定的内容 + :param replaceKeyWith: (Optional) 将key替换为指定内容 + :param replaceKeySuffixWith: (Optional) 将后缀替换为指定的内容 + """ + + self.protocol = protocol + self.hostName = hostName + self.replaceKeyPrefixWith = replaceKeyPrefixWith + self.replaceKeyWith = replaceKeyWith + self.replaceKeySuffixWith = replaceKeySuffixWith diff --git a/jdcloud_sdk/services/ossopenapi/models/BackSourceHeaderRule.py b/jdcloud_sdk/services/ossopenapi/models/BackSourceHeaderRule.py new file mode 100644 index 00000000..60d0e540 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BackSourceHeaderRule.py @@ -0,0 +1,33 @@ +# 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. + + +class BackSourceHeaderRule(object): + + def __init__(self, allowAllHeaders=None, allowHeaders=None, notAllowHeaders=None, setHeaders=None): + """ + :param allowAllHeaders: (Optional) 是否允许所有的Http header + :param allowHeaders: (Optional) 允许的http header列表 + :param notAllowHeaders: (Optional) 禁止的http header列表 + :param setHeaders: (Optional) 设置指定http header参数,类型为Map\ + """ + + self.allowAllHeaders = allowAllHeaders + self.allowHeaders = allowHeaders + self.notAllowHeaders = notAllowHeaders + self.setHeaders = setHeaders diff --git a/jdcloud_sdk/services/ossopenapi/models/BackSourceRule.py b/jdcloud_sdk/services/ossopenapi/models/BackSourceRule.py new file mode 100644 index 00000000..d42c0f82 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BackSourceRule.py @@ -0,0 +1,37 @@ +# 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. + + +class BackSourceRule(object): + + def __init__(self, backSourceType=None, condition=None, address=None, allowQueryString=None, followRedirects=None, headerRule=None): + """ + :param backSourceType: (Optional) 回源类型 + :param condition: (Optional) + :param address: (Optional) + :param allowQueryString: (Optional) 是否允许query String + :param followRedirects: (Optional) 是否跟随重定向 + :param headerRule: (Optional) + """ + + self.backSourceType = backSourceType + self.condition = condition + self.address = address + self.allowQueryString = allowQueryString + self.followRedirects = followRedirects + self.headerRule = headerRule diff --git a/jdcloud_sdk/services/ossopenapi/models/BackSourceRuleCondition.py b/jdcloud_sdk/services/ossopenapi/models/BackSourceRuleCondition.py new file mode 100644 index 00000000..b2f793bc --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BackSourceRuleCondition.py @@ -0,0 +1,29 @@ +# 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. + + +class BackSourceRuleCondition(object): + + def __init__(self, keyPrefixEquals=None, httpErrorCodeReturnedEquals=None): + """ + :param keyPrefixEquals: (Optional) 当前缀为指定的前缀时开启回源 + :param httpErrorCodeReturnedEquals: (Optional) 当http错误码为指定错误码时开启回源 + """ + + self.keyPrefixEquals = keyPrefixEquals + self.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketBackSourceConfiguration.py b/jdcloud_sdk/services/ossopenapi/models/BucketBackSourceConfiguration.py new file mode 100644 index 00000000..0167971e --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketBackSourceConfiguration.py @@ -0,0 +1,27 @@ +# 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. + + +class BucketBackSourceConfiguration(object): + + def __init__(self, backSourceRules=None): + """ + :param backSourceRules: (Optional) 回源配置规则 + """ + + self.backSourceRules = backSourceRules diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketCapacityCondition.py b/jdcloud_sdk/services/ossopenapi/models/BucketCapacityCondition.py new file mode 100644 index 00000000..c33f432a --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketCapacityCondition.py @@ -0,0 +1,38 @@ +# 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. + + +class BucketCapacityCondition(object): + + def __init__(self, capacityTypes, method, beginTime=None, endTime=None, periodType=None, bucketNames=None): + """ + :param capacityTypes:

查询用量数据类型:


1000040:标准存储
1000041:低冗余存储
1000042:归档存储
1000043归档overHead存储:
1000044低频存储:
1000045低频overHead存储:
1:内网GET流量
2:内网HEAD流量
3:内网PUT流量
4:内网POST流量
5:内网DELETE流量
6:内网OPTIONS流量
7:内网TRACE流量
11:外网GET流量
12:外网HEAD流量
13:外网PUT流量
14:外网POST流量
15:外网DELETE流量
16:外网OPTIONS流量
17:外网TRACE流量
21:CDN GET流量
22:CDN HEAD流量
23:CDN PUT流量
24:CDN POST流量
25:CDN DELETE流量
26:CDN OPTIONS流量
27:CDN TRACE流量
31:内网GET数
32:内网HEAD数
33:内网PUT数
34:内网POST数
35:内网DELETE数
36:内网OPTIONS数
37:内网TRACE数
51:外网GET数
52:外网HEAD数
53:外网PUT数
54:外网POST数
55:外网DELETE数
56:外网OPTIONS数
57:外网TRACE数
61:CDN GET数
62:CDN HEAD数
63:CDN PUT数
64:CDN POST数
65:CDN DELETE数
66:CDN OPTIONS数
67:CDN TRACE数
71:归档提前删除
72:低频提前删除
81:归档取回Bulk
82:归档取回Std
83:归档取回Exp
84:低频数据取回 + + :param beginTime: (Optional) 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' + :param endTime: (Optional) 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' + :param periodType: (Optional) 查询数据的聚合方式:
0:all, 最大查询区间365天
1:hour,最大查询区间31天。默认1
2:day, 最大查询区间365天。 + :param method: 返回数据的方式: 1:recent(区间值), 2:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。) + :param bucketNames: (Optional) 查询的bucket Names。如果查询用户全部Bucket,则不传 + """ + + self.capacityTypes = capacityTypes + self.beginTime = beginTime + self.endTime = endTime + self.periodType = periodType + self.method = method + self.bucketNames = bucketNames diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketCapacityStatistic.py b/jdcloud_sdk/services/ossopenapi/models/BucketCapacityStatistic.py new file mode 100644 index 00000000..ec524821 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketCapacityStatistic.py @@ -0,0 +1,33 @@ +# 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. + + +class BucketCapacityStatistic(object): + + def __init__(self, bucketName, value, time, capacityType, ): + """ + :param bucketName: Bucket Name + :param value: 用量数值,单位Byte + :param time: 时间 + :param capacityType: 用量类型 + """ + + self.bucketName = bucketName + self.value = value + self.time = time + self.capacityType = capacityType diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketInfo.py b/jdcloud_sdk/services/ossopenapi/models/BucketInfo.py new file mode 100644 index 00000000..cb7e537a --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketInfo.py @@ -0,0 +1,33 @@ +# 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. + + +class BucketInfo(object): + + def __init__(self, bucketId=None, bucketName=None, regionId=None, pin=None): + """ + :param bucketId: (Optional) + :param bucketName: (Optional) bucket名称 + :param regionId: (Optional) bucket所属区域 + :param pin: (Optional) bucket所属的用户 + """ + + self.bucketId = bucketId + self.bucketName = bucketName + self.regionId = regionId + self.pin = pin diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketMonitorStatistic.py b/jdcloud_sdk/services/ossopenapi/models/BucketMonitorStatistic.py new file mode 100644 index 00000000..c2c1499d --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketMonitorStatistic.py @@ -0,0 +1,31 @@ +# 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. + + +class BucketMonitorStatistic(object): + + def __init__(self, bucketName, count, time, ): + """ + :param bucketName: bucket name + :param count: 统计数值 + :param time: 时间 + """ + + self.bucketName = bucketName + self.count = count + self.time = time diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketSpaceStatistic.py b/jdcloud_sdk/services/ossopenapi/models/BucketSpaceStatistic.py new file mode 100644 index 00000000..b8a4ec77 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketSpaceStatistic.py @@ -0,0 +1,29 @@ +# 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. + + +class BucketSpaceStatistic(object): + + def __init__(self, bucketName, space, ): + """ + :param bucketName: bucket name + :param space: bucket 存储空间 + """ + + self.bucketName = bucketName + self.space = space diff --git a/jdcloud_sdk/services/ossopenapi/models/BucketTaggingInfo.py b/jdcloud_sdk/services/ossopenapi/models/BucketTaggingInfo.py new file mode 100644 index 00000000..1376a09e --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/BucketTaggingInfo.py @@ -0,0 +1,31 @@ +# 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. + + +class BucketTaggingInfo(object): + + def __init__(self, bucketId=None, bucketName=None, allowTagging=None): + """ + :param bucketId: (Optional) + :param bucketName: (Optional) bucket名称 + :param allowTagging: (Optional) 是否可以对此bucket打标签 + """ + + self.bucketId = bucketId + self.bucketName = bucketName + self.allowTagging = allowTagging diff --git a/jdcloud_sdk/services/ossopenapi/models/CName.py b/jdcloud_sdk/services/ossopenapi/models/CName.py new file mode 100644 index 00000000..35fde372 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/CName.py @@ -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. + + +class CName(object): + + def __init__(self, id=None, pin=None, originDomain=None, cname=None, status=None, bucketName=None, isCName=None, createTime=None, protoType=None): + """ + :param id: (Optional) 自定义域名id + :param pin: (Optional) 用户pin + :param originDomain: (Optional) 源站域名 + :param cname: (Optional) 自定义域名 + :param status: (Optional) 自定义域名状态 + :param bucketName: (Optional) bucket name + :param isCName: (Optional) cname是否成功,1:已解析;0:未解析 + :param createTime: (Optional) 创建时间 + :param protoType: (Optional) http版本,0:http,1:https + """ + + self.id = id + self.pin = pin + self.originDomain = originDomain + self.cname = cname + self.status = status + self.bucketName = bucketName + self.isCName = isCName + self.createTime = createTime + self.protoType = protoType diff --git a/jdcloud_sdk/services/ossopenapi/models/CNameInfo.py b/jdcloud_sdk/services/ossopenapi/models/CNameInfo.py new file mode 100644 index 00000000..fb5b69e4 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/CNameInfo.py @@ -0,0 +1,33 @@ +# 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. + + +class CNameInfo(object): + + def __init__(self, cname, endPoint, protoType=None, internal=None): + """ + :param cname: 自定义域名 + :param protoType: (Optional) http版本,0:http,1:https + :param endPoint: 域名 + :param internal: (Optional) 是否拦截内部域名添,任意值跳过拦截 + """ + + self.cname = cname + self.protoType = protoType + self.endPoint = endPoint + self.internal = internal diff --git a/jdcloud_sdk/services/ossopenapi/models/CreateReplicationTaskCondition.py b/jdcloud_sdk/services/ossopenapi/models/CreateReplicationTaskCondition.py new file mode 100644 index 00000000..4ba133ab --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/CreateReplicationTaskCondition.py @@ -0,0 +1,39 @@ +# 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. + + +class CreateReplicationTaskCondition(object): + + def __init__(self, action, bucketName, bucketRegion, targetBucketName, targetBucketRegion, storageClass, prefixSet=None): + """ + :param action: 是否覆盖 + :param bucketName: bucket名称 + :param bucketRegion: bucket所属区域 + :param targetBucketName: 目标bucket名称 + :param targetBucketRegion: 目标bucket所属区域 + :param storageClass: 存储类型 + :param prefixSet: (Optional) + """ + + self.action = action + self.bucketName = bucketName + self.bucketRegion = bucketRegion + self.targetBucketName = targetBucketName + self.targetBucketRegion = targetBucketRegion + self.storageClass = storageClass + self.prefixSet = prefixSet diff --git a/jdcloud_sdk/services/ossopenapi/models/HistoryReplicationTask.py b/jdcloud_sdk/services/ossopenapi/models/HistoryReplicationTask.py new file mode 100644 index 00000000..79ef323d --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/HistoryReplicationTask.py @@ -0,0 +1,27 @@ +# 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. + + +class HistoryReplicationTask(object): + + def __init__(self, taskId=None): + """ + :param taskId: (Optional) + """ + + self.taskId = taskId diff --git a/jdcloud_sdk/services/ossopenapi/models/HistoryReplicationTaskInfo.py b/jdcloud_sdk/services/ossopenapi/models/HistoryReplicationTaskInfo.py new file mode 100644 index 00000000..28f66e2d --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/HistoryReplicationTaskInfo.py @@ -0,0 +1,47 @@ +# 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. + + +class HistoryReplicationTaskInfo(object): + + def __init__(self, taskId=None, action=None, bucketName=None, bucketRegion=None, targetBucketName=None, targetBucketRegion=None, storageClass=None, prefixSet=None, createdTime=None, progress=None, status=None): + """ + :param taskId: (Optional) + :param action: (Optional) 是否覆盖 + :param bucketName: (Optional) bucket名称 + :param bucketRegion: (Optional) bucket所属区域 + :param targetBucketName: (Optional) 目标bucket名称 + :param targetBucketRegion: (Optional) 目标bucket所属区域 + :param storageClass: (Optional) 存储类型 + :param prefixSet: (Optional) + :param createdTime: (Optional) 任务创建时间 + :param progress: (Optional) 任务进度 + :param status: (Optional) 任务状态 + """ + + self.taskId = taskId + self.action = action + self.bucketName = bucketName + self.bucketRegion = bucketRegion + self.targetBucketName = targetBucketName + self.targetBucketRegion = targetBucketRegion + self.storageClass = storageClass + self.prefixSet = prefixSet + self.createdTime = createdTime + self.progress = progress + self.status = status diff --git a/jdcloud_sdk/services/ossopenapi/models/ICP.py b/jdcloud_sdk/services/ossopenapi/models/ICP.py new file mode 100644 index 00000000..71825d18 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/ICP.py @@ -0,0 +1,27 @@ +# 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. + + +class ICP(object): + + def __init__(self, icp=None): + """ + :param icp: (Optional) true为备案,false为未备案 + """ + + self.icp = icp diff --git a/jdcloud_sdk/services/ossopenapi/models/ImageExtensions.py b/jdcloud_sdk/services/ossopenapi/models/ImageExtensions.py new file mode 100644 index 00000000..74febffc --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/ImageExtensions.py @@ -0,0 +1,27 @@ +# 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. + + +class ImageExtensions(object): + + def __init__(self, imageExtensions, ): + """ + :param imageExtensions: 原图保护图像格式列表,符合固定XML格式,例如\\\jpg\\ + """ + + self.imageExtensions = imageExtensions diff --git a/jdcloud_sdk/services/ossopenapi/models/SignatureInfo.py b/jdcloud_sdk/services/ossopenapi/models/SignatureInfo.py new file mode 100644 index 00000000..210ab332 --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/SignatureInfo.py @@ -0,0 +1,37 @@ +# 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. + + +class SignatureInfo(object): + + def __init__(self, endpoint, httpMethod, resourcePath, xAmzContentSha256, additionalSignatureHeaders=None, signatureParameters=None): + """ + :param endpoint: 签名的endpoint, 例如 http://s3.cn-east-1.jcloudcs.com + :param httpMethod: http method + :param resourcePath: 资源路径,不包含query string + :param xAmzContentSha256: 上传文件的sha256 + :param additionalSignatureHeaders: (Optional) 附加的签名header + :param signatureParameters: (Optional) 签名的参数,query string + """ + + self.endpoint = endpoint + self.httpMethod = httpMethod + self.resourcePath = resourcePath + self.xAmzContentSha256 = xAmzContentSha256 + self.additionalSignatureHeaders = additionalSignatureHeaders + self.signatureParameters = signatureParameters diff --git a/jdcloud_sdk/services/ossopenapi/models/SingleBucketCapacityRequestCondition.py b/jdcloud_sdk/services/ossopenapi/models/SingleBucketCapacityRequestCondition.py new file mode 100644 index 00000000..7529a1ba --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/SingleBucketCapacityRequestCondition.py @@ -0,0 +1,36 @@ +# 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. + + +class SingleBucketCapacityRequestCondition(object): + + def __init__(self, capacityTypes, method, beginTime=None, endTime=None, periodType=None): + """ + :param capacityTypes:

查询用量数据类型:


1000040:标准存储
1000041:低冗余存储
1000042:归档存储
1000043归档overHead存储:
1000044低频存储:
1000045低频overHead存储:
1:内网GET流量
2:内网HEAD流量
3:内网PUT流量
4:内网POST流量
5:内网DELETE流量
6:内网OPTIONS流量
7:内网TRACE流量
11:外网GET流量
12:外网HEAD流量
13:外网PUT流量
14:外网POST流量
15:外网DELETE流量
16:外网OPTIONS流量
17:外网TRACE流量
21:CDN GET流量
22:CDN HEAD流量
23:CDN PUT流量
24:CDN POST流量
25:CDN DELETE流量
26:CDN OPTIONS流量
27:CDN TRACE流量
31:内网GET数
32:内网HEAD数
33:内网PUT数
34:内网POST数
35:内网DELETE数
36:内网OPTIONS数
37:内网TRACE数
51:外网GET数
52:外网HEAD数
53:外网PUT数
54:外网POST数
55:外网DELETE数
56:外网OPTIONS数
57:外网TRACE数
61:CDN GET数
62:CDN HEAD数
63:CDN PUT数
64:CDN POST数
65:CDN DELETE数
66:CDN OPTIONS数
67:CDN TRACE数
71:归档提前删除
72:低频提前删除
81:归档取回Bulk
82:归档取回Std
83:归档取回Exp
84:低频数据取回 + + :param beginTime: (Optional) 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' + :param endTime: (Optional) 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' + :param periodType: (Optional) 查询数据的聚合方式:
0:all, 最大查询区间365天
1:hour,最大查询区间31天。默认1
2:day, 最大查询区间365天。 + :param method: 返回数据的方式: 1:recent(区间值), 2:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。) + """ + + self.capacityTypes = capacityTypes + self.beginTime = beginTime + self.endTime = endTime + self.periodType = periodType + self.method = method diff --git a/jdcloud_sdk/services/ossopenapi/models/UserBillCode.py b/jdcloud_sdk/services/ossopenapi/models/UserBillCode.py new file mode 100644 index 00000000..1c1ced7c --- /dev/null +++ b/jdcloud_sdk/services/ossopenapi/models/UserBillCode.py @@ -0,0 +1,33 @@ +# 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. + + +class UserBillCode(object): + + def __init__(self, appCode=None, serviceCode=None, storageResourceType=None, processResourceType=None): + """ + :param appCode: (Optional) 用户的AppCode + :param serviceCode: (Optional) 用户的ServiceCode + :param storageResourceType: (Optional) 用户的StorageResourceType + :param processResourceType: (Optional) 用户的ProcessResourceType + """ + + self.appCode = appCode + self.serviceCode = serviceCode + self.storageResourceType = storageResourceType + self.processResourceType = processResourceType diff --git a/jdcloud_sdk/services/ossopenapi/models/__init__.py b/jdcloud_sdk/services/ossopenapi/models/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py index 80c115ad..5bda99e7 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='jdcloud_sdk', - version="1.6.77", + version="1.6.78", long_description=long_description, long_description_content_type="text/markdown", author='JDCloud API Gateway Team',