Skip to content

Commit 0dd0ed8

Browse files
Merge pull request #159 from jdcloud-apigateway/master
20220311 publish jdcloud-sdk-python 1.6.149
2 parents 43e5b36 + 41ac991 commit 0dd0ed8

56 files changed

Lines changed: 2987 additions & 2 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.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 BindMetricsRequest(JDCloudRequest):
23+
"""
24+
关联实例自定义监控项,每次都要求全量提交
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(BindMetricsRequest, self).__init__(
29+
'/regions/{regionId}/bindMetrics', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class BindMetricsParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 地域代码
38+
"""
39+
40+
self.regionId = regionId
41+
self.metricIds = None
42+
self.panelType = None
43+
self.gid = None
44+
45+
def setMetricIds(self, metricIds):
46+
"""
47+
:param metricIds: (Optional) 自定义的监控项id数组
48+
"""
49+
self.metricIds = metricIds
50+
51+
def setPanelType(self, panelType):
52+
"""
53+
:param panelType: (Optional) 展示类型,取值为: real_time 表示实时监控页面, monitor 表示性能趋势页面 market 表示监控大盘
54+
"""
55+
self.panelType = panelType
56+
57+
def setGid(self, gid):
58+
"""
59+
:param gid: (Optional) RDS 实例ID,唯一标识一个RDS实例。如果全部实例生效,可以传all
60+
"""
61+
self.gid = gid
62+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CancleConnectRequest(JDCloudRequest):
23+
"""
24+
取消实例接入
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CancleConnectRequest, self).__init__(
29+
'/regions/{regionId}/cancelinstance', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CancleConnectParameters(object):
34+
35+
def __init__(self, regionId,gidList):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param gidList: 取消的实例gid列表
39+
"""
40+
41+
self.regionId = regionId
42+
self.gidList = gidList
43+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 CheckTableByTypeRequest(JDCloudRequest):
23+
"""
24+
根据诊断id进行表诊断
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CheckTableByTypeRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceGid}/checkTables', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CheckTableByTypeParameters(object):
34+
35+
def __init__(self, regionId,instanceGid,checkTypeId, ):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceGid: 实例ID
39+
:param checkTypeId: 诊断类型id
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceGid = instanceGid
44+
self.checkTypeId = checkTypeId
45+
self.pageIndex = None
46+
self.pageSize = None
47+
48+
def setPageIndex(self, pageIndex):
49+
"""
50+
:param pageIndex: (Optional) 显示数据的页码,默认为1,取值范围:[-1,∞) pageIndex 为-1时,返回所有数据页码
51+
"""
52+
self.pageIndex = pageIndex
53+
54+
def setPageSize(self, pageSize):
55+
"""
56+
:param pageSize: (Optional) 每页显示的数据条数,默认为10,取值范围:[1,100]
57+
"""
58+
self.pageSize = pageSize
59+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CheckTableTypesRequest(JDCloudRequest):
23+
"""
24+
查询支持诊断的类型
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CheckTableTypesRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceGid}/checkTableTypes', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CheckTableTypesParameters(object):
34+
35+
def __init__(self, regionId,instanceGid,):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceGid: 实例ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceGid = instanceGid
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CreateClusterRequest(JDCloudRequest):
23+
"""
24+
新接入mysql实例
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreateClusterRequest, self).__init__(
29+
'/regions/{regionId}/newcutin', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateClusterParameters(object):
34+
35+
def __init__(self, regionId,gidList):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param gidList: 待接入实例gid列表
39+
"""
40+
41+
self.regionId = regionId
42+
self.gidList = gidList
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CreateDiagnoseRequest(JDCloudRequest):
23+
"""
24+
一键诊断
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreateDiagnoseRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceGid}/diagnose', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateDiagnoseParameters(object):
34+
35+
def __init__(self, regionId,instanceGid,):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param instanceGid: RDS 实例ID,唯一标识一个RDS实例
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceGid = instanceGid
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CreateLockAnalyseRequest(JDCloudRequest):
23+
"""
24+
死锁诊断
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreateLockAnalyseRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceGid}/lockAnalyse', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateLockAnalyseParameters(object):
34+
35+
def __init__(self, regionId,instanceGid,):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceGid: RDS 实例ID,唯一标识一个RDS实例
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceGid = instanceGid
43+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 CreatePanelRequest(JDCloudRequest):
23+
"""
24+
添加监控大盘
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreatePanelRequest, self).__init__(
29+
'/regions/{regionId}/panel', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreatePanelParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
"""
39+
40+
self.regionId = regionId
41+
self.name = None
42+
self.dbType = None
43+
44+
def setName(self, name):
45+
"""
46+
:param name: (Optional) 监控大盘名称,最长32位
47+
"""
48+
self.name = name
49+
50+
def setDbType(self, dbType):
51+
"""
52+
:param dbType: (Optional) 数据库类型,默认MySQL
53+
"""
54+
self.dbType = dbType
55+

0 commit comments

Comments
 (0)