Skip to content

Commit 69e8f89

Browse files
Merge pull request #142 from jdcloud-apigateway/master
sdk publish 20210806
2 parents ef249b5 + 2d98238 commit 69e8f89

34 files changed

Lines changed: 641 additions & 13 deletions

jdcloud_sdk/services/rds/ChangeLog.md

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2021-07-21|1.1.6|功能更新|* 慢日志展示user|
7+
|2021-06-01|1.1.5|功能更新|* 数据库支持修改备注|
8+
|2021-05-11|1.1.4|功能更新|* 支持小版本升级|
9+
|2021-04-16|1.1.3|字段更新|* 可售卖接口返回字段更新|
10+
|2021-04-16|1.1.1|字段更新|* 慢日志统计支持sort排序,新增返回参数|
11+
|2021-04-01|1.1.0|字段更新|* 拦截日志支持filter过滤|
12+
|2021-03-25|1.0.8|接口更新|* TPaaS相关接口|
13+
|2021-03-25|1.0.7|功能更新|* 运维账号支持高权限|
14+
|2021-03-09|1.0.5|功能更新|* 扩容支持运维窗口|
15+
|2021-03-04|1.0.4|字段更新|* 重启新增强制参数;备份策略直接设置空间保护|
16+
|2020-12-09|1.0.2|接口更新|* 可售卖接口|
17+
|2020-12-09|0.10.9|接口更新|* 支持设置只读|
18+
|2020-09-27|0.10.8|接口更新|* 创建支持标签|
619
|2020-09-27|0.10.7|接口更新|* 对外接口维护|
720
|2020-09-27|0.10.6|接口更新|* 快照备份|
821
|2020-09-27|0.10.5|接口更新|* 慢日志明细更新接口|

jdcloud_sdk/services/rds/apis/CreateROInstanceRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def __init__(self, regionId, instanceId, instanceName, instanceClass, instanceSt
5555
self.storageEncrypted = None
5656
self.count = None
5757
self.roInstanceProxy = None
58+
self.tagSpec = None
5859

5960
def setInstanceStorageType(self, instanceStorageType):
6061
"""
@@ -98,3 +99,9 @@ def setRoInstanceProxy(self, roInstanceProxy):
9899
"""
99100
self.roInstanceProxy = roInstanceProxy
100101

102+
def setTagSpec(self, tagSpec):
103+
"""
104+
:param tagSpec: (Optional) 标签信息
105+
"""
106+
self.tagSpec = tagSpec
107+
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 DescribeInstanceMaintainTimeRequest(JDCloudRequest):
23+
"""
24+
查询实例的可维护时间
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeInstanceMaintainTimeRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:describeInstanceMaintainTime', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeInstanceMaintainTimeParameters(object):
34+
35+
def __init__(self, regionId, instanceId, ):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param instanceId: RDS 实例ID,唯一标识一个RDS实例
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+

jdcloud_sdk/services/rds/apis/DescribeInterceptResultRequest.py

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

4647
def setPageNumber(self, pageNumber):
4748
"""
@@ -55,3 +56,11 @@ def setPageSize(self, pageSize):
5556
"""
5657
self.pageSize = pageSize
5758

59+
def setFilters(self, filters):
60+
"""
61+
:param filters: (Optional) 过滤参数,多个过滤参数之间的关系为“与”(and);
62+
支持以下属性的过滤:account,database,keyword; 支持operator选项:eq,in; 仅支持 MySQL,Percona,MariaDB
63+
64+
"""
65+
self.filters = filters
66+

jdcloud_sdk/services/rds/apis/DescribePrivilegeRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@ def __init__(self, regionId, engine, ):
4141
self.regionId = regionId
4242
self.engine = engine
4343
self.instanceId = None
44+
self.allAdminPrivileges = None
4445

4546
def setInstanceId(self, instanceId):
4647
"""
4748
:param instanceId: (Optional) RDS 实例ID,唯一标识一个RDS实例
4849
"""
4950
self.instanceId = instanceId
5051

52+
def setAllAdminPrivileges(self, allAdminPrivileges):
53+
"""
54+
:param allAdminPrivileges: (Optional) true表示展示高权限,默认false
55+
"""
56+
self.allAdminPrivileges = allAdminPrivileges
57+

jdcloud_sdk/services/rds/apis/DescribeSlowLogsRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(self, regionId, instanceId, startTime, endTime, ):
4848
self.pageNumber = None
4949
self.pageSize = None
5050
self.filters = None
51+
self.sorts = None
5152

5253
def setDbName(self, dbName):
5354
"""
@@ -73,3 +74,9 @@ def setFilters(self, filters):
7374
"""
7475
self.filters = filters
7576

77+
def setSorts(self, sorts):
78+
"""
79+
:param sorts: (Optional) 排序参数,支持rowsExaminedSum、rowsSentSum、lockTimeSum、executionCount、executionTimeSum
80+
"""
81+
self.sorts = sorts
82+
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 DescribeUpgradePlanRequest(JDCloudRequest):
23+
"""
24+
查询当前发起的数据库的升级计划,仅支持MySQL
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeUpgradePlanRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:describeUpgradePlan', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeUpgradePlanParameters(object):
34+
35+
def __init__(self, regionId, instanceId, ):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param instanceId: RDS 实例ID,唯一标识一个RDS实例
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
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 DescribeUpgradeVersionsRequest(JDCloudRequest):
23+
"""
24+
获取当前数据库可升级到的版本,仅支持MySQL
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeUpgradeVersionsRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:describeUpgradeVersions', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeUpgradeVersionsParameters(object):
34+
35+
def __init__(self, regionId, instanceId, ):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param instanceId: RDS 实例ID,唯一标识一个RDS实例
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+

jdcloud_sdk/services/rds/apis/ModifyAccountForOpsRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@ def __init__(self, regionId, instanceId, ):
4141
self.regionId = regionId
4242
self.instanceId = instanceId
4343
self.expiredTime = None
44+
self.globalPrivileges = None
4445

4546
def setExpiredTime(self, expiredTime):
4647
"""
4748
:param expiredTime: (Optional) 运维账号到期时间,UTC时间格式
4849
"""
4950
self.expiredTime = expiredTime
5051

52+
def setGlobalPrivileges(self, globalPrivileges):
53+
"""
54+
:param globalPrivileges: (Optional)
55+
"""
56+
self.globalPrivileges = globalPrivileges
57+

jdcloud_sdk/services/rds/apis/ModifyBackupPolicyRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(self, regionId, instanceId, ):
4343
self.startWindow = None
4444
self.binlogRetentionPeriod = None
4545
self.binlogUsageLimit = None
46+
self.binlogSpaceProtection = None
4647
self.retentionPeriod = None
4748
self.cycleMode = None
4849

@@ -64,6 +65,12 @@ def setBinlogUsageLimit(self, binlogUsageLimit):
6465
"""
6566
self.binlogUsageLimit = binlogUsageLimit
6667

68+
def setBinlogSpaceProtection(self, binlogSpaceProtection):
69+
"""
70+
:param binlogSpaceProtection: (Optional) 设置空间保护,开启:on,关闭:off <br>- 仅支持MySQL
71+
"""
72+
self.binlogSpaceProtection = binlogSpaceProtection
73+
6774
def setRetentionPeriod(self, retentionPeriod):
6875
"""
6976
:param retentionPeriod: (Optional) 自动备份保留周期,单位天,范围7-730<br>当enhancedBackup为true时可修改<br>- 仅支持SQL Server

0 commit comments

Comments
 (0)