diff --git a/CHANGELOG.md b/CHANGELOG.md index 782cc0bf6..69ee957c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## 3.0.12-beta 2020-09-11 +## HuaweiCloud SDK Meeting + - ### Features + - None + - ### Bug Fix + - Fix failed to create credentials + - ### Change + - None + # 3.0.11-beta 2020-09-09 ## HuaweiCloud SDK DMS - ### Features diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 2e73bc7d1..644af8c39 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,12 @@ +## 3.0.12-beta 2020-09-11 +## HuaweiCloud SDK Meeting + - ### 新增特性 + - 无 + - ### 解决问题 + - 修复创建认证凭证失败的问题 + - ### 特性变更 + - 无 + # 3.0.11-beta 2020-09-09 ## HuaweiCloud SDK DMS - ### 新增特性 diff --git a/examples/setup.py b/examples/setup.py index a76146851..9ac5d111f 100644 --- a/examples/setup.py +++ b/examples/setup.py @@ -21,7 +21,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkexample" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index d71f27d34..b41bb7825 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 8678f6548..22c17bac2 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 0d65e8170..f2e3ab0bb 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 301cad606..11dd8c592 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/__init__.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/__init__.py index 310f3a715..07389bb04 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/__init__.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/__init__.py @@ -38,6 +38,7 @@ from huaweicloudsdkcbr.v1.model.checkpoint_replicate_param import CheckpointRepl from huaweicloudsdkcbr.v1.model.checkpoint_replicate_req import CheckpointReplicateReq from huaweicloudsdkcbr.v1.model.checkpoint_replicate_resp_body import CheckpointReplicateRespBody from huaweicloudsdkcbr.v1.model.checkpoint_replicate_respbackups import CheckpointReplicateRespbackups +from huaweicloudsdkcbr.v1.model.checkpoint_resource_resp import CheckpointResourceResp from huaweicloudsdkcbr.v1.model.copy_backup_request import CopyBackupRequest from huaweicloudsdkcbr.v1.model.copy_backup_response import CopyBackupResponse from huaweicloudsdkcbr.v1.model.copy_checkpoint_request import CopyCheckpointRequest diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/__init__.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/__init__.py index 39b1decb0..c0ea15c7e 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/__init__.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/__init__.py @@ -35,6 +35,7 @@ from huaweicloudsdkcbr.v1.model.checkpoint_replicate_param import CheckpointRepl from huaweicloudsdkcbr.v1.model.checkpoint_replicate_req import CheckpointReplicateReq from huaweicloudsdkcbr.v1.model.checkpoint_replicate_resp_body import CheckpointReplicateRespBody from huaweicloudsdkcbr.v1.model.checkpoint_replicate_respbackups import CheckpointReplicateRespbackups +from huaweicloudsdkcbr.v1.model.checkpoint_resource_resp import CheckpointResourceResp from huaweicloudsdkcbr.v1.model.copy_backup_request import CopyBackupRequest from huaweicloudsdkcbr.v1.model.copy_backup_response import CopyBackupResponse from huaweicloudsdkcbr.v1.model.copy_checkpoint_request import CopyCheckpointRequest diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_plan_create.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_plan_create.py index 5d4cbf911..53e8d26cc 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_plan_create.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_plan_create.py @@ -25,7 +25,7 @@ class CheckpointPlanCreate: openapi_types = { 'id': 'str', 'name': 'str', - 'resources': 'list[ResourceResp]', + 'resources': 'list[CheckpointResourceResp]', 'skipped_resources': 'list[CheckpointCreateSkippedResource]' } @@ -105,7 +105,7 @@ class CheckpointPlanCreate: 备份对象 :return: The resources of this CheckpointPlanCreate. - :rtype: list[ResourceResp] + :rtype: list[CheckpointResourceResp] """ return self._resources @@ -116,7 +116,7 @@ class CheckpointPlanCreate: 备份对象 :param resources: The resources of this CheckpointPlanCreate. - :type: list[ResourceResp] + :type: list[CheckpointResourceResp] """ self._resources = resources diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_resource_resp.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_resource_resp.py new file mode 100644 index 000000000..16eed0d7d --- /dev/null +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/checkpoint_resource_resp.py @@ -0,0 +1,296 @@ +# coding: utf-8 + +import pprint +import re + +import six + + + + + +class CheckpointResourceResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'extra_info': 'str', + 'id': 'str', + 'name': 'str', + 'protect_status': 'str', + 'resource_size': 'str', + 'type': 'str', + 'backup_size': 'str', + 'backup_count': 'str' + } + + attribute_map = { + 'extra_info': 'extra_info', + 'id': 'id', + 'name': 'name', + 'protect_status': 'protect_status', + 'resource_size': 'resource_size', + 'type': 'type', + 'backup_size': 'backup_size', + 'backup_count': 'backup_count' + } + + def __init__(self, extra_info=None, id=None, name=None, protect_status=None, resource_size=None, type=None, backup_size=None, backup_count=None): + """CheckpointResourceResp - a model defined in huaweicloud sdk""" + + + + self._extra_info = None + self._id = None + self._name = None + self._protect_status = None + self._resource_size = None + self._type = None + self._backup_size = None + self._backup_count = None + self.discriminator = None + + if extra_info is not None: + self.extra_info = extra_info + self.id = id + self.name = name + if protect_status is not None: + self.protect_status = protect_status + if resource_size is not None: + self.resource_size = resource_size + self.type = type + if backup_size is not None: + self.backup_size = backup_size + if backup_count is not None: + self.backup_count = backup_count + + @property + def extra_info(self): + """Gets the extra_info of this CheckpointResourceResp. + + 资源附加信息 + + :return: The extra_info of this CheckpointResourceResp. + :rtype: str + """ + return self._extra_info + + @extra_info.setter + def extra_info(self, extra_info): + """Sets the extra_info of this CheckpointResourceResp. + + 资源附加信息 + + :param extra_info: The extra_info of this CheckpointResourceResp. + :type: str + """ + self._extra_info = extra_info + + @property + def id(self): + """Gets the id of this CheckpointResourceResp. + + 待备份资源id + + :return: The id of this CheckpointResourceResp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CheckpointResourceResp. + + 待备份资源id + + :param id: The id of this CheckpointResourceResp. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CheckpointResourceResp. + + 待备份资源名称 + + :return: The name of this CheckpointResourceResp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CheckpointResourceResp. + + 待备份资源名称 + + :param name: The name of this CheckpointResourceResp. + :type: str + """ + self._name = name + + @property + def protect_status(self): + """Gets the protect_status of this CheckpointResourceResp. + + 保护状态 + + :return: The protect_status of this CheckpointResourceResp. + :rtype: str + """ + return self._protect_status + + @protect_status.setter + def protect_status(self, protect_status): + """Sets the protect_status of this CheckpointResourceResp. + + 保护状态 + + :param protect_status: The protect_status of this CheckpointResourceResp. + :type: str + """ + self._protect_status = protect_status + + @property + def resource_size(self): + """Gets the resource_size of this CheckpointResourceResp. + + 资源已分配容量,单位为GB + + :return: The resource_size of this CheckpointResourceResp. + :rtype: str + """ + return self._resource_size + + @resource_size.setter + def resource_size(self, resource_size): + """Sets the resource_size of this CheckpointResourceResp. + + 资源已分配容量,单位为GB + + :param resource_size: The resource_size of this CheckpointResourceResp. + :type: str + """ + self._resource_size = resource_size + + @property + def type(self): + """Gets the type of this CheckpointResourceResp. + + + + :return: The type of this CheckpointResourceResp. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CheckpointResourceResp. + + + + :param type: The type of this CheckpointResourceResp. + :type: str + """ + self._type = type + + @property + def backup_size(self): + """Gets the backup_size of this CheckpointResourceResp. + + 副本大小 + + :return: The backup_size of this CheckpointResourceResp. + :rtype: str + """ + return self._backup_size + + @backup_size.setter + def backup_size(self, backup_size): + """Sets the backup_size of this CheckpointResourceResp. + + 副本大小 + + :param backup_size: The backup_size of this CheckpointResourceResp. + :type: str + """ + self._backup_size = backup_size + + @property + def backup_count(self): + """Gets the backup_count of this CheckpointResourceResp. + + 副本数量 + + :return: The backup_count of this CheckpointResourceResp. + :rtype: str + """ + return self._backup_count + + @backup_count.setter + def backup_count(self, backup_count): + """Sets the backup_count of this CheckpointResourceResp. + + 副本数量 + + :param backup_count: The backup_count of this CheckpointResourceResp. + :type: str + """ + self._backup_count = backup_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CheckpointResourceResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 1ee2b1f26..49b05010f 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 94406dee5..d2513b2d1 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index c00744200..9a0acb535 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index b33289f6a..857b9551b 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index cd3826901..cc4b12ac0 100644 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 164c6ea02..775779438 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index f66f85965..08e2e4449 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index f9cca467a..7d24f5417 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 878ae70d7..19348bd23 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index cfa38f214..2ab714952 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index 0ef8c9878..67a7f981e 100644 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 28f33aa16..d84157b07 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index c97386f4b..2b91790f3 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request_body.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request_body.py index 059580d5a..b343d7a05 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request_body.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request_body.py @@ -24,26 +24,31 @@ class CreateVolumeRequestBody: openapi_types = { 'bss_param': 'BssParamForCreateVolume', - 'volume': 'CreateVolumeOption' + 'volume': 'CreateVolumeOption', + 'server_id': 'str' } attribute_map = { 'bss_param': 'bssParam', - 'volume': 'volume' + 'volume': 'volume', + 'server_id': 'server_id' } - def __init__(self, bss_param=None, volume=None): + def __init__(self, bss_param=None, volume=None, server_id=None): """CreateVolumeRequestBody - a model defined in huaweicloud sdk""" self._bss_param = None self._volume = None + self._server_id = None self.discriminator = None if bss_param is not None: self.bss_param = bss_param self.volume = volume + if server_id is not None: + self.server_id = server_id @property def bss_param(self): @@ -85,6 +90,28 @@ class CreateVolumeRequestBody: """ self._volume = volume + @property + def server_id(self): + """Gets the server_id of this CreateVolumeRequestBody. + + 创建云硬盘并挂载到目标虚拟机。 + + :return: The server_id of this CreateVolumeRequestBody. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this CreateVolumeRequestBody. + + 创建云硬盘并挂载到目标虚拟机。 + + :param server_id: The server_id of this CreateVolumeRequestBody. + :type: str + """ + self._server_id = server_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_response.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_response.py index 85ad3fe25..08af1f7be 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_response.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_response.py @@ -24,27 +24,32 @@ class CreateVolumeResponse(SdkResponse): openapi_types = { 'job_id': 'str', - 'order_id': 'str' + 'order_id': 'str', + 'volume_ids': 'list[str]' } attribute_map = { 'job_id': 'job_id', - 'order_id': 'order_id' + 'order_id': 'order_id', + 'volume_ids': 'volume_ids' } - def __init__(self, job_id=None, order_id=None): + def __init__(self, job_id=None, order_id=None, volume_ids=None): """CreateVolumeResponse - a model defined in huaweicloud sdk""" super().__init__() self._job_id = None self._order_id = None + self._volume_ids = None self.discriminator = None if job_id is not None: self.job_id = job_id if order_id is not None: self.order_id = order_id + if volume_ids is not None: + self.volume_ids = volume_ids @property def job_id(self): @@ -90,6 +95,28 @@ class CreateVolumeResponse(SdkResponse): """ self._order_id = order_id + @property + def volume_ids(self): + """Gets the volume_ids of this CreateVolumeResponse. + + 待创建的磁盘ID列表。 + + :return: The volume_ids of this CreateVolumeResponse. + :rtype: list[str] + """ + return self._volume_ids + + @volume_ids.setter + def volume_ids(self, volume_ids): + """Sets the volume_ids of this CreateVolumeResponse. + + 待创建的磁盘ID列表。 + + :param volume_ids: The volume_ids of this CreateVolumeResponse. + :type: list[str] + """ + self._volume_ids = volume_ids + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index e05dc7cb9..7ef16ee31 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index d2f2480a6..1e84e19c2 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 7e2a6e7a1..92970c03c 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 15a2b604e..cb9484f84 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index e75cf6793..d3c88293f 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index c13f992da..2437162d3 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 1d7b1db04..d7bd6b3da 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index e74cfa69b..cd77e0354 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 9d8cdb2fb..e92999e76 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py index b80597ec2..22bebb4ca 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py @@ -11,11 +11,18 @@ from huaweicloudsdkcore.sdk_request import SdkRequest class MeetingCredentials(Credentials): - def __init__(self): + def __init__(self, username, password): self._token = None self._last_token_date = None - self._username = None - self._password = None + + if username is None or username == "": + raise ApiValueError("username can not be null.") + + if password is None or password == "": + raise ApiValueError("password can not be null.") + + self._username = username + self._password = password def get_update_path_params(self): pass @@ -36,11 +43,11 @@ class MeetingCredentials(Credentials): 'utf-8') body = {'account': self._username, 'clientType': 0} - sdk_request = SdkRequest('POST', 'https', request.host, '/v1/usg/acs/auth/account', [], + sdk_request = SdkRequest('POST', 'https', request.host, [], '/v1/usg/acs/auth/account', [], {'Authorization': authorization, 'Content-Type': 'application/json'}, - json.dumps(body), [], '/v1/usg/acs/auth/account') + json.dumps(body), []) - response = http_client.do_request_sync(sdk_request, [], []) + response = http_client.do_request_sync(sdk_request) content = json.loads(response.content.decode()) self._token = content['accessToken'] self._last_token_date = datetime.datetime.now() diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 2de8ed060..208c1b194 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 069c43a4f..f9d03259c 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index ff73b5c40..97c9caebb 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 3739b1f09..894d5a2a6 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index eb59e2906..ac6271f77 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index b96c21b17..8bfb34e63 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-testhub/setup.py b/huaweicloud-sdk-testhub/setup.py index 0c9fde625..afe9f3c5c 100644 --- a/huaweicloud-sdk-testhub/setup.py +++ b/huaweicloud-sdk-testhub/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktesthub" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index a2167f0ec..61ad75f6a 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 3da38d1ae..16865d0ee 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.0.11-beta" +VERSION = "3.0.12-beta" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"