tencentcloud-sdk-python-intl-en 3.0.1135__py2.py3-none-any.whl → 3.0.1137__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/trro/__init__.py +0 -0
- tencentcloud/trro/v20220325/__init__.py +0 -0
- tencentcloud/trro/v20220325/errorcodes.py +36 -0
- tencentcloud/trro/v20220325/models.py +3235 -0
- tencentcloud/trro/v20220325/trro_client.py +463 -0
- tencentcloud/vod/v20180717/errorcodes.py +25 -1
- tencentcloud/vod/v20180717/models.py +608 -65
- tencentcloud/vod/v20180717/vod_client.py +46 -0
- tencentcloud/vpc/v20170312/errorcodes.py +30 -0
- tencentcloud/vpc/v20170312/models.py +1647 -208
- tencentcloud/vpc/v20170312/vpc_client.py +280 -0
- {tencentcloud_sdk_python_intl_en-3.0.1135.dist-info → tencentcloud_sdk_python_intl_en-3.0.1137.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1135.dist-info → tencentcloud_sdk_python_intl_en-3.0.1137.dist-info}/RECORD +16 -11
- {tencentcloud_sdk_python_intl_en-3.0.1135.dist-info → tencentcloud_sdk_python_intl_en-3.0.1137.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1135.dist-info → tencentcloud_sdk_python_intl_en-3.0.1137.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,463 @@
|
|
|
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.trro.v20220325 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TrroClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2022-03-25'
|
|
25
|
+
_endpoint = 'trro.tencentcloudapi.com'
|
|
26
|
+
_service = 'trro'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def BatchDeleteDevices(self, request):
|
|
30
|
+
"""This API is used to delete devices in batches.
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for BatchDeleteDevices.
|
|
33
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.BatchDeleteDevicesRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.BatchDeleteDevicesResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("BatchDeleteDevices", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.BatchDeleteDevicesResponse()
|
|
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 BatchDeletePolicy(self, request):
|
|
53
|
+
"""This API is used to batch delete and modify permission configurations.
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for BatchDeletePolicy.
|
|
56
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.BatchDeletePolicyRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.BatchDeletePolicyResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("BatchDeletePolicy", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.BatchDeletePolicyResponse()
|
|
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 CreateDevice(self, request):
|
|
76
|
+
"""This API is used to create a device.
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for CreateDevice.
|
|
79
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.CreateDeviceRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.CreateDeviceResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("CreateDevice", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.CreateDeviceResponse()
|
|
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))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def CreateProject(self, request):
|
|
99
|
+
"""This API is used to create a project.
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for CreateProject.
|
|
102
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.CreateProjectRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.CreateProjectResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("CreateProject", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.CreateProjectResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def DeleteProject(self, request):
|
|
122
|
+
"""This API is used to delete a project.
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for DeleteProject.
|
|
125
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DeleteProjectRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DeleteProjectResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("DeleteProject", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.DeleteProjectResponse()
|
|
135
|
+
model._deserialize(response["Response"])
|
|
136
|
+
return model
|
|
137
|
+
except Exception as e:
|
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
|
139
|
+
raise
|
|
140
|
+
else:
|
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def DescribeDeviceInfo(self, request):
|
|
145
|
+
"""This API is used to get specified device information.
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for DescribeDeviceInfo.
|
|
148
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceInfoRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceInfoResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("DescribeDeviceInfo", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.DescribeDeviceInfoResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def DescribeDeviceSessionList(self, request):
|
|
168
|
+
"""Getting the device session list
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for DescribeDeviceSessionList.
|
|
171
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceSessionListRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceSessionListResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("DescribeDeviceSessionList", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.DescribeDeviceSessionListResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def DescribeProjectInfo(self, request):
|
|
191
|
+
"""This API is used to get project information.
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for DescribeProjectInfo.
|
|
194
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeProjectInfoRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeProjectInfoResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("DescribeProjectInfo", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.DescribeProjectInfoResponse()
|
|
204
|
+
model._deserialize(response["Response"])
|
|
205
|
+
return model
|
|
206
|
+
except Exception as e:
|
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
|
208
|
+
raise
|
|
209
|
+
else:
|
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def DescribeProjectList(self, request):
|
|
214
|
+
"""This API is used to get project lists.
|
|
215
|
+
|
|
216
|
+
:param request: Request instance for DescribeProjectList.
|
|
217
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeProjectListRequest`
|
|
218
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeProjectListResponse`
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
try:
|
|
222
|
+
params = request._serialize()
|
|
223
|
+
headers = request.headers
|
|
224
|
+
body = self.call("DescribeProjectList", params, headers=headers)
|
|
225
|
+
response = json.loads(body)
|
|
226
|
+
model = models.DescribeProjectListResponse()
|
|
227
|
+
model._deserialize(response["Response"])
|
|
228
|
+
return model
|
|
229
|
+
except Exception as e:
|
|
230
|
+
if isinstance(e, TencentCloudSDKException):
|
|
231
|
+
raise
|
|
232
|
+
else:
|
|
233
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def DescribeRecentSessionList(self, request):
|
|
237
|
+
"""Get the latest device session list
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for DescribeRecentSessionList.
|
|
240
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeRecentSessionListRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeRecentSessionListResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("DescribeRecentSessionList", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.DescribeRecentSessionListResponse()
|
|
250
|
+
model._deserialize(response["Response"])
|
|
251
|
+
return model
|
|
252
|
+
except Exception as e:
|
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
|
254
|
+
raise
|
|
255
|
+
else:
|
|
256
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def DescribeSessionStatistics(self, request):
|
|
260
|
+
"""Get session statistical values
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for DescribeSessionStatistics.
|
|
263
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("DescribeSessionStatistics", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.DescribeSessionStatisticsResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def DescribeSessionStatisticsByInterval(self, request):
|
|
283
|
+
"""Getting session statistics for each time period
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DescribeSessionStatisticsByInterval.
|
|
286
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsByIntervalRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsByIntervalResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DescribeSessionStatisticsByInterval", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DescribeSessionStatisticsByIntervalResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def GetDeviceLicense(self, request):
|
|
306
|
+
"""Obtain the quantity of available authorizations already bound to the device
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for GetDeviceLicense.
|
|
309
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetDeviceLicenseRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetDeviceLicenseResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("GetDeviceLicense", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.GetDeviceLicenseResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def GetDevices(self, request):
|
|
329
|
+
"""Query the authorization binding status of user devices
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for GetDevices.
|
|
332
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetDevicesRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetDevicesResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("GetDevices", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.GetDevicesResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def GetLicenseStat(self, request):
|
|
352
|
+
"""Statistics of license types and quantities
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for GetLicenseStat.
|
|
355
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetLicenseStatRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetLicenseStatResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("GetLicenseStat", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.GetLicenseStatResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
367
|
+
except Exception as e:
|
|
368
|
+
if isinstance(e, TencentCloudSDKException):
|
|
369
|
+
raise
|
|
370
|
+
else:
|
|
371
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def GetLicenses(self, request):
|
|
375
|
+
"""View the license list by authorization
|
|
376
|
+
|
|
377
|
+
:param request: Request instance for GetLicenses.
|
|
378
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetLicensesRequest`
|
|
379
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetLicensesResponse`
|
|
380
|
+
|
|
381
|
+
"""
|
|
382
|
+
try:
|
|
383
|
+
params = request._serialize()
|
|
384
|
+
headers = request.headers
|
|
385
|
+
body = self.call("GetLicenses", params, headers=headers)
|
|
386
|
+
response = json.loads(body)
|
|
387
|
+
model = models.GetLicensesResponse()
|
|
388
|
+
model._deserialize(response["Response"])
|
|
389
|
+
return model
|
|
390
|
+
except Exception as e:
|
|
391
|
+
if isinstance(e, TencentCloudSDKException):
|
|
392
|
+
raise
|
|
393
|
+
else:
|
|
394
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
def ModifyDevice(self, request):
|
|
398
|
+
"""This API is used to modify device information.
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for ModifyDevice.
|
|
401
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyDeviceRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyDeviceResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("ModifyDevice", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.ModifyDeviceResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def ModifyPolicy(self, request):
|
|
421
|
+
"""This API is used to modify permission configuration.
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for ModifyPolicy.
|
|
424
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyPolicyRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyPolicyResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("ModifyPolicy", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.ModifyPolicyResponse()
|
|
434
|
+
model._deserialize(response["Response"])
|
|
435
|
+
return model
|
|
436
|
+
except Exception as e:
|
|
437
|
+
if isinstance(e, TencentCloudSDKException):
|
|
438
|
+
raise
|
|
439
|
+
else:
|
|
440
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
def ModifyProject(self, request):
|
|
444
|
+
"""This API is used to modify project information.
|
|
445
|
+
|
|
446
|
+
:param request: Request instance for ModifyProject.
|
|
447
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyProjectRequest`
|
|
448
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyProjectResponse`
|
|
449
|
+
|
|
450
|
+
"""
|
|
451
|
+
try:
|
|
452
|
+
params = request._serialize()
|
|
453
|
+
headers = request.headers
|
|
454
|
+
body = self.call("ModifyProject", params, headers=headers)
|
|
455
|
+
response = json.loads(body)
|
|
456
|
+
model = models.ModifyProjectResponse()
|
|
457
|
+
model._deserialize(response["Response"])
|
|
458
|
+
return model
|
|
459
|
+
except Exception as e:
|
|
460
|
+
if isinstance(e, TencentCloudSDKException):
|
|
461
|
+
raise
|
|
462
|
+
else:
|
|
463
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -263,6 +263,9 @@ INVALIDPARAMETERVALUE_EXISTEDNAME = 'InvalidParameterValue.ExistedName'
|
|
|
263
263
|
# Incorrect parameter value: incorrect `ExpireTime` format.
|
|
264
264
|
INVALIDPARAMETERVALUE_EXPIRETIME = 'InvalidParameterValue.ExpireTime'
|
|
265
265
|
|
|
266
|
+
# Incorrect `expiretime`.
|
|
267
|
+
INVALIDPARAMETERVALUE_EXPIREDTIME = 'InvalidParameterValue.ExpiredTime'
|
|
268
|
+
|
|
266
269
|
# Incorrect parameter value: the same face already exists.
|
|
267
270
|
INVALIDPARAMETERVALUE_FACEDUPLICATE = 'InvalidParameterValue.FaceDuplicate'
|
|
268
271
|
|
|
@@ -329,6 +332,9 @@ INVALIDPARAMETERVALUE_IMAGEDECODEERROR = 'InvalidParameterValue.ImageDecodeError
|
|
|
329
332
|
# Invalid parameter: image watermarking template.
|
|
330
333
|
INVALIDPARAMETERVALUE_IMAGETEMPLATE = 'InvalidParameterValue.ImageTemplate'
|
|
331
334
|
|
|
335
|
+
# Index parameter error.
|
|
336
|
+
INVALIDPARAMETERVALUE_INDEX = 'InvalidParameterValue.Index'
|
|
337
|
+
|
|
332
338
|
# Invalid `Interval` value
|
|
333
339
|
INVALIDPARAMETERVALUE_INTERVAL = 'InvalidParameterValue.Interval'
|
|
334
340
|
|
|
@@ -446,6 +452,15 @@ INVALIDPARAMETERVALUE_REVIEWCONFIDENCE = 'InvalidParameterValue.ReviewConfidence
|
|
|
446
452
|
# Incorrect parameter value: the value of the `ReviewWallSwitch` parameter is invalid.
|
|
447
453
|
INVALIDPARAMETERVALUE_REVIEWWALLSWITCH = 'InvalidParameterValue.ReviewWallSwitch'
|
|
448
454
|
|
|
455
|
+
# A playlist with the same id already exists.
|
|
456
|
+
INVALIDPARAMETERVALUE_ROUNDPLAYALREADYEXISTS = 'InvalidParameterValue.RoundPlayAlreadyExists'
|
|
457
|
+
|
|
458
|
+
# RoundPlayId parameter error.
|
|
459
|
+
INVALIDPARAMETERVALUE_ROUNDPLAYID = 'InvalidParameterValue.RoundPlayId'
|
|
460
|
+
|
|
461
|
+
# RoundPlaylist parameter length error.
|
|
462
|
+
INVALIDPARAMETERVALUE_ROUNDPLAYLIST = 'InvalidParameterValue.RoundPlaylist'
|
|
463
|
+
|
|
449
464
|
# Incorrect parameter value: RowCount.
|
|
450
465
|
INVALIDPARAMETERVALUE_ROWCOUNT = 'InvalidParameterValue.RowCount'
|
|
451
466
|
|
|
@@ -509,7 +524,7 @@ INVALIDPARAMETERVALUE_STREAMIDINVALID = 'InvalidParameterValue.StreamIdInvalid'
|
|
|
509
524
|
# Invalid stream ID.
|
|
510
525
|
INVALIDPARAMETERVALUE_STREAMIDS = 'InvalidParameterValue.StreamIds'
|
|
511
526
|
|
|
512
|
-
# Incorrect parameter value:
|
|
527
|
+
# Incorrect parameter value: application id.
|
|
513
528
|
INVALIDPARAMETERVALUE_SUBAPPID = 'InvalidParameterValue.SubAppId'
|
|
514
529
|
|
|
515
530
|
# Incorrect parameter value: the value of the `SubtitleFormat` parameter is invalid.
|
|
@@ -614,6 +629,15 @@ LIMITEXCEEDED = 'LimitExceeded'
|
|
|
614
629
|
# Limit exceeded: the total number of new and old timestamps exceeds the limit.
|
|
615
630
|
LIMITEXCEEDED_KEYFRAMEDESCCOUNTREACHMAX = 'LimitExceeded.KeyFrameDescCountReachMax'
|
|
616
631
|
|
|
632
|
+
# Playlist length too large.
|
|
633
|
+
LIMITEXCEEDED_PLAYLIST = 'LimitExceeded.PlayList'
|
|
634
|
+
|
|
635
|
+
# Exceeds broadcast playlist total limit.
|
|
636
|
+
LIMITEXCEEDED_ROUNDPLAYS = 'LimitExceeded.RoundPlays'
|
|
637
|
+
|
|
638
|
+
# Running broadcast playlists exceed maximum quantity.
|
|
639
|
+
LIMITEXCEEDED_RUNNINGROUNDPLAYS = 'LimitExceeded.RunningRoundPlays'
|
|
640
|
+
|
|
617
641
|
# Limit exceeded: the total number of new and old tags exceeds the limit.
|
|
618
642
|
LIMITEXCEEDED_TAGCOUNTREACHMAX = 'LimitExceeded.TagCountReachMax'
|
|
619
643
|
|