tencentcloud-sdk-python-postgres 3.1.84__py2.py3-none-any.whl → 3.1.87__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.
@@ -95,6 +95,29 @@ class PostgresClient(AbstractClient):
95
95
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
96
 
97
97
 
98
+ def CloseAuditService(self, request):
99
+ r"""关闭数据库实例的审计功能
100
+
101
+ :param request: Request instance for CloseAuditService.
102
+ :type request: :class:`tencentcloud.postgres.v20170312.models.CloseAuditServiceRequest`
103
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.CloseAuditServiceResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("CloseAuditService", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.CloseAuditServiceResponse()
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
+
98
121
  def CloseDBExtranetAccess(self, request):
99
122
  r"""本接口(CloseDBExtranetAccess)用于关闭实例公网地址。
100
123
 
@@ -141,6 +164,29 @@ class PostgresClient(AbstractClient):
141
164
  raise TencentCloudSDKException(type(e).__name__, str(e))
142
165
 
143
166
 
167
+ def CreateAuditLogFile(self, request):
168
+ r"""创建审计日志文件
169
+
170
+ :param request: Request instance for CreateAuditLogFile.
171
+ :type request: :class:`tencentcloud.postgres.v20170312.models.CreateAuditLogFileRequest`
172
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.CreateAuditLogFileResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("CreateAuditLogFile", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.CreateAuditLogFileResponse()
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
+
144
190
  def CreateBackupPlan(self, request):
145
191
  r"""此接口用于创建备份策略。
146
192
 
@@ -373,6 +419,29 @@ class PostgresClient(AbstractClient):
373
419
  raise TencentCloudSDKException(type(e).__name__, str(e))
374
420
 
375
421
 
422
+ def DeleteAuditLogFile(self, request):
423
+ r"""删除审计日志文件
424
+
425
+ :param request: Request instance for DeleteAuditLogFile.
426
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DeleteAuditLogFileRequest`
427
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DeleteAuditLogFileResponse`
428
+
429
+ """
430
+ try:
431
+ params = request._serialize()
432
+ headers = request.headers
433
+ body = self.call("DeleteAuditLogFile", params, headers=headers)
434
+ response = json.loads(body)
435
+ model = models.DeleteAuditLogFileResponse()
436
+ model._deserialize(response["Response"])
437
+ return model
438
+ except Exception as e:
439
+ if isinstance(e, TencentCloudSDKException):
440
+ raise
441
+ else:
442
+ raise TencentCloudSDKException(type(e).__name__, str(e))
443
+
444
+
376
445
  def DeleteBackupPlan(self, request):
377
446
  r"""删除备份策略
378
447
 
@@ -580,6 +649,75 @@ class PostgresClient(AbstractClient):
580
649
  raise TencentCloudSDKException(type(e).__name__, str(e))
581
650
 
582
651
 
652
+ def DescribeAuditInstanceList(self, request):
653
+ r"""查询审计实例列表
654
+
655
+ :param request: Request instance for DescribeAuditInstanceList.
656
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeAuditInstanceListRequest`
657
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeAuditInstanceListResponse`
658
+
659
+ """
660
+ try:
661
+ params = request._serialize()
662
+ headers = request.headers
663
+ body = self.call("DescribeAuditInstanceList", params, headers=headers)
664
+ response = json.loads(body)
665
+ model = models.DescribeAuditInstanceListResponse()
666
+ model._deserialize(response["Response"])
667
+ return model
668
+ except Exception as e:
669
+ if isinstance(e, TencentCloudSDKException):
670
+ raise
671
+ else:
672
+ raise TencentCloudSDKException(type(e).__name__, str(e))
673
+
674
+
675
+ def DescribeAuditLogFiles(self, request):
676
+ r"""查询审计日志文件
677
+
678
+ :param request: Request instance for DescribeAuditLogFiles.
679
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeAuditLogFilesRequest`
680
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeAuditLogFilesResponse`
681
+
682
+ """
683
+ try:
684
+ params = request._serialize()
685
+ headers = request.headers
686
+ body = self.call("DescribeAuditLogFiles", params, headers=headers)
687
+ response = json.loads(body)
688
+ model = models.DescribeAuditLogFilesResponse()
689
+ model._deserialize(response["Response"])
690
+ return model
691
+ except Exception as e:
692
+ if isinstance(e, TencentCloudSDKException):
693
+ raise
694
+ else:
695
+ raise TencentCloudSDKException(type(e).__name__, str(e))
696
+
697
+
698
+ def DescribeAuditLogs(self, request):
699
+ r"""查询数据库审计日志
700
+
701
+ :param request: Request instance for DescribeAuditLogs.
702
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeAuditLogsRequest`
703
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeAuditLogsResponse`
704
+
705
+ """
706
+ try:
707
+ params = request._serialize()
708
+ headers = request.headers
709
+ body = self.call("DescribeAuditLogs", params, headers=headers)
710
+ response = json.loads(body)
711
+ model = models.DescribeAuditLogsResponse()
712
+ model._deserialize(response["Response"])
713
+ return model
714
+ except Exception as e:
715
+ if isinstance(e, TencentCloudSDKException):
716
+ raise
717
+ else:
718
+ raise TencentCloudSDKException(type(e).__name__, str(e))
719
+
720
+
583
721
  def DescribeAvailableRecoveryTime(self, request):
584
722
  r"""本接口(DescribeAvailableRecoveryTime)用于查询实例可恢复的时间范围。
585
723
 
@@ -1641,6 +1779,29 @@ class PostgresClient(AbstractClient):
1641
1779
  raise TencentCloudSDKException(type(e).__name__, str(e))
1642
1780
 
1643
1781
 
1782
+ def ModifyAuditService(self, request):
1783
+ r"""修改数据库实例的审计功能
1784
+
1785
+ :param request: Request instance for ModifyAuditService.
1786
+ :type request: :class:`tencentcloud.postgres.v20170312.models.ModifyAuditServiceRequest`
1787
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyAuditServiceResponse`
1788
+
1789
+ """
1790
+ try:
1791
+ params = request._serialize()
1792
+ headers = request.headers
1793
+ body = self.call("ModifyAuditService", params, headers=headers)
1794
+ response = json.loads(body)
1795
+ model = models.ModifyAuditServiceResponse()
1796
+ model._deserialize(response["Response"])
1797
+ return model
1798
+ except Exception as e:
1799
+ if isinstance(e, TencentCloudSDKException):
1800
+ raise
1801
+ else:
1802
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1803
+
1804
+
1644
1805
  def ModifyBackupDownloadRestriction(self, request):
1645
1806
  r"""本接口(ModifyBackupDownloadRestriction)用于修改备份文件下载限制。
1646
1807
 
@@ -2126,6 +2287,29 @@ class PostgresClient(AbstractClient):
2126
2287
  raise TencentCloudSDKException(type(e).__name__, str(e))
2127
2288
 
2128
2289
 
2290
+ def OpenAuditService(self, request):
2291
+ r"""开启数据库实例的审计功能
2292
+
2293
+ :param request: Request instance for OpenAuditService.
2294
+ :type request: :class:`tencentcloud.postgres.v20170312.models.OpenAuditServiceRequest`
2295
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.OpenAuditServiceResponse`
2296
+
2297
+ """
2298
+ try:
2299
+ params = request._serialize()
2300
+ headers = request.headers
2301
+ body = self.call("OpenAuditService", params, headers=headers)
2302
+ response = json.loads(body)
2303
+ model = models.OpenAuditServiceResponse()
2304
+ model._deserialize(response["Response"])
2305
+ return model
2306
+ except Exception as e:
2307
+ if isinstance(e, TencentCloudSDKException):
2308
+ raise
2309
+ else:
2310
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2311
+
2312
+
2129
2313
  def OpenDBExtranetAccess(self, request):
2130
2314
  r"""本接口(OpenDBExtranetAccess)用于开通实例公网地址。
2131
2315
 
@@ -79,6 +79,24 @@ class PostgresClient(AbstractClient):
79
79
 
80
80
  return await self.call_and_deserialize(**kwargs)
81
81
 
82
+ async def CloseAuditService(
83
+ self,
84
+ request: models.CloseAuditServiceRequest,
85
+ opts: Dict = None,
86
+ ) -> models.CloseAuditServiceResponse:
87
+ """
88
+ 关闭数据库实例的审计功能
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "CloseAuditService"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.CloseAuditServiceResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
82
100
  async def CloseDBExtranetAccess(
83
101
  self,
84
102
  request: models.CloseDBExtranetAccessRequest,
@@ -115,6 +133,24 @@ class PostgresClient(AbstractClient):
115
133
 
116
134
  return await self.call_and_deserialize(**kwargs)
117
135
 
136
+ async def CreateAuditLogFile(
137
+ self,
138
+ request: models.CreateAuditLogFileRequest,
139
+ opts: Dict = None,
140
+ ) -> models.CreateAuditLogFileResponse:
141
+ """
142
+ 创建审计日志文件
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "CreateAuditLogFile"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.CreateAuditLogFileResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
118
154
  async def CreateBackupPlan(
119
155
  self,
120
156
  request: models.CreateBackupPlanRequest,
@@ -297,6 +333,24 @@ class PostgresClient(AbstractClient):
297
333
 
298
334
  return await self.call_and_deserialize(**kwargs)
299
335
 
336
+ async def DeleteAuditLogFile(
337
+ self,
338
+ request: models.DeleteAuditLogFileRequest,
339
+ opts: Dict = None,
340
+ ) -> models.DeleteAuditLogFileResponse:
341
+ """
342
+ 删除审计日志文件
343
+ """
344
+
345
+ kwargs = {}
346
+ kwargs["action"] = "DeleteAuditLogFile"
347
+ kwargs["params"] = request._serialize()
348
+ kwargs["resp_cls"] = models.DeleteAuditLogFileResponse
349
+ kwargs["headers"] = request.headers
350
+ kwargs["opts"] = opts or {}
351
+
352
+ return await self.call_and_deserialize(**kwargs)
353
+
300
354
  async def DeleteBackupPlan(
301
355
  self,
302
356
  request: models.DeleteBackupPlanRequest,
@@ -459,6 +513,60 @@ class PostgresClient(AbstractClient):
459
513
 
460
514
  return await self.call_and_deserialize(**kwargs)
461
515
 
516
+ async def DescribeAuditInstanceList(
517
+ self,
518
+ request: models.DescribeAuditInstanceListRequest,
519
+ opts: Dict = None,
520
+ ) -> models.DescribeAuditInstanceListResponse:
521
+ """
522
+ 查询审计实例列表
523
+ """
524
+
525
+ kwargs = {}
526
+ kwargs["action"] = "DescribeAuditInstanceList"
527
+ kwargs["params"] = request._serialize()
528
+ kwargs["resp_cls"] = models.DescribeAuditInstanceListResponse
529
+ kwargs["headers"] = request.headers
530
+ kwargs["opts"] = opts or {}
531
+
532
+ return await self.call_and_deserialize(**kwargs)
533
+
534
+ async def DescribeAuditLogFiles(
535
+ self,
536
+ request: models.DescribeAuditLogFilesRequest,
537
+ opts: Dict = None,
538
+ ) -> models.DescribeAuditLogFilesResponse:
539
+ """
540
+ 查询审计日志文件
541
+ """
542
+
543
+ kwargs = {}
544
+ kwargs["action"] = "DescribeAuditLogFiles"
545
+ kwargs["params"] = request._serialize()
546
+ kwargs["resp_cls"] = models.DescribeAuditLogFilesResponse
547
+ kwargs["headers"] = request.headers
548
+ kwargs["opts"] = opts or {}
549
+
550
+ return await self.call_and_deserialize(**kwargs)
551
+
552
+ async def DescribeAuditLogs(
553
+ self,
554
+ request: models.DescribeAuditLogsRequest,
555
+ opts: Dict = None,
556
+ ) -> models.DescribeAuditLogsResponse:
557
+ """
558
+ 查询数据库审计日志
559
+ """
560
+
561
+ kwargs = {}
562
+ kwargs["action"] = "DescribeAuditLogs"
563
+ kwargs["params"] = request._serialize()
564
+ kwargs["resp_cls"] = models.DescribeAuditLogsResponse
565
+ kwargs["headers"] = request.headers
566
+ kwargs["opts"] = opts or {}
567
+
568
+ return await self.call_and_deserialize(**kwargs)
569
+
462
570
  async def DescribeAvailableRecoveryTime(
463
571
  self,
464
572
  request: models.DescribeAvailableRecoveryTimeRequest,
@@ -1290,6 +1398,24 @@ class PostgresClient(AbstractClient):
1290
1398
 
1291
1399
  return await self.call_and_deserialize(**kwargs)
1292
1400
 
1401
+ async def ModifyAuditService(
1402
+ self,
1403
+ request: models.ModifyAuditServiceRequest,
1404
+ opts: Dict = None,
1405
+ ) -> models.ModifyAuditServiceResponse:
1406
+ """
1407
+ 修改数据库实例的审计功能
1408
+ """
1409
+
1410
+ kwargs = {}
1411
+ kwargs["action"] = "ModifyAuditService"
1412
+ kwargs["params"] = request._serialize()
1413
+ kwargs["resp_cls"] = models.ModifyAuditServiceResponse
1414
+ kwargs["headers"] = request.headers
1415
+ kwargs["opts"] = opts or {}
1416
+
1417
+ return await self.call_and_deserialize(**kwargs)
1418
+
1293
1419
  async def ModifyBackupDownloadRestriction(
1294
1420
  self,
1295
1421
  request: models.ModifyBackupDownloadRestrictionRequest,
@@ -1670,6 +1796,24 @@ class PostgresClient(AbstractClient):
1670
1796
 
1671
1797
  return await self.call_and_deserialize(**kwargs)
1672
1798
 
1799
+ async def OpenAuditService(
1800
+ self,
1801
+ request: models.OpenAuditServiceRequest,
1802
+ opts: Dict = None,
1803
+ ) -> models.OpenAuditServiceResponse:
1804
+ """
1805
+ 开启数据库实例的审计功能
1806
+ """
1807
+
1808
+ kwargs = {}
1809
+ kwargs["action"] = "OpenAuditService"
1810
+ kwargs["params"] = request._serialize()
1811
+ kwargs["resp_cls"] = models.OpenAuditServiceResponse
1812
+ kwargs["headers"] = request.headers
1813
+ kwargs["opts"] = opts or {}
1814
+
1815
+ return await self.call_and_deserialize(**kwargs)
1816
+
1673
1817
  async def OpenDBExtranetAccess(
1674
1818
  self,
1675
1819
  request: models.OpenDBExtranetAccessRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.1.84
3
+ Version: 3.1.87
4
4
  Summary: Tencent Cloud Postgres SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.84
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.87
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=Pur0G5XjrNOy4M3OrvCuMBdvm_9aqR5BTDGHSGOdaXM,629
2
+ tencentcloud/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/postgres/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/postgres/v20170312/errorcodes.py,sha256=AvefDh0gkp6bDMev46jFNyFFE3UO2oLFkITqaJHl6M4,24638
5
+ tencentcloud/postgres/v20170312/models.py,sha256=zvtpsNqx2GUgp42OwMN2_3ZDZGlQNZa8hb9zjONis20,769956
6
+ tencentcloud/postgres/v20170312/postgres_client.py,sha256=437jSPX5eAhefQ4i98OfLAI_ZkllfBzEQxi_t0ui7mw,111431
7
+ tencentcloud/postgres/v20170312/postgres_client_async.py,sha256=KxedEOHT1pZpXH-El33u14o_whRXYHVmER0s-Xe01cc,76201
8
+ tencentcloud_sdk_python_postgres-3.1.87.dist-info/METADATA,sha256=IIos-bbQ2ae9UUmixgt5d4kyhwjt7ERxMahprSMTTWI,1520
9
+ tencentcloud_sdk_python_postgres-3.1.87.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_postgres-3.1.87.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_postgres-3.1.87.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=_FyGJDd2Wkso0tpQYkwsw5SjU0aOXvJH9ehXpEwvpj8,629
2
- tencentcloud/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/postgres/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/postgres/v20170312/errorcodes.py,sha256=tj-w_2zyPNZkU7wB2dRT1yG_iIARbEn-2-z4_zia95M,23499
5
- tencentcloud/postgres/v20170312/models.py,sha256=0LIZLBgbHMD-RZejo9yOMVsUipIBC2YbQVGKgv3SnfI,706326
6
- tencentcloud/postgres/v20170312/postgres_client.py,sha256=ns0TX5IvNPkbYiZ8vEWoqGQEEdoZPQmSSoBXFd4XvNo,104220
7
- tencentcloud/postgres/v20170312/postgres_client_async.py,sha256=ZUBM-AehNH57Ewq21obk1KIVa9rMn_X-ely89kdGoyk,71476
8
- tencentcloud_sdk_python_postgres-3.1.84.dist-info/METADATA,sha256=5-Q_kMR-FpgimmCN9gZRW-kMRJrbonwzTKdllqB0Bpo,1520
9
- tencentcloud_sdk_python_postgres-3.1.84.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_postgres-3.1.84.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_postgres-3.1.84.dist-info/RECORD,,