tencentcloud-sdk-python-intl-en 3.0.1136__py2.py3-none-any.whl → 3.0.1138__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.

@@ -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))
@@ -131,6 +131,15 @@ INVALIDPARAMETERVALUE_ADDRESSINTERNETCHARGETYPECONFLICT = 'InvalidParameterValue
131
131
  # The IP address is not available now.
132
132
  INVALIDPARAMETERVALUE_ADDRESSIPNOTAVAILABLE = 'InvalidParameterValue.AddressIpNotAvailable'
133
133
 
134
+ # IP address not found.
135
+ INVALIDPARAMETERVALUE_ADDRESSIPNOTFOUND = 'InvalidParameterValue.AddressIpNotFound'
136
+
137
+ # The IP address does not exist in the VPC.
138
+ INVALIDPARAMETERVALUE_ADDRESSIPNOTINVPC = 'InvalidParameterValue.AddressIpNotInVpc'
139
+
140
+ # This IPv6 address is not published.
141
+ INVALIDPARAMETERVALUE_ADDRESSIPNOTPUBLIC = 'InvalidParameterValue.AddressIpNotPublic'
142
+
134
143
  # Failed to query the address.
135
144
  INVALIDPARAMETERVALUE_ADDRESSIPSNOTFOUND = 'InvalidParameterValue.AddressIpsNotFound'
136
145
 
@@ -143,6 +152,9 @@ INVALIDPARAMETERVALUE_ADDRESSNOTCALCIP = 'InvalidParameterValue.AddressNotCalcIP
143
152
  # Unable to find the address.
144
153
  INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = 'InvalidParameterValue.AddressNotFound'
145
154
 
155
+ # This IPv6 address has already been published.
156
+ INVALIDPARAMETERVALUE_ADDRESSPUBLISHED = 'InvalidParameterValue.AddressPublished'
157
+
146
158
  # Invalid IP address type
147
159
  INVALIDPARAMETERVALUE_ADDRESSTYPECONFLICT = 'InvalidParameterValue.AddressTypeConflict'
148
160
 
@@ -230,6 +242,9 @@ INVALIDPARAMETERVALUE_INVALIDINSTANCEINTERNETCHARGETYPE = 'InvalidParameterValue
230
242
  # Operation failed: the status of the instance does not allow this operation.
231
243
  INVALIDPARAMETERVALUE_INVALIDINSTANCESTATE = 'InvalidParameterValue.InvalidInstanceState'
232
244
 
245
+ # Invalid IPv6 addresses.
246
+ INVALIDPARAMETERVALUE_INVALIDIPV6 = 'InvalidParameterValue.InvalidIpv6'
247
+
233
248
  # Invalid original bandwidth value.
234
249
  INVALIDPARAMETERVALUE_INVALIDOLDBANDWIDTH = 'InvalidParameterValue.InvalidOldBandwidth'
235
250
 
@@ -293,6 +308,9 @@ INVALIDPARAMETERVALUE_NETDETECTSAMEIP = 'InvalidParameterValue.NetDetectSameIp'
293
308
  # Incorrect network interface ID.
294
309
  INVALIDPARAMETERVALUE_NETWORKINTERFACEIDMALFORMED = 'InvalidParameterValue.NetworkInterfaceIdMalformed'
295
310
 
311
+ # The instance bound to the ENI does not support binding the EIPv6.
312
+ INVALIDPARAMETERVALUE_NETWORKINTERFACEINSTANCENOTSUPPORT = 'InvalidParameterValue.NetworkInterfaceInstanceNotSupport'
313
+
296
314
  # The network interface ID was not found. The private IP address may not be configured on the network interface.
297
315
  INVALIDPARAMETERVALUE_NETWORKINTERFACENOTFOUND = 'InvalidParameterValue.NetworkInterfaceNotFound'
298
316
 
@@ -548,6 +566,9 @@ LIMITEXCEEDED_TAGTAGSEXCEEDED = 'LimitExceeded.TagTagsExceeded'
548
566
  # Missing parameter.
549
567
  MISSINGPARAMETER = 'MissingParameter'
550
568
 
569
+ # Multiple parameters missing
570
+ MISSINGPARAMETER_MULTIMISSINGPARAMETER = 'MissingParameter.MultiMissingParameter'
571
+
551
572
  # The specified public IP is isolated.
552
573
  OPERATIONDENIED_ADDRESSINARREARS = 'OperationDenied.AddressInArrears'
553
574
 
@@ -617,9 +638,18 @@ UNSUPPORTEDOPERATION_ACCOUNTNOTSUPPORTED = 'UnsupportedOperation.AccountNotSuppo
617
638
  # The port does not exist.
618
639
  UNSUPPORTEDOPERATION_ACTIONNOTFOUND = 'UnsupportedOperation.ActionNotFound'
619
640
 
641
+ # This operation is not supported because the account is in arrears.
642
+ UNSUPPORTEDOPERATION_ADDRESSIPINARREAR = 'UnsupportedOperation.AddressIpInArrear'
643
+
644
+ # IP addresses in this billing mode does not support this operation.
645
+ UNSUPPORTEDOPERATION_ADDRESSIPINTERNETCHARGETYPENOTPERMIT = 'UnsupportedOperation.AddressIpInternetChargeTypeNotPermit'
646
+
620
647
  # The IP address bound with this instance does not support this operation
621
648
  UNSUPPORTEDOPERATION_ADDRESSIPNOTSUPPORTINSTANCE = 'UnsupportedOperation.AddressIpNotSupportInstance'
622
649
 
650
+ # The IP address status does not support this operation.
651
+ UNSUPPORTEDOPERATION_ADDRESSIPSTATUSNOTPERMIT = 'UnsupportedOperation.AddressIpStatusNotPermit'
652
+
623
653
  # This operation is not supported by the IP address status.
624
654
  UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = 'UnsupportedOperation.AddressStatusNotPermit'
625
655