Skip to content

Commit 2b091ef

Browse files
publish jdcloud-sdk-python 1.6.129
1 parent 1d5ddbc commit 2b091ef

15 files changed

Lines changed: 101 additions & 19 deletions

jdcloud_sdk/services/disk/ChangeLog.md

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
| 2021-12-29|0.12.7|新增接口|新增soldout接口|
67
| 2020-03-02|0.12.6|新增接口|新增quota查询和快照策略相关接口|
78
| 2020-02-12|0.12.5|新增接口|新增批量删除快照接口|
89
| 2019-10-21|0.12.4|升级|升级charge版本|

jdcloud_sdk/services/disk/apis/CreateDisksRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, regionId, diskSpec, maxCount, clientToken):
5656

5757
def setUserTags(self, userTags):
5858
"""
59-
:param userTags: (Optional) 用户标签
59+
:param userTags: (Optional) 用户标签,默认为空;tag标签的限制:每个资源最多允许绑定 10 个不同的标签,同一资源每个标签“键”上只能存在1个标签“值”;标签键/值只支持中文、数字、大小写字母、空格及特殊符号_.:/=+-@;当无tags时,reps结果返回中tagmsg为空
6060
"""
6161
self.userTags = userTags
6262

jdcloud_sdk/services/disk/apis/DescribeDisksRequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def setFilters(self, filters):
6969
diskType - 云硬盘类型,精确匹配,支持多个,取值为 ssd,premium-hdd,ssd.io1,ssd.gp1,hdd.std1
7070
instanceId - 云硬盘所挂载主机的ID,精确匹配,支持多个
7171
instanceType - 云硬盘所挂载主机的类型,精确匹配,支持多个
72-
status - 可用区,精确匹配,支持多个
73-
az - 云硬盘状态,精确匹配,支持多个
72+
status - 云硬盘状态,精确匹配,支持多个
73+
az - 可用区,精确匹配,支持多个
7474
name - 云硬盘名称,模糊匹配,支持单个
7575
multiAttach - 云硬盘是否多点挂载,精确匹配,支持单个
7676
encrypted - 云硬盘是否加密,精确匹配,支持单个

jdcloud_sdk/services/disk/apis/DescribeSnapPolicesRequest.py

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

2222
class DescribeSnapPolicesRequest(JDCloudRequest):
2323
"""
24-
查询快照策略
24+
- 查询您已经创建的快照策略。
25+
- filters多个过滤条件之间是逻辑与(AND),每个条件内部的多个取值是逻辑或(OR)
26+
2527
"""
2628

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

jdcloud_sdk/services/disk/apis/DescribeSnapshotPoliciesRequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def __init__(self, regionId, ):
4747

4848
def setName(self, name):
4949
"""
50-
:param name: (Optional) 策略名称
50+
:param name: (Optional) 策略名称,默认为空
5151
"""
5252
self.name = name
5353

5454
def setPolicyId(self, policyId):
5555
"""
56-
:param policyId: (Optional) 策略ID
56+
:param policyId: (Optional) 策略ID,默认为空
5757
"""
5858
self.policyId = policyId
5959

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 DescribeSoldoutRequest(JDCloudRequest):
23+
"""
24+
查询云硬盘售罄情况列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeSoldoutRequest, self).__init__(
29+
'/regions/{regionId}/soldout', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeSoldoutParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 地域ID
38+
"""
39+
40+
self.regionId = regionId
41+

jdcloud_sdk/services/disk/apis/ExtendDiskRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, regionId, diskId, diskSizeGB, ):
4848

4949
def setIops(self, iops):
5050
"""
51-
:param iops: (Optional) 修改ssd.io1型云硬盘的iops数量,当且仅当ssd.io1型的云盘类型有效,步长是10.
51+
:param iops: (Optional) 修改ssd.io1型云硬盘的iops数量,当且仅当ssd.io1型的云盘类型有效,步长是10; 默认iops为云硬盘原有iops值
5252
"""
5353
self.iops = iops
5454

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

29-
super(DiskClient, self).__init__(credential, config, 'disk', '0.12.6', logger)
29+
super(DiskClient, self).__init__(credential, config, 'disk', '0.12.7', logger)

jdcloud_sdk/services/disk/models/ContactInfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def __init__(self, sms=None, email=None, personIds=None, groupIds=None):
2323
"""
2424
:param sms: (Optional) 是否发送短信。0:不发送 1:发送
2525
:param email: (Optional) 是否发送短信。0:不发送 1:发送
26-
:param personIds: (Optional) 联系人id
27-
:param groupIds: (Optional) 联系组id
26+
:param personIds: (Optional) 联系人id,默认为空
27+
:param groupIds: (Optional) 联系组id,默认为空
2828
"""
2929

3030
self.sms = sms

jdcloud_sdk/services/disk/models/DiskSpec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ def __init__(self, az, name, diskType, diskSizeGB, description=None, iops=None,
2323
"""
2424
:param az: 云硬盘所属的可用区
2525
:param name: 云硬盘名称
26-
:param description: (Optional) 云硬盘描述
26+
:param description: (Optional) 云硬盘描述,默认为空
2727
:param diskType: 云硬盘类型,取值为ssd、premium-hdd、ssd.gp1、ssd.io1、hdd.std1之一
2828
:param diskSizeGB: 云硬盘大小,单位为 GiB,ssd 类型取值范围[20,1000]GB,步长为10G,premium-hdd 类型取值范围[20,3000]GB,步长为10G, ssd.gp1, ssd.io1, hdd.std1 类型取值均是范围[20,16000]GB,步长为10G
29-
:param iops: (Optional) 云硬盘IOPS的大小,当且仅当云盘类型是ssd.io1型的云盘有效,步长是10.
30-
:param snapshotId: (Optional) 用于创建云硬盘的快照ID
31-
:param policyId: (Optional) 策略ID
29+
:param iops: (Optional) 云硬盘IOPS的大小,当且仅当云盘类型是ssd.io1型的云盘有效,步长是10.默认值为容量30,最大值为容量50
30+
:param snapshotId: (Optional) 用于创建云硬盘的快照ID,默认为空
31+
:param policyId: (Optional) 策略ID,默认为空;当策略Id为空时,reps结果返回中policyRelations为空
3232
:param charge: (Optional) 计费配置;如不指定,默认计费类型是后付费-按使用时常付费
3333
:param multiAttachable: (Optional) 云硬盘是否支持一盘多主机挂载,默认为false(不支持)
3434
:param encrypt: (Optional) 云硬盘是否加密,默认为false(不加密)

0 commit comments

Comments
 (0)