Skip to content

Commit 532e252

Browse files
publish jdcloud-sdk-python 1.6.179
1 parent b1f155b commit 532e252

24 files changed

Lines changed: 296 additions & 14 deletions

jdcloud_sdk/services/vm/ChangeLog.md

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2022-08-02 |1.5.2 |更新接口 |* 重置镜像支持新字段 |
7+
|2022-06-28 |1.5.1 |文档完善 |* 实例规格支持 CPU 架构 |
8+
|2022-04-18 |1.5.0 |文档完善 |* 专有宿主机SDK支持 |
69
|2022-02-21 |1.4.2 |文档完善 |* 存量主机加入或调整高可用组接口删除产品操作说明 |
710
|2022-01-18 |1.4.1 |更新接口 |* 创建云主机支持指定资源组 |
811
|2021-12-23 |1.3.9 |新增接口 |* 新增存量主机加入或调整高可用组接口 |

jdcloud_sdk/services/vm/apis/DescribeImagesRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def setServiceCode(self, serviceCode):
135135

136136
def setArchitecture(self, architecture):
137137
"""
138-
:param architecture: (Optional) CPU架构。支持范围:`x86_64`、`aarch64`。
138+
:param architecture: (Optional) CPU架构。支持范围:`x86_64`、`arm64`。
139139
"""
140140
self.architecture = architecture
141141

jdcloud_sdk/services/vm/apis/DescribeInstanceTypesRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def setFilters(self, filters):
6262
:param filters: (Optional) <b>filters 中支持使用以下关键字进行过滤</b>
6363
`instanceTypes`: 实例规格,精确匹配,支持多个
6464
`az`: 可用区,精确匹配,支持多个
65+
`architecture`: CPU架构,精确匹配,支持单个,可选范围:x86_64或arm64
6566
6667
"""
6768
self.filters = filters

jdcloud_sdk/services/vm/apis/DescribeQuotasRequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DescribeQuotasRequest(JDCloudRequest):
2525
查询资源配额。
2626
2727
## 接口说明
28-
- 调用该接口可查询 `云主机`、`镜像`、`密钥`、`实例模板`、`镜像共享` 的配额。
28+
- 调用该接口可查询 `云主机`、`云主机的CPU`、`云主机的内存`、`云主机的本地盘`、`镜像`、`密钥`、`实例模板`、`镜像共享` 的配额。
2929
3030
"""
3131

@@ -49,7 +49,7 @@ def __init__(self, regionId,):
4949
def setFilters(self, filters):
5050
"""
5151
:param filters: (Optional) <b>filters 中支持使用以下关键字进行过滤</b>
52-
`resourceTypes`: 资源类型,支持多个,可选范围:`instance、keypair、image、instanceTemplate、imageShare`
52+
`resourceTypes`: 资源类型,支持多个,可选范围:`instance、instance_cpu、instance_memory、instance_local_disk、keypair、image、instanceTemplate、imageShare`
5353
5454
"""
5555
self.filters = filters

jdcloud_sdk/services/vm/apis/ImportImageRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ImportImageParameters(object):
4343
def __init__(self, regionId,architecture, osType, platform, diskFormat, systemDiskSizeGB, imageUrl, imageName, ):
4444
"""
4545
:param regionId: 地域ID。
46-
:param architecture: 镜像架构。取值范围:`x86_64、i386`。
46+
:param architecture: 镜像架构。取值范围:`x86_64、arm64`。
4747
:param osType: 镜像的操作系统类型。取值范围:`windows、linux`。
4848
:param platform: 镜像的操作系统平台名称。
4949
取值范围:`Ubuntu、CentOS、Windows Server、Other Linux、Other Windows`。

jdcloud_sdk/services/vm/apis/RebuildInstanceRequest.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def __init__(self, regionId,instanceId,):
6060
self.hostname = None
6161
self.metadata = None
6262
self.userdata = None
63+
self.passWordAuth = None
64+
self.imageInherit = None
6365

6466
def setPassword(self, password):
6567
"""
@@ -116,3 +118,18 @@ def setUserdata(self, userdata):
116118
"""
117119
self.userdata = userdata
118120

121+
def setPassWordAuth(self, passWordAuth):
122+
"""
123+
:param passWordAuth: (Optional) 密码授权,若存在密匙,则根据此参数决定是否使用密码,若没有密匙,此参数无效,会强制使用密码。
124+
若不使用密码,且密匙对解绑后,用户需重置密码,方可使用密码登录。
125+
此参数在windows系统中必须为yes。
126+
127+
"""
128+
self.passWordAuth = passWordAuth
129+
130+
def setImageInherit(self, imageInherit):
131+
"""
132+
:param imageInherit: (Optional) 继承镜像中的登录验证方式,"yes"为使用,"no"为不使用,""默认为"no"
133+
"""
134+
self.imageInherit = imageInherit
135+

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

29-
super(VmClient, self).__init__(credential, config, 'vm', '1.4.2', logger)
29+
super(VmClient, self).__init__(credential, config, 'vm', '1.5.2', logger)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 BindInfo(object):
21+
22+
def __init__(self, resourceId=None, resourceName=None, remark=None):
23+
"""
24+
:param resourceId: (Optional) 资源 ID
25+
:param resourceName: (Optional) 资源 名称
26+
:param remark: (Optional) 备注信息
27+
"""
28+
29+
self.resourceId = resourceId
30+
self.resourceName = resourceName
31+
self.remark = remark
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 BurstInfo(object):
21+
22+
def __init__(self, burstMode=None, creditChargeStatus=None):
23+
"""
24+
:param burstMode: (Optional) 突发模式
25+
:param creditChargeStatus: (Optional) 积分费用支付状态,normal为正常, arrear为欠费
26+
"""
27+
28+
self.burstMode = burstMode
29+
self.creditChargeStatus = creditChargeStatus
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 BurstSpec(object):
21+
22+
def __init__(self, burstMode=None):
23+
"""
24+
:param burstMode: (Optional) 突发模式,standard 为标准模式,unlimited 为无限模式,默认 standard。
25+
"""
26+
27+
self.burstMode = burstMode

0 commit comments

Comments
 (0)