Skip to content

Commit 848968f

Browse files
authored
Merge pull request #109 from Tanc009/master
publish jdcloud-sdk-python 1.6.73
2 parents d1293c7 + 6b6bc65 commit 848968f

307 files changed

Lines changed: 9105 additions & 568 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/jdccs/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# 更新历史 #
2-
API版本:1.0.10
2+
API版本:1.1.0
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2020-08-04|1.1.0|新增接口|新增机房概览接口<br>新增提交通用服务工单接口<br>新增创建、启用、禁用和删除报警规则|
67
|2020-06-22|1.0.10|接口变更|带宽(上、下行流量)监控项数据2小时范围查询支持5m粒度|
78
|2020-03-20|1.0.9|接口变更|公网IP列表新增IP地址数量、IP类型、线路类型<br>带宽(出口)列表、详情新增计费方式|
89
|2020-03-11|1.0.8|接口变更|VIVO需求:根据IP网段查询流量采样数据|
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
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 CreateAlarmRequest(JDCloudRequest):
23+
"""
24+
创建报警
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateAlarmRequest, self).__init__(
29+
'/alarms', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateAlarmParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.idc = None
40+
self.resourceType = None
41+
self.resourceId = None
42+
self.name = None
43+
self.metric = None
44+
self.period = None
45+
self.statisticMethod = None
46+
self.operator = None
47+
self.threshold = None
48+
self.times = None
49+
self.noticePeriod = None
50+
self.status = None
51+
self.noticeMethod = None
52+
self.noticeObj = None
53+
self.userId = None
54+
55+
def setIdc(self, idc):
56+
"""
57+
:param idc: (Optional) idc机房实例ID
58+
"""
59+
self.idc = idc
60+
61+
def setResourceType(self, resourceType):
62+
"""
63+
:param resourceType: (Optional) 资源类型,bandwidth:带宽
64+
"""
65+
self.resourceType = resourceType
66+
67+
def setResourceId(self, resourceId):
68+
"""
69+
:param resourceId: (Optional) 带宽实例ID
70+
"""
71+
self.resourceId = resourceId
72+
73+
def setName(self, name):
74+
"""
75+
:param name: (Optional) 规则名称
76+
"""
77+
self.name = name
78+
79+
def setMetric(self, metric):
80+
"""
81+
:param metric: (Optional) 监控项,bandwidthTrafficIn:上行实时流量 bandwidthTrafficOut:下行实时流量
82+
"""
83+
self.metric = metric
84+
85+
def setPeriod(self, period):
86+
"""
87+
:param period: (Optional) 统计周期(单位:分钟)
88+
"""
89+
self.period = period
90+
91+
def setStatisticMethod(self, statisticMethod):
92+
"""
93+
:param statisticMethod: (Optional) 统计方法:平均值=avg、最大值=max、最小值=min
94+
"""
95+
self.statisticMethod = statisticMethod
96+
97+
def setOperator(self, operator):
98+
"""
99+
:param operator: (Optional) 计算方式 >=、>、<、<=、=、!=
100+
"""
101+
self.operator = operator
102+
103+
def setThreshold(self, threshold):
104+
"""
105+
:param threshold: (Optional) 阈值
106+
"""
107+
self.threshold = threshold
108+
109+
def setTimes(self, times):
110+
"""
111+
:param times: (Optional) 连续多少次后报警
112+
"""
113+
self.times = times
114+
115+
def setNoticePeriod(self, noticePeriod):
116+
"""
117+
:param noticePeriod: (Optional) 通知周期 单位:小时
118+
"""
119+
self.noticePeriod = noticePeriod
120+
121+
def setStatus(self, status):
122+
"""
123+
:param status: (Optional) 规则状态 disabled:禁用 enabled:启用
124+
"""
125+
self.status = status
126+
127+
def setNoticeMethod(self, noticeMethod):
128+
"""
129+
:param noticeMethod: (Optional) 通知方式 all:全部 sms:短信 email:邮件
130+
"""
131+
self.noticeMethod = noticeMethod
132+
133+
def setNoticeObj(self, noticeObj):
134+
"""
135+
:param noticeObj: (Optional) 通知对象 all:全部 persons:个人 groups:角色组
136+
"""
137+
self.noticeObj = noticeObj
138+
139+
def setUserId(self, userId):
140+
"""
141+
:param userId: (Optional) 通知对象用户ID,若多个用逗号分隔
142+
"""
143+
self.userId = userId
144+
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 CreateGeneralServicesTicketRequest(JDCloudRequest):
23+
"""
24+
提交通用服务工单
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateGeneralServicesTicketRequest, self).__init__(
29+
'/generalServicesTicket', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateGeneralServicesTicketParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.phone = None
40+
self.email = None
41+
self.idc = None
42+
self.isExternalIdc = None
43+
self.count = None
44+
self.externalIdcAddress = None
45+
self.externalIdcContactPerson = None
46+
self.externalIdcContactPhone = None
47+
self.remarks = None
48+
self.attach = None
49+
50+
def setPhone(self, phone):
51+
"""
52+
:param phone: (Optional) 提单人手机号
53+
"""
54+
self.phone = phone
55+
56+
def setEmail(self, email):
57+
"""
58+
:param email: (Optional) 提单人邮箱
59+
"""
60+
self.email = email
61+
62+
def setIdc(self, idc):
63+
"""
64+
:param idc: (Optional) idc机房实例id
65+
"""
66+
self.idc = idc
67+
68+
def setIsExternalIdc(self, isExternalIdc):
69+
"""
70+
:param isExternalIdc: (Optional) 是否是商业化外部机房
71+
"""
72+
self.isExternalIdc = isExternalIdc
73+
74+
def setCount(self, count):
75+
"""
76+
:param count: (Optional) 数量
77+
"""
78+
self.count = count
79+
80+
def setExternalIdcAddress(self, externalIdcAddress):
81+
"""
82+
:param externalIdcAddress: (Optional) 外部机房地址
83+
"""
84+
self.externalIdcAddress = externalIdcAddress
85+
86+
def setExternalIdcContactPerson(self, externalIdcContactPerson):
87+
"""
88+
:param externalIdcContactPerson: (Optional) 外部机房联系人
89+
"""
90+
self.externalIdcContactPerson = externalIdcContactPerson
91+
92+
def setExternalIdcContactPhone(self, externalIdcContactPhone):
93+
"""
94+
:param externalIdcContactPhone: (Optional) 外部机房联系电话
95+
"""
96+
self.externalIdcContactPhone = externalIdcContactPhone
97+
98+
def setRemarks(self, remarks):
99+
"""
100+
:param remarks: (Optional) 描述
101+
"""
102+
self.remarks = remarks
103+
104+
def setAttach(self, attach):
105+
"""
106+
:param attach: (Optional) 附件
107+
"""
108+
self.attach = attach
109+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 DeleteAlarmRequest(JDCloudRequest):
23+
"""
24+
删除报警
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteAlarmRequest, self).__init__(
29+
'/alarms/{alarmId}', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteAlarmParameters(object):
34+
35+
def __init__(self, alarmId, ):
36+
"""
37+
:param alarmId: 报警规则ID
38+
"""
39+
40+
self.alarmId = alarmId
41+

jdcloud_sdk/services/jdccs/apis/DescribeAlarmsRequest.py

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

4445
def setPageNumber(self, pageNumber):
4546
"""
@@ -65,3 +66,9 @@ def setResourceId(self, resourceId):
6566
"""
6667
self.resourceId = resourceId
6768

69+
def setStatus(self, status):
70+
"""
71+
:param status: (Optional) 规则状态 disabled:禁用 enabled:启用
72+
"""
73+
self.status = status
74+

jdcloud_sdk/services/jdccs/apis/DescribeBandwidthsRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(self, idc, ):
4141
self.pageNumber = None
4242
self.pageSize = None
4343
self.filters = None
44+
self.lineType = None
4445

4546
def setPageNumber(self, pageNumber):
4647
"""
@@ -61,3 +62,9 @@ def setFilters(self, filters):
6162
"""
6263
self.filters = filters
6364

65+
def setLineType(self, lineType):
66+
"""
67+
:param lineType: (Optional) 线路类型 dynamicBGP:动态BGP thirdLineBGP:三线BGP telecom:电信单线 unicom:联通单线 mobile:移动单线
68+
"""
69+
self.lineType = lineType
70+

jdcloud_sdk/services/jdccs/apis/DescribeCabinetsRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(self, idc, ):
4141
self.pageNumber = None
4242
self.pageSize = None
4343
self.filters = None
44+
self.cabinetOpenStatus = None
4445

4546
def setPageNumber(self, pageNumber):
4647
"""
@@ -62,3 +63,9 @@ def setFilters(self, filters):
6263
"""
6364
self.filters = filters
6465

66+
def setCabinetOpenStatus(self, cabinetOpenStatus):
67+
"""
68+
:param cabinetOpenStatus: (Optional) 机柜开通状态 disabled:未开通 enabling:开通中 enabled:已开通 disabling:关电中
69+
"""
70+
self.cabinetOpenStatus = cabinetOpenStatus
71+

jdcloud_sdk/services/jdccs/apis/DescribeDevicesRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __init__(self, idc, ):
4242
self.pageSize = None
4343
self.cabinetId = None
4444
self.filters = None
45+
self.deviceType = None
4546

4647
def setPageNumber(self, pageNumber):
4748
"""
@@ -69,3 +70,9 @@ def setFilters(self, filters):
6970
"""
7071
self.filters = filters
7172

73+
def setDeviceType(self, deviceType):
74+
"""
75+
:param deviceType: (Optional) 设备类型 server:服务器 network:网络设备 storage:存储设备 other:其他设备
76+
"""
77+
self.deviceType = deviceType
78+

0 commit comments

Comments
 (0)