tencentcloud-sdk-python-cdz 3.1.196__tar.gz → 3.1.214__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/setup.py +1 -1
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/cdz/v20221123/cdz_client.py +23 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/cdz/v20221123/cdz_client_async.py +18 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/cdz/v20221123/errorcodes.py +3 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/cdz/v20221123/models.py +165 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud_sdk_python_cdz.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cdz-3.1.214/tencentcloud_sdk_python_cdz.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cdz-3.1.196/tencentcloud_sdk_python_cdz.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/README.rst +0 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/cdz/__init__.py +0 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud/cdz/v20221123/__init__.py +0 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud_sdk_python_cdz.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud_sdk_python_cdz.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cdz-3.1.196 → tencentcloud_sdk_python_cdz-3.1.214}/tencentcloud_sdk_python_cdz.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cdz
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.214
|
|
4
4
|
Summary: Tencent Cloud Cdz SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.214
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cdz',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.214,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cdz SDK for Python',
|
|
@@ -65,6 +65,29 @@ class CdzClient(AbstractClient):
|
|
|
65
65
|
model = models.DescribeCloudDedicatedZoneResourceSummaryResponse()
|
|
66
66
|
model._deserialize(response["Response"])
|
|
67
67
|
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def DescribeUserAvailableCloudDedicatedZones(self, request):
|
|
76
|
+
r"""查询用户可使用的专属可用区列表
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for DescribeUserAvailableCloudDedicatedZones.
|
|
79
|
+
:type request: :class:`tencentcloud.cdz.v20221123.models.DescribeUserAvailableCloudDedicatedZonesRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.cdz.v20221123.models.DescribeUserAvailableCloudDedicatedZonesResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("DescribeUserAvailableCloudDedicatedZones", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.DescribeUserAvailableCloudDedicatedZonesResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
68
91
|
except Exception as e:
|
|
69
92
|
if isinstance(e, TencentCloudSDKException):
|
|
70
93
|
raise
|
|
@@ -59,4 +59,22 @@ class CdzClient(AbstractClient):
|
|
|
59
59
|
kwargs["headers"] = request.headers
|
|
60
60
|
kwargs["opts"] = opts or {}
|
|
61
61
|
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeUserAvailableCloudDedicatedZones(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeUserAvailableCloudDedicatedZonesRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeUserAvailableCloudDedicatedZonesResponse:
|
|
69
|
+
"""
|
|
70
|
+
查询用户可使用的专属可用区列表
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "DescribeUserAvailableCloudDedicatedZones"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.DescribeUserAvailableCloudDedicatedZonesResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
62
80
|
return await self.call_and_deserialize(**kwargs)
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
# 方法不存在
|
|
18
18
|
FAILEDOPERATION_INVALIDACTION = 'FailedOperation.InvalidAction'
|
|
19
19
|
|
|
20
|
+
# 参数错误。
|
|
21
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
|
22
|
+
|
|
20
23
|
# HostUuids参数和InstancesIds参数不能同时传递。
|
|
21
24
|
INVALIDPARAMETER_HOSTUUIDSANDINSIDSCANNOTAPPEARSAMETIME = 'InvalidParameter.HostUuidsAndInsIdsCannotAppearSameTime'
|
|
22
25
|
|
|
@@ -18,6 +18,102 @@ import warnings
|
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
class CloudDedicatedZone(AbstractModel):
|
|
22
|
+
r"""专属可用区信息
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Zone: 专属可用区所属的可用区
|
|
29
|
+
:type Zone: str
|
|
30
|
+
:param _ZoneId: 地域系统中的可用区ID
|
|
31
|
+
:type ZoneId: str
|
|
32
|
+
:param _ZoneName: 专属可用区名称
|
|
33
|
+
:type ZoneName: str
|
|
34
|
+
:param _IsLiteMode: 是否为轻量专属可用区
|
|
35
|
+
:type IsLiteMode: bool
|
|
36
|
+
:param _Region: 可用区所在地域
|
|
37
|
+
:type Region: str
|
|
38
|
+
"""
|
|
39
|
+
self._Zone = None
|
|
40
|
+
self._ZoneId = None
|
|
41
|
+
self._ZoneName = None
|
|
42
|
+
self._IsLiteMode = None
|
|
43
|
+
self._Region = None
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def Zone(self):
|
|
47
|
+
r"""专属可用区所属的可用区
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._Zone
|
|
51
|
+
|
|
52
|
+
@Zone.setter
|
|
53
|
+
def Zone(self, Zone):
|
|
54
|
+
self._Zone = Zone
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def ZoneId(self):
|
|
58
|
+
r"""地域系统中的可用区ID
|
|
59
|
+
:rtype: str
|
|
60
|
+
"""
|
|
61
|
+
return self._ZoneId
|
|
62
|
+
|
|
63
|
+
@ZoneId.setter
|
|
64
|
+
def ZoneId(self, ZoneId):
|
|
65
|
+
self._ZoneId = ZoneId
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def ZoneName(self):
|
|
69
|
+
r"""专属可用区名称
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._ZoneName
|
|
73
|
+
|
|
74
|
+
@ZoneName.setter
|
|
75
|
+
def ZoneName(self, ZoneName):
|
|
76
|
+
self._ZoneName = ZoneName
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def IsLiteMode(self):
|
|
80
|
+
r"""是否为轻量专属可用区
|
|
81
|
+
:rtype: bool
|
|
82
|
+
"""
|
|
83
|
+
return self._IsLiteMode
|
|
84
|
+
|
|
85
|
+
@IsLiteMode.setter
|
|
86
|
+
def IsLiteMode(self, IsLiteMode):
|
|
87
|
+
self._IsLiteMode = IsLiteMode
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def Region(self):
|
|
91
|
+
r"""可用区所在地域
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._Region
|
|
95
|
+
|
|
96
|
+
@Region.setter
|
|
97
|
+
def Region(self, Region):
|
|
98
|
+
self._Region = Region
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def _deserialize(self, params):
|
|
102
|
+
self._Zone = params.get("Zone")
|
|
103
|
+
self._ZoneId = params.get("ZoneId")
|
|
104
|
+
self._ZoneName = params.get("ZoneName")
|
|
105
|
+
self._IsLiteMode = params.get("IsLiteMode")
|
|
106
|
+
self._Region = params.get("Region")
|
|
107
|
+
memeber_set = set(params.keys())
|
|
108
|
+
for name, value in vars(self).items():
|
|
109
|
+
property_name = name[1:]
|
|
110
|
+
if property_name in memeber_set:
|
|
111
|
+
memeber_set.remove(property_name)
|
|
112
|
+
if len(memeber_set) > 0:
|
|
113
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
21
117
|
class CloudDedicatedZoneHostsInfo(AbstractModel):
|
|
22
118
|
r"""CDZ的母机和子机的对应关系
|
|
23
119
|
|
|
@@ -571,6 +667,75 @@ class DescribeCloudDedicatedZoneResourceSummaryResponse(AbstractModel):
|
|
|
571
667
|
self._RequestId = params.get("RequestId")
|
|
572
668
|
|
|
573
669
|
|
|
670
|
+
class DescribeUserAvailableCloudDedicatedZonesRequest(AbstractModel):
|
|
671
|
+
r"""DescribeUserAvailableCloudDedicatedZones请求参数结构体
|
|
672
|
+
|
|
673
|
+
"""
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
class DescribeUserAvailableCloudDedicatedZonesResponse(AbstractModel):
|
|
677
|
+
r"""DescribeUserAvailableCloudDedicatedZones返回参数结构体
|
|
678
|
+
|
|
679
|
+
"""
|
|
680
|
+
|
|
681
|
+
def __init__(self):
|
|
682
|
+
r"""
|
|
683
|
+
:param _ZoneIdSet: 返回当前用户可使用的专属可用区 ID
|
|
684
|
+
:type ZoneIdSet: list of str
|
|
685
|
+
:param _ZoneSet: 专属可用区列表信息。
|
|
686
|
+
:type ZoneSet: list of CloudDedicatedZone
|
|
687
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
688
|
+
:type RequestId: str
|
|
689
|
+
"""
|
|
690
|
+
self._ZoneIdSet = None
|
|
691
|
+
self._ZoneSet = None
|
|
692
|
+
self._RequestId = None
|
|
693
|
+
|
|
694
|
+
@property
|
|
695
|
+
def ZoneIdSet(self):
|
|
696
|
+
r"""返回当前用户可使用的专属可用区 ID
|
|
697
|
+
:rtype: list of str
|
|
698
|
+
"""
|
|
699
|
+
return self._ZoneIdSet
|
|
700
|
+
|
|
701
|
+
@ZoneIdSet.setter
|
|
702
|
+
def ZoneIdSet(self, ZoneIdSet):
|
|
703
|
+
self._ZoneIdSet = ZoneIdSet
|
|
704
|
+
|
|
705
|
+
@property
|
|
706
|
+
def ZoneSet(self):
|
|
707
|
+
r"""专属可用区列表信息。
|
|
708
|
+
:rtype: list of CloudDedicatedZone
|
|
709
|
+
"""
|
|
710
|
+
return self._ZoneSet
|
|
711
|
+
|
|
712
|
+
@ZoneSet.setter
|
|
713
|
+
def ZoneSet(self, ZoneSet):
|
|
714
|
+
self._ZoneSet = ZoneSet
|
|
715
|
+
|
|
716
|
+
@property
|
|
717
|
+
def RequestId(self):
|
|
718
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
719
|
+
:rtype: str
|
|
720
|
+
"""
|
|
721
|
+
return self._RequestId
|
|
722
|
+
|
|
723
|
+
@RequestId.setter
|
|
724
|
+
def RequestId(self, RequestId):
|
|
725
|
+
self._RequestId = RequestId
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
def _deserialize(self, params):
|
|
729
|
+
self._ZoneIdSet = params.get("ZoneIdSet")
|
|
730
|
+
if params.get("ZoneSet") is not None:
|
|
731
|
+
self._ZoneSet = []
|
|
732
|
+
for item in params.get("ZoneSet"):
|
|
733
|
+
obj = CloudDedicatedZone()
|
|
734
|
+
obj._deserialize(item)
|
|
735
|
+
self._ZoneSet.append(obj)
|
|
736
|
+
self._RequestId = params.get("RequestId")
|
|
737
|
+
|
|
738
|
+
|
|
574
739
|
class ExtraInfo(AbstractModel):
|
|
575
740
|
r"""专属可用区资源水位数据扩展信息,包含可用区当地时间等数据。
|
|
576
741
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cdz
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.214
|
|
4
4
|
Summary: Tencent Cloud Cdz SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.214
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.214
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.196
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|