Skip to content

Commit

Permalink
release 3.0.52 source code for python
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Jul 16, 2021
1 parent 0d032bf commit 83ee0e4
Show file tree
Hide file tree
Showing 148 changed files with 5,196 additions and 1,616 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# 3.0.52 2021-07-16

### HuaweiCloud SDK AS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- Add the request parameter `description` to the interface `CreateScalingV2Policy`.
- Add the response parameter `description` to the interfaces `ShowScalingV2Policy`, `ShowScalingGroup`.

### HuaweiCloud SDK DCS

- _Features_
- Support more interfaces:
- `CreateDiagnosisTask`
- `CreateRedislog`
- `CreateRedislogDownloadLink`
- `ListDiagnosisTasks`
- `ListRedislog`
- `ListSlowlog`
- `ShowDiagnosisTaskDetails`
- _Bug Fix_
- None
- _Change_
- Add the request parameter `include_delete` to the interface `ListInstances`.

### HuaweiCloud SDK IMS

- _Features_
- None
- _Bug Fix_
- [Issue 40](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/40): Fix the issue that the type of the response parameter `__lazyloading` is incorrectly defined.
- _Change_
- None

# 3.0.51 2021-07-09

### HuaweiCloud SDK BMS
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# 3.0.52 2021-07-16

### HuaweiCloud SDK AS

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- 接口`CreateScalingV2Policy`新增请求参数`description`
- 接口`ShowScalingV2Policy``ShowScalingGroup`新增响应参数`description`

### HuaweiCloud SDK DCS

- _新增特性_
- 支持更多接口:
- `CreateDiagnosisTask`
- `CreateRedislog`
- `CreateRedislogDownloadLink`
- `ListDiagnosisTasks`
- `ListRedislog`
- `ListSlowlog`
- `ShowDiagnosisTaskDetails`
- _解决问题_
-
- _特性变更_
- 接口`ListInstances`新增请求参数`include_delete`

### HuaweiCloud SDK IMS

- _新增特性_
-
- _解决问题_
- [Issue 40](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/40): 修复响应参数`__lazyloading`类型定义错误的问题
- _特性变更_
-

# 3.0.51 2021-07-09

### HuaweiCloud SDK BMS
Expand Down
2 changes: 1 addition & 1 deletion examples/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from setuptools import setup, find_packages

NAME = "huaweicloudsdkexample"
VERSION = "3.0.51"
VERSION = "3.0.52"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud-sdk-aom/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages

NAME = "huaweicloudsdkaom"
VERSION = "3.0.51"
VERSION = "3.0.52"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud-sdk-apig/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages

NAME = "huaweicloudsdkapig"
VERSION = "3.0.51"
VERSION = "3.0.52"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class CreateScalingGroupOption:
'delete_publicip': 'bool',
'delete_volume': 'bool',
'enterprise_project_id': 'str',
'multi_az_priority_policy': 'str'
'multi_az_priority_policy': 'str',
'description': 'str'
}

attribute_map = {
Expand All @@ -65,10 +66,11 @@ class CreateScalingGroupOption:
'delete_publicip': 'delete_publicip',
'delete_volume': 'delete_volume',
'enterprise_project_id': 'enterprise_project_id',
'multi_az_priority_policy': 'multi_az_priority_policy'
'multi_az_priority_policy': 'multi_az_priority_policy',
'description': 'description'
}

def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, vpc_id=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None):
def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, vpc_id=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None, description=None):
"""CreateScalingGroupOption - a model defined in huaweicloud sdk"""


Expand All @@ -94,6 +96,7 @@ def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desir
self._delete_volume = None
self._enterprise_project_id = None
self._multi_az_priority_policy = None
self._description = None
self.discriminator = None

self.scaling_group_name = scaling_group_name
Expand Down Expand Up @@ -135,6 +138,8 @@ def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desir
self.enterprise_project_id = enterprise_project_id
if multi_az_priority_policy is not None:
self.multi_az_priority_policy = multi_az_priority_policy
if description is not None:
self.description = description

@property
def scaling_group_name(self):
Expand Down Expand Up @@ -338,7 +343,7 @@ def available_zones(self, available_zones):
def networks(self):
"""Gets the networks of this CreateScalingGroupOption.
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取, 查询子网列表
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)
:return: The networks of this CreateScalingGroupOption.
:rtype: list[Networks]
Expand All @@ -349,7 +354,7 @@ def networks(self):
def networks(self, networks):
"""Sets the networks of this CreateScalingGroupOption.
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取, 查询子网列表
网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)
:param networks: The networks of this CreateScalingGroupOption.
:type: list[Networks]
Expand Down Expand Up @@ -598,6 +603,28 @@ def multi_az_priority_policy(self, multi_az_priority_policy):
"""
self._multi_az_priority_policy = multi_az_priority_policy

@property
def description(self):
"""Gets the description of this CreateScalingGroupOption.
伸缩组描述信息(0-256个字符)
:return: The description of this CreateScalingGroupOption.
:rtype: str
"""
return self._description

@description.setter
def description(self, description):
"""Sets the description of this CreateScalingGroupOption.
伸缩组描述信息(0-256个字符)
:param description: The description of this CreateScalingGroupOption.
:type: str
"""
self._description = description

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class CreateScalingPolicyV2Option:
'alarm_id': 'str',
'scheduled_policy': 'ScheduledPolicy',
'scaling_policy_action': 'ScalingPolicyActionV2',
'cool_down_time': 'int'
'cool_down_time': 'int',
'description': 'str'
}

attribute_map = {
Expand All @@ -39,10 +40,11 @@ class CreateScalingPolicyV2Option:
'alarm_id': 'alarm_id',
'scheduled_policy': 'scheduled_policy',
'scaling_policy_action': 'scaling_policy_action',
'cool_down_time': 'cool_down_time'
'cool_down_time': 'cool_down_time',
'description': 'description'
}

def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None):
def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, description=None):
"""CreateScalingPolicyV2Option - a model defined in huaweicloud sdk"""


Expand All @@ -55,6 +57,7 @@ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_r
self._scheduled_policy = None
self._scaling_policy_action = None
self._cool_down_time = None
self._description = None
self.discriminator = None

self.scaling_policy_name = scaling_policy_name
Expand All @@ -69,6 +72,8 @@ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_r
self.scaling_policy_action = scaling_policy_action
if cool_down_time is not None:
self.cool_down_time = cool_down_time
if description is not None:
self.description = description

@property
def scaling_policy_name(self):
Expand Down Expand Up @@ -242,6 +247,28 @@ def cool_down_time(self, cool_down_time):
"""
self._cool_down_time = cool_down_time

@property
def description(self):
"""Gets the description of this CreateScalingPolicyV2Option.
伸缩策略描述(1-256个字符)
:return: The description of this CreateScalingPolicyV2Option.
:rtype: str
"""
return self._description

@description.setter
def description(self, description):
"""Sets the description of this CreateScalingPolicyV2Option.
伸缩策略描述(1-256个字符)
:param description: The description of this CreateScalingPolicyV2Option.
:type: str
"""
self._description = description

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
15 changes: 7 additions & 8 deletions huaweicloud-sdk-as/huaweicloudsdkas/v1/model/instance_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def __init__(self, instance_id=None, flavor_ref=None, image_ref=None, disk=None,
self.user_data = user_data
if metadata is not None:
self.metadata = metadata
if security_groups is not None:
self.security_groups = security_groups
self.security_groups = security_groups
if server_group_id is not None:
self.server_group_id = server_group_id
if tenancy is not None:
Expand Down Expand Up @@ -135,7 +134,7 @@ def instance_id(self, instance_id):
def flavor_ref(self):
"""Gets the flavor_ref of this InstanceConfig.
云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考查询云服务器规格详情和扩展信息列表
云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考 [查询云服务器规格详情和扩展信息列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212656.html)
:return: The flavor_ref of this InstanceConfig.
:rtype: str
Expand All @@ -146,7 +145,7 @@ def flavor_ref(self):
def flavor_ref(self, flavor_ref):
"""Sets the flavor_ref of this InstanceConfig.
云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考查询云服务器规格详情和扩展信息列表
云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考 [查询云服务器规格详情和扩展信息列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212656.html)
:param flavor_ref: The flavor_ref of this InstanceConfig.
:type: str
Expand All @@ -157,7 +156,7 @@ def flavor_ref(self, flavor_ref):
def image_ref(self):
"""Gets the image_ref of this InstanceConfig.
镜像ID,同image_id,通过查询镜像服务镜像列表接口获取,详见《镜像服务API参考》的“查询镜像列表
镜像ID,同image_id,指定创建实例时选择的镜像资源。通过查询镜像服务镜像列表接口获取,请参考[查询镜像列表](https://support.huaweicloud.com/api-ims/ims_03_0602.html)
:return: The image_ref of this InstanceConfig.
:rtype: str
Expand All @@ -168,7 +167,7 @@ def image_ref(self):
def image_ref(self, image_ref):
"""Sets the image_ref of this InstanceConfig.
镜像ID,同image_id,通过查询镜像服务镜像列表接口获取,详见《镜像服务API参考》的“查询镜像列表
镜像ID,同image_id,指定创建实例时选择的镜像资源。通过查询镜像服务镜像列表接口获取,请参考[查询镜像列表](https://support.huaweicloud.com/api-ims/ims_03_0602.html)
:param image_ref: The image_ref of this InstanceConfig.
:type: str
Expand Down Expand Up @@ -201,7 +200,7 @@ def disk(self, disk):
def key_name(self):
"""Gets the key_name of this InstanceConfig.
登录云服务器的SSH密钥名称,与adminPass互斥,且必选一个。Windoes弹性云服务器不支持使用密钥登陆方式
登录云服务器的SSH密钥名称。 获取密钥对方式请参考[创建及导入SSH密钥对](https://support.huaweicloud.com/api-dew/CreateKeypair.html)。 说明: 当key_name与user_data同时指定时,user_data只做用户数据注入
:return: The key_name of this InstanceConfig.
:rtype: str
Expand All @@ -212,7 +211,7 @@ def key_name(self):
def key_name(self, key_name):
"""Sets the key_name of this InstanceConfig.
登录云服务器的SSH密钥名称,与adminPass互斥,且必选一个。Windoes弹性云服务器不支持使用密钥登陆方式
登录云服务器的SSH密钥名称。 获取密钥对方式请参考[创建及导入SSH密钥对](https://support.huaweicloud.com/api-dew/CreateKeypair.html)。 说明: 当key_name与user_data同时指定时,user_data只做用户数据注入
:param key_name: The key_name of this InstanceConfig.
:type: str
Expand Down
6 changes: 2 additions & 4 deletions huaweicloud-sdk-as/huaweicloudsdkas/v1/model/matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ def __init__(self, key=None, value=None):
self._value = None
self.discriminator = None

if key is not None:
self.key = key
if value is not None:
self.value = value
self.key = key
self.value = value

@property
def key(self):
Expand Down
4 changes: 2 additions & 2 deletions huaweicloud-sdk-as/huaweicloudsdkas/v1/model/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, id=None, ipv6_enable=None, ipv6_bandwidth=None):
def id(self):
"""Gets the id of this Networks.
网络ID
子网的网络id
:return: The id of this Networks.
:rtype: str
Expand All @@ -63,7 +63,7 @@ def id(self):
def id(self, id):
"""Sets the id of this Networks.
网络ID
子网的网络id
:param id: The id of this Networks.
:type: str
Expand Down
Loading

0 comments on commit 83ee0e4

Please sign in to comment.