Skip to content

Commit 26b6957

Browse files
Merge pull request #135 from jdcloud-apigateway/master
publish jdcloud-sdk-python 1.6.104
2 parents 1e23d78 + 6403056 commit 26b6957

53 files changed

Lines changed: 1255 additions & 82 deletions

File tree

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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# 更新历史 #
2-
API版本:0.10.24
2+
API版本:0.10.25
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2021-06-30 | 0.10.27 |deeplog日志收集接口增加pin参数|
10+
| 2021-02-01 | 0.10.26 |统计查询新增cacheType |
11+
| 2020-12-25 | 0.10.25 |统计查询新增直播流帧率码率观看人数查询接口 |
912
| 2020-11-05 | 0.10.24 |增加控制台获取地域运行商新接口 |
1013
| 2020-10-14 | 0.10.23 |增加子账号设置与查询刷新预热额度接口 |
1114
| 2020-08-25 | 0.10.22 |点播域名创建支持指定模板 |

jdcloud_sdk/services/cdn/apis/CheckWhetherIpBelongToJCloudRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class CheckWhetherIpBelongToJCloudRequest(JDCloudRequest):
2323
"""
24-
获取所有上层节点的ip
24+
获取所有上层节点的ip,仅支持中国境内上层节点IP地址查询
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v1"):

jdcloud_sdk/services/cdn/apis/ConfigHttp2Request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class ConfigHttp2Request(JDCloudRequest):
2323
"""
24-
http2配置
24+
http2配置,中国境外/全球加速域名暂不支持该配置
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v1"):

jdcloud_sdk/services/cdn/apis/CreateCacheRuleRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def setWeight(self, weight):
5151

5252
def setTtl(self, ttl):
5353
"""
54-
:param ttl: (Optional) 缓存时间,单位秒
54+
:param ttl: (Optional) 缓存时间,单位秒,中国境内加速域名最长可配置2年,中国境外/全球加速域名最长可配置1年
5555
"""
5656
self.ttl = ttl
5757

jdcloud_sdk/services/cdn/apis/CreateDomainGroupRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, ):
4343

4444
def setShareCache(self, shareCache):
4545
"""
46-
:param shareCache: (Optional) 是否共享内存
46+
:param shareCache: (Optional) 是否共享内存,共享缓存仅对中国境内加速域名生效
4747
"""
4848
self.shareCache = shareCache
4949

jdcloud_sdk/services/cdn/apis/CreateRefreshTaskRequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class CreateRefreshTaskRequest(JDCloudRequest):
2323
"""
24-
创建刷新预热任务
24+
创建刷新预热任务
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v1"):
@@ -41,7 +41,7 @@ def __init__(self, ):
4141

4242
def setTaskType(self, taskType):
4343
"""
44-
:param taskType: (Optional) 刷新预热类型,(url:url刷新,dir:目录刷新,prefetch:预热)
44+
:param taskType: (Optional) 刷新预热类型,(url:url刷新,dir:目录刷新,prefetch:预热),中国境外/全球加速域名暂不支持预热功能
4545
"""
4646
self.taskType = taskType
4747

jdcloud_sdk/services/cdn/apis/QueryDirBandwidthRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(self, ):
4141
self.domain = None
4242
self.dirs = None
4343
self.regions = None
44+
self.cacheType = None
4445

4546
def setStartTime(self, startTime):
4647
"""
@@ -72,3 +73,9 @@ def setRegions(self, regions):
7273
"""
7374
self.regions = regions
7475

76+
def setCacheType(self, cacheType):
77+
"""
78+
:param cacheType: (Optional) 查询节点层级,可选值:[all,edge,mid],默认查询all,edge边缘 mid中间
79+
"""
80+
self.cacheType = cacheType
81+

jdcloud_sdk/services/cdn/apis/QueryDirStatsDataRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def __init__(self, ):
4040
self.endTime = None
4141
self.domain = None
4242
self.dirs = None
43+
self.cacheType = None
4344

4445
def setStartTime(self, startTime):
4546
"""
@@ -65,3 +66,9 @@ def setDirs(self, dirs):
6566
"""
6667
self.dirs = dirs
6768

69+
def setCacheType(self, cacheType):
70+
"""
71+
:param cacheType: (Optional) 查询节点层级,可选值:[all,edge,mid],默认查询all,edge边缘 mid中间
72+
"""
73+
self.cacheType = cacheType
74+
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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 QueryJDBoxStatisticsDataWithGroupRequest(JDCloudRequest):
23+
"""
24+
无线宝按group查询的统计接口
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryJDBoxStatisticsDataWithGroupRequest, self).__init__(
29+
'/jdBoxStatisticsWithGroup', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryJDBoxStatisticsDataWithGroupParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.startTime = None
40+
self.endTime = None
41+
self.groupBy = None
42+
self.fields = None
43+
self.area = None
44+
self.isp = None
45+
self.period = None
46+
self.category = None
47+
self.macAddr = None
48+
self.pluginPin = None
49+
50+
def setStartTime(self, startTime):
51+
"""
52+
:param startTime: (Optional) 查询起始时间,时间戳
53+
"""
54+
self.startTime = startTime
55+
56+
def setEndTime(self, endTime):
57+
"""
58+
:param endTime: (Optional) 查询截止时间,时间戳
59+
"""
60+
self.endTime = endTime
61+
62+
def setGroupBy(self, groupBy):
63+
"""
64+
:param groupBy: (Optional) 取值范围:area,isp,pin ,mac_addr,category,多个用,隔开,多个维度的查询,必须要限制较短的时间间隔
65+
"""
66+
self.groupBy = groupBy
67+
68+
def setFields(self, fields):
69+
"""
70+
:param fields: (Optional) 查询的字段,取值范围(avgbandwidth,pv,flow)。多个用逗号分隔。默认为空,表示查询带宽流量
71+
"""
72+
self.fields = fields
73+
74+
def setArea(self, area):
75+
"""
76+
:param area: (Optional) 区域
77+
"""
78+
self.area = area
79+
80+
def setIsp(self, isp):
81+
"""
82+
:param isp: (Optional) 运营商
83+
"""
84+
self.isp = isp
85+
86+
def setPeriod(self, period):
87+
"""
88+
:param period: (Optional) 查询周期,当前取值范围:“oneMin,fiveMin”,分别表示1min,5min。默认为空,表示fiveMin
89+
"""
90+
self.period = period
91+
92+
def setCategory(self, category):
93+
"""
94+
:param category: (Optional) 业务类型
95+
"""
96+
self.category = category
97+
98+
def setMacAddr(self, macAddr):
99+
"""
100+
:param macAddr: (Optional) 设备id
101+
"""
102+
self.macAddr = macAddr
103+
104+
def setPluginPin(self, pluginPin):
105+
"""
106+
:param pluginPin: (Optional) 插件pin
107+
"""
108+
self.pluginPin = pluginPin
109+

jdcloud_sdk/services/cdn/apis/QueryLiveStatisticsAreaDataGroupByRequest.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def __init__(self, ):
5050
self.scheme = None
5151
self.reqMethod = None
5252
self.cacheLevel = None
53+
self.cacheType = None
5354

5455
def setStartTime(self, startTime):
5556
"""
@@ -71,7 +72,7 @@ def setDomain(self, domain):
7172

7273
def setAppName(self, appName):
7374
"""
74-
:param appName: (Optional) app名
75+
:param appName: (Optional) 查询的App名称,多个用逗号分隔。
7576
"""
7677
self.appName = appName
7778

@@ -83,19 +84,19 @@ def setFields(self, fields):
8384

8485
def setArea(self, area):
8586
"""
86-
:param area: (Optional)
87+
:param area: (Optional) 查询的区域,如beijing,shanghai。多个用逗号分隔
8788
"""
8889
self.area = area
8990

9091
def setIsp(self, isp):
9192
"""
92-
:param isp: (Optional)
93+
:param isp: (Optional) 查询的运营商,cmcc,cnc,ct,表示移动、联通、电信。多个用逗号分隔
9394
"""
9495
self.isp = isp
9596

9697
def setStreamName(self, streamName):
9798
"""
98-
:param streamName: (Optional)
99+
:param streamName: (Optional) 查询的流名称,多个用逗号分隔。
99100
"""
100101
self.streamName = streamName
101102

@@ -107,31 +108,37 @@ def setPeriod(self, period):
107108

108109
def setGroupBy(self, groupBy):
109110
"""
110-
:param groupBy: (Optional) 分组依据
111+
:param groupBy: (Optional) 分组依据,可选值:[appname,streamname],如果为空,则只按area/isp进行group。
111112
"""
112113
self.groupBy = groupBy
113114

114115
def setSubDomain(self, subDomain):
115116
"""
116-
:param subDomain: (Optional)
117+
:param subDomain: (Optional) 查询泛域名时,指定的子域名列表,多个用逗号分隔。非泛域名时,传入空即可
117118
"""
118119
self.subDomain = subDomain
119120

120121
def setScheme(self, scheme):
121122
"""
122-
:param scheme: (Optional) 查询的流协议
123+
:param scheme: (Optional) 查询的流协议,取值范围:"rtmp,hdl,hls",多个用逗号分隔,默认为空,表示查询所有协议。
123124
"""
124125
self.scheme = scheme
125126

126127
def setReqMethod(self, reqMethod):
127128
"""
128-
:param reqMethod: (Optional)
129+
:param reqMethod: (Optional) 当前取值范围("GET,HEAD,forward,forward-hls,ingest,play,publish,detour-ingest,Forward-Origin")
129130
"""
130131
self.reqMethod = reqMethod
131132

132133
def setCacheLevel(self, cacheLevel):
133134
"""
134-
:param cacheLevel: (Optional) cacheLevel
135+
:param cacheLevel: (Optional) cacheLevel,可选值:[L1,L2,L3]
135136
"""
136137
self.cacheLevel = cacheLevel
137138

139+
def setCacheType(self, cacheType):
140+
"""
141+
:param cacheType: (Optional) 查询节点层级,可选值:[all,edge,mid],默认查询all,edge边缘 mid中间
142+
"""
143+
self.cacheType = cacheType
144+

0 commit comments

Comments
 (0)