Skip to content

Commit d55922f

Browse files
committed
publish jdcloud-sdk-python 1.6.80
1 parent a20a507 commit d55922f

69 files changed

Lines changed: 1773 additions & 37 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

jdcloud_sdk/services/cdn/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# 更新历史 #
2-
API版本:0.10.22
2+
API版本:0.10.23
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2020-10-14 | 0.10.23 |增加子账号设置与查询刷新预热额度接口 |
910
| 2020-08-25 | 0.10.22 |点播域名创建支持指定模板 |
1011
| 2020-08-14 | 0.10.21 |增加头条回源鉴权参数配置和dash鉴权参数配置接口|
1112
| 2020-08-06 | 0.10.20 |增加查询用户相关信息接口|

jdcloud_sdk/services/cdn/apis/ConfigServiceNoticeRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(self, ):
4343
self.noticeCC = None
4444
self.noticeContent = None
4545
self.noticePeriod = None
46+
self.noticeStatus = None
4647

4748
def setId(self, id):
4849
"""
@@ -86,3 +87,9 @@ def setNoticePeriod(self, noticePeriod):
8687
"""
8788
self.noticePeriod = noticePeriod
8889

90+
def setNoticeStatus(self, noticeStatus):
91+
"""
92+
:param noticeStatus: (Optional) 通知状态,取值[init,start,stop]
93+
"""
94+
self.noticeStatus = noticeStatus
95+

jdcloud_sdk/services/cdn/apis/GetDomainListByFilterRequest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ def __init__(self, ):
4242
self.status = None
4343
self.type = None
4444
self.accelerateRegion = None
45+
self.filterBy = None
4546
self.tagFilters = None
4647

4748
def setKeyWord(self, keyWord):
4849
"""
49-
:param keyWord: (Optional) 根据关键字进行模糊匹配
50+
:param keyWord: (Optional) 根据关键字进行模糊匹配,域名或者回源信息
5051
"""
5152
self.keyWord = keyWord
5253

@@ -80,6 +81,12 @@ def setAccelerateRegion(self, accelerateRegion):
8081
"""
8182
self.accelerateRegion = accelerateRegion
8283

84+
def setFilterBy(self, filterBy):
85+
"""
86+
:param filterBy: (Optional) 筛选依据(0:根据域名筛选,1:根据回源信息筛选),默认按照域名进行筛选
87+
"""
88+
self.filterBy = filterBy
89+
8390
def setTagFilters(self, tagFilters):
8491
"""
8592
:param tagFilters: (Optional) 标签过滤条件
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 QueryRefreshLimitRequest(JDCloudRequest):
23+
"""
24+
查询用户刷新预热限额
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryRefreshLimitRequest, self).__init__(
29+
'/task:queryLimit', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryRefreshLimitParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.subUsers = None
40+
self.pageNumber = None
41+
self.pageSize = None
42+
43+
def setSubUsers(self, subUsers):
44+
"""
45+
:param subUsers: (Optional) 子账号,传哪些子账号就查哪些的,不传或传空默认返回所有子账号的额度
46+
"""
47+
self.subUsers = subUsers
48+
49+
def setPageNumber(self, pageNumber):
50+
"""
51+
:param pageNumber: (Optional) 默认为1
52+
"""
53+
self.pageNumber = pageNumber
54+
55+
def setPageSize(self, pageSize):
56+
"""
57+
:param pageSize: (Optional) 默认为10,最大100
58+
"""
59+
self.pageSize = pageSize
60+

jdcloud_sdk/services/cdn/apis/QueryStatisticsDataGroupByAreaRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __init__(self, ):
4747
self.period = None
4848
self.groupBy = None
4949
self.scheme = None
50+
self.abroad = None
5051

5152
def setStartTime(self, startTime):
5253
"""
@@ -114,3 +115,9 @@ def setScheme(self, scheme):
114115
"""
115116
self.scheme = scheme
116117

118+
def setAbroad(self, abroad):
119+
"""
120+
:param abroad: (Optional) true 代表查询境外数据,默认false查询境内数据
121+
"""
122+
self.abroad = abroad
123+

jdcloud_sdk/services/cdn/apis/QueryStatisticsDataGroupSumRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(self, ):
4646
self.origin = None
4747
self.period = None
4848
self.groupBy = None
49+
self.abroad = None
4950

5051
def setStartTime(self, startTime):
5152
"""
@@ -107,3 +108,9 @@ def setGroupBy(self, groupBy):
107108
"""
108109
self.groupBy = groupBy
109110

111+
def setAbroad(self, abroad):
112+
"""
113+
:param abroad: (Optional) true 代表查询境外数据,默认false查询境内数据
114+
"""
115+
self.abroad = abroad
116+

jdcloud_sdk/services/cdn/apis/QueryStatisticsDataRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def __init__(self, ):
4545
self.isp = None
4646
self.origin = None
4747
self.period = None
48+
self.abroad = None
4849

4950
def setStartTime(self, startTime):
5051
"""
@@ -100,3 +101,9 @@ def setPeriod(self, period):
100101
"""
101102
self.period = period
102103

104+
def setAbroad(self, abroad):
105+
"""
106+
:param abroad: (Optional) true 代表查询境外数据,默认false查询境内数据
107+
"""
108+
self.abroad = abroad
109+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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 SetRefreshLimitRequest(JDCloudRequest):
23+
"""
24+
设置用户刷新预热限额
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SetRefreshLimitRequest, self).__init__(
29+
'/task:configLimit', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SetRefreshLimitParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.subUsers = None
40+
self.refreshCount = None
41+
self.prefetchCount = None
42+
self.dirCount = None
43+
44+
def setSubUsers(self, subUsers):
45+
"""
46+
:param subUsers: (Optional) 子账号,只有传值才会设置子账号,其余不传或传空是设置主账号
47+
"""
48+
self.subUsers = subUsers
49+
50+
def setRefreshCount(self, refreshCount):
51+
"""
52+
:param refreshCount: (Optional) 刷新个数,如果是首次设置,不传默认是2000;已经设置,再次设置是更新,不传表示不进行更新
53+
"""
54+
self.refreshCount = refreshCount
55+
56+
def setPrefetchCount(self, prefetchCount):
57+
"""
58+
:param prefetchCount: (Optional) 刷新个数,如果是首次设置,不传默认是2000;已经设置,再次设置是更新,不传表示不进行更新
59+
"""
60+
self.prefetchCount = prefetchCount
61+
62+
def setDirCount(self, dirCount):
63+
"""
64+
:param dirCount: (Optional) 刷新个数,如果是首次设置,不传默认是50;已经设置,再次设置是更新,不传表示不进行更新
65+
"""
66+
self.dirCount = dirCount
67+

jdcloud_sdk/services/cdn/client/CdnClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('cdn.jdcloud-api.com')
2828

29-
super(CdnClient, self).__init__(credential, config, 'cdn', '0.10.22', logger)
29+
super(CdnClient, self).__init__(credential, config, 'cdn', '0.10.23', logger)

jdcloud_sdk/services/cdn/models/ServiceNoticeItem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ServiceNoticeItem(object):
2121

22-
def __init__(self, id=None, noticeType=None, noticeWay=None, noticeTo=None, noticeCC=None, noticeContent=None, noticePeriod=None):
22+
def __init__(self, id=None, noticeType=None, noticeWay=None, noticeTo=None, noticeCC=None, noticeContent=None, noticePeriod=None, noticeStatus=None):
2323
"""
2424
:param id: (Optional) 服务配置id
2525
:param noticeType: (Optional) 通知类型,取值[reportForm],reportForm:报表.
@@ -28,6 +28,7 @@ def __init__(self, id=None, noticeType=None, noticeWay=None, noticeTo=None, noti
2828
:param noticeCC: (Optional) 通知抄送人,多个用逗号隔开.
2929
:param noticeContent: (Optional) 通知正文.
3030
:param noticePeriod: (Optional) 通知周期,取值[daily,weekly,monthly].
31+
:param noticeStatus: (Optional) 通知状态,取值[init,start,stop]
3132
"""
3233

3334
self.id = id
@@ -37,3 +38,4 @@ def __init__(self, id=None, noticeType=None, noticeWay=None, noticeTo=None, noti
3738
self.noticeCC = noticeCC
3839
self.noticeContent = noticeContent
3940
self.noticePeriod = noticePeriod
41+
self.noticeStatus = noticeStatus

0 commit comments

Comments
 (0)