tencentcloud-sdk-python-cdz 3.0.1213__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.0.1213/PKG-INFO +45 -0
- tencentcloud-sdk-python-cdz-3.0.1213/README.rst +27 -0
- tencentcloud-sdk-python-cdz-3.0.1213/setup.cfg +8 -0
- tencentcloud-sdk-python-cdz-3.0.1213/setup.py +32 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud/__init__.py +17 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud/cdz/__init__.py +0 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud/cdz/v20221123/__init__.py +0 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud/cdz/v20221123/cdz_client.py +72 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud/cdz/v20221123/errorcodes.py +24 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud/cdz/v20221123/models.py +467 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud_sdk_python_cdz.egg-info/PKG-INFO +45 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud_sdk_python_cdz.egg-info/SOURCES.txt +14 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud_sdk_python_cdz.egg-info/dependency_links.txt +1 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud_sdk_python_cdz.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud_sdk_python_cdz.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cdz
|
|
3
|
+
Version: 3.0.1213
|
|
4
|
+
Summary: Tencent Cloud Cdz SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Author-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Description: ============================
|
|
10
|
+
Tencent Cloud SDK for Python
|
|
11
|
+
============================
|
|
12
|
+
|
|
13
|
+
Tencent Cloud Python Cdz SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
+
The SDK works on Python versions:
|
|
15
|
+
|
|
16
|
+
* 2.7 and greater, including 3.x
|
|
17
|
+
|
|
18
|
+
Quick Start
|
|
19
|
+
-----------
|
|
20
|
+
|
|
21
|
+
First, install the library:
|
|
22
|
+
|
|
23
|
+
.. code-block:: sh
|
|
24
|
+
|
|
25
|
+
$ pip install tencentcloud-sdk-python-common
|
|
26
|
+
$ pip install tencentcloud-sdk-python-cdz
|
|
27
|
+
|
|
28
|
+
or download source code from github and install:
|
|
29
|
+
|
|
30
|
+
.. code-block:: sh
|
|
31
|
+
|
|
32
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
+
$ cd tencentcloud-sdk-python
|
|
34
|
+
$ python package.py --components common cdz
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Platform: any
|
|
38
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
+
Classifier: Intended Audience :: Developers
|
|
40
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
+
Classifier: Programming Language :: Python
|
|
42
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
+
Classifier: Programming Language :: Python :: 3
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
============================
|
|
2
|
+
Tencent Cloud SDK for Python
|
|
3
|
+
============================
|
|
4
|
+
|
|
5
|
+
Tencent Cloud Python Cdz SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
6
|
+
The SDK works on Python versions:
|
|
7
|
+
|
|
8
|
+
* 2.7 and greater, including 3.x
|
|
9
|
+
|
|
10
|
+
Quick Start
|
|
11
|
+
-----------
|
|
12
|
+
|
|
13
|
+
First, install the library:
|
|
14
|
+
|
|
15
|
+
.. code-block:: sh
|
|
16
|
+
|
|
17
|
+
$ pip install tencentcloud-sdk-python-common
|
|
18
|
+
$ pip install tencentcloud-sdk-python-cdz
|
|
19
|
+
|
|
20
|
+
or download source code from github and install:
|
|
21
|
+
|
|
22
|
+
.. code-block:: sh
|
|
23
|
+
|
|
24
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
25
|
+
$ cd tencentcloud-sdk-python
|
|
26
|
+
$ python package.py --components common cdz
|
|
27
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
import os
|
|
3
|
+
from setuptools import setup, find_packages
|
|
4
|
+
|
|
5
|
+
import tencentcloud
|
|
6
|
+
|
|
7
|
+
ROOT = os.path.dirname(__file__)
|
|
8
|
+
|
|
9
|
+
setup(
|
|
10
|
+
name='tencentcloud-sdk-python-cdz',
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1213"],
|
|
12
|
+
version=tencentcloud.__version__,
|
|
13
|
+
description='Tencent Cloud Cdz SDK for Python',
|
|
14
|
+
long_description=open('README.rst').read(),
|
|
15
|
+
author='Tencent Cloud',
|
|
16
|
+
url='https://github.com/TencentCloud/tencentcloud-sdk-python',
|
|
17
|
+
maintainer_email="tencentcloudapi@tencent.com",
|
|
18
|
+
scripts=[],
|
|
19
|
+
packages=find_packages(exclude=["tests*"]),
|
|
20
|
+
license="Apache License 2.0",
|
|
21
|
+
platforms='any',
|
|
22
|
+
classifiers=[
|
|
23
|
+
'Development Status :: 5 - Production/Stable',
|
|
24
|
+
'Intended Audience :: Developers',
|
|
25
|
+
'License :: OSI Approved :: Apache Software License',
|
|
26
|
+
'Programming Language :: Python',
|
|
27
|
+
'Programming Language :: Python :: 2.7',
|
|
28
|
+
'Programming Language :: Python :: 3',
|
|
29
|
+
'Programming Language :: Python :: 3.6',
|
|
30
|
+
'Programming Language :: Python :: 3.7',
|
|
31
|
+
],
|
|
32
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 1999-2018 Tencent Ltd.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = '3.0.1213'
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.cdz.v20221123 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CdzClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2022-11-23'
|
|
25
|
+
_endpoint = 'cdz.tencentcloudapi.com'
|
|
26
|
+
_service = 'cdz'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeCloudDedicatedZoneHosts(self, request):
|
|
30
|
+
"""查询可用区的Host和Host上部署的实例
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeCloudDedicatedZoneHosts.
|
|
33
|
+
:type request: :class:`tencentcloud.cdz.v20221123.models.DescribeCloudDedicatedZoneHostsRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.cdz.v20221123.models.DescribeCloudDedicatedZoneHostsResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeCloudDedicatedZoneHosts", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeCloudDedicatedZoneHostsResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def DescribeCloudDedicatedZoneResourceSummary(self, request):
|
|
53
|
+
"""查询专属可用区各个垂直产品的资源使用情况
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for DescribeCloudDedicatedZoneResourceSummary.
|
|
56
|
+
:type request: :class:`tencentcloud.cdz.v20221123.models.DescribeCloudDedicatedZoneResourceSummaryRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cdz.v20221123.models.DescribeCloudDedicatedZoneResourceSummaryResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("DescribeCloudDedicatedZoneResourceSummary", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.DescribeCloudDedicatedZoneResourceSummaryResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
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))
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 方法不存在
|
|
18
|
+
FAILEDOPERATION_INVALIDACTION = 'FailedOperation.InvalidAction'
|
|
19
|
+
|
|
20
|
+
# HostUuids参数和InstancesIds参数不能同时传递。
|
|
21
|
+
INVALIDPARAMETER_HOSTUUIDSANDINSIDSCANNOTAPPEARSAMETIME = 'InvalidParameter.HostUuidsAndInsIdsCannotAppearSameTime'
|
|
22
|
+
|
|
23
|
+
# 该专属可用区不存在
|
|
24
|
+
RESOURCENOTFOUND_CDZIDNOTFOUND = 'ResourceNotFound.CdzIdNotFound'
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class CloudDedicatedZoneHostsInfo(AbstractModel):
|
|
22
|
+
"""CDZ的母机和子机的对应关系
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _HostUuid: Host的唯一标识uuid
|
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30
|
+
:type HostUuid: str
|
|
31
|
+
:param _InstancesInfo: 实例名称数组
|
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
33
|
+
:type InstancesInfo: list of str
|
|
34
|
+
"""
|
|
35
|
+
self._HostUuid = None
|
|
36
|
+
self._InstancesInfo = None
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def HostUuid(self):
|
|
40
|
+
return self._HostUuid
|
|
41
|
+
|
|
42
|
+
@HostUuid.setter
|
|
43
|
+
def HostUuid(self, HostUuid):
|
|
44
|
+
self._HostUuid = HostUuid
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def InstancesInfo(self):
|
|
48
|
+
return self._InstancesInfo
|
|
49
|
+
|
|
50
|
+
@InstancesInfo.setter
|
|
51
|
+
def InstancesInfo(self, InstancesInfo):
|
|
52
|
+
self._InstancesInfo = InstancesInfo
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _deserialize(self, params):
|
|
56
|
+
self._HostUuid = params.get("HostUuid")
|
|
57
|
+
self._InstancesInfo = params.get("InstancesInfo")
|
|
58
|
+
memeber_set = set(params.keys())
|
|
59
|
+
for name, value in vars(self).items():
|
|
60
|
+
property_name = name[1:]
|
|
61
|
+
if property_name in memeber_set:
|
|
62
|
+
memeber_set.remove(property_name)
|
|
63
|
+
if len(memeber_set) > 0:
|
|
64
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class CloudDedicatedZoneResourceStatisticsInfo(AbstractModel):
|
|
69
|
+
"""专属可用区资源统计项数据详情,对应一个具体的垂直产品的资源统计项。
|
|
70
|
+
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
def __init__(self):
|
|
74
|
+
r"""
|
|
75
|
+
:param _Item: 资源统计项名称
|
|
76
|
+
:type Item: str
|
|
77
|
+
:param _Unit: 资源统计项单位
|
|
78
|
+
:type Unit: str
|
|
79
|
+
:param _Total: 资源总量
|
|
80
|
+
:type Total: str
|
|
81
|
+
:param _Usage: 已用资源
|
|
82
|
+
:type Usage: str
|
|
83
|
+
:param _UsageRate: 已用资源占比
|
|
84
|
+
:type UsageRate: str
|
|
85
|
+
:param _Remain: 剩余资源
|
|
86
|
+
:type Remain: str
|
|
87
|
+
:param _RemainRate: 剩余资源占比
|
|
88
|
+
:type RemainRate: str
|
|
89
|
+
:param _ThisMondayUsageRate: 本周一零点资源使用率
|
|
90
|
+
:type ThisMondayUsageRate: str
|
|
91
|
+
:param _ThisMondayUsageGrowthRate: 本周资源增长比例
|
|
92
|
+
:type ThisMondayUsageGrowthRate: str
|
|
93
|
+
:param _LastMondayUsageGrowthRate: 上周资源增长比例
|
|
94
|
+
:type LastMondayUsageGrowthRate: str
|
|
95
|
+
"""
|
|
96
|
+
self._Item = None
|
|
97
|
+
self._Unit = None
|
|
98
|
+
self._Total = None
|
|
99
|
+
self._Usage = None
|
|
100
|
+
self._UsageRate = None
|
|
101
|
+
self._Remain = None
|
|
102
|
+
self._RemainRate = None
|
|
103
|
+
self._ThisMondayUsageRate = None
|
|
104
|
+
self._ThisMondayUsageGrowthRate = None
|
|
105
|
+
self._LastMondayUsageGrowthRate = None
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def Item(self):
|
|
109
|
+
return self._Item
|
|
110
|
+
|
|
111
|
+
@Item.setter
|
|
112
|
+
def Item(self, Item):
|
|
113
|
+
self._Item = Item
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def Unit(self):
|
|
117
|
+
return self._Unit
|
|
118
|
+
|
|
119
|
+
@Unit.setter
|
|
120
|
+
def Unit(self, Unit):
|
|
121
|
+
self._Unit = Unit
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def Total(self):
|
|
125
|
+
return self._Total
|
|
126
|
+
|
|
127
|
+
@Total.setter
|
|
128
|
+
def Total(self, Total):
|
|
129
|
+
self._Total = Total
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def Usage(self):
|
|
133
|
+
return self._Usage
|
|
134
|
+
|
|
135
|
+
@Usage.setter
|
|
136
|
+
def Usage(self, Usage):
|
|
137
|
+
self._Usage = Usage
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def UsageRate(self):
|
|
141
|
+
return self._UsageRate
|
|
142
|
+
|
|
143
|
+
@UsageRate.setter
|
|
144
|
+
def UsageRate(self, UsageRate):
|
|
145
|
+
self._UsageRate = UsageRate
|
|
146
|
+
|
|
147
|
+
@property
|
|
148
|
+
def Remain(self):
|
|
149
|
+
return self._Remain
|
|
150
|
+
|
|
151
|
+
@Remain.setter
|
|
152
|
+
def Remain(self, Remain):
|
|
153
|
+
self._Remain = Remain
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def RemainRate(self):
|
|
157
|
+
return self._RemainRate
|
|
158
|
+
|
|
159
|
+
@RemainRate.setter
|
|
160
|
+
def RemainRate(self, RemainRate):
|
|
161
|
+
self._RemainRate = RemainRate
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
def ThisMondayUsageRate(self):
|
|
165
|
+
return self._ThisMondayUsageRate
|
|
166
|
+
|
|
167
|
+
@ThisMondayUsageRate.setter
|
|
168
|
+
def ThisMondayUsageRate(self, ThisMondayUsageRate):
|
|
169
|
+
self._ThisMondayUsageRate = ThisMondayUsageRate
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def ThisMondayUsageGrowthRate(self):
|
|
173
|
+
return self._ThisMondayUsageGrowthRate
|
|
174
|
+
|
|
175
|
+
@ThisMondayUsageGrowthRate.setter
|
|
176
|
+
def ThisMondayUsageGrowthRate(self, ThisMondayUsageGrowthRate):
|
|
177
|
+
self._ThisMondayUsageGrowthRate = ThisMondayUsageGrowthRate
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def LastMondayUsageGrowthRate(self):
|
|
181
|
+
return self._LastMondayUsageGrowthRate
|
|
182
|
+
|
|
183
|
+
@LastMondayUsageGrowthRate.setter
|
|
184
|
+
def LastMondayUsageGrowthRate(self, LastMondayUsageGrowthRate):
|
|
185
|
+
self._LastMondayUsageGrowthRate = LastMondayUsageGrowthRate
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def _deserialize(self, params):
|
|
189
|
+
self._Item = params.get("Item")
|
|
190
|
+
self._Unit = params.get("Unit")
|
|
191
|
+
self._Total = params.get("Total")
|
|
192
|
+
self._Usage = params.get("Usage")
|
|
193
|
+
self._UsageRate = params.get("UsageRate")
|
|
194
|
+
self._Remain = params.get("Remain")
|
|
195
|
+
self._RemainRate = params.get("RemainRate")
|
|
196
|
+
self._ThisMondayUsageRate = params.get("ThisMondayUsageRate")
|
|
197
|
+
self._ThisMondayUsageGrowthRate = params.get("ThisMondayUsageGrowthRate")
|
|
198
|
+
self._LastMondayUsageGrowthRate = params.get("LastMondayUsageGrowthRate")
|
|
199
|
+
memeber_set = set(params.keys())
|
|
200
|
+
for name, value in vars(self).items():
|
|
201
|
+
property_name = name[1:]
|
|
202
|
+
if property_name in memeber_set:
|
|
203
|
+
memeber_set.remove(property_name)
|
|
204
|
+
if len(memeber_set) > 0:
|
|
205
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
class CloudDedicatedZoneResourceSummaryInfo(AbstractModel):
|
|
210
|
+
"""专属可用区资源水位数据详情,对应一个具体的垂直产品。
|
|
211
|
+
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
def __init__(self):
|
|
215
|
+
r"""
|
|
216
|
+
:param _ProductName: 产品名称
|
|
217
|
+
:type ProductName: str
|
|
218
|
+
:param _SubProductName: 子产品名称
|
|
219
|
+
:type SubProductName: str
|
|
220
|
+
:param _Statistics: 资源统计详情
|
|
221
|
+
:type Statistics: list of CloudDedicatedZoneResourceStatisticsInfo
|
|
222
|
+
"""
|
|
223
|
+
self._ProductName = None
|
|
224
|
+
self._SubProductName = None
|
|
225
|
+
self._Statistics = None
|
|
226
|
+
|
|
227
|
+
@property
|
|
228
|
+
def ProductName(self):
|
|
229
|
+
return self._ProductName
|
|
230
|
+
|
|
231
|
+
@ProductName.setter
|
|
232
|
+
def ProductName(self, ProductName):
|
|
233
|
+
self._ProductName = ProductName
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
def SubProductName(self):
|
|
237
|
+
return self._SubProductName
|
|
238
|
+
|
|
239
|
+
@SubProductName.setter
|
|
240
|
+
def SubProductName(self, SubProductName):
|
|
241
|
+
self._SubProductName = SubProductName
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
def Statistics(self):
|
|
245
|
+
return self._Statistics
|
|
246
|
+
|
|
247
|
+
@Statistics.setter
|
|
248
|
+
def Statistics(self, Statistics):
|
|
249
|
+
self._Statistics = Statistics
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
def _deserialize(self, params):
|
|
253
|
+
self._ProductName = params.get("ProductName")
|
|
254
|
+
self._SubProductName = params.get("SubProductName")
|
|
255
|
+
if params.get("Statistics") is not None:
|
|
256
|
+
self._Statistics = []
|
|
257
|
+
for item in params.get("Statistics"):
|
|
258
|
+
obj = CloudDedicatedZoneResourceStatisticsInfo()
|
|
259
|
+
obj._deserialize(item)
|
|
260
|
+
self._Statistics.append(obj)
|
|
261
|
+
memeber_set = set(params.keys())
|
|
262
|
+
for name, value in vars(self).items():
|
|
263
|
+
property_name = name[1:]
|
|
264
|
+
if property_name in memeber_set:
|
|
265
|
+
memeber_set.remove(property_name)
|
|
266
|
+
if len(memeber_set) > 0:
|
|
267
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
class DescribeCloudDedicatedZoneHostsRequest(AbstractModel):
|
|
272
|
+
"""DescribeCloudDedicatedZoneHosts请求参数结构体
|
|
273
|
+
|
|
274
|
+
"""
|
|
275
|
+
|
|
276
|
+
def __init__(self):
|
|
277
|
+
r"""
|
|
278
|
+
:param _CloudDedicatedZoneID: 专属可用区ID
|
|
279
|
+
:type CloudDedicatedZoneID: str
|
|
280
|
+
:param _HostUuids: 一个或多个Host面的CVM实例信息。最大支持查询100台Host。
|
|
281
|
+
:type HostUuids: list of str
|
|
282
|
+
:param _InstanceIds: 查询一个实例或者多个实例所在的Host上面的CVM实例信息。最大支持查询100台实例。
|
|
283
|
+
:type InstanceIds: list of str
|
|
284
|
+
:param _Offset: 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。该参数仅与CloudDedicatedZoneID有关,传递了HostUuids和InstanceIds则会失效。
|
|
285
|
+
:type Offset: int
|
|
286
|
+
:param _Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API 简介中的相关小节。该参数仅与CloudDedicatedZoneID有关,传递了HostUuids和InstanceIds则会失效。
|
|
287
|
+
:type Limit: int
|
|
288
|
+
"""
|
|
289
|
+
self._CloudDedicatedZoneID = None
|
|
290
|
+
self._HostUuids = None
|
|
291
|
+
self._InstanceIds = None
|
|
292
|
+
self._Offset = None
|
|
293
|
+
self._Limit = None
|
|
294
|
+
|
|
295
|
+
@property
|
|
296
|
+
def CloudDedicatedZoneID(self):
|
|
297
|
+
return self._CloudDedicatedZoneID
|
|
298
|
+
|
|
299
|
+
@CloudDedicatedZoneID.setter
|
|
300
|
+
def CloudDedicatedZoneID(self, CloudDedicatedZoneID):
|
|
301
|
+
self._CloudDedicatedZoneID = CloudDedicatedZoneID
|
|
302
|
+
|
|
303
|
+
@property
|
|
304
|
+
def HostUuids(self):
|
|
305
|
+
return self._HostUuids
|
|
306
|
+
|
|
307
|
+
@HostUuids.setter
|
|
308
|
+
def HostUuids(self, HostUuids):
|
|
309
|
+
self._HostUuids = HostUuids
|
|
310
|
+
|
|
311
|
+
@property
|
|
312
|
+
def InstanceIds(self):
|
|
313
|
+
return self._InstanceIds
|
|
314
|
+
|
|
315
|
+
@InstanceIds.setter
|
|
316
|
+
def InstanceIds(self, InstanceIds):
|
|
317
|
+
self._InstanceIds = InstanceIds
|
|
318
|
+
|
|
319
|
+
@property
|
|
320
|
+
def Offset(self):
|
|
321
|
+
return self._Offset
|
|
322
|
+
|
|
323
|
+
@Offset.setter
|
|
324
|
+
def Offset(self, Offset):
|
|
325
|
+
self._Offset = Offset
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
def Limit(self):
|
|
329
|
+
return self._Limit
|
|
330
|
+
|
|
331
|
+
@Limit.setter
|
|
332
|
+
def Limit(self, Limit):
|
|
333
|
+
self._Limit = Limit
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
def _deserialize(self, params):
|
|
337
|
+
self._CloudDedicatedZoneID = params.get("CloudDedicatedZoneID")
|
|
338
|
+
self._HostUuids = params.get("HostUuids")
|
|
339
|
+
self._InstanceIds = params.get("InstanceIds")
|
|
340
|
+
self._Offset = params.get("Offset")
|
|
341
|
+
self._Limit = params.get("Limit")
|
|
342
|
+
memeber_set = set(params.keys())
|
|
343
|
+
for name, value in vars(self).items():
|
|
344
|
+
property_name = name[1:]
|
|
345
|
+
if property_name in memeber_set:
|
|
346
|
+
memeber_set.remove(property_name)
|
|
347
|
+
if len(memeber_set) > 0:
|
|
348
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
class DescribeCloudDedicatedZoneHostsResponse(AbstractModel):
|
|
353
|
+
"""DescribeCloudDedicatedZoneHosts返回参数结构体
|
|
354
|
+
|
|
355
|
+
"""
|
|
356
|
+
|
|
357
|
+
def __init__(self):
|
|
358
|
+
r"""
|
|
359
|
+
:param _CloudDedicatedZoneHostsInfoSet: 返回Host和Host上部署的实例信息之间的关系
|
|
360
|
+
:type CloudDedicatedZoneHostsInfoSet: list of CloudDedicatedZoneHostsInfo
|
|
361
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
362
|
+
:type RequestId: str
|
|
363
|
+
"""
|
|
364
|
+
self._CloudDedicatedZoneHostsInfoSet = None
|
|
365
|
+
self._RequestId = None
|
|
366
|
+
|
|
367
|
+
@property
|
|
368
|
+
def CloudDedicatedZoneHostsInfoSet(self):
|
|
369
|
+
return self._CloudDedicatedZoneHostsInfoSet
|
|
370
|
+
|
|
371
|
+
@CloudDedicatedZoneHostsInfoSet.setter
|
|
372
|
+
def CloudDedicatedZoneHostsInfoSet(self, CloudDedicatedZoneHostsInfoSet):
|
|
373
|
+
self._CloudDedicatedZoneHostsInfoSet = CloudDedicatedZoneHostsInfoSet
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def RequestId(self):
|
|
377
|
+
return self._RequestId
|
|
378
|
+
|
|
379
|
+
@RequestId.setter
|
|
380
|
+
def RequestId(self, RequestId):
|
|
381
|
+
self._RequestId = RequestId
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
def _deserialize(self, params):
|
|
385
|
+
if params.get("CloudDedicatedZoneHostsInfoSet") is not None:
|
|
386
|
+
self._CloudDedicatedZoneHostsInfoSet = []
|
|
387
|
+
for item in params.get("CloudDedicatedZoneHostsInfoSet"):
|
|
388
|
+
obj = CloudDedicatedZoneHostsInfo()
|
|
389
|
+
obj._deserialize(item)
|
|
390
|
+
self._CloudDedicatedZoneHostsInfoSet.append(obj)
|
|
391
|
+
self._RequestId = params.get("RequestId")
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
class DescribeCloudDedicatedZoneResourceSummaryRequest(AbstractModel):
|
|
395
|
+
"""DescribeCloudDedicatedZoneResourceSummary请求参数结构体
|
|
396
|
+
|
|
397
|
+
"""
|
|
398
|
+
|
|
399
|
+
def __init__(self):
|
|
400
|
+
r"""
|
|
401
|
+
:param _CdzId: 专属可用区唯一标识
|
|
402
|
+
:type CdzId: str
|
|
403
|
+
"""
|
|
404
|
+
self._CdzId = None
|
|
405
|
+
|
|
406
|
+
@property
|
|
407
|
+
def CdzId(self):
|
|
408
|
+
return self._CdzId
|
|
409
|
+
|
|
410
|
+
@CdzId.setter
|
|
411
|
+
def CdzId(self, CdzId):
|
|
412
|
+
self._CdzId = CdzId
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
def _deserialize(self, params):
|
|
416
|
+
self._CdzId = params.get("CdzId")
|
|
417
|
+
memeber_set = set(params.keys())
|
|
418
|
+
for name, value in vars(self).items():
|
|
419
|
+
property_name = name[1:]
|
|
420
|
+
if property_name in memeber_set:
|
|
421
|
+
memeber_set.remove(property_name)
|
|
422
|
+
if len(memeber_set) > 0:
|
|
423
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
class DescribeCloudDedicatedZoneResourceSummaryResponse(AbstractModel):
|
|
428
|
+
"""DescribeCloudDedicatedZoneResourceSummary返回参数结构体
|
|
429
|
+
|
|
430
|
+
"""
|
|
431
|
+
|
|
432
|
+
def __init__(self):
|
|
433
|
+
r"""
|
|
434
|
+
:param _ResourceSummarySet: 资源水位详情
|
|
435
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
436
|
+
:type ResourceSummarySet: list of CloudDedicatedZoneResourceSummaryInfo
|
|
437
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
438
|
+
:type RequestId: str
|
|
439
|
+
"""
|
|
440
|
+
self._ResourceSummarySet = None
|
|
441
|
+
self._RequestId = None
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
def ResourceSummarySet(self):
|
|
445
|
+
return self._ResourceSummarySet
|
|
446
|
+
|
|
447
|
+
@ResourceSummarySet.setter
|
|
448
|
+
def ResourceSummarySet(self, ResourceSummarySet):
|
|
449
|
+
self._ResourceSummarySet = ResourceSummarySet
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
def RequestId(self):
|
|
453
|
+
return self._RequestId
|
|
454
|
+
|
|
455
|
+
@RequestId.setter
|
|
456
|
+
def RequestId(self, RequestId):
|
|
457
|
+
self._RequestId = RequestId
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
def _deserialize(self, params):
|
|
461
|
+
if params.get("ResourceSummarySet") is not None:
|
|
462
|
+
self._ResourceSummarySet = []
|
|
463
|
+
for item in params.get("ResourceSummarySet"):
|
|
464
|
+
obj = CloudDedicatedZoneResourceSummaryInfo()
|
|
465
|
+
obj._deserialize(item)
|
|
466
|
+
self._ResourceSummarySet.append(obj)
|
|
467
|
+
self._RequestId = params.get("RequestId")
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cdz
|
|
3
|
+
Version: 3.0.1213
|
|
4
|
+
Summary: Tencent Cloud Cdz SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Author-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Description: ============================
|
|
10
|
+
Tencent Cloud SDK for Python
|
|
11
|
+
============================
|
|
12
|
+
|
|
13
|
+
Tencent Cloud Python Cdz SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
+
The SDK works on Python versions:
|
|
15
|
+
|
|
16
|
+
* 2.7 and greater, including 3.x
|
|
17
|
+
|
|
18
|
+
Quick Start
|
|
19
|
+
-----------
|
|
20
|
+
|
|
21
|
+
First, install the library:
|
|
22
|
+
|
|
23
|
+
.. code-block:: sh
|
|
24
|
+
|
|
25
|
+
$ pip install tencentcloud-sdk-python-common
|
|
26
|
+
$ pip install tencentcloud-sdk-python-cdz
|
|
27
|
+
|
|
28
|
+
or download source code from github and install:
|
|
29
|
+
|
|
30
|
+
.. code-block:: sh
|
|
31
|
+
|
|
32
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
+
$ cd tencentcloud-sdk-python
|
|
34
|
+
$ python package.py --components common cdz
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Platform: any
|
|
38
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
+
Classifier: Intended Audience :: Developers
|
|
40
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
+
Classifier: Programming Language :: Python
|
|
42
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
+
Classifier: Programming Language :: Python :: 3
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.rst
|
|
2
|
+
setup.cfg
|
|
3
|
+
setup.py
|
|
4
|
+
tencentcloud/__init__.py
|
|
5
|
+
tencentcloud/cdz/__init__.py
|
|
6
|
+
tencentcloud/cdz/v20221123/__init__.py
|
|
7
|
+
tencentcloud/cdz/v20221123/cdz_client.py
|
|
8
|
+
tencentcloud/cdz/v20221123/errorcodes.py
|
|
9
|
+
tencentcloud/cdz/v20221123/models.py
|
|
10
|
+
tencentcloud_sdk_python_cdz.egg-info/PKG-INFO
|
|
11
|
+
tencentcloud_sdk_python_cdz.egg-info/SOURCES.txt
|
|
12
|
+
tencentcloud_sdk_python_cdz.egg-info/dependency_links.txt
|
|
13
|
+
tencentcloud_sdk_python_cdz.egg-info/requires.txt
|
|
14
|
+
tencentcloud_sdk_python_cdz.egg-info/top_level.txt
|
tencentcloud-sdk-python-cdz-3.0.1213/tencentcloud_sdk_python_cdz.egg-info/dependency_links.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1213
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud
|