Skip to content

Commit f942165

Browse files
publish jdcloud-sdk-python 1.6.174
1 parent 5c302e7 commit f942165

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

jdcloud_sdk/services/ag/ChangeLog.md

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2022-07-15|0.6.0|功能完善|修复自定义配置类型模版必传的问题|
67
|2022-07-08|0.5.0|功能完善|新增自定义配置类型|
78
|2019-05-29|0.4.0|功能完善|修正必传的参数为未设置为必传的问题|
89
|2019-05-28|0.3.0|功能完善|创建ag的资源类型修改为vm|

jdcloud_sdk/services/ag/apis/CreateAgRequest.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,18 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class CreateAgParameters(object):
3434

35-
def __init__(self, regionId,azs, agName, instanceTemplateId, ):
35+
def __init__(self, regionId,azs, agName, ):
3636
"""
3737
:param regionId: 地域
3838
:param azs: 支持的可用区,最少一个
3939
:param agName: 高可用组名称,只支持中文、数字、大小写字母、英文下划线 “_” 及中划线 “-”,且不能超过 32 字符
40-
:param instanceTemplateId: 实例模板的ID
4140
"""
4241

4342
self.regionId = regionId
4443
self.azs = azs
4544
self.agName = agName
4645
self.agType = None
47-
self.instanceTemplateId = instanceTemplateId
46+
self.instanceTemplateId = None
4847
self.description = None
4948
self.configurationType = None
5049

@@ -54,6 +53,12 @@ def setAgType(self, agType):
5453
"""
5554
self.agType = agType
5655

56+
def setInstanceTemplateId(self, instanceTemplateId):
57+
"""
58+
:param instanceTemplateId: (Optional) 实例模板的ID
59+
"""
60+
self.instanceTemplateId = instanceTemplateId
61+
5762
def setDescription(self, description):
5863
"""
5964
:param description: (Optional) 描述,长度不超过 256 字符

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

29-
super(AgClient, self).__init__(credential, config, 'ag', '0.5.0', logger)
29+
super(AgClient, self).__init__(credential, config, 'ag', '0.6.0', logger)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.173",
12+
version="1.6.174",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)