tencentcloud-sdk-python 3.0.1240__py2.py3-none-any.whl → 3.0.1242__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apm/v20210622/errorcodes.py +3 -3
- tencentcloud/ca/__init__.py +0 -0
- tencentcloud/ca/v20230228/__init__.py +0 -0
- tencentcloud/ca/v20230228/ca_client.py +95 -0
- tencentcloud/ca/v20230228/errorcodes.py +30 -0
- tencentcloud/ca/v20230228/models.py +398 -0
- tencentcloud/ccc/v20200210/models.py +12 -0
- tencentcloud/cdn/v20180606/models.py +32 -0
- tencentcloud/cvm/v20170312/models.py +14 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +6 -6
- tencentcloud/cynosdb/v20190107/models.py +1 -1
- tencentcloud/dts/v20211206/models.py +12 -12
- tencentcloud/emr/v20190103/models.py +12 -0
- tencentcloud/ess/v20201111/ess_client.py +1 -2
- tencentcloud/ess/v20201111/models.py +21 -17
- tencentcloud/essbasic/v20210526/models.py +1 -1
- tencentcloud/lcic/v20220817/models.py +1 -1
- tencentcloud/lighthouse/v20200324/models.py +2 -2
- tencentcloud/ocr/v20181119/models.py +19 -0
- tencentcloud/ses/v20201002/models.py +65 -0
- tencentcloud/teo/v20220901/errorcodes.py +33 -0
- tencentcloud/teo/v20220901/models.py +2993 -1598
- tencentcloud/teo/v20220901/teo_client.py +254 -0
- tencentcloud/vpc/v20170312/errorcodes.py +6 -0
- tencentcloud/vpc/v20170312/models.py +2095 -189
- tencentcloud/vpc/v20170312/vpc_client.py +506 -0
- {tencentcloud_sdk_python-3.0.1240.dist-info → tencentcloud_sdk_python-3.0.1242.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1240.dist-info → tencentcloud_sdk_python-3.0.1242.dist-info}/RECORD +32 -27
- {tencentcloud_sdk_python-3.0.1240.dist-info → tencentcloud_sdk_python-3.0.1242.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1240.dist-info → tencentcloud_sdk_python-3.0.1242.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1240.dist-info → tencentcloud_sdk_python-3.0.1242.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -38,7 +38,7 @@ FAILEDOPERATION_ACCESSTAGFAIL = 'FailedOperation.AccessTagFail'
|
|
38
38
|
# token信息不存在。
|
39
39
|
FAILEDOPERATION_APMCREDENTIALNOTEXIST = 'FailedOperation.ApmCredentialNotExist'
|
40
40
|
|
41
|
-
# appid
|
41
|
+
# appid和业务系统信息不匹配。
|
42
42
|
FAILEDOPERATION_APPIDNOTMATCHINSTANCEINFO = 'FailedOperation.AppIdNotMatchInstanceInfo'
|
43
43
|
|
44
44
|
# 未命中白名单且实例id为官方demo实例id时,不允许修改接口。
|
@@ -56,7 +56,7 @@ FAILEDOPERATION_INSTANCECANNOTMODIFY = 'FailedOperation.InstanceCannotModify'
|
|
56
56
|
# 实例ID为空。
|
57
57
|
FAILEDOPERATION_INSTANCEIDISEMPTY = 'FailedOperation.InstanceIdIsEmpty'
|
58
58
|
|
59
|
-
# apm
|
59
|
+
# apm业务系统不存在。
|
60
60
|
FAILEDOPERATION_INSTANCENOTFOUND = 'FailedOperation.InstanceNotFound'
|
61
61
|
|
62
62
|
# 非法实例id。
|
@@ -68,7 +68,7 @@ FAILEDOPERATION_INVALIDREGEX = 'FailedOperation.InvalidRegex'
|
|
68
68
|
# 不合法请求
|
69
69
|
FAILEDOPERATION_INVALIDREQUEST = 'FailedOperation.InvalidRequest'
|
70
70
|
|
71
|
-
#
|
71
|
+
# 业务系统和应用名不匹配。
|
72
72
|
FAILEDOPERATION_INVALIDSERVICENAME = 'FailedOperation.InvalidServiceName'
|
73
73
|
|
74
74
|
# Tag中指定了无效的Key
|
File without changes
|
File without changes
|
@@ -0,0 +1,95 @@
|
|
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.ca.v20230228 import models
|
21
|
+
|
22
|
+
|
23
|
+
class CaClient(AbstractClient):
|
24
|
+
_apiVersion = '2023-02-28'
|
25
|
+
_endpoint = 'ca.tencentcloudapi.com'
|
26
|
+
_service = 'ca'
|
27
|
+
|
28
|
+
|
29
|
+
def CreateVerifyReport(self, request):
|
30
|
+
"""创建签名验证报告任务,此接口为异步盖章接口,盖章时效24小时。
|
31
|
+
|
32
|
+
:param request: Request instance for CreateVerifyReport.
|
33
|
+
:type request: :class:`tencentcloud.ca.v20230228.models.CreateVerifyReportRequest`
|
34
|
+
:rtype: :class:`tencentcloud.ca.v20230228.models.CreateVerifyReportResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateVerifyReport", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateVerifyReportResponse()
|
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 DescribeVerifyReport(self, request):
|
53
|
+
"""下载验签报告url,url有效期默认12小时
|
54
|
+
|
55
|
+
:param request: Request instance for DescribeVerifyReport.
|
56
|
+
:type request: :class:`tencentcloud.ca.v20230228.models.DescribeVerifyReportRequest`
|
57
|
+
:rtype: :class:`tencentcloud.ca.v20230228.models.DescribeVerifyReportResponse`
|
58
|
+
|
59
|
+
"""
|
60
|
+
try:
|
61
|
+
params = request._serialize()
|
62
|
+
headers = request.headers
|
63
|
+
body = self.call("DescribeVerifyReport", params, headers=headers)
|
64
|
+
response = json.loads(body)
|
65
|
+
model = models.DescribeVerifyReportResponse()
|
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))
|
73
|
+
|
74
|
+
|
75
|
+
def UploadFile(self, request):
|
76
|
+
"""文件上传接口
|
77
|
+
|
78
|
+
:param request: Request instance for UploadFile.
|
79
|
+
:type request: :class:`tencentcloud.ca.v20230228.models.UploadFileRequest`
|
80
|
+
:rtype: :class:`tencentcloud.ca.v20230228.models.UploadFileResponse`
|
81
|
+
|
82
|
+
"""
|
83
|
+
try:
|
84
|
+
params = request._serialize()
|
85
|
+
headers = request.headers
|
86
|
+
body = self.call("UploadFile", params, headers=headers)
|
87
|
+
response = json.loads(body)
|
88
|
+
model = models.UploadFileResponse()
|
89
|
+
model._deserialize(response["Response"])
|
90
|
+
return model
|
91
|
+
except Exception as e:
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
93
|
+
raise
|
94
|
+
else:
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
@@ -0,0 +1,30 @@
|
|
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
|
+
INTERNALERROR = 'InternalError'
|
19
|
+
|
20
|
+
# 无效的过滤器
|
21
|
+
INVALIDFILTER = 'InvalidFilter'
|
22
|
+
|
23
|
+
# 参数错误。
|
24
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
25
|
+
|
26
|
+
# 参数取值错误。
|
27
|
+
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
28
|
+
|
29
|
+
# 缺少参数错误。
|
30
|
+
MISSINGPARAMETER = 'MissingParameter'
|
@@ -0,0 +1,398 @@
|
|
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 CreateVerifyReportRequest(AbstractModel):
|
22
|
+
"""CreateVerifyReport请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _ApplyCustomerType: 客户类型 1:个人,2:企业
|
29
|
+
:type ApplyCustomerType: str
|
30
|
+
:param _ApplyCustomerName: 申请企业 or 自然人名称
|
31
|
+
:type ApplyCustomerName: str
|
32
|
+
:param _ApplyName: 验签申请人姓名
|
33
|
+
:type ApplyName: str
|
34
|
+
:param _ApplyMobile: 验签申请人电弧
|
35
|
+
:type ApplyMobile: str
|
36
|
+
:param _FileId: 验签文件id
|
37
|
+
:type FileId: str
|
38
|
+
:param _ApplyEmail: 验签申请人邮箱
|
39
|
+
:type ApplyEmail: str
|
40
|
+
"""
|
41
|
+
self._ApplyCustomerType = None
|
42
|
+
self._ApplyCustomerName = None
|
43
|
+
self._ApplyName = None
|
44
|
+
self._ApplyMobile = None
|
45
|
+
self._FileId = None
|
46
|
+
self._ApplyEmail = None
|
47
|
+
|
48
|
+
@property
|
49
|
+
def ApplyCustomerType(self):
|
50
|
+
return self._ApplyCustomerType
|
51
|
+
|
52
|
+
@ApplyCustomerType.setter
|
53
|
+
def ApplyCustomerType(self, ApplyCustomerType):
|
54
|
+
self._ApplyCustomerType = ApplyCustomerType
|
55
|
+
|
56
|
+
@property
|
57
|
+
def ApplyCustomerName(self):
|
58
|
+
return self._ApplyCustomerName
|
59
|
+
|
60
|
+
@ApplyCustomerName.setter
|
61
|
+
def ApplyCustomerName(self, ApplyCustomerName):
|
62
|
+
self._ApplyCustomerName = ApplyCustomerName
|
63
|
+
|
64
|
+
@property
|
65
|
+
def ApplyName(self):
|
66
|
+
return self._ApplyName
|
67
|
+
|
68
|
+
@ApplyName.setter
|
69
|
+
def ApplyName(self, ApplyName):
|
70
|
+
self._ApplyName = ApplyName
|
71
|
+
|
72
|
+
@property
|
73
|
+
def ApplyMobile(self):
|
74
|
+
return self._ApplyMobile
|
75
|
+
|
76
|
+
@ApplyMobile.setter
|
77
|
+
def ApplyMobile(self, ApplyMobile):
|
78
|
+
self._ApplyMobile = ApplyMobile
|
79
|
+
|
80
|
+
@property
|
81
|
+
def FileId(self):
|
82
|
+
return self._FileId
|
83
|
+
|
84
|
+
@FileId.setter
|
85
|
+
def FileId(self, FileId):
|
86
|
+
self._FileId = FileId
|
87
|
+
|
88
|
+
@property
|
89
|
+
def ApplyEmail(self):
|
90
|
+
return self._ApplyEmail
|
91
|
+
|
92
|
+
@ApplyEmail.setter
|
93
|
+
def ApplyEmail(self, ApplyEmail):
|
94
|
+
self._ApplyEmail = ApplyEmail
|
95
|
+
|
96
|
+
|
97
|
+
def _deserialize(self, params):
|
98
|
+
self._ApplyCustomerType = params.get("ApplyCustomerType")
|
99
|
+
self._ApplyCustomerName = params.get("ApplyCustomerName")
|
100
|
+
self._ApplyName = params.get("ApplyName")
|
101
|
+
self._ApplyMobile = params.get("ApplyMobile")
|
102
|
+
self._FileId = params.get("FileId")
|
103
|
+
self._ApplyEmail = params.get("ApplyEmail")
|
104
|
+
memeber_set = set(params.keys())
|
105
|
+
for name, value in vars(self).items():
|
106
|
+
property_name = name[1:]
|
107
|
+
if property_name in memeber_set:
|
108
|
+
memeber_set.remove(property_name)
|
109
|
+
if len(memeber_set) > 0:
|
110
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
class CreateVerifyReportResponse(AbstractModel):
|
115
|
+
"""CreateVerifyReport返回参数结构体
|
116
|
+
|
117
|
+
"""
|
118
|
+
|
119
|
+
def __init__(self):
|
120
|
+
r"""
|
121
|
+
:param _SignatureId: 签名id
|
122
|
+
:type SignatureId: str
|
123
|
+
:param _Code: code
|
124
|
+
:type Code: str
|
125
|
+
:param _Message: message
|
126
|
+
:type Message: str
|
127
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
128
|
+
:type RequestId: str
|
129
|
+
"""
|
130
|
+
self._SignatureId = None
|
131
|
+
self._Code = None
|
132
|
+
self._Message = None
|
133
|
+
self._RequestId = None
|
134
|
+
|
135
|
+
@property
|
136
|
+
def SignatureId(self):
|
137
|
+
return self._SignatureId
|
138
|
+
|
139
|
+
@SignatureId.setter
|
140
|
+
def SignatureId(self, SignatureId):
|
141
|
+
self._SignatureId = SignatureId
|
142
|
+
|
143
|
+
@property
|
144
|
+
def Code(self):
|
145
|
+
return self._Code
|
146
|
+
|
147
|
+
@Code.setter
|
148
|
+
def Code(self, Code):
|
149
|
+
self._Code = Code
|
150
|
+
|
151
|
+
@property
|
152
|
+
def Message(self):
|
153
|
+
return self._Message
|
154
|
+
|
155
|
+
@Message.setter
|
156
|
+
def Message(self, Message):
|
157
|
+
self._Message = Message
|
158
|
+
|
159
|
+
@property
|
160
|
+
def RequestId(self):
|
161
|
+
return self._RequestId
|
162
|
+
|
163
|
+
@RequestId.setter
|
164
|
+
def RequestId(self, RequestId):
|
165
|
+
self._RequestId = RequestId
|
166
|
+
|
167
|
+
|
168
|
+
def _deserialize(self, params):
|
169
|
+
self._SignatureId = params.get("SignatureId")
|
170
|
+
self._Code = params.get("Code")
|
171
|
+
self._Message = params.get("Message")
|
172
|
+
self._RequestId = params.get("RequestId")
|
173
|
+
|
174
|
+
|
175
|
+
class DescribeVerifyReportRequest(AbstractModel):
|
176
|
+
"""DescribeVerifyReport请求参数结构体
|
177
|
+
|
178
|
+
"""
|
179
|
+
|
180
|
+
def __init__(self):
|
181
|
+
r"""
|
182
|
+
:param _SignatureId: 签名id
|
183
|
+
:type SignatureId: str
|
184
|
+
"""
|
185
|
+
self._SignatureId = None
|
186
|
+
|
187
|
+
@property
|
188
|
+
def SignatureId(self):
|
189
|
+
return self._SignatureId
|
190
|
+
|
191
|
+
@SignatureId.setter
|
192
|
+
def SignatureId(self, SignatureId):
|
193
|
+
self._SignatureId = SignatureId
|
194
|
+
|
195
|
+
|
196
|
+
def _deserialize(self, params):
|
197
|
+
self._SignatureId = params.get("SignatureId")
|
198
|
+
memeber_set = set(params.keys())
|
199
|
+
for name, value in vars(self).items():
|
200
|
+
property_name = name[1:]
|
201
|
+
if property_name in memeber_set:
|
202
|
+
memeber_set.remove(property_name)
|
203
|
+
if len(memeber_set) > 0:
|
204
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
class DescribeVerifyReportResponse(AbstractModel):
|
209
|
+
"""DescribeVerifyReport返回参数结构体
|
210
|
+
|
211
|
+
"""
|
212
|
+
|
213
|
+
def __init__(self):
|
214
|
+
r"""
|
215
|
+
:param _ReportUrl: 下载url
|
216
|
+
:type ReportUrl: str
|
217
|
+
:param _Code: code
|
218
|
+
:type Code: str
|
219
|
+
:param _Message: message
|
220
|
+
:type Message: str
|
221
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
222
|
+
:type RequestId: str
|
223
|
+
"""
|
224
|
+
self._ReportUrl = None
|
225
|
+
self._Code = None
|
226
|
+
self._Message = None
|
227
|
+
self._RequestId = None
|
228
|
+
|
229
|
+
@property
|
230
|
+
def ReportUrl(self):
|
231
|
+
return self._ReportUrl
|
232
|
+
|
233
|
+
@ReportUrl.setter
|
234
|
+
def ReportUrl(self, ReportUrl):
|
235
|
+
self._ReportUrl = ReportUrl
|
236
|
+
|
237
|
+
@property
|
238
|
+
def Code(self):
|
239
|
+
return self._Code
|
240
|
+
|
241
|
+
@Code.setter
|
242
|
+
def Code(self, Code):
|
243
|
+
self._Code = Code
|
244
|
+
|
245
|
+
@property
|
246
|
+
def Message(self):
|
247
|
+
return self._Message
|
248
|
+
|
249
|
+
@Message.setter
|
250
|
+
def Message(self, Message):
|
251
|
+
self._Message = Message
|
252
|
+
|
253
|
+
@property
|
254
|
+
def RequestId(self):
|
255
|
+
return self._RequestId
|
256
|
+
|
257
|
+
@RequestId.setter
|
258
|
+
def RequestId(self, RequestId):
|
259
|
+
self._RequestId = RequestId
|
260
|
+
|
261
|
+
|
262
|
+
def _deserialize(self, params):
|
263
|
+
self._ReportUrl = params.get("ReportUrl")
|
264
|
+
self._Code = params.get("Code")
|
265
|
+
self._Message = params.get("Message")
|
266
|
+
self._RequestId = params.get("RequestId")
|
267
|
+
|
268
|
+
|
269
|
+
class FileInfo(AbstractModel):
|
270
|
+
"""文件列表信息
|
271
|
+
|
272
|
+
"""
|
273
|
+
|
274
|
+
def __init__(self):
|
275
|
+
r"""
|
276
|
+
:param _FileBody: BASE64编码后的文件内容
|
277
|
+
:type FileBody: str
|
278
|
+
:param _FileName: 文件名,最大长度不超过200字符
|
279
|
+
:type FileName: str
|
280
|
+
"""
|
281
|
+
self._FileBody = None
|
282
|
+
self._FileName = None
|
283
|
+
|
284
|
+
@property
|
285
|
+
def FileBody(self):
|
286
|
+
return self._FileBody
|
287
|
+
|
288
|
+
@FileBody.setter
|
289
|
+
def FileBody(self, FileBody):
|
290
|
+
self._FileBody = FileBody
|
291
|
+
|
292
|
+
@property
|
293
|
+
def FileName(self):
|
294
|
+
return self._FileName
|
295
|
+
|
296
|
+
@FileName.setter
|
297
|
+
def FileName(self, FileName):
|
298
|
+
self._FileName = FileName
|
299
|
+
|
300
|
+
|
301
|
+
def _deserialize(self, params):
|
302
|
+
self._FileBody = params.get("FileBody")
|
303
|
+
self._FileName = params.get("FileName")
|
304
|
+
memeber_set = set(params.keys())
|
305
|
+
for name, value in vars(self).items():
|
306
|
+
property_name = name[1:]
|
307
|
+
if property_name in memeber_set:
|
308
|
+
memeber_set.remove(property_name)
|
309
|
+
if len(memeber_set) > 0:
|
310
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
class UploadFileRequest(AbstractModel):
|
315
|
+
"""UploadFile请求参数结构体
|
316
|
+
|
317
|
+
"""
|
318
|
+
|
319
|
+
def __init__(self):
|
320
|
+
r"""
|
321
|
+
:param _FileInfos: 验签源文件信息列表
|
322
|
+
:type FileInfos: list of FileInfo
|
323
|
+
"""
|
324
|
+
self._FileInfos = None
|
325
|
+
|
326
|
+
@property
|
327
|
+
def FileInfos(self):
|
328
|
+
return self._FileInfos
|
329
|
+
|
330
|
+
@FileInfos.setter
|
331
|
+
def FileInfos(self, FileInfos):
|
332
|
+
self._FileInfos = FileInfos
|
333
|
+
|
334
|
+
|
335
|
+
def _deserialize(self, params):
|
336
|
+
if params.get("FileInfos") is not None:
|
337
|
+
self._FileInfos = []
|
338
|
+
for item in params.get("FileInfos"):
|
339
|
+
obj = FileInfo()
|
340
|
+
obj._deserialize(item)
|
341
|
+
self._FileInfos.append(obj)
|
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 UploadFileResponse(AbstractModel):
|
353
|
+
"""UploadFile返回参数结构体
|
354
|
+
|
355
|
+
"""
|
356
|
+
|
357
|
+
def __init__(self):
|
358
|
+
r"""
|
359
|
+
:param _FileIds: 文件id列表
|
360
|
+
:type FileIds: list of str
|
361
|
+
:param _TotalCount: 文件id总数
|
362
|
+
:type TotalCount: int
|
363
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
364
|
+
:type RequestId: str
|
365
|
+
"""
|
366
|
+
self._FileIds = None
|
367
|
+
self._TotalCount = None
|
368
|
+
self._RequestId = None
|
369
|
+
|
370
|
+
@property
|
371
|
+
def FileIds(self):
|
372
|
+
return self._FileIds
|
373
|
+
|
374
|
+
@FileIds.setter
|
375
|
+
def FileIds(self, FileIds):
|
376
|
+
self._FileIds = FileIds
|
377
|
+
|
378
|
+
@property
|
379
|
+
def TotalCount(self):
|
380
|
+
return self._TotalCount
|
381
|
+
|
382
|
+
@TotalCount.setter
|
383
|
+
def TotalCount(self, TotalCount):
|
384
|
+
self._TotalCount = TotalCount
|
385
|
+
|
386
|
+
@property
|
387
|
+
def RequestId(self):
|
388
|
+
return self._RequestId
|
389
|
+
|
390
|
+
@RequestId.setter
|
391
|
+
def RequestId(self, RequestId):
|
392
|
+
self._RequestId = RequestId
|
393
|
+
|
394
|
+
|
395
|
+
def _deserialize(self, params):
|
396
|
+
self._FileIds = params.get("FileIds")
|
397
|
+
self._TotalCount = params.get("TotalCount")
|
398
|
+
self._RequestId = params.get("RequestId")
|
@@ -7718,6 +7718,8 @@ class IMCdrInfo(AbstractModel):
|
|
7718
7718
|
:param _Satisfaction: 满意度
|
7719
7719
|
注意:此字段可能返回 null,表示取不到有效值。
|
7720
7720
|
:type Satisfaction: :class:`tencentcloud.ccc.v20200210.models.IMSatisfaction`
|
7721
|
+
:param _ClientUserId: 用户ID
|
7722
|
+
:type ClientUserId: str
|
7721
7723
|
"""
|
7722
7724
|
self._Id = None
|
7723
7725
|
self._Duration = None
|
@@ -7730,6 +7732,7 @@ class IMCdrInfo(AbstractModel):
|
|
7730
7732
|
self._SkillGroupId = None
|
7731
7733
|
self._SkillGroupName = None
|
7732
7734
|
self._Satisfaction = None
|
7735
|
+
self._ClientUserId = None
|
7733
7736
|
|
7734
7737
|
@property
|
7735
7738
|
def Id(self):
|
@@ -7819,6 +7822,14 @@ class IMCdrInfo(AbstractModel):
|
|
7819
7822
|
def Satisfaction(self, Satisfaction):
|
7820
7823
|
self._Satisfaction = Satisfaction
|
7821
7824
|
|
7825
|
+
@property
|
7826
|
+
def ClientUserId(self):
|
7827
|
+
return self._ClientUserId
|
7828
|
+
|
7829
|
+
@ClientUserId.setter
|
7830
|
+
def ClientUserId(self, ClientUserId):
|
7831
|
+
self._ClientUserId = ClientUserId
|
7832
|
+
|
7822
7833
|
|
7823
7834
|
def _deserialize(self, params):
|
7824
7835
|
self._Id = params.get("Id")
|
@@ -7834,6 +7845,7 @@ class IMCdrInfo(AbstractModel):
|
|
7834
7845
|
if params.get("Satisfaction") is not None:
|
7835
7846
|
self._Satisfaction = IMSatisfaction()
|
7836
7847
|
self._Satisfaction._deserialize(params.get("Satisfaction"))
|
7848
|
+
self._ClientUserId = params.get("ClientUserId")
|
7837
7849
|
memeber_set = set(params.keys())
|
7838
7850
|
for name, value in vars(self).items():
|
7839
7851
|
property_name = name[1:]
|
@@ -4286,12 +4286,19 @@ off:关闭,遵循用户自定义的节点缓存规则
|
|
4286
4286
|
默认为关闭状态
|
4287
4287
|
注意:此字段可能返回 null,表示取不到有效值。
|
4288
4288
|
:type IgnoreSetCookie: str
|
4289
|
+
:param _OriginMtimeCheckType: 当缓存过期后,是否开启源站 mtime 校验,配置值为equal、since、none 和 null。默认配置值为equal,会校验源站文件的mtime与长度。2024-09-12 18:00 之前创建的域名默认值 null,行为保持不变。
|
4290
|
+
equal:源站响应mtime必须和缓存mtime一致,若mtime值不一致,清除缓存。
|
4291
|
+
since:若源站响应mtime大于缓存mtime,清除缓存。
|
4292
|
+
none: 缓存过期回源重新获取文件mtime和长度后,不会校验源站响应mtime,若源站响应携带Content-Length头部,只有文件大小改变时才会更新缓存;若源站响应不携带Content-Length头部,会更新缓存。
|
4293
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4294
|
+
:type OriginMtimeCheckType: str
|
4289
4295
|
"""
|
4290
4296
|
self._Switch = None
|
4291
4297
|
self._CacheTime = None
|
4292
4298
|
self._CompareMaxAge = None
|
4293
4299
|
self._IgnoreCacheControl = None
|
4294
4300
|
self._IgnoreSetCookie = None
|
4301
|
+
self._OriginMtimeCheckType = None
|
4295
4302
|
|
4296
4303
|
@property
|
4297
4304
|
def Switch(self):
|
@@ -4333,6 +4340,14 @@ off:关闭,遵循用户自定义的节点缓存规则
|
|
4333
4340
|
def IgnoreSetCookie(self, IgnoreSetCookie):
|
4334
4341
|
self._IgnoreSetCookie = IgnoreSetCookie
|
4335
4342
|
|
4343
|
+
@property
|
4344
|
+
def OriginMtimeCheckType(self):
|
4345
|
+
return self._OriginMtimeCheckType
|
4346
|
+
|
4347
|
+
@OriginMtimeCheckType.setter
|
4348
|
+
def OriginMtimeCheckType(self, OriginMtimeCheckType):
|
4349
|
+
self._OriginMtimeCheckType = OriginMtimeCheckType
|
4350
|
+
|
4336
4351
|
|
4337
4352
|
def _deserialize(self, params):
|
4338
4353
|
self._Switch = params.get("Switch")
|
@@ -4340,6 +4355,7 @@ off:关闭,遵循用户自定义的节点缓存规则
|
|
4340
4355
|
self._CompareMaxAge = params.get("CompareMaxAge")
|
4341
4356
|
self._IgnoreCacheControl = params.get("IgnoreCacheControl")
|
4342
4357
|
self._IgnoreSetCookie = params.get("IgnoreSetCookie")
|
4358
|
+
self._OriginMtimeCheckType = params.get("OriginMtimeCheckType")
|
4343
4359
|
memeber_set = set(params.keys())
|
4344
4360
|
for name, value in vars(self).items():
|
4345
4361
|
property_name = name[1:]
|
@@ -4364,9 +4380,16 @@ off:关闭
|
|
4364
4380
|
:param _HeuristicCache: 启发式缓存配置
|
4365
4381
|
注意:此字段可能返回 null,表示取不到有效值。
|
4366
4382
|
:type HeuristicCache: :class:`tencentcloud.cdn.v20180606.models.HeuristicCache`
|
4383
|
+
:param _OriginMtimeCheckType: 当缓存过期后,是否开启源站 mtime 校验,配置值为equal、since、none 和 null。默认配置值为equal,会校验源站文件的mtime与长度。2024-09-12 18:00 之前创建的域名默认值 null,行为保持不变。
|
4384
|
+
equal:源站响应mtime必须和缓存mtime一致,若mtime值不一致,清除缓存。
|
4385
|
+
since:若源站响应mtime大于缓存mtime,清除缓存。
|
4386
|
+
none: 缓存过期回源重新获取文件mtime和长度后,不会校验源站响应mtime,若源站响应携带Content-Length头部,只有文件大小改变时才会更新缓存;若源站响应不携带Content-Length头部,会更新缓存。
|
4387
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4388
|
+
:type OriginMtimeCheckType: str
|
4367
4389
|
"""
|
4368
4390
|
self._Switch = None
|
4369
4391
|
self._HeuristicCache = None
|
4392
|
+
self._OriginMtimeCheckType = None
|
4370
4393
|
|
4371
4394
|
@property
|
4372
4395
|
def Switch(self):
|
@@ -4384,12 +4407,21 @@ off:关闭
|
|
4384
4407
|
def HeuristicCache(self, HeuristicCache):
|
4385
4408
|
self._HeuristicCache = HeuristicCache
|
4386
4409
|
|
4410
|
+
@property
|
4411
|
+
def OriginMtimeCheckType(self):
|
4412
|
+
return self._OriginMtimeCheckType
|
4413
|
+
|
4414
|
+
@OriginMtimeCheckType.setter
|
4415
|
+
def OriginMtimeCheckType(self, OriginMtimeCheckType):
|
4416
|
+
self._OriginMtimeCheckType = OriginMtimeCheckType
|
4417
|
+
|
4387
4418
|
|
4388
4419
|
def _deserialize(self, params):
|
4389
4420
|
self._Switch = params.get("Switch")
|
4390
4421
|
if params.get("HeuristicCache") is not None:
|
4391
4422
|
self._HeuristicCache = HeuristicCache()
|
4392
4423
|
self._HeuristicCache._deserialize(params.get("HeuristicCache"))
|
4424
|
+
self._OriginMtimeCheckType = params.get("OriginMtimeCheckType")
|
4393
4425
|
memeber_set = set(params.keys())
|
4394
4426
|
for name, value in vars(self).items():
|
4395
4427
|
property_name = name[1:]
|