release 3.0.12-beta source code for python
This commit is contained in:
parent
9e97daa33b
commit
449aecd1e6
|
@ -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
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
## 3.0.12-beta 2020-09-11
|
||||
## HuaweiCloud SDK Meeting
|
||||
- ### 新增特性
|
||||
- 无
|
||||
- ### 解决问题
|
||||
- 修复创建认证凭证失败的问题
|
||||
- ### 特性变更
|
||||
- 无
|
||||
|
||||
# 3.0.11-beta 2020-09-09
|
||||
## HuaweiCloud SDK DMS
|
||||
- ### 新增特性
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue