tencentcloud-sdk-python-intl-en 3.0.1107__py2.py3-none-any.whl → 3.0.1108__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/rce/__init__.py +0 -0
- tencentcloud/rce/v20201103/__init__.py +0 -0
- tencentcloud/rce/v20201103/errorcodes.py +147 -0
- tencentcloud/rce/v20201103/models.py +428 -0
- tencentcloud/rce/v20201103/rce_client.py +49 -0
- {tencentcloud_sdk_python_intl_en-3.0.1107.dist-info → tencentcloud_sdk_python_intl_en-3.0.1108.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1107.dist-info → tencentcloud_sdk_python_intl_en-3.0.1108.dist-info}/RECORD +10 -5
- {tencentcloud_sdk_python_intl_en-3.0.1107.dist-info → tencentcloud_sdk_python_intl_en-3.0.1108.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1107.dist-info → tencentcloud_sdk_python_intl_en-3.0.1108.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
# CAM signature/authentication error.
|
|
18
|
+
AUTHFAILURE = 'AuthFailure'
|
|
19
|
+
|
|
20
|
+
# Captcha signature error.
|
|
21
|
+
AUTHFAILURE_CAPSIGERROR = 'AuthFailure.CapSigError'
|
|
22
|
+
|
|
23
|
+
# Request expired.
|
|
24
|
+
AUTHFAILURE_EXPIRED = 'AuthFailure.Expired'
|
|
25
|
+
|
|
26
|
+
# DryRun operation means the request will be successful, but the DryRun parameter is passed.
|
|
27
|
+
DRYRUNOPERATION = 'DryRunOperation'
|
|
28
|
+
|
|
29
|
+
# Operation failed.
|
|
30
|
+
FAILEDOPERATION = 'FailedOperation'
|
|
31
|
+
|
|
32
|
+
# Internal error.
|
|
33
|
+
INTERNALERROR = 'InternalError'
|
|
34
|
+
|
|
35
|
+
# Business system logic error.
|
|
36
|
+
INTERNALERROR_BACKENDLOGICERROR = 'InternalError.BackendLogicError'
|
|
37
|
+
|
|
38
|
+
# Connection to the database timed out.
|
|
39
|
+
INTERNALERROR_CONNECTDBTIMEOUT = 'InternalError.ConnectDBTimeout'
|
|
40
|
+
|
|
41
|
+
# Sign backend error.
|
|
42
|
+
INTERNALERROR_SIGNBACKENDERROR = 'InternalError.SignBackendError'
|
|
43
|
+
|
|
44
|
+
# Parameter error.
|
|
45
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
|
46
|
+
|
|
47
|
+
# Captcha signature error.
|
|
48
|
+
INVALIDPARAMETER_CAPSIGERROR = 'InvalidParameter.CapSigError'
|
|
49
|
+
|
|
50
|
+
# Parameter error.
|
|
51
|
+
INVALIDPARAMETER_PARAMERROR = 'InvalidParameter.ParamError'
|
|
52
|
+
|
|
53
|
+
# URL error.
|
|
54
|
+
INVALIDPARAMETER_URLERROR = 'InvalidParameter.UrlError'
|
|
55
|
+
|
|
56
|
+
# Version error.
|
|
57
|
+
INVALIDPARAMETER_VERSIONERROR = 'InvalidParameter.VersionError'
|
|
58
|
+
|
|
59
|
+
# Parameter value error.
|
|
60
|
+
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
61
|
+
|
|
62
|
+
# BadBody。
|
|
63
|
+
INVALIDPARAMETERVALUE_BADBODY = 'InvalidParameterValue.BadBody'
|
|
64
|
+
|
|
65
|
+
# The request packet is too large.
|
|
66
|
+
INVALIDPARAMETERVALUE_BODYTOOLARGE = 'InvalidParameterValue.BodyTooLarge'
|
|
67
|
+
|
|
68
|
+
# Captcha mismatch.
|
|
69
|
+
INVALIDPARAMETERVALUE_CAPMISMATCH = 'InvalidParameterValue.CapMisMatch'
|
|
70
|
+
|
|
71
|
+
# HTTP method error.
|
|
72
|
+
INVALIDPARAMETERVALUE_HTTPMETHODERROR = 'InvalidParameterValue.HttpMethodError'
|
|
73
|
+
|
|
74
|
+
# Date value error.
|
|
75
|
+
INVALIDPARAMETERVALUE_INVALIDDATE = 'InvalidParameterValue.InvalidDate'
|
|
76
|
+
|
|
77
|
+
# Incorrect PageLimit value.
|
|
78
|
+
INVALIDPARAMETERVALUE_INVALIDLIMIT = 'InvalidParameterValue.InvalidLimit'
|
|
79
|
+
|
|
80
|
+
# PageNum value error.
|
|
81
|
+
INVALIDPARAMETERVALUE_INVALIDNUM = 'InvalidParameterValue.InvalidNum'
|
|
82
|
+
|
|
83
|
+
# SrvId value error.
|
|
84
|
+
INVALIDPARAMETERVALUE_INVALIDSRVID = 'InvalidParameterValue.InvalidSrvId'
|
|
85
|
+
|
|
86
|
+
# Stride value error.
|
|
87
|
+
INVALIDPARAMETERVALUE_INVALIDSTRIDE = 'InvalidParameterValue.InvalidStride'
|
|
88
|
+
|
|
89
|
+
# The quota limit is exceeded.
|
|
90
|
+
LIMITEXCEEDED = 'LimitExceeded'
|
|
91
|
+
|
|
92
|
+
# Quota exceeded.
|
|
93
|
+
LIMITEXCEEDED_FREQCNT = 'LimitExceeded.FreqCnt'
|
|
94
|
+
|
|
95
|
+
# Quota exceeded (user IP address).
|
|
96
|
+
LIMITEXCEEDED_IPFREQCNT = 'LimitExceeded.IpFreqCnt'
|
|
97
|
+
|
|
98
|
+
# Restricted keyword frequency control.
|
|
99
|
+
LIMITEXCEEDED_KEYFREQCNT = 'LimitExceeded.KeyFreqCnt'
|
|
100
|
+
|
|
101
|
+
# Replay attack.
|
|
102
|
+
LIMITEXCEEDED_REPLAYATTACK = 'LimitExceeded.ReplayAttack'
|
|
103
|
+
|
|
104
|
+
# Parameters are missing
|
|
105
|
+
MISSINGPARAMETER = 'MissingParameter'
|
|
106
|
+
|
|
107
|
+
# Operation denied.
|
|
108
|
+
OPERATIONDENIED = 'OperationDenied'
|
|
109
|
+
|
|
110
|
+
# Too many and frequent requests.
|
|
111
|
+
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
|
112
|
+
|
|
113
|
+
# The resource is occupied.
|
|
114
|
+
RESOURCEINUSE = 'ResourceInUse'
|
|
115
|
+
|
|
116
|
+
# Insufficient resources.
|
|
117
|
+
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
118
|
+
|
|
119
|
+
# The resource does not exist.
|
|
120
|
+
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
121
|
+
|
|
122
|
+
# The API does not exist.
|
|
123
|
+
RESOURCENOTFOUND_INTERFACENOTFOUND = 'ResourceNotFound.InterfaceNotFound'
|
|
124
|
+
|
|
125
|
+
# Resources are unavailable.
|
|
126
|
+
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
|
127
|
+
|
|
128
|
+
# Service permission not activated.
|
|
129
|
+
RESOURCEUNAVAILABLE_PERMISSIONDENIED = 'ResourceUnavailable.PermissionDenied'
|
|
130
|
+
|
|
131
|
+
# Resources are sold out.
|
|
132
|
+
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
|
133
|
+
|
|
134
|
+
# Unauthorized operation.
|
|
135
|
+
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
136
|
+
|
|
137
|
+
# Authentication failed.
|
|
138
|
+
UNAUTHORIZEDOPERATION_AUTHFAILED = 'UnauthorizedOperation.AuthFailed'
|
|
139
|
+
|
|
140
|
+
# Unknown parameter error.
|
|
141
|
+
UNKNOWNPARAMETER = 'UnknownParameter'
|
|
142
|
+
|
|
143
|
+
# The key does not exist.
|
|
144
|
+
UNKNOWNPARAMETER_SECRETIDNOTEXISTS = 'UnknownParameter.SecretIdNotExists'
|
|
145
|
+
|
|
146
|
+
# The operation is not supported.
|
|
147
|
+
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
@@ -0,0 +1,428 @@
|
|
|
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 DescribeRiskAssessmentRequest(AbstractModel):
|
|
22
|
+
"""DescribeRiskAssessment request structure.
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _BizCryptoData: Business parameters
|
|
29
|
+
:type BizCryptoData: :class:`tencentcloud.rce.v20201103.models.InputBizCryptoData`
|
|
30
|
+
"""
|
|
31
|
+
self._BizCryptoData = None
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def BizCryptoData(self):
|
|
35
|
+
"""Business parameters
|
|
36
|
+
:rtype: :class:`tencentcloud.rce.v20201103.models.InputBizCryptoData`
|
|
37
|
+
"""
|
|
38
|
+
return self._BizCryptoData
|
|
39
|
+
|
|
40
|
+
@BizCryptoData.setter
|
|
41
|
+
def BizCryptoData(self, BizCryptoData):
|
|
42
|
+
self._BizCryptoData = BizCryptoData
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _deserialize(self, params):
|
|
46
|
+
if params.get("BizCryptoData") is not None:
|
|
47
|
+
self._BizCryptoData = InputBizCryptoData()
|
|
48
|
+
self._BizCryptoData._deserialize(params.get("BizCryptoData"))
|
|
49
|
+
memeber_set = set(params.keys())
|
|
50
|
+
for name, value in vars(self).items():
|
|
51
|
+
property_name = name[1:]
|
|
52
|
+
if property_name in memeber_set:
|
|
53
|
+
memeber_set.remove(property_name)
|
|
54
|
+
if len(memeber_set) > 0:
|
|
55
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class DescribeRiskAssessmentResponse(AbstractModel):
|
|
60
|
+
"""DescribeRiskAssessment response structure.
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
def __init__(self):
|
|
65
|
+
r"""
|
|
66
|
+
:param _Data: Business output parameters.
|
|
67
|
+
:type Data: :class:`tencentcloud.rce.v20201103.models.OutputRiskAssessment`
|
|
68
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
69
|
+
:type RequestId: str
|
|
70
|
+
"""
|
|
71
|
+
self._Data = None
|
|
72
|
+
self._RequestId = None
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def Data(self):
|
|
76
|
+
"""Business output parameters.
|
|
77
|
+
:rtype: :class:`tencentcloud.rce.v20201103.models.OutputRiskAssessment`
|
|
78
|
+
"""
|
|
79
|
+
return self._Data
|
|
80
|
+
|
|
81
|
+
@Data.setter
|
|
82
|
+
def Data(self, Data):
|
|
83
|
+
self._Data = Data
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def RequestId(self):
|
|
87
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._RequestId
|
|
91
|
+
|
|
92
|
+
@RequestId.setter
|
|
93
|
+
def RequestId(self, RequestId):
|
|
94
|
+
self._RequestId = RequestId
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def _deserialize(self, params):
|
|
98
|
+
if params.get("Data") is not None:
|
|
99
|
+
self._Data = OutputRiskAssessment()
|
|
100
|
+
self._Data._deserialize(params.get("Data"))
|
|
101
|
+
self._RequestId = params.get("RequestId")
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class InputBizCryptoData(AbstractModel):
|
|
105
|
+
"""Query input parameters of risk assessment results
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
def __init__(self):
|
|
110
|
+
r"""
|
|
111
|
+
:param _IsAuthorized: Whether to authorize.
|
|
112
|
+
:type IsAuthorized: str
|
|
113
|
+
:param _CryptoType: Encryption type.
|
|
114
|
+
:type CryptoType: str
|
|
115
|
+
:param _CryptoContent: Encrypted content.
|
|
116
|
+
:type CryptoContent: str
|
|
117
|
+
"""
|
|
118
|
+
self._IsAuthorized = None
|
|
119
|
+
self._CryptoType = None
|
|
120
|
+
self._CryptoContent = None
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def IsAuthorized(self):
|
|
124
|
+
"""Whether to authorize.
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._IsAuthorized
|
|
128
|
+
|
|
129
|
+
@IsAuthorized.setter
|
|
130
|
+
def IsAuthorized(self, IsAuthorized):
|
|
131
|
+
self._IsAuthorized = IsAuthorized
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def CryptoType(self):
|
|
135
|
+
"""Encryption type.
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._CryptoType
|
|
139
|
+
|
|
140
|
+
@CryptoType.setter
|
|
141
|
+
def CryptoType(self, CryptoType):
|
|
142
|
+
self._CryptoType = CryptoType
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def CryptoContent(self):
|
|
146
|
+
"""Encrypted content.
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._CryptoContent
|
|
150
|
+
|
|
151
|
+
@CryptoContent.setter
|
|
152
|
+
def CryptoContent(self, CryptoContent):
|
|
153
|
+
self._CryptoContent = CryptoContent
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def _deserialize(self, params):
|
|
157
|
+
self._IsAuthorized = params.get("IsAuthorized")
|
|
158
|
+
self._CryptoType = params.get("CryptoType")
|
|
159
|
+
self._CryptoContent = params.get("CryptoContent")
|
|
160
|
+
memeber_set = set(params.keys())
|
|
161
|
+
for name, value in vars(self).items():
|
|
162
|
+
property_name = name[1:]
|
|
163
|
+
if property_name in memeber_set:
|
|
164
|
+
memeber_set.remove(property_name)
|
|
165
|
+
if len(memeber_set) > 0:
|
|
166
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class OutputRiskAssessment(AbstractModel):
|
|
171
|
+
"""Query output parameters of risk assessment results.
|
|
172
|
+
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
def __init__(self):
|
|
176
|
+
r"""
|
|
177
|
+
:param _Code: Return code.
|
|
178
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
179
|
+
:type Code: int
|
|
180
|
+
:param _Message: Returned information
|
|
181
|
+
|
|
182
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
183
|
+
:type Message: str
|
|
184
|
+
:param _Value: Business details.
|
|
185
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
186
|
+
:type Value: :class:`tencentcloud.rce.v20201103.models.OutputRiskAssessmentInfo`
|
|
187
|
+
:param _UUid: Request ID.
|
|
188
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
189
|
+
:type UUid: str
|
|
190
|
+
"""
|
|
191
|
+
self._Code = None
|
|
192
|
+
self._Message = None
|
|
193
|
+
self._Value = None
|
|
194
|
+
self._UUid = None
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def Code(self):
|
|
198
|
+
"""Return code.
|
|
199
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
200
|
+
:rtype: int
|
|
201
|
+
"""
|
|
202
|
+
return self._Code
|
|
203
|
+
|
|
204
|
+
@Code.setter
|
|
205
|
+
def Code(self, Code):
|
|
206
|
+
self._Code = Code
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def Message(self):
|
|
210
|
+
"""Returned information
|
|
211
|
+
|
|
212
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
213
|
+
:rtype: str
|
|
214
|
+
"""
|
|
215
|
+
return self._Message
|
|
216
|
+
|
|
217
|
+
@Message.setter
|
|
218
|
+
def Message(self, Message):
|
|
219
|
+
self._Message = Message
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def Value(self):
|
|
223
|
+
"""Business details.
|
|
224
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
225
|
+
:rtype: :class:`tencentcloud.rce.v20201103.models.OutputRiskAssessmentInfo`
|
|
226
|
+
"""
|
|
227
|
+
return self._Value
|
|
228
|
+
|
|
229
|
+
@Value.setter
|
|
230
|
+
def Value(self, Value):
|
|
231
|
+
self._Value = Value
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
def UUid(self):
|
|
235
|
+
"""Request ID.
|
|
236
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
237
|
+
:rtype: str
|
|
238
|
+
"""
|
|
239
|
+
return self._UUid
|
|
240
|
+
|
|
241
|
+
@UUid.setter
|
|
242
|
+
def UUid(self, UUid):
|
|
243
|
+
self._UUid = UUid
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
def _deserialize(self, params):
|
|
247
|
+
self._Code = params.get("Code")
|
|
248
|
+
self._Message = params.get("Message")
|
|
249
|
+
if params.get("Value") is not None:
|
|
250
|
+
self._Value = OutputRiskAssessmentInfo()
|
|
251
|
+
self._Value._deserialize(params.get("Value"))
|
|
252
|
+
self._UUid = params.get("UUid")
|
|
253
|
+
memeber_set = set(params.keys())
|
|
254
|
+
for name, value in vars(self).items():
|
|
255
|
+
property_name = name[1:]
|
|
256
|
+
if property_name in memeber_set:
|
|
257
|
+
memeber_set.remove(property_name)
|
|
258
|
+
if len(memeber_set) > 0:
|
|
259
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class OutputRiskAssessmentExtraInfoPair(AbstractModel):
|
|
264
|
+
"""Risk assessment extended attribute key-value pairs.
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
def __init__(self):
|
|
269
|
+
r"""
|
|
270
|
+
:param _Key: Key.
|
|
271
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
272
|
+
:type Key: str
|
|
273
|
+
:param _Value: Value.
|
|
274
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
275
|
+
:type Value: str
|
|
276
|
+
"""
|
|
277
|
+
self._Key = None
|
|
278
|
+
self._Value = None
|
|
279
|
+
|
|
280
|
+
@property
|
|
281
|
+
def Key(self):
|
|
282
|
+
"""Key.
|
|
283
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
284
|
+
:rtype: str
|
|
285
|
+
"""
|
|
286
|
+
return self._Key
|
|
287
|
+
|
|
288
|
+
@Key.setter
|
|
289
|
+
def Key(self, Key):
|
|
290
|
+
self._Key = Key
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def Value(self):
|
|
294
|
+
"""Value.
|
|
295
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
296
|
+
:rtype: str
|
|
297
|
+
"""
|
|
298
|
+
return self._Value
|
|
299
|
+
|
|
300
|
+
@Value.setter
|
|
301
|
+
def Value(self, Value):
|
|
302
|
+
self._Value = Value
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def _deserialize(self, params):
|
|
306
|
+
self._Key = params.get("Key")
|
|
307
|
+
self._Value = params.get("Value")
|
|
308
|
+
memeber_set = set(params.keys())
|
|
309
|
+
for name, value in vars(self).items():
|
|
310
|
+
property_name = name[1:]
|
|
311
|
+
if property_name in memeber_set:
|
|
312
|
+
memeber_set.remove(property_name)
|
|
313
|
+
if len(memeber_set) > 0:
|
|
314
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
class OutputRiskAssessmentInfo(AbstractModel):
|
|
319
|
+
"""Query output parameters of risk assessment results.
|
|
320
|
+
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
def __init__(self):
|
|
324
|
+
r"""
|
|
325
|
+
:param _RiskLevel: Risk value.
|
|
326
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
327
|
+
:type RiskLevel: str
|
|
328
|
+
:param _RiskType: Risk type.
|
|
329
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
330
|
+
:type RiskType: list of int
|
|
331
|
+
:param _DeviceId: Device identification
|
|
332
|
+
|
|
333
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
334
|
+
:type DeviceId: str
|
|
335
|
+
:param _ExtraInfo: Extended attributes.
|
|
336
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
337
|
+
:type ExtraInfo: list of OutputRiskAssessmentExtraInfoPair
|
|
338
|
+
:param _TokenTime: Token generation timestamp.
|
|
339
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
340
|
+
:type TokenTime: str
|
|
341
|
+
"""
|
|
342
|
+
self._RiskLevel = None
|
|
343
|
+
self._RiskType = None
|
|
344
|
+
self._DeviceId = None
|
|
345
|
+
self._ExtraInfo = None
|
|
346
|
+
self._TokenTime = None
|
|
347
|
+
|
|
348
|
+
@property
|
|
349
|
+
def RiskLevel(self):
|
|
350
|
+
"""Risk value.
|
|
351
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
352
|
+
:rtype: str
|
|
353
|
+
"""
|
|
354
|
+
return self._RiskLevel
|
|
355
|
+
|
|
356
|
+
@RiskLevel.setter
|
|
357
|
+
def RiskLevel(self, RiskLevel):
|
|
358
|
+
self._RiskLevel = RiskLevel
|
|
359
|
+
|
|
360
|
+
@property
|
|
361
|
+
def RiskType(self):
|
|
362
|
+
"""Risk type.
|
|
363
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
364
|
+
:rtype: list of int
|
|
365
|
+
"""
|
|
366
|
+
return self._RiskType
|
|
367
|
+
|
|
368
|
+
@RiskType.setter
|
|
369
|
+
def RiskType(self, RiskType):
|
|
370
|
+
self._RiskType = RiskType
|
|
371
|
+
|
|
372
|
+
@property
|
|
373
|
+
def DeviceId(self):
|
|
374
|
+
"""Device identification
|
|
375
|
+
|
|
376
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
377
|
+
:rtype: str
|
|
378
|
+
"""
|
|
379
|
+
return self._DeviceId
|
|
380
|
+
|
|
381
|
+
@DeviceId.setter
|
|
382
|
+
def DeviceId(self, DeviceId):
|
|
383
|
+
self._DeviceId = DeviceId
|
|
384
|
+
|
|
385
|
+
@property
|
|
386
|
+
def ExtraInfo(self):
|
|
387
|
+
"""Extended attributes.
|
|
388
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
389
|
+
:rtype: list of OutputRiskAssessmentExtraInfoPair
|
|
390
|
+
"""
|
|
391
|
+
return self._ExtraInfo
|
|
392
|
+
|
|
393
|
+
@ExtraInfo.setter
|
|
394
|
+
def ExtraInfo(self, ExtraInfo):
|
|
395
|
+
self._ExtraInfo = ExtraInfo
|
|
396
|
+
|
|
397
|
+
@property
|
|
398
|
+
def TokenTime(self):
|
|
399
|
+
"""Token generation timestamp.
|
|
400
|
+
Note: This field may return null, indicating that no valid value is found.
|
|
401
|
+
:rtype: str
|
|
402
|
+
"""
|
|
403
|
+
return self._TokenTime
|
|
404
|
+
|
|
405
|
+
@TokenTime.setter
|
|
406
|
+
def TokenTime(self, TokenTime):
|
|
407
|
+
self._TokenTime = TokenTime
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
def _deserialize(self, params):
|
|
411
|
+
self._RiskLevel = params.get("RiskLevel")
|
|
412
|
+
self._RiskType = params.get("RiskType")
|
|
413
|
+
self._DeviceId = params.get("DeviceId")
|
|
414
|
+
if params.get("ExtraInfo") is not None:
|
|
415
|
+
self._ExtraInfo = []
|
|
416
|
+
for item in params.get("ExtraInfo"):
|
|
417
|
+
obj = OutputRiskAssessmentExtraInfoPair()
|
|
418
|
+
obj._deserialize(item)
|
|
419
|
+
self._ExtraInfo.append(obj)
|
|
420
|
+
self._TokenTime = params.get("TokenTime")
|
|
421
|
+
memeber_set = set(params.keys())
|
|
422
|
+
for name, value in vars(self).items():
|
|
423
|
+
property_name = name[1:]
|
|
424
|
+
if property_name in memeber_set:
|
|
425
|
+
memeber_set.remove(property_name)
|
|
426
|
+
if len(memeber_set) > 0:
|
|
427
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
428
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
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.rce.v20201103 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class RceClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2020-11-03'
|
|
25
|
+
_endpoint = 'rce.tencentcloudapi.com'
|
|
26
|
+
_service = 'rce'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeRiskAssessment(self, request):
|
|
30
|
+
"""This API is used to query risk assessment results.
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeRiskAssessment.
|
|
33
|
+
:type request: :class:`tencentcloud.rce.v20201103.models.DescribeRiskAssessmentRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.rce.v20201103.models.DescribeRiskAssessmentResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeRiskAssessment", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeRiskAssessmentResponse()
|
|
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))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=C_dR05BTUBL68W7k0FQw6YRf_qJ0i-zinIvhlUvJ7-E,630
|
|
2
2
|
tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/advisor/v20200721/advisor_client.py,sha256=b5pLP_oF5HZHo4xbn-hI4dkpnirhcHB2rNDWvGf4q1Y,2919
|
|
@@ -424,6 +424,11 @@ tencentcloud/privatedns/v20201028/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
424
424
|
tencentcloud/privatedns/v20201028/errorcodes.py,sha256=WxaKkxIXXMPX-xccrFGhnq4WOTzsQiqy9scLslSI1TA,8969
|
|
425
425
|
tencentcloud/privatedns/v20201028/models.py,sha256=QbKF5JinrHAdxhz9fhR5bR5qADWphls0sVrvFmWvWLE,142687
|
|
426
426
|
tencentcloud/privatedns/v20201028/privatedns_client.py,sha256=flr0KSmdnvUJHuW0c0iXF5qBNnN74_6rQXyDrVuQnPI,22819
|
|
427
|
+
tencentcloud/rce/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
428
|
+
tencentcloud/rce/v20201103/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
429
|
+
tencentcloud/rce/v20201103/errorcodes.py,sha256=14CmbQTMreizjkKkhZcO3d1y5WoqLElYS7-eXbb4h7w,4291
|
|
430
|
+
tencentcloud/rce/v20201103/models.py,sha256=rE3VgIiIsRa5y7H-JR5LRFrywzEi57GYYFwJof3tXCs,12958
|
|
431
|
+
tencentcloud/rce/v20201103/rce_client.py,sha256=6Ff-2AFP_Muu46W6rQ9yCn5tsoRjYzoDHjchktnqi5w,1928
|
|
427
432
|
tencentcloud/redis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
428
433
|
tencentcloud/redis/v20180412/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
429
434
|
tencentcloud/redis/v20180412/errorcodes.py,sha256=e9RuOTgVItPW6MyARrP1tZ45naesdctPvpwxgktEmkc,14229
|
|
@@ -609,7 +614,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
609
614
|
tencentcloud/yunjing/v20180228/errorcodes.py,sha256=VEqwMbMBe7F2oAW6ZDu3vAivBr60lbo7FWduFqRTEVg,3195
|
|
610
615
|
tencentcloud/yunjing/v20180228/models.py,sha256=0rnsJ4JkA5aCTV1cVwCuKnzooe6IhQ0NS3ij6tJ22uw,330670
|
|
611
616
|
tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=GA7Fo5GmpEJ2kufV2upw-ZpMZxznsPZ3NKDKDDAI4Ao,67384
|
|
612
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
613
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
614
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
615
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
617
|
+
tencentcloud_sdk_python_intl_en-3.0.1108.dist-info/METADATA,sha256=ZK0_3AsD5ZGFbyvafDdJTXZ88aUm4hG7TZHvbeLCRng,1628
|
|
618
|
+
tencentcloud_sdk_python_intl_en-3.0.1108.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
619
|
+
tencentcloud_sdk_python_intl_en-3.0.1108.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
620
|
+
tencentcloud_sdk_python_intl_en-3.0.1108.dist-info/RECORD,,
|
|
File without changes
|