tencentcloud-sdk-python-postgres 3.0.935__py2.py3-none-any.whl → 3.0.941__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/postgres/v20170312/models.py +340 -244
- tencentcloud/postgres/v20170312/postgres_client.py +88 -86
- {tencentcloud_sdk_python_postgres-3.0.935.dist-info → tencentcloud_sdk_python_postgres-3.0.941.dist-info}/METADATA +1 -1
- tencentcloud_sdk_python_postgres-3.0.941.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_postgres-3.0.935.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_postgres-3.0.935.dist-info → tencentcloud_sdk_python_postgres-3.0.941.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_postgres-3.0.935.dist-info → tencentcloud_sdk_python_postgres-3.0.941.dist-info}/top_level.txt +0 -0
|
@@ -46,7 +46,7 @@ class PostgresClient(AbstractClient):
|
|
|
46
46
|
if isinstance(e, TencentCloudSDKException):
|
|
47
47
|
raise
|
|
48
48
|
else:
|
|
49
|
-
raise TencentCloudSDKException(e.
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
def CloneDBInstance(self, request):
|
|
@@ -69,7 +69,7 @@ class PostgresClient(AbstractClient):
|
|
|
69
69
|
if isinstance(e, TencentCloudSDKException):
|
|
70
70
|
raise
|
|
71
71
|
else:
|
|
72
|
-
raise TencentCloudSDKException(e.
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
def CloseDBExtranetAccess(self, request):
|
|
@@ -92,7 +92,7 @@ class PostgresClient(AbstractClient):
|
|
|
92
92
|
if isinstance(e, TencentCloudSDKException):
|
|
93
93
|
raise
|
|
94
94
|
else:
|
|
95
|
-
raise TencentCloudSDKException(e.
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
def CloseServerlessDBExtranetAccess(self, request):
|
|
@@ -115,7 +115,7 @@ class PostgresClient(AbstractClient):
|
|
|
115
115
|
if isinstance(e, TencentCloudSDKException):
|
|
116
116
|
raise
|
|
117
117
|
else:
|
|
118
|
-
raise TencentCloudSDKException(e.
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
def CreateBaseBackup(self, request):
|
|
@@ -138,7 +138,7 @@ class PostgresClient(AbstractClient):
|
|
|
138
138
|
if isinstance(e, TencentCloudSDKException):
|
|
139
139
|
raise
|
|
140
140
|
else:
|
|
141
|
-
raise TencentCloudSDKException(e.
|
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
def CreateDBInstanceNetworkAccess(self, request):
|
|
@@ -161,7 +161,7 @@ class PostgresClient(AbstractClient):
|
|
|
161
161
|
if isinstance(e, TencentCloudSDKException):
|
|
162
162
|
raise
|
|
163
163
|
else:
|
|
164
|
-
raise TencentCloudSDKException(e.
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
def CreateDBInstances(self, request):
|
|
@@ -184,11 +184,13 @@ class PostgresClient(AbstractClient):
|
|
|
184
184
|
if isinstance(e, TencentCloudSDKException):
|
|
185
185
|
raise
|
|
186
186
|
else:
|
|
187
|
-
raise TencentCloudSDKException(e.
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
def CreateInstances(self, request):
|
|
191
191
|
"""本接口 (CreateInstances) 用于创建一个或者多个PostgreSQL实例,通过此接口创建的实例无需进行初始化,可直接使用。
|
|
192
|
+
<li>实例创建成功后将自动开机启动,实例状态变为“运行中”。
|
|
193
|
+
<li>预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。
|
|
192
194
|
|
|
193
195
|
:param request: Request instance for CreateInstances.
|
|
194
196
|
:type request: :class:`tencentcloud.postgres.v20170312.models.CreateInstancesRequest`
|
|
@@ -207,7 +209,7 @@ class PostgresClient(AbstractClient):
|
|
|
207
209
|
if isinstance(e, TencentCloudSDKException):
|
|
208
210
|
raise
|
|
209
211
|
else:
|
|
210
|
-
raise TencentCloudSDKException(e.
|
|
212
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
213
|
|
|
212
214
|
|
|
213
215
|
def CreateParameterTemplate(self, request):
|
|
@@ -230,7 +232,7 @@ class PostgresClient(AbstractClient):
|
|
|
230
232
|
if isinstance(e, TencentCloudSDKException):
|
|
231
233
|
raise
|
|
232
234
|
else:
|
|
233
|
-
raise TencentCloudSDKException(e.
|
|
235
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
236
|
|
|
235
237
|
|
|
236
238
|
def CreateReadOnlyDBInstance(self, request):
|
|
@@ -253,7 +255,7 @@ class PostgresClient(AbstractClient):
|
|
|
253
255
|
if isinstance(e, TencentCloudSDKException):
|
|
254
256
|
raise
|
|
255
257
|
else:
|
|
256
|
-
raise TencentCloudSDKException(e.
|
|
258
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
259
|
|
|
258
260
|
|
|
259
261
|
def CreateReadOnlyGroup(self, request):
|
|
@@ -276,7 +278,7 @@ class PostgresClient(AbstractClient):
|
|
|
276
278
|
if isinstance(e, TencentCloudSDKException):
|
|
277
279
|
raise
|
|
278
280
|
else:
|
|
279
|
-
raise TencentCloudSDKException(e.
|
|
281
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
282
|
|
|
281
283
|
|
|
282
284
|
def CreateReadOnlyGroupNetworkAccess(self, request):
|
|
@@ -299,7 +301,7 @@ class PostgresClient(AbstractClient):
|
|
|
299
301
|
if isinstance(e, TencentCloudSDKException):
|
|
300
302
|
raise
|
|
301
303
|
else:
|
|
302
|
-
raise TencentCloudSDKException(e.
|
|
304
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
305
|
|
|
304
306
|
|
|
305
307
|
def CreateServerlessDBInstance(self, request):
|
|
@@ -322,7 +324,7 @@ class PostgresClient(AbstractClient):
|
|
|
322
324
|
if isinstance(e, TencentCloudSDKException):
|
|
323
325
|
raise
|
|
324
326
|
else:
|
|
325
|
-
raise TencentCloudSDKException(e.
|
|
327
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
328
|
|
|
327
329
|
|
|
328
330
|
def DeleteBaseBackup(self, request):
|
|
@@ -345,7 +347,7 @@ class PostgresClient(AbstractClient):
|
|
|
345
347
|
if isinstance(e, TencentCloudSDKException):
|
|
346
348
|
raise
|
|
347
349
|
else:
|
|
348
|
-
raise TencentCloudSDKException(e.
|
|
350
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
351
|
|
|
350
352
|
|
|
351
353
|
def DeleteDBInstanceNetworkAccess(self, request):
|
|
@@ -368,7 +370,7 @@ class PostgresClient(AbstractClient):
|
|
|
368
370
|
if isinstance(e, TencentCloudSDKException):
|
|
369
371
|
raise
|
|
370
372
|
else:
|
|
371
|
-
raise TencentCloudSDKException(e.
|
|
373
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
374
|
|
|
373
375
|
|
|
374
376
|
def DeleteLogBackup(self, request):
|
|
@@ -391,7 +393,7 @@ class PostgresClient(AbstractClient):
|
|
|
391
393
|
if isinstance(e, TencentCloudSDKException):
|
|
392
394
|
raise
|
|
393
395
|
else:
|
|
394
|
-
raise TencentCloudSDKException(e.
|
|
396
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
397
|
|
|
396
398
|
|
|
397
399
|
def DeleteParameterTemplate(self, request):
|
|
@@ -414,7 +416,7 @@ class PostgresClient(AbstractClient):
|
|
|
414
416
|
if isinstance(e, TencentCloudSDKException):
|
|
415
417
|
raise
|
|
416
418
|
else:
|
|
417
|
-
raise TencentCloudSDKException(e.
|
|
419
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
420
|
|
|
419
421
|
|
|
420
422
|
def DeleteReadOnlyGroup(self, request):
|
|
@@ -437,7 +439,7 @@ class PostgresClient(AbstractClient):
|
|
|
437
439
|
if isinstance(e, TencentCloudSDKException):
|
|
438
440
|
raise
|
|
439
441
|
else:
|
|
440
|
-
raise TencentCloudSDKException(e.
|
|
442
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
443
|
|
|
442
444
|
|
|
443
445
|
def DeleteReadOnlyGroupNetworkAccess(self, request):
|
|
@@ -460,7 +462,7 @@ class PostgresClient(AbstractClient):
|
|
|
460
462
|
if isinstance(e, TencentCloudSDKException):
|
|
461
463
|
raise
|
|
462
464
|
else:
|
|
463
|
-
raise TencentCloudSDKException(e.
|
|
465
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
464
466
|
|
|
465
467
|
|
|
466
468
|
def DeleteServerlessDBInstance(self, request):
|
|
@@ -483,7 +485,7 @@ class PostgresClient(AbstractClient):
|
|
|
483
485
|
if isinstance(e, TencentCloudSDKException):
|
|
484
486
|
raise
|
|
485
487
|
else:
|
|
486
|
-
raise TencentCloudSDKException(e.
|
|
488
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
487
489
|
|
|
488
490
|
|
|
489
491
|
def DescribeAccounts(self, request):
|
|
@@ -506,7 +508,7 @@ class PostgresClient(AbstractClient):
|
|
|
506
508
|
if isinstance(e, TencentCloudSDKException):
|
|
507
509
|
raise
|
|
508
510
|
else:
|
|
509
|
-
raise TencentCloudSDKException(e.
|
|
511
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
510
512
|
|
|
511
513
|
|
|
512
514
|
def DescribeAvailableRecoveryTime(self, request):
|
|
@@ -529,7 +531,7 @@ class PostgresClient(AbstractClient):
|
|
|
529
531
|
if isinstance(e, TencentCloudSDKException):
|
|
530
532
|
raise
|
|
531
533
|
else:
|
|
532
|
-
raise TencentCloudSDKException(e.
|
|
534
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
533
535
|
|
|
534
536
|
|
|
535
537
|
def DescribeBackupDownloadRestriction(self, request):
|
|
@@ -552,7 +554,7 @@ class PostgresClient(AbstractClient):
|
|
|
552
554
|
if isinstance(e, TencentCloudSDKException):
|
|
553
555
|
raise
|
|
554
556
|
else:
|
|
555
|
-
raise TencentCloudSDKException(e.
|
|
557
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
556
558
|
|
|
557
559
|
|
|
558
560
|
def DescribeBackupDownloadURL(self, request):
|
|
@@ -575,7 +577,7 @@ class PostgresClient(AbstractClient):
|
|
|
575
577
|
if isinstance(e, TencentCloudSDKException):
|
|
576
578
|
raise
|
|
577
579
|
else:
|
|
578
|
-
raise TencentCloudSDKException(e.
|
|
580
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
579
581
|
|
|
580
582
|
|
|
581
583
|
def DescribeBackupOverview(self, request):
|
|
@@ -598,7 +600,7 @@ class PostgresClient(AbstractClient):
|
|
|
598
600
|
if isinstance(e, TencentCloudSDKException):
|
|
599
601
|
raise
|
|
600
602
|
else:
|
|
601
|
-
raise TencentCloudSDKException(e.
|
|
603
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
602
604
|
|
|
603
605
|
|
|
604
606
|
def DescribeBackupPlans(self, request):
|
|
@@ -621,7 +623,7 @@ class PostgresClient(AbstractClient):
|
|
|
621
623
|
if isinstance(e, TencentCloudSDKException):
|
|
622
624
|
raise
|
|
623
625
|
else:
|
|
624
|
-
raise TencentCloudSDKException(e.
|
|
626
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
625
627
|
|
|
626
628
|
|
|
627
629
|
def DescribeBackupSummaries(self, request):
|
|
@@ -644,7 +646,7 @@ class PostgresClient(AbstractClient):
|
|
|
644
646
|
if isinstance(e, TencentCloudSDKException):
|
|
645
647
|
raise
|
|
646
648
|
else:
|
|
647
|
-
raise TencentCloudSDKException(e.
|
|
649
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
648
650
|
|
|
649
651
|
|
|
650
652
|
def DescribeBaseBackups(self, request):
|
|
@@ -667,7 +669,7 @@ class PostgresClient(AbstractClient):
|
|
|
667
669
|
if isinstance(e, TencentCloudSDKException):
|
|
668
670
|
raise
|
|
669
671
|
else:
|
|
670
|
-
raise TencentCloudSDKException(e.
|
|
672
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
671
673
|
|
|
672
674
|
|
|
673
675
|
def DescribeClasses(self, request):
|
|
@@ -690,7 +692,7 @@ class PostgresClient(AbstractClient):
|
|
|
690
692
|
if isinstance(e, TencentCloudSDKException):
|
|
691
693
|
raise
|
|
692
694
|
else:
|
|
693
|
-
raise TencentCloudSDKException(e.
|
|
695
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
694
696
|
|
|
695
697
|
|
|
696
698
|
def DescribeCloneDBInstanceSpec(self, request):
|
|
@@ -713,7 +715,7 @@ class PostgresClient(AbstractClient):
|
|
|
713
715
|
if isinstance(e, TencentCloudSDKException):
|
|
714
716
|
raise
|
|
715
717
|
else:
|
|
716
|
-
raise TencentCloudSDKException(e.
|
|
718
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
717
719
|
|
|
718
720
|
|
|
719
721
|
def DescribeDBBackups(self, request):
|
|
@@ -736,7 +738,7 @@ class PostgresClient(AbstractClient):
|
|
|
736
738
|
if isinstance(e, TencentCloudSDKException):
|
|
737
739
|
raise
|
|
738
740
|
else:
|
|
739
|
-
raise TencentCloudSDKException(e.
|
|
741
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
742
|
|
|
741
743
|
|
|
742
744
|
def DescribeDBErrlogs(self, request):
|
|
@@ -759,7 +761,7 @@ class PostgresClient(AbstractClient):
|
|
|
759
761
|
if isinstance(e, TencentCloudSDKException):
|
|
760
762
|
raise
|
|
761
763
|
else:
|
|
762
|
-
raise TencentCloudSDKException(e.
|
|
764
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
763
765
|
|
|
764
766
|
|
|
765
767
|
def DescribeDBInstanceAttribute(self, request):
|
|
@@ -782,7 +784,7 @@ class PostgresClient(AbstractClient):
|
|
|
782
784
|
if isinstance(e, TencentCloudSDKException):
|
|
783
785
|
raise
|
|
784
786
|
else:
|
|
785
|
-
raise TencentCloudSDKException(e.
|
|
787
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
786
788
|
|
|
787
789
|
|
|
788
790
|
def DescribeDBInstanceParameters(self, request):
|
|
@@ -805,7 +807,7 @@ class PostgresClient(AbstractClient):
|
|
|
805
807
|
if isinstance(e, TencentCloudSDKException):
|
|
806
808
|
raise
|
|
807
809
|
else:
|
|
808
|
-
raise TencentCloudSDKException(e.
|
|
810
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
809
811
|
|
|
810
812
|
|
|
811
813
|
def DescribeDBInstanceSecurityGroups(self, request):
|
|
@@ -828,7 +830,7 @@ class PostgresClient(AbstractClient):
|
|
|
828
830
|
if isinstance(e, TencentCloudSDKException):
|
|
829
831
|
raise
|
|
830
832
|
else:
|
|
831
|
-
raise TencentCloudSDKException(e.
|
|
833
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
832
834
|
|
|
833
835
|
|
|
834
836
|
def DescribeDBInstances(self, request):
|
|
@@ -851,7 +853,7 @@ class PostgresClient(AbstractClient):
|
|
|
851
853
|
if isinstance(e, TencentCloudSDKException):
|
|
852
854
|
raise
|
|
853
855
|
else:
|
|
854
|
-
raise TencentCloudSDKException(e.
|
|
856
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
855
857
|
|
|
856
858
|
|
|
857
859
|
def DescribeDBSlowlogs(self, request):
|
|
@@ -874,7 +876,7 @@ class PostgresClient(AbstractClient):
|
|
|
874
876
|
if isinstance(e, TencentCloudSDKException):
|
|
875
877
|
raise
|
|
876
878
|
else:
|
|
877
|
-
raise TencentCloudSDKException(e.
|
|
879
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
878
880
|
|
|
879
881
|
|
|
880
882
|
def DescribeDBVersions(self, request):
|
|
@@ -897,7 +899,7 @@ class PostgresClient(AbstractClient):
|
|
|
897
899
|
if isinstance(e, TencentCloudSDKException):
|
|
898
900
|
raise
|
|
899
901
|
else:
|
|
900
|
-
raise TencentCloudSDKException(e.
|
|
902
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
901
903
|
|
|
902
904
|
|
|
903
905
|
def DescribeDBXlogs(self, request):
|
|
@@ -920,7 +922,7 @@ class PostgresClient(AbstractClient):
|
|
|
920
922
|
if isinstance(e, TencentCloudSDKException):
|
|
921
923
|
raise
|
|
922
924
|
else:
|
|
923
|
-
raise TencentCloudSDKException(e.
|
|
925
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
924
926
|
|
|
925
927
|
|
|
926
928
|
def DescribeDatabases(self, request):
|
|
@@ -943,7 +945,7 @@ class PostgresClient(AbstractClient):
|
|
|
943
945
|
if isinstance(e, TencentCloudSDKException):
|
|
944
946
|
raise
|
|
945
947
|
else:
|
|
946
|
-
raise TencentCloudSDKException(e.
|
|
948
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
947
949
|
|
|
948
950
|
|
|
949
951
|
def DescribeDefaultParameters(self, request):
|
|
@@ -966,7 +968,7 @@ class PostgresClient(AbstractClient):
|
|
|
966
968
|
if isinstance(e, TencentCloudSDKException):
|
|
967
969
|
raise
|
|
968
970
|
else:
|
|
969
|
-
raise TencentCloudSDKException(e.
|
|
971
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
970
972
|
|
|
971
973
|
|
|
972
974
|
def DescribeEncryptionKeys(self, request):
|
|
@@ -989,7 +991,7 @@ class PostgresClient(AbstractClient):
|
|
|
989
991
|
if isinstance(e, TencentCloudSDKException):
|
|
990
992
|
raise
|
|
991
993
|
else:
|
|
992
|
-
raise TencentCloudSDKException(e.
|
|
994
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
993
995
|
|
|
994
996
|
|
|
995
997
|
def DescribeLogBackups(self, request):
|
|
@@ -1012,7 +1014,7 @@ class PostgresClient(AbstractClient):
|
|
|
1012
1014
|
if isinstance(e, TencentCloudSDKException):
|
|
1013
1015
|
raise
|
|
1014
1016
|
else:
|
|
1015
|
-
raise TencentCloudSDKException(e.
|
|
1017
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1016
1018
|
|
|
1017
1019
|
|
|
1018
1020
|
def DescribeOrders(self, request):
|
|
@@ -1035,7 +1037,7 @@ class PostgresClient(AbstractClient):
|
|
|
1035
1037
|
if isinstance(e, TencentCloudSDKException):
|
|
1036
1038
|
raise
|
|
1037
1039
|
else:
|
|
1038
|
-
raise TencentCloudSDKException(e.
|
|
1040
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1039
1041
|
|
|
1040
1042
|
|
|
1041
1043
|
def DescribeParameterTemplateAttributes(self, request):
|
|
@@ -1058,7 +1060,7 @@ class PostgresClient(AbstractClient):
|
|
|
1058
1060
|
if isinstance(e, TencentCloudSDKException):
|
|
1059
1061
|
raise
|
|
1060
1062
|
else:
|
|
1061
|
-
raise TencentCloudSDKException(e.
|
|
1063
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1062
1064
|
|
|
1063
1065
|
|
|
1064
1066
|
def DescribeParameterTemplates(self, request):
|
|
@@ -1081,7 +1083,7 @@ class PostgresClient(AbstractClient):
|
|
|
1081
1083
|
if isinstance(e, TencentCloudSDKException):
|
|
1082
1084
|
raise
|
|
1083
1085
|
else:
|
|
1084
|
-
raise TencentCloudSDKException(e.
|
|
1086
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1085
1087
|
|
|
1086
1088
|
|
|
1087
1089
|
def DescribeParamsEvent(self, request):
|
|
@@ -1104,7 +1106,7 @@ class PostgresClient(AbstractClient):
|
|
|
1104
1106
|
if isinstance(e, TencentCloudSDKException):
|
|
1105
1107
|
raise
|
|
1106
1108
|
else:
|
|
1107
|
-
raise TencentCloudSDKException(e.
|
|
1109
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1108
1110
|
|
|
1109
1111
|
|
|
1110
1112
|
def DescribeProductConfig(self, request):
|
|
@@ -1127,7 +1129,7 @@ class PostgresClient(AbstractClient):
|
|
|
1127
1129
|
if isinstance(e, TencentCloudSDKException):
|
|
1128
1130
|
raise
|
|
1129
1131
|
else:
|
|
1130
|
-
raise TencentCloudSDKException(e.
|
|
1132
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1131
1133
|
|
|
1132
1134
|
|
|
1133
1135
|
def DescribeReadOnlyGroups(self, request):
|
|
@@ -1150,7 +1152,7 @@ class PostgresClient(AbstractClient):
|
|
|
1150
1152
|
if isinstance(e, TencentCloudSDKException):
|
|
1151
1153
|
raise
|
|
1152
1154
|
else:
|
|
1153
|
-
raise TencentCloudSDKException(e.
|
|
1155
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1154
1156
|
|
|
1155
1157
|
|
|
1156
1158
|
def DescribeRegions(self, request):
|
|
@@ -1173,7 +1175,7 @@ class PostgresClient(AbstractClient):
|
|
|
1173
1175
|
if isinstance(e, TencentCloudSDKException):
|
|
1174
1176
|
raise
|
|
1175
1177
|
else:
|
|
1176
|
-
raise TencentCloudSDKException(e.
|
|
1178
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1177
1179
|
|
|
1178
1180
|
|
|
1179
1181
|
def DescribeServerlessDBInstances(self, request):
|
|
@@ -1196,7 +1198,7 @@ class PostgresClient(AbstractClient):
|
|
|
1196
1198
|
if isinstance(e, TencentCloudSDKException):
|
|
1197
1199
|
raise
|
|
1198
1200
|
else:
|
|
1199
|
-
raise TencentCloudSDKException(e.
|
|
1201
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1200
1202
|
|
|
1201
1203
|
|
|
1202
1204
|
def DescribeSlowQueryAnalysis(self, request):
|
|
@@ -1219,7 +1221,7 @@ class PostgresClient(AbstractClient):
|
|
|
1219
1221
|
if isinstance(e, TencentCloudSDKException):
|
|
1220
1222
|
raise
|
|
1221
1223
|
else:
|
|
1222
|
-
raise TencentCloudSDKException(e.
|
|
1224
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1223
1225
|
|
|
1224
1226
|
|
|
1225
1227
|
def DescribeSlowQueryList(self, request):
|
|
@@ -1242,7 +1244,7 @@ class PostgresClient(AbstractClient):
|
|
|
1242
1244
|
if isinstance(e, TencentCloudSDKException):
|
|
1243
1245
|
raise
|
|
1244
1246
|
else:
|
|
1245
|
-
raise TencentCloudSDKException(e.
|
|
1247
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1246
1248
|
|
|
1247
1249
|
|
|
1248
1250
|
def DescribeZones(self, request):
|
|
@@ -1265,7 +1267,7 @@ class PostgresClient(AbstractClient):
|
|
|
1265
1267
|
if isinstance(e, TencentCloudSDKException):
|
|
1266
1268
|
raise
|
|
1267
1269
|
else:
|
|
1268
|
-
raise TencentCloudSDKException(e.
|
|
1270
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1269
1271
|
|
|
1270
1272
|
|
|
1271
1273
|
def DestroyDBInstance(self, request):
|
|
@@ -1288,7 +1290,7 @@ class PostgresClient(AbstractClient):
|
|
|
1288
1290
|
if isinstance(e, TencentCloudSDKException):
|
|
1289
1291
|
raise
|
|
1290
1292
|
else:
|
|
1291
|
-
raise TencentCloudSDKException(e.
|
|
1293
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1292
1294
|
|
|
1293
1295
|
|
|
1294
1296
|
def DisIsolateDBInstances(self, request):
|
|
@@ -1311,7 +1313,7 @@ class PostgresClient(AbstractClient):
|
|
|
1311
1313
|
if isinstance(e, TencentCloudSDKException):
|
|
1312
1314
|
raise
|
|
1313
1315
|
else:
|
|
1314
|
-
raise TencentCloudSDKException(e.
|
|
1316
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1315
1317
|
|
|
1316
1318
|
|
|
1317
1319
|
def InitDBInstances(self, request):
|
|
@@ -1334,7 +1336,7 @@ class PostgresClient(AbstractClient):
|
|
|
1334
1336
|
if isinstance(e, TencentCloudSDKException):
|
|
1335
1337
|
raise
|
|
1336
1338
|
else:
|
|
1337
|
-
raise TencentCloudSDKException(e.
|
|
1339
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1338
1340
|
|
|
1339
1341
|
|
|
1340
1342
|
def InquiryPriceCreateDBInstances(self, request):
|
|
@@ -1357,7 +1359,7 @@ class PostgresClient(AbstractClient):
|
|
|
1357
1359
|
if isinstance(e, TencentCloudSDKException):
|
|
1358
1360
|
raise
|
|
1359
1361
|
else:
|
|
1360
|
-
raise TencentCloudSDKException(e.
|
|
1362
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1361
1363
|
|
|
1362
1364
|
|
|
1363
1365
|
def InquiryPriceRenewDBInstance(self, request):
|
|
@@ -1380,7 +1382,7 @@ class PostgresClient(AbstractClient):
|
|
|
1380
1382
|
if isinstance(e, TencentCloudSDKException):
|
|
1381
1383
|
raise
|
|
1382
1384
|
else:
|
|
1383
|
-
raise TencentCloudSDKException(e.
|
|
1385
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1384
1386
|
|
|
1385
1387
|
|
|
1386
1388
|
def InquiryPriceUpgradeDBInstance(self, request):
|
|
@@ -1403,7 +1405,7 @@ class PostgresClient(AbstractClient):
|
|
|
1403
1405
|
if isinstance(e, TencentCloudSDKException):
|
|
1404
1406
|
raise
|
|
1405
1407
|
else:
|
|
1406
|
-
raise TencentCloudSDKException(e.
|
|
1408
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1407
1409
|
|
|
1408
1410
|
|
|
1409
1411
|
def IsolateDBInstances(self, request):
|
|
@@ -1426,7 +1428,7 @@ class PostgresClient(AbstractClient):
|
|
|
1426
1428
|
if isinstance(e, TencentCloudSDKException):
|
|
1427
1429
|
raise
|
|
1428
1430
|
else:
|
|
1429
|
-
raise TencentCloudSDKException(e.
|
|
1431
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1430
1432
|
|
|
1431
1433
|
|
|
1432
1434
|
def ModifyAccountRemark(self, request):
|
|
@@ -1449,7 +1451,7 @@ class PostgresClient(AbstractClient):
|
|
|
1449
1451
|
if isinstance(e, TencentCloudSDKException):
|
|
1450
1452
|
raise
|
|
1451
1453
|
else:
|
|
1452
|
-
raise TencentCloudSDKException(e.
|
|
1454
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1453
1455
|
|
|
1454
1456
|
|
|
1455
1457
|
def ModifyBackupDownloadRestriction(self, request):
|
|
@@ -1472,7 +1474,7 @@ class PostgresClient(AbstractClient):
|
|
|
1472
1474
|
if isinstance(e, TencentCloudSDKException):
|
|
1473
1475
|
raise
|
|
1474
1476
|
else:
|
|
1475
|
-
raise TencentCloudSDKException(e.
|
|
1477
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1476
1478
|
|
|
1477
1479
|
|
|
1478
1480
|
def ModifyBackupPlan(self, request):
|
|
@@ -1495,7 +1497,7 @@ class PostgresClient(AbstractClient):
|
|
|
1495
1497
|
if isinstance(e, TencentCloudSDKException):
|
|
1496
1498
|
raise
|
|
1497
1499
|
else:
|
|
1498
|
-
raise TencentCloudSDKException(e.
|
|
1500
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1499
1501
|
|
|
1500
1502
|
|
|
1501
1503
|
def ModifyBaseBackupExpireTime(self, request):
|
|
@@ -1518,7 +1520,7 @@ class PostgresClient(AbstractClient):
|
|
|
1518
1520
|
if isinstance(e, TencentCloudSDKException):
|
|
1519
1521
|
raise
|
|
1520
1522
|
else:
|
|
1521
|
-
raise TencentCloudSDKException(e.
|
|
1523
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1522
1524
|
|
|
1523
1525
|
|
|
1524
1526
|
def ModifyDBInstanceChargeType(self, request):
|
|
@@ -1541,7 +1543,7 @@ class PostgresClient(AbstractClient):
|
|
|
1541
1543
|
if isinstance(e, TencentCloudSDKException):
|
|
1542
1544
|
raise
|
|
1543
1545
|
else:
|
|
1544
|
-
raise TencentCloudSDKException(e.
|
|
1546
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1545
1547
|
|
|
1546
1548
|
|
|
1547
1549
|
def ModifyDBInstanceDeployment(self, request):
|
|
@@ -1564,7 +1566,7 @@ class PostgresClient(AbstractClient):
|
|
|
1564
1566
|
if isinstance(e, TencentCloudSDKException):
|
|
1565
1567
|
raise
|
|
1566
1568
|
else:
|
|
1567
|
-
raise TencentCloudSDKException(e.
|
|
1569
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1568
1570
|
|
|
1569
1571
|
|
|
1570
1572
|
def ModifyDBInstanceName(self, request):
|
|
@@ -1587,7 +1589,7 @@ class PostgresClient(AbstractClient):
|
|
|
1587
1589
|
if isinstance(e, TencentCloudSDKException):
|
|
1588
1590
|
raise
|
|
1589
1591
|
else:
|
|
1590
|
-
raise TencentCloudSDKException(e.
|
|
1592
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1591
1593
|
|
|
1592
1594
|
|
|
1593
1595
|
def ModifyDBInstanceParameters(self, request):
|
|
@@ -1610,7 +1612,7 @@ class PostgresClient(AbstractClient):
|
|
|
1610
1612
|
if isinstance(e, TencentCloudSDKException):
|
|
1611
1613
|
raise
|
|
1612
1614
|
else:
|
|
1613
|
-
raise TencentCloudSDKException(e.
|
|
1615
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1614
1616
|
|
|
1615
1617
|
|
|
1616
1618
|
def ModifyDBInstanceReadOnlyGroup(self, request):
|
|
@@ -1633,7 +1635,7 @@ class PostgresClient(AbstractClient):
|
|
|
1633
1635
|
if isinstance(e, TencentCloudSDKException):
|
|
1634
1636
|
raise
|
|
1635
1637
|
else:
|
|
1636
|
-
raise TencentCloudSDKException(e.
|
|
1638
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1637
1639
|
|
|
1638
1640
|
|
|
1639
1641
|
def ModifyDBInstanceSecurityGroups(self, request):
|
|
@@ -1656,7 +1658,7 @@ class PostgresClient(AbstractClient):
|
|
|
1656
1658
|
if isinstance(e, TencentCloudSDKException):
|
|
1657
1659
|
raise
|
|
1658
1660
|
else:
|
|
1659
|
-
raise TencentCloudSDKException(e.
|
|
1661
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1660
1662
|
|
|
1661
1663
|
|
|
1662
1664
|
def ModifyDBInstanceSpec(self, request):
|
|
@@ -1679,7 +1681,7 @@ class PostgresClient(AbstractClient):
|
|
|
1679
1681
|
if isinstance(e, TencentCloudSDKException):
|
|
1680
1682
|
raise
|
|
1681
1683
|
else:
|
|
1682
|
-
raise TencentCloudSDKException(e.
|
|
1684
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1683
1685
|
|
|
1684
1686
|
|
|
1685
1687
|
def ModifyDBInstancesProject(self, request):
|
|
@@ -1702,7 +1704,7 @@ class PostgresClient(AbstractClient):
|
|
|
1702
1704
|
if isinstance(e, TencentCloudSDKException):
|
|
1703
1705
|
raise
|
|
1704
1706
|
else:
|
|
1705
|
-
raise TencentCloudSDKException(e.
|
|
1707
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1706
1708
|
|
|
1707
1709
|
|
|
1708
1710
|
def ModifyParameterTemplate(self, request):
|
|
@@ -1725,7 +1727,7 @@ class PostgresClient(AbstractClient):
|
|
|
1725
1727
|
if isinstance(e, TencentCloudSDKException):
|
|
1726
1728
|
raise
|
|
1727
1729
|
else:
|
|
1728
|
-
raise TencentCloudSDKException(e.
|
|
1730
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1729
1731
|
|
|
1730
1732
|
|
|
1731
1733
|
def ModifyReadOnlyGroupConfig(self, request):
|
|
@@ -1748,7 +1750,7 @@ class PostgresClient(AbstractClient):
|
|
|
1748
1750
|
if isinstance(e, TencentCloudSDKException):
|
|
1749
1751
|
raise
|
|
1750
1752
|
else:
|
|
1751
|
-
raise TencentCloudSDKException(e.
|
|
1753
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1752
1754
|
|
|
1753
1755
|
|
|
1754
1756
|
def ModifySwitchTimePeriod(self, request):
|
|
@@ -1771,7 +1773,7 @@ class PostgresClient(AbstractClient):
|
|
|
1771
1773
|
if isinstance(e, TencentCloudSDKException):
|
|
1772
1774
|
raise
|
|
1773
1775
|
else:
|
|
1774
|
-
raise TencentCloudSDKException(e.
|
|
1776
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1775
1777
|
|
|
1776
1778
|
|
|
1777
1779
|
def OpenDBExtranetAccess(self, request):
|
|
@@ -1794,7 +1796,7 @@ class PostgresClient(AbstractClient):
|
|
|
1794
1796
|
if isinstance(e, TencentCloudSDKException):
|
|
1795
1797
|
raise
|
|
1796
1798
|
else:
|
|
1797
|
-
raise TencentCloudSDKException(e.
|
|
1799
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1798
1800
|
|
|
1799
1801
|
|
|
1800
1802
|
def OpenServerlessDBExtranetAccess(self, request):
|
|
@@ -1817,7 +1819,7 @@ class PostgresClient(AbstractClient):
|
|
|
1817
1819
|
if isinstance(e, TencentCloudSDKException):
|
|
1818
1820
|
raise
|
|
1819
1821
|
else:
|
|
1820
|
-
raise TencentCloudSDKException(e.
|
|
1822
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1821
1823
|
|
|
1822
1824
|
|
|
1823
1825
|
def RebalanceReadOnlyGroup(self, request):
|
|
@@ -1840,7 +1842,7 @@ class PostgresClient(AbstractClient):
|
|
|
1840
1842
|
if isinstance(e, TencentCloudSDKException):
|
|
1841
1843
|
raise
|
|
1842
1844
|
else:
|
|
1843
|
-
raise TencentCloudSDKException(e.
|
|
1845
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1844
1846
|
|
|
1845
1847
|
|
|
1846
1848
|
def RemoveDBInstanceFromReadOnlyGroup(self, request):
|
|
@@ -1863,7 +1865,7 @@ class PostgresClient(AbstractClient):
|
|
|
1863
1865
|
if isinstance(e, TencentCloudSDKException):
|
|
1864
1866
|
raise
|
|
1865
1867
|
else:
|
|
1866
|
-
raise TencentCloudSDKException(e.
|
|
1868
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1867
1869
|
|
|
1868
1870
|
|
|
1869
1871
|
def RenewInstance(self, request):
|
|
@@ -1886,7 +1888,7 @@ class PostgresClient(AbstractClient):
|
|
|
1886
1888
|
if isinstance(e, TencentCloudSDKException):
|
|
1887
1889
|
raise
|
|
1888
1890
|
else:
|
|
1889
|
-
raise TencentCloudSDKException(e.
|
|
1891
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1890
1892
|
|
|
1891
1893
|
|
|
1892
1894
|
def ResetAccountPassword(self, request):
|
|
@@ -1909,7 +1911,7 @@ class PostgresClient(AbstractClient):
|
|
|
1909
1911
|
if isinstance(e, TencentCloudSDKException):
|
|
1910
1912
|
raise
|
|
1911
1913
|
else:
|
|
1912
|
-
raise TencentCloudSDKException(e.
|
|
1914
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1913
1915
|
|
|
1914
1916
|
|
|
1915
1917
|
def RestartDBInstance(self, request):
|
|
@@ -1932,7 +1934,7 @@ class PostgresClient(AbstractClient):
|
|
|
1932
1934
|
if isinstance(e, TencentCloudSDKException):
|
|
1933
1935
|
raise
|
|
1934
1936
|
else:
|
|
1935
|
-
raise TencentCloudSDKException(e.
|
|
1937
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1936
1938
|
|
|
1937
1939
|
|
|
1938
1940
|
def SetAutoRenewFlag(self, request):
|
|
@@ -1955,7 +1957,7 @@ class PostgresClient(AbstractClient):
|
|
|
1955
1957
|
if isinstance(e, TencentCloudSDKException):
|
|
1956
1958
|
raise
|
|
1957
1959
|
else:
|
|
1958
|
-
raise TencentCloudSDKException(e.
|
|
1960
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1959
1961
|
|
|
1960
1962
|
|
|
1961
1963
|
def UpgradeDBInstance(self, request):
|
|
@@ -1978,7 +1980,7 @@ class PostgresClient(AbstractClient):
|
|
|
1978
1980
|
if isinstance(e, TencentCloudSDKException):
|
|
1979
1981
|
raise
|
|
1980
1982
|
else:
|
|
1981
|
-
raise TencentCloudSDKException(e.
|
|
1983
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1982
1984
|
|
|
1983
1985
|
|
|
1984
1986
|
def UpgradeDBInstanceKernelVersion(self, request):
|
|
@@ -2001,4 +2003,4 @@ class PostgresClient(AbstractClient):
|
|
|
2001
2003
|
if isinstance(e, TencentCloudSDKException):
|
|
2002
2004
|
raise
|
|
2003
2005
|
else:
|
|
2004
|
-
raise TencentCloudSDKException(e.
|
|
2006
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|