tencentcloud-sdk-python 3.0.865__py2.py3-none-any.whl → 3.0.867__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 might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/asr/v20190614/asr_client.py +1 -1
- tencentcloud/asr/v20190614/models.py +13 -12
- tencentcloud/billing/v20180709/models.py +2 -2
- tencentcloud/cbs/v20170312/cbs_client.py +1 -1
- tencentcloud/cbs/v20170312/models.py +4 -4
- tencentcloud/cfw/v20190904/models.py +51 -1
- tencentcloud/cloudaudit/v20190319/models.py +1 -1
- tencentcloud/cloudstudio/v20210524/cloudstudio_client.py +23 -0
- tencentcloud/cloudstudio/v20210524/models.py +53 -0
- tencentcloud/cls/v20201016/models.py +4 -0
- tencentcloud/essbasic/v20210526/models.py +25 -2
- tencentcloud/lcic/v20220817/models.py +2 -2
- tencentcloud/pts/v20210728/models.py +123 -0
- tencentcloud/pts/v20210728/pts_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +226 -0
- tencentcloud/tke/v20180525/models.py +4 -0
- 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 +1844 -0
- tencentcloud/trro/v20220325/trro_client.py +555 -0
- tencentcloud/waf/v20180125/models.py +209 -0
- tencentcloud/waf/v20180125/waf_client.py +23 -0
- {tencentcloud_sdk_python-3.0.865.dist-info → tencentcloud_sdk_python-3.0.867.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.865.dist-info → tencentcloud_sdk_python-3.0.867.dist-info}/RECORD +29 -24
- {tencentcloud_sdk_python-3.0.865.dist-info → tencentcloud_sdk_python-3.0.867.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.865.dist-info → tencentcloud_sdk_python-3.0.867.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.865.dist-info → tencentcloud_sdk_python-3.0.867.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,555 @@
|
|
|
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
|
+
"""用于批量删除设备
|
|
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(e.message, e.message)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def BatchDeletePolicy(self, request):
|
|
53
|
+
"""用于批量删除修改权限配置
|
|
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(e.message, e.message)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def BoundLicenses(self, request):
|
|
76
|
+
"""为推流设备绑定license,优先绑定到期时间最近的,到期时间相同优先绑定月包
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for BoundLicenses.
|
|
79
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.BoundLicensesRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.BoundLicensesResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("BoundLicenses", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.BoundLicensesResponse()
|
|
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(e.message, e.message)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def CreateDevice(self, request):
|
|
99
|
+
"""用于创建设备
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for CreateDevice.
|
|
102
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.CreateDeviceRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.CreateDeviceResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("CreateDevice", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.CreateDeviceResponse()
|
|
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(e.message, e.message)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def CreateProject(self, request):
|
|
122
|
+
"""用于创建项目
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for CreateProject.
|
|
125
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.CreateProjectRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.CreateProjectResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("CreateProject", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.CreateProjectResponse()
|
|
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(e.message, e.message)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def DeleteProject(self, request):
|
|
145
|
+
"""用于删除项目
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for DeleteProject.
|
|
148
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DeleteProjectRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DeleteProjectResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("DeleteProject", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.DeleteProjectResponse()
|
|
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(e.message, e.message)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def DescribeDeviceInfo(self, request):
|
|
168
|
+
"""用于获取指定设备信息
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for DescribeDeviceInfo.
|
|
171
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceInfoRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceInfoResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("DescribeDeviceInfo", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.DescribeDeviceInfoResponse()
|
|
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(e.message, e.message)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def DescribeDeviceList(self, request):
|
|
191
|
+
"""用于获取设备信息列表
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for DescribeDeviceList.
|
|
194
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceListRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceListResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("DescribeDeviceList", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.DescribeDeviceListResponse()
|
|
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(e.message, e.message)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def DescribeDeviceSessionDetails(self, request):
|
|
214
|
+
"""获取设备会话数据详单
|
|
215
|
+
|
|
216
|
+
:param request: Request instance for DescribeDeviceSessionDetails.
|
|
217
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceSessionDetailsRequest`
|
|
218
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceSessionDetailsResponse`
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
try:
|
|
222
|
+
params = request._serialize()
|
|
223
|
+
headers = request.headers
|
|
224
|
+
body = self.call("DescribeDeviceSessionDetails", params, headers=headers)
|
|
225
|
+
response = json.loads(body)
|
|
226
|
+
model = models.DescribeDeviceSessionDetailsResponse()
|
|
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(e.message, e.message)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def DescribeDeviceSessionList(self, request):
|
|
237
|
+
"""获取设备会话列表
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for DescribeDeviceSessionList.
|
|
240
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceSessionListRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeDeviceSessionListResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("DescribeDeviceSessionList", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.DescribeDeviceSessionListResponse()
|
|
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(e.message, e.message)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def DescribePolicy(self, request):
|
|
260
|
+
"""用于查看权限配置
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for DescribePolicy.
|
|
263
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribePolicyRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribePolicyResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("DescribePolicy", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.DescribePolicyResponse()
|
|
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(e.message, e.message)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def DescribeProjectInfo(self, request):
|
|
283
|
+
"""用于获取项目信息
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DescribeProjectInfo.
|
|
286
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeProjectInfoRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeProjectInfoResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DescribeProjectInfo", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DescribeProjectInfoResponse()
|
|
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(e.message, e.message)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def DescribeProjectList(self, request):
|
|
306
|
+
"""用于获取项目列表
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for DescribeProjectList.
|
|
309
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeProjectListRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeProjectListResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("DescribeProjectList", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.DescribeProjectListResponse()
|
|
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(e.message, e.message)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def DescribeRecentSessionList(self, request):
|
|
329
|
+
"""获取最新设备会话列表
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for DescribeRecentSessionList.
|
|
332
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeRecentSessionListRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeRecentSessionListResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("DescribeRecentSessionList", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.DescribeRecentSessionListResponse()
|
|
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(e.message, e.message)
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def DescribeSessionStatistics(self, request):
|
|
352
|
+
"""获取会话统计值
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for DescribeSessionStatistics.
|
|
355
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("DescribeSessionStatistics", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.DescribeSessionStatisticsResponse()
|
|
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(e.message, e.message)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def DescribeSessionStatisticsByInterval(self, request):
|
|
375
|
+
"""获取各时间段的会话统计值
|
|
376
|
+
|
|
377
|
+
:param request: Request instance for DescribeSessionStatisticsByInterval.
|
|
378
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsByIntervalRequest`
|
|
379
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DescribeSessionStatisticsByIntervalResponse`
|
|
380
|
+
|
|
381
|
+
"""
|
|
382
|
+
try:
|
|
383
|
+
params = request._serialize()
|
|
384
|
+
headers = request.headers
|
|
385
|
+
body = self.call("DescribeSessionStatisticsByInterval", params, headers=headers)
|
|
386
|
+
response = json.loads(body)
|
|
387
|
+
model = models.DescribeSessionStatisticsByIntervalResponse()
|
|
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(e.message, e.message)
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
def GetDeviceLicense(self, request):
|
|
398
|
+
"""获取设备已经绑定的可用授权数量
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for GetDeviceLicense.
|
|
401
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetDeviceLicenseRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetDeviceLicenseResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("GetDeviceLicense", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.GetDeviceLicenseResponse()
|
|
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(e.message, e.message)
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def GetDevices(self, request):
|
|
421
|
+
"""查询用户设备的授权绑定情况
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for GetDevices.
|
|
424
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetDevicesRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetDevicesResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("GetDevices", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.GetDevicesResponse()
|
|
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(e.message, e.message)
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
def GetLicenseStat(self, request):
|
|
444
|
+
"""统计license类型数量
|
|
445
|
+
|
|
446
|
+
:param request: Request instance for GetLicenseStat.
|
|
447
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetLicenseStatRequest`
|
|
448
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetLicenseStatResponse`
|
|
449
|
+
|
|
450
|
+
"""
|
|
451
|
+
try:
|
|
452
|
+
params = request._serialize()
|
|
453
|
+
headers = request.headers
|
|
454
|
+
body = self.call("GetLicenseStat", params, headers=headers)
|
|
455
|
+
response = json.loads(body)
|
|
456
|
+
model = models.GetLicenseStatResponse()
|
|
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(e.message, e.message)
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def GetLicenses(self, request):
|
|
467
|
+
"""按授权查看license列表
|
|
468
|
+
|
|
469
|
+
:param request: Request instance for GetLicenses.
|
|
470
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.GetLicensesRequest`
|
|
471
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.GetLicensesResponse`
|
|
472
|
+
|
|
473
|
+
"""
|
|
474
|
+
try:
|
|
475
|
+
params = request._serialize()
|
|
476
|
+
headers = request.headers
|
|
477
|
+
body = self.call("GetLicenses", params, headers=headers)
|
|
478
|
+
response = json.loads(body)
|
|
479
|
+
model = models.GetLicensesResponse()
|
|
480
|
+
model._deserialize(response["Response"])
|
|
481
|
+
return model
|
|
482
|
+
except Exception as e:
|
|
483
|
+
if isinstance(e, TencentCloudSDKException):
|
|
484
|
+
raise
|
|
485
|
+
else:
|
|
486
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def ModifyDevice(self, request):
|
|
490
|
+
"""用于修改设备信息
|
|
491
|
+
|
|
492
|
+
:param request: Request instance for ModifyDevice.
|
|
493
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyDeviceRequest`
|
|
494
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyDeviceResponse`
|
|
495
|
+
|
|
496
|
+
"""
|
|
497
|
+
try:
|
|
498
|
+
params = request._serialize()
|
|
499
|
+
headers = request.headers
|
|
500
|
+
body = self.call("ModifyDevice", params, headers=headers)
|
|
501
|
+
response = json.loads(body)
|
|
502
|
+
model = models.ModifyDeviceResponse()
|
|
503
|
+
model._deserialize(response["Response"])
|
|
504
|
+
return model
|
|
505
|
+
except Exception as e:
|
|
506
|
+
if isinstance(e, TencentCloudSDKException):
|
|
507
|
+
raise
|
|
508
|
+
else:
|
|
509
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
def ModifyPolicy(self, request):
|
|
513
|
+
"""用于修改权限配置
|
|
514
|
+
|
|
515
|
+
:param request: Request instance for ModifyPolicy.
|
|
516
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyPolicyRequest`
|
|
517
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyPolicyResponse`
|
|
518
|
+
|
|
519
|
+
"""
|
|
520
|
+
try:
|
|
521
|
+
params = request._serialize()
|
|
522
|
+
headers = request.headers
|
|
523
|
+
body = self.call("ModifyPolicy", params, headers=headers)
|
|
524
|
+
response = json.loads(body)
|
|
525
|
+
model = models.ModifyPolicyResponse()
|
|
526
|
+
model._deserialize(response["Response"])
|
|
527
|
+
return model
|
|
528
|
+
except Exception as e:
|
|
529
|
+
if isinstance(e, TencentCloudSDKException):
|
|
530
|
+
raise
|
|
531
|
+
else:
|
|
532
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
def ModifyProject(self, request):
|
|
536
|
+
"""用于修改项目信息
|
|
537
|
+
|
|
538
|
+
:param request: Request instance for ModifyProject.
|
|
539
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyProjectRequest`
|
|
540
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyProjectResponse`
|
|
541
|
+
|
|
542
|
+
"""
|
|
543
|
+
try:
|
|
544
|
+
params = request._serialize()
|
|
545
|
+
headers = request.headers
|
|
546
|
+
body = self.call("ModifyProject", params, headers=headers)
|
|
547
|
+
response = json.loads(body)
|
|
548
|
+
model = models.ModifyProjectResponse()
|
|
549
|
+
model._deserialize(response["Response"])
|
|
550
|
+
return model
|
|
551
|
+
except Exception as e:
|
|
552
|
+
if isinstance(e, TencentCloudSDKException):
|
|
553
|
+
raise
|
|
554
|
+
else:
|
|
555
|
+
raise TencentCloudSDKException(e.message, e.message)
|