Skip to content

Commit 1dfa7d5

Browse files
publish jdcloud-sdk-python 1.6.109
1 parent 246ae81 commit 1dfa7d5

27 files changed

+555
-25
lines changed

jdcloud_sdk/services/redis/ChangeLog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# 更新历史
22

3-
API版本:2.2.2
3+
API版本:2.5.0
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
| ---------- | ------ | -------- | ------------------------------------------------------------ |
7+
| 2020-03-25 | 2.5.0 | 接口更新 | 更新接口describeClusterInfo; 新增接口describeAvailableRegion、describeAvailableResource |
8+
| 2021-03-02 | 2.4.0 | 新增接口 | 更新接口createCacheInstance、describeCacheInstance、describeCacheInstances,新增接口setExposeType,支持设置外部访问方式,新增接口describeExposeType,查询支持的外部访问方式列表 |
9+
| 2021-1-25 | 2.3.0 | 新增接口 | 新增describeTaskProgressList接口,查询实例的任务进度列表 |
10+
| 2020-12-14 | 2.2.3 | 接口更新 | createCacheInstance 增加标签 |
711
| 2020-09-23 | 2.2.2 | 增加接口 | 内部接口调整 |
812
| 2020-08-17 | 2.2.1 | 接口更新 | 内部接口调整 |
913
| 2020-07-29 | 2.2.0 | 增加接口 | 新增接口describeClientList、describeClientIpDetail,内部接口调整 |
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 DescribeAvailableRegionRequest(JDCloudRequest):
23+
"""
24+
查询支持的地域列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeAvailableRegionRequest, self).__init__(
29+
'/regions/{regionId}/availableRegion', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeAvailableRegionParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2
38+
"""
39+
40+
self.regionId = regionId
41+
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 DescribeAvailableResourceRequest(JDCloudRequest):
23+
"""
24+
查询支持的规格列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeAvailableResourceRequest, self).__init__(
29+
'/regions/{regionId}/availableResource', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeAvailableResourceParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2
38+
"""
39+
40+
self.regionId = regionId
41+

jdcloud_sdk/services/redis/apis/DescribeCacheAnalysisResultRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, regionId, cacheInstanceId, taskId, ):
3636
"""
3737
:param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2
3838
:param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识
39-
:param taskId: 查询缓存分析任务详情的任务ID
39+
:param taskId: 任务ID,即request ID
4040
"""
4141

4242
self.regionId = regionId
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 DescribeTaskProgressListRequest(JDCloudRequest):
23+
"""
24+
查询正在执行的任务进度列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeTaskProgressListRequest, self).__init__(
29+
'/regions/{regionId}/cacheInstance/{cacheInstanceId}/taskProgress', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeTaskProgressListParameters(object):
34+
35+
def __init__(self, regionId, cacheInstanceId, ):
36+
"""
37+
:param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2
38+
:param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识
39+
"""
40+
41+
self.regionId = regionId
42+
self.cacheInstanceId = cacheInstanceId
43+
self.taskType = None
44+
45+
def setTaskType(self, taskType):
46+
"""
47+
:param taskType: (Optional) 任务类型:resize表示变配,目前只有变配可以查询进度
48+
"""
49+
self.taskType = taskType
50+

jdcloud_sdk/services/redis/client/RedisClient.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('redis.jdcloud-api.com')
2828

29-
super(RedisClient, self).__init__(credential, config, 'redis', '2.2.2', logger)
29+
super(RedisClient, self).__init__(credential, config, 'redis', '2.5.0', logger)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
20+
class AvailableEngineVersion(object):
21+
22+
def __init__(self, version=None, recommended=None, soldOut=None, availableMemorySpecs=None):
23+
"""
24+
:param version: (Optional) redis引擎主从版本号,目前支持:2.8、4.0
25+
:param recommended: (Optional) 是否推荐
26+
:param soldOut: (Optional) 是否售罄
27+
:param availableMemorySpecs: (Optional) 售卖内存规格列表
28+
"""
29+
30+
self.version = version
31+
self.recommended = recommended
32+
self.soldOut = soldOut
33+
self.availableMemorySpecs = availableMemorySpecs
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
20+
class AvailableFlavor(object):
21+
22+
def __init__(self, shardNumber=None, ipNumber=None, recommended=None, instanceClasses=None, detail=None):
23+
"""
24+
:param shardNumber: (Optional) 分片数
25+
:param ipNumber: (Optional) IP数
26+
:param recommended: (Optional) 是否推荐
27+
:param instanceClasses: (Optional) 规格代码,标准版为实例的规格代码;集群版为单分片规格代码
28+
:param detail: (Optional) 规格详情
29+
"""
30+
31+
self.shardNumber = shardNumber
32+
self.ipNumber = ipNumber
33+
self.recommended = recommended
34+
self.instanceClasses = instanceClasses
35+
self.detail = detail
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
20+
class AvailableMemorySpec(object):
21+
22+
def __init__(self, memoryGB=None, soldOut=None, availableZones=None, availableFlavors=None):
23+
"""
24+
:param memoryGB: (Optional) 售卖内存(GB)
25+
:param soldOut: (Optional) 是否售罄
26+
:param availableZones: (Optional) 可用区列表
27+
:param availableFlavors: (Optional) 规格列表
28+
"""
29+
30+
self.memoryGB = memoryGB
31+
self.soldOut = soldOut
32+
self.availableZones = availableZones
33+
self.availableFlavors = availableFlavors
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
20+
class AvailableRegion(object):
21+
22+
def __init__(self, regionId=None, regionName=None, soldOut=None, quota=None, availableZones=None):
23+
"""
24+
:param regionId: (Optional) 地域id
25+
:param regionName: (Optional) 地域名
26+
:param soldOut: (Optional) 是否售罄
27+
:param quota: (Optional) 用户配额
28+
:param availableZones: (Optional) 可用区列表
29+
"""
30+
31+
self.regionId = regionId
32+
self.regionName = regionName
33+
self.soldOut = soldOut
34+
self.quota = quota
35+
self.availableZones = availableZones

0 commit comments

Comments
 (0)