tencentcloud-sdk-python 3.0.1073__py2.py3-none-any.whl → 3.0.1074__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/antiddos/v20200309/models.py +27 -1
- tencentcloud/dts/v20211206/models.py +14 -1
- tencentcloud/faceid/v20180301/models.py +24 -0
- tencentcloud/monitor/v20180724/models.py +1105 -96
- tencentcloud/monitor/v20180724/monitor_client.py +118 -0
- tencentcloud/ocr/v20181119/models.py +24 -0
- tencentcloud/rum/v20210622/models.py +0 -246
- tencentcloud/rum/v20210622/rum_client.py +0 -69
- tencentcloud/tcb/v20180608/models.py +9 -0
- tencentcloud/tdid/v20210519/errorcodes.py +18 -0
- tencentcloud/tdid/v20210519/models.py +1293 -87
- tencentcloud/tdid/v20210519/tdid_client.py +214 -7
- tencentcloud/tdmq/v20200217/errorcodes.py +3 -0
- tencentcloud/tdmq/v20200217/models.py +261 -0
- tencentcloud/tdmq/v20200217/tdmq_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +2 -2
- tencentcloud/tse/v20201207/models.py +1 -1
- tencentcloud/tsf/v20180326/models.py +1 -1
- {tencentcloud_sdk_python-3.0.1073.dist-info → tencentcloud_sdk_python-3.0.1074.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1073.dist-info → tencentcloud_sdk_python-3.0.1074.dist-info}/RECORD +24 -24
- {tencentcloud_sdk_python-3.0.1073.dist-info → tencentcloud_sdk_python-3.0.1074.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1073.dist-info → tencentcloud_sdk_python-3.0.1074.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1073.dist-info → tencentcloud_sdk_python-3.0.1074.dist-info}/top_level.txt +0 -0
|
@@ -350,6 +350,32 @@ class MonitorClient(AbstractClient):
|
|
|
350
350
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
351
351
|
|
|
352
352
|
|
|
353
|
+
def CreatePrometheusAlertGroup(self, request):
|
|
354
|
+
"""创建Prometheus告警规则分组
|
|
355
|
+
|
|
356
|
+
告警分组中可包含多条告警规则,分组内告警消息通过告警分组的通知模板发送。
|
|
357
|
+
支持单个告警分组下分别创建启用/禁用的告警规则。
|
|
358
|
+
|
|
359
|
+
:param request: Request instance for CreatePrometheusAlertGroup.
|
|
360
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusAlertGroupRequest`
|
|
361
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusAlertGroupResponse`
|
|
362
|
+
|
|
363
|
+
"""
|
|
364
|
+
try:
|
|
365
|
+
params = request._serialize()
|
|
366
|
+
headers = request.headers
|
|
367
|
+
body = self.call("CreatePrometheusAlertGroup", params, headers=headers)
|
|
368
|
+
response = json.loads(body)
|
|
369
|
+
model = models.CreatePrometheusAlertGroupResponse()
|
|
370
|
+
model._deserialize(response["Response"])
|
|
371
|
+
return model
|
|
372
|
+
except Exception as e:
|
|
373
|
+
if isinstance(e, TencentCloudSDKException):
|
|
374
|
+
raise
|
|
375
|
+
else:
|
|
376
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
377
|
+
|
|
378
|
+
|
|
353
379
|
def CreatePrometheusAlertPolicy(self, request):
|
|
354
380
|
"""创建 Prometheus 告警策略(将逐步废弃,建议使用 CreatePrometheusAlertGroup 创建告警策略)
|
|
355
381
|
|
|
@@ -789,6 +815,29 @@ class MonitorClient(AbstractClient):
|
|
|
789
815
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
790
816
|
|
|
791
817
|
|
|
818
|
+
def DeletePrometheusAlertGroups(self, request):
|
|
819
|
+
"""删除Prometheus告警规则分组
|
|
820
|
+
|
|
821
|
+
:param request: Request instance for DeletePrometheusAlertGroups.
|
|
822
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusAlertGroupsRequest`
|
|
823
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusAlertGroupsResponse`
|
|
824
|
+
|
|
825
|
+
"""
|
|
826
|
+
try:
|
|
827
|
+
params = request._serialize()
|
|
828
|
+
headers = request.headers
|
|
829
|
+
body = self.call("DeletePrometheusAlertGroups", params, headers=headers)
|
|
830
|
+
response = json.loads(body)
|
|
831
|
+
model = models.DeletePrometheusAlertGroupsResponse()
|
|
832
|
+
model._deserialize(response["Response"])
|
|
833
|
+
return model
|
|
834
|
+
except Exception as e:
|
|
835
|
+
if isinstance(e, TencentCloudSDKException):
|
|
836
|
+
raise
|
|
837
|
+
else:
|
|
838
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
839
|
+
|
|
840
|
+
|
|
792
841
|
def DeletePrometheusAlertPolicy(self, request):
|
|
793
842
|
"""删除2.0实例告警策略
|
|
794
843
|
|
|
@@ -1828,6 +1877,29 @@ class MonitorClient(AbstractClient):
|
|
|
1828
1877
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1829
1878
|
|
|
1830
1879
|
|
|
1880
|
+
def DescribePrometheusAlertGroups(self, request):
|
|
1881
|
+
"""查询给定prometheus下的告警分组
|
|
1882
|
+
|
|
1883
|
+
:param request: Request instance for DescribePrometheusAlertGroups.
|
|
1884
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusAlertGroupsRequest`
|
|
1885
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DescribePrometheusAlertGroupsResponse`
|
|
1886
|
+
|
|
1887
|
+
"""
|
|
1888
|
+
try:
|
|
1889
|
+
params = request._serialize()
|
|
1890
|
+
headers = request.headers
|
|
1891
|
+
body = self.call("DescribePrometheusAlertGroups", params, headers=headers)
|
|
1892
|
+
response = json.loads(body)
|
|
1893
|
+
model = models.DescribePrometheusAlertGroupsResponse()
|
|
1894
|
+
model._deserialize(response["Response"])
|
|
1895
|
+
return model
|
|
1896
|
+
except Exception as e:
|
|
1897
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1898
|
+
raise
|
|
1899
|
+
else:
|
|
1900
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1901
|
+
|
|
1902
|
+
|
|
1831
1903
|
def DescribePrometheusAlertPolicy(self, request):
|
|
1832
1904
|
"""获取2.0实例告警策略列表
|
|
1833
1905
|
|
|
@@ -3361,6 +3433,52 @@ class MonitorClient(AbstractClient):
|
|
|
3361
3433
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3362
3434
|
|
|
3363
3435
|
|
|
3436
|
+
def UpdatePrometheusAlertGroup(self, request):
|
|
3437
|
+
"""更新Prometheus告警规则分组
|
|
3438
|
+
|
|
3439
|
+
:param request: Request instance for UpdatePrometheusAlertGroup.
|
|
3440
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupRequest`
|
|
3441
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupResponse`
|
|
3442
|
+
|
|
3443
|
+
"""
|
|
3444
|
+
try:
|
|
3445
|
+
params = request._serialize()
|
|
3446
|
+
headers = request.headers
|
|
3447
|
+
body = self.call("UpdatePrometheusAlertGroup", params, headers=headers)
|
|
3448
|
+
response = json.loads(body)
|
|
3449
|
+
model = models.UpdatePrometheusAlertGroupResponse()
|
|
3450
|
+
model._deserialize(response["Response"])
|
|
3451
|
+
return model
|
|
3452
|
+
except Exception as e:
|
|
3453
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3454
|
+
raise
|
|
3455
|
+
else:
|
|
3456
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
def UpdatePrometheusAlertGroupState(self, request):
|
|
3460
|
+
"""批量更新告警分组状态,将分组中全部告警规则更新为目标状态
|
|
3461
|
+
|
|
3462
|
+
:param request: Request instance for UpdatePrometheusAlertGroupState.
|
|
3463
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupStateRequest`
|
|
3464
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.UpdatePrometheusAlertGroupStateResponse`
|
|
3465
|
+
|
|
3466
|
+
"""
|
|
3467
|
+
try:
|
|
3468
|
+
params = request._serialize()
|
|
3469
|
+
headers = request.headers
|
|
3470
|
+
body = self.call("UpdatePrometheusAlertGroupState", params, headers=headers)
|
|
3471
|
+
response = json.loads(body)
|
|
3472
|
+
model = models.UpdatePrometheusAlertGroupStateResponse()
|
|
3473
|
+
model._deserialize(response["Response"])
|
|
3474
|
+
return model
|
|
3475
|
+
except Exception as e:
|
|
3476
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3477
|
+
raise
|
|
3478
|
+
else:
|
|
3479
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3480
|
+
|
|
3481
|
+
|
|
3364
3482
|
def UpdatePrometheusScrapeJob(self, request):
|
|
3365
3483
|
"""更新 Prometheus Agent 抓取任务
|
|
3366
3484
|
|
|
@@ -18718,9 +18718,15 @@ class SealOCRRequest(AbstractModel):
|
|
|
18718
18718
|
:param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
18719
18719
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
18720
18720
|
:type ImageUrl: str
|
|
18721
|
+
:param _EnablePdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
18722
|
+
:type EnablePdf: bool
|
|
18723
|
+
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
|
18724
|
+
:type PdfPageNumber: int
|
|
18721
18725
|
"""
|
|
18722
18726
|
self._ImageBase64 = None
|
|
18723
18727
|
self._ImageUrl = None
|
|
18728
|
+
self._EnablePdf = None
|
|
18729
|
+
self._PdfPageNumber = None
|
|
18724
18730
|
|
|
18725
18731
|
@property
|
|
18726
18732
|
def ImageBase64(self):
|
|
@@ -18738,10 +18744,28 @@ class SealOCRRequest(AbstractModel):
|
|
|
18738
18744
|
def ImageUrl(self, ImageUrl):
|
|
18739
18745
|
self._ImageUrl = ImageUrl
|
|
18740
18746
|
|
|
18747
|
+
@property
|
|
18748
|
+
def EnablePdf(self):
|
|
18749
|
+
return self._EnablePdf
|
|
18750
|
+
|
|
18751
|
+
@EnablePdf.setter
|
|
18752
|
+
def EnablePdf(self, EnablePdf):
|
|
18753
|
+
self._EnablePdf = EnablePdf
|
|
18754
|
+
|
|
18755
|
+
@property
|
|
18756
|
+
def PdfPageNumber(self):
|
|
18757
|
+
return self._PdfPageNumber
|
|
18758
|
+
|
|
18759
|
+
@PdfPageNumber.setter
|
|
18760
|
+
def PdfPageNumber(self, PdfPageNumber):
|
|
18761
|
+
self._PdfPageNumber = PdfPageNumber
|
|
18762
|
+
|
|
18741
18763
|
|
|
18742
18764
|
def _deserialize(self, params):
|
|
18743
18765
|
self._ImageBase64 = params.get("ImageBase64")
|
|
18744
18766
|
self._ImageUrl = params.get("ImageUrl")
|
|
18767
|
+
self._EnablePdf = params.get("EnablePdf")
|
|
18768
|
+
self._PdfPageNumber = params.get("PdfPageNumber")
|
|
18745
18769
|
memeber_set = set(params.keys())
|
|
18746
18770
|
for name, value in vars(self).items():
|
|
18747
18771
|
property_name = name[1:]
|
|
@@ -974,170 +974,6 @@ class DeleteLogExportResponse(AbstractModel):
|
|
|
974
974
|
self._RequestId = params.get("RequestId")
|
|
975
975
|
|
|
976
976
|
|
|
977
|
-
class DeleteOfflineLogConfigRequest(AbstractModel):
|
|
978
|
-
"""DeleteOfflineLogConfig请求参数结构体
|
|
979
|
-
|
|
980
|
-
"""
|
|
981
|
-
|
|
982
|
-
def __init__(self):
|
|
983
|
-
r"""
|
|
984
|
-
:param _ProjectKey: 项目唯一上报 key
|
|
985
|
-
:type ProjectKey: str
|
|
986
|
-
:param _UniqueID: 用户唯一标示(uin or aid)
|
|
987
|
-
:type UniqueID: str
|
|
988
|
-
"""
|
|
989
|
-
self._ProjectKey = None
|
|
990
|
-
self._UniqueID = None
|
|
991
|
-
|
|
992
|
-
@property
|
|
993
|
-
def ProjectKey(self):
|
|
994
|
-
return self._ProjectKey
|
|
995
|
-
|
|
996
|
-
@ProjectKey.setter
|
|
997
|
-
def ProjectKey(self, ProjectKey):
|
|
998
|
-
self._ProjectKey = ProjectKey
|
|
999
|
-
|
|
1000
|
-
@property
|
|
1001
|
-
def UniqueID(self):
|
|
1002
|
-
return self._UniqueID
|
|
1003
|
-
|
|
1004
|
-
@UniqueID.setter
|
|
1005
|
-
def UniqueID(self, UniqueID):
|
|
1006
|
-
self._UniqueID = UniqueID
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
def _deserialize(self, params):
|
|
1010
|
-
self._ProjectKey = params.get("ProjectKey")
|
|
1011
|
-
self._UniqueID = params.get("UniqueID")
|
|
1012
|
-
memeber_set = set(params.keys())
|
|
1013
|
-
for name, value in vars(self).items():
|
|
1014
|
-
property_name = name[1:]
|
|
1015
|
-
if property_name in memeber_set:
|
|
1016
|
-
memeber_set.remove(property_name)
|
|
1017
|
-
if len(memeber_set) > 0:
|
|
1018
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
class DeleteOfflineLogConfigResponse(AbstractModel):
|
|
1023
|
-
"""DeleteOfflineLogConfig返回参数结构体
|
|
1024
|
-
|
|
1025
|
-
"""
|
|
1026
|
-
|
|
1027
|
-
def __init__(self):
|
|
1028
|
-
r"""
|
|
1029
|
-
:param _Msg: 接口调用信息
|
|
1030
|
-
:type Msg: str
|
|
1031
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1032
|
-
:type RequestId: str
|
|
1033
|
-
"""
|
|
1034
|
-
self._Msg = None
|
|
1035
|
-
self._RequestId = None
|
|
1036
|
-
|
|
1037
|
-
@property
|
|
1038
|
-
def Msg(self):
|
|
1039
|
-
return self._Msg
|
|
1040
|
-
|
|
1041
|
-
@Msg.setter
|
|
1042
|
-
def Msg(self, Msg):
|
|
1043
|
-
self._Msg = Msg
|
|
1044
|
-
|
|
1045
|
-
@property
|
|
1046
|
-
def RequestId(self):
|
|
1047
|
-
return self._RequestId
|
|
1048
|
-
|
|
1049
|
-
@RequestId.setter
|
|
1050
|
-
def RequestId(self, RequestId):
|
|
1051
|
-
self._RequestId = RequestId
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
def _deserialize(self, params):
|
|
1055
|
-
self._Msg = params.get("Msg")
|
|
1056
|
-
self._RequestId = params.get("RequestId")
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
class DeleteOfflineLogRecordRequest(AbstractModel):
|
|
1060
|
-
"""DeleteOfflineLogRecord请求参数结构体
|
|
1061
|
-
|
|
1062
|
-
"""
|
|
1063
|
-
|
|
1064
|
-
def __init__(self):
|
|
1065
|
-
r"""
|
|
1066
|
-
:param _ProjectKey: 项目唯一上报 key
|
|
1067
|
-
:type ProjectKey: str
|
|
1068
|
-
:param _FileID: 离线日志文件 id
|
|
1069
|
-
:type FileID: str
|
|
1070
|
-
"""
|
|
1071
|
-
self._ProjectKey = None
|
|
1072
|
-
self._FileID = None
|
|
1073
|
-
|
|
1074
|
-
@property
|
|
1075
|
-
def ProjectKey(self):
|
|
1076
|
-
return self._ProjectKey
|
|
1077
|
-
|
|
1078
|
-
@ProjectKey.setter
|
|
1079
|
-
def ProjectKey(self, ProjectKey):
|
|
1080
|
-
self._ProjectKey = ProjectKey
|
|
1081
|
-
|
|
1082
|
-
@property
|
|
1083
|
-
def FileID(self):
|
|
1084
|
-
return self._FileID
|
|
1085
|
-
|
|
1086
|
-
@FileID.setter
|
|
1087
|
-
def FileID(self, FileID):
|
|
1088
|
-
self._FileID = FileID
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
def _deserialize(self, params):
|
|
1092
|
-
self._ProjectKey = params.get("ProjectKey")
|
|
1093
|
-
self._FileID = params.get("FileID")
|
|
1094
|
-
memeber_set = set(params.keys())
|
|
1095
|
-
for name, value in vars(self).items():
|
|
1096
|
-
property_name = name[1:]
|
|
1097
|
-
if property_name in memeber_set:
|
|
1098
|
-
memeber_set.remove(property_name)
|
|
1099
|
-
if len(memeber_set) > 0:
|
|
1100
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
class DeleteOfflineLogRecordResponse(AbstractModel):
|
|
1105
|
-
"""DeleteOfflineLogRecord返回参数结构体
|
|
1106
|
-
|
|
1107
|
-
"""
|
|
1108
|
-
|
|
1109
|
-
def __init__(self):
|
|
1110
|
-
r"""
|
|
1111
|
-
:param _Msg: 接口调用信息
|
|
1112
|
-
:type Msg: str
|
|
1113
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1114
|
-
:type RequestId: str
|
|
1115
|
-
"""
|
|
1116
|
-
self._Msg = None
|
|
1117
|
-
self._RequestId = None
|
|
1118
|
-
|
|
1119
|
-
@property
|
|
1120
|
-
def Msg(self):
|
|
1121
|
-
return self._Msg
|
|
1122
|
-
|
|
1123
|
-
@Msg.setter
|
|
1124
|
-
def Msg(self, Msg):
|
|
1125
|
-
self._Msg = Msg
|
|
1126
|
-
|
|
1127
|
-
@property
|
|
1128
|
-
def RequestId(self):
|
|
1129
|
-
return self._RequestId
|
|
1130
|
-
|
|
1131
|
-
@RequestId.setter
|
|
1132
|
-
def RequestId(self, RequestId):
|
|
1133
|
-
self._RequestId = RequestId
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
def _deserialize(self, params):
|
|
1137
|
-
self._Msg = params.get("Msg")
|
|
1138
|
-
self._RequestId = params.get("RequestId")
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
977
|
class DeleteProjectRequest(AbstractModel):
|
|
1142
978
|
"""DeleteProject请求参数结构体
|
|
1143
979
|
|
|
@@ -7747,88 +7583,6 @@ class DescribeLogListResponse(AbstractModel):
|
|
|
7747
7583
|
self._RequestId = params.get("RequestId")
|
|
7748
7584
|
|
|
7749
7585
|
|
|
7750
|
-
class DescribeOfflineLogConfigsRequest(AbstractModel):
|
|
7751
|
-
"""DescribeOfflineLogConfigs请求参数结构体
|
|
7752
|
-
|
|
7753
|
-
"""
|
|
7754
|
-
|
|
7755
|
-
def __init__(self):
|
|
7756
|
-
r"""
|
|
7757
|
-
:param _ProjectKey: 项目唯一上报 key
|
|
7758
|
-
:type ProjectKey: str
|
|
7759
|
-
"""
|
|
7760
|
-
self._ProjectKey = None
|
|
7761
|
-
|
|
7762
|
-
@property
|
|
7763
|
-
def ProjectKey(self):
|
|
7764
|
-
return self._ProjectKey
|
|
7765
|
-
|
|
7766
|
-
@ProjectKey.setter
|
|
7767
|
-
def ProjectKey(self, ProjectKey):
|
|
7768
|
-
self._ProjectKey = ProjectKey
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
def _deserialize(self, params):
|
|
7772
|
-
self._ProjectKey = params.get("ProjectKey")
|
|
7773
|
-
memeber_set = set(params.keys())
|
|
7774
|
-
for name, value in vars(self).items():
|
|
7775
|
-
property_name = name[1:]
|
|
7776
|
-
if property_name in memeber_set:
|
|
7777
|
-
memeber_set.remove(property_name)
|
|
7778
|
-
if len(memeber_set) > 0:
|
|
7779
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
class DescribeOfflineLogConfigsResponse(AbstractModel):
|
|
7784
|
-
"""DescribeOfflineLogConfigs返回参数结构体
|
|
7785
|
-
|
|
7786
|
-
"""
|
|
7787
|
-
|
|
7788
|
-
def __init__(self):
|
|
7789
|
-
r"""
|
|
7790
|
-
:param _Msg: 接口调用信息
|
|
7791
|
-
:type Msg: str
|
|
7792
|
-
:param _UniqueIDSet: 用户唯一标示数组
|
|
7793
|
-
:type UniqueIDSet: list of str
|
|
7794
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
7795
|
-
:type RequestId: str
|
|
7796
|
-
"""
|
|
7797
|
-
self._Msg = None
|
|
7798
|
-
self._UniqueIDSet = None
|
|
7799
|
-
self._RequestId = None
|
|
7800
|
-
|
|
7801
|
-
@property
|
|
7802
|
-
def Msg(self):
|
|
7803
|
-
return self._Msg
|
|
7804
|
-
|
|
7805
|
-
@Msg.setter
|
|
7806
|
-
def Msg(self, Msg):
|
|
7807
|
-
self._Msg = Msg
|
|
7808
|
-
|
|
7809
|
-
@property
|
|
7810
|
-
def UniqueIDSet(self):
|
|
7811
|
-
return self._UniqueIDSet
|
|
7812
|
-
|
|
7813
|
-
@UniqueIDSet.setter
|
|
7814
|
-
def UniqueIDSet(self, UniqueIDSet):
|
|
7815
|
-
self._UniqueIDSet = UniqueIDSet
|
|
7816
|
-
|
|
7817
|
-
@property
|
|
7818
|
-
def RequestId(self):
|
|
7819
|
-
return self._RequestId
|
|
7820
|
-
|
|
7821
|
-
@RequestId.setter
|
|
7822
|
-
def RequestId(self, RequestId):
|
|
7823
|
-
self._RequestId = RequestId
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
def _deserialize(self, params):
|
|
7827
|
-
self._Msg = params.get("Msg")
|
|
7828
|
-
self._UniqueIDSet = params.get("UniqueIDSet")
|
|
7829
|
-
self._RequestId = params.get("RequestId")
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
7586
|
class DescribeProjectLimitsRequest(AbstractModel):
|
|
7833
7587
|
"""DescribeProjectLimits请求参数结构体
|
|
7834
7588
|
|
|
@@ -218,52 +218,6 @@ class RumClient(AbstractClient):
|
|
|
218
218
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
219
219
|
|
|
220
220
|
|
|
221
|
-
def DeleteOfflineLogConfig(self, request):
|
|
222
|
-
"""删除 rum 离线日志监听 - 对应用户的离线日志将不会上报
|
|
223
|
-
|
|
224
|
-
:param request: Request instance for DeleteOfflineLogConfig.
|
|
225
|
-
:type request: :class:`tencentcloud.rum.v20210622.models.DeleteOfflineLogConfigRequest`
|
|
226
|
-
:rtype: :class:`tencentcloud.rum.v20210622.models.DeleteOfflineLogConfigResponse`
|
|
227
|
-
|
|
228
|
-
"""
|
|
229
|
-
try:
|
|
230
|
-
params = request._serialize()
|
|
231
|
-
headers = request.headers
|
|
232
|
-
body = self.call("DeleteOfflineLogConfig", params, headers=headers)
|
|
233
|
-
response = json.loads(body)
|
|
234
|
-
model = models.DeleteOfflineLogConfigResponse()
|
|
235
|
-
model._deserialize(response["Response"])
|
|
236
|
-
return model
|
|
237
|
-
except Exception as e:
|
|
238
|
-
if isinstance(e, TencentCloudSDKException):
|
|
239
|
-
raise
|
|
240
|
-
else:
|
|
241
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
def DeleteOfflineLogRecord(self, request):
|
|
245
|
-
"""删除对应的离线日志记录
|
|
246
|
-
|
|
247
|
-
:param request: Request instance for DeleteOfflineLogRecord.
|
|
248
|
-
:type request: :class:`tencentcloud.rum.v20210622.models.DeleteOfflineLogRecordRequest`
|
|
249
|
-
:rtype: :class:`tencentcloud.rum.v20210622.models.DeleteOfflineLogRecordResponse`
|
|
250
|
-
|
|
251
|
-
"""
|
|
252
|
-
try:
|
|
253
|
-
params = request._serialize()
|
|
254
|
-
headers = request.headers
|
|
255
|
-
body = self.call("DeleteOfflineLogRecord", params, headers=headers)
|
|
256
|
-
response = json.loads(body)
|
|
257
|
-
model = models.DeleteOfflineLogRecordResponse()
|
|
258
|
-
model._deserialize(response["Response"])
|
|
259
|
-
return model
|
|
260
|
-
except Exception as e:
|
|
261
|
-
if isinstance(e, TencentCloudSDKException):
|
|
262
|
-
raise
|
|
263
|
-
else:
|
|
264
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
265
|
-
|
|
266
|
-
|
|
267
221
|
def DeleteProject(self, request):
|
|
268
222
|
"""删除给定的 rum 的项目
|
|
269
223
|
|
|
@@ -936,29 +890,6 @@ class RumClient(AbstractClient):
|
|
|
936
890
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
937
891
|
|
|
938
892
|
|
|
939
|
-
def DescribeOfflineLogConfigs(self, request):
|
|
940
|
-
"""获取设置的离线日志监听配置 - 返回设置的用户唯一标识
|
|
941
|
-
|
|
942
|
-
:param request: Request instance for DescribeOfflineLogConfigs.
|
|
943
|
-
:type request: :class:`tencentcloud.rum.v20210622.models.DescribeOfflineLogConfigsRequest`
|
|
944
|
-
:rtype: :class:`tencentcloud.rum.v20210622.models.DescribeOfflineLogConfigsResponse`
|
|
945
|
-
|
|
946
|
-
"""
|
|
947
|
-
try:
|
|
948
|
-
params = request._serialize()
|
|
949
|
-
headers = request.headers
|
|
950
|
-
body = self.call("DescribeOfflineLogConfigs", params, headers=headers)
|
|
951
|
-
response = json.loads(body)
|
|
952
|
-
model = models.DescribeOfflineLogConfigsResponse()
|
|
953
|
-
model._deserialize(response["Response"])
|
|
954
|
-
return model
|
|
955
|
-
except Exception as e:
|
|
956
|
-
if isinstance(e, TencentCloudSDKException):
|
|
957
|
-
raise
|
|
958
|
-
else:
|
|
959
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
960
|
-
|
|
961
|
-
|
|
962
893
|
def DescribeProjectLimits(self, request):
|
|
963
894
|
"""获取应用上报抽样信息
|
|
964
895
|
|
|
@@ -1812,14 +1812,19 @@ class CloudBaseRunNfsVolumeSource(AbstractModel):
|
|
|
1812
1812
|
def __init__(self):
|
|
1813
1813
|
r"""
|
|
1814
1814
|
:param _Server: NFS挂载Server
|
|
1815
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1815
1816
|
:type Server: str
|
|
1816
1817
|
:param _Path: Server路径
|
|
1818
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1817
1819
|
:type Path: str
|
|
1818
1820
|
:param _ReadOnly: 是否只读
|
|
1821
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1819
1822
|
:type ReadOnly: bool
|
|
1820
1823
|
:param _SecretName: secret名称
|
|
1824
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1821
1825
|
:type SecretName: str
|
|
1822
1826
|
:param _EnableEmptyDirVolume: 临时目录
|
|
1827
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1823
1828
|
:type EnableEmptyDirVolume: bool
|
|
1824
1829
|
"""
|
|
1825
1830
|
self._Server = None
|
|
@@ -2473,12 +2478,16 @@ class CloudBaseRunVolumeMount(AbstractModel):
|
|
|
2473
2478
|
def __init__(self):
|
|
2474
2479
|
r"""
|
|
2475
2480
|
:param _Name: 资源名
|
|
2481
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2476
2482
|
:type Name: str
|
|
2477
2483
|
:param _MountPath: 挂载路径
|
|
2484
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2478
2485
|
:type MountPath: str
|
|
2479
2486
|
:param _ReadOnly: 是否只读
|
|
2487
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2480
2488
|
:type ReadOnly: bool
|
|
2481
2489
|
:param _NfsVolumes: Nfs挂载信息
|
|
2490
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2482
2491
|
:type NfsVolumes: list of CloudBaseRunNfsVolumeSource
|
|
2483
2492
|
"""
|
|
2484
2493
|
self._Name = None
|
|
@@ -17,12 +17,27 @@
|
|
|
17
17
|
# CAM签名/鉴权错误。
|
|
18
18
|
AUTHFAILURE = 'AuthFailure'
|
|
19
19
|
|
|
20
|
+
# 机构名称要求输入中英文或数字,不超过32个字符
|
|
21
|
+
AUTHORITY_AUTHORITYNAMELENGTHLONG = 'Authority.AuthorityNameLengthLong'
|
|
22
|
+
|
|
23
|
+
# 认证备注要求输入中英文或数字,不超过64个字符
|
|
24
|
+
AUTHORITY_AUTHORITYREMARKLENGTHLONG = 'Authority.AuthorityRemarkLengthLong'
|
|
25
|
+
|
|
26
|
+
# 该权威机构已被认证:<%ExtMsg%>
|
|
27
|
+
AUTHORITY_ERRCODEAUTHORITYREGISTERED = 'Authority.ErrCodeAuthorityRegistered'
|
|
28
|
+
|
|
29
|
+
# 该DID已经认证为权威机构:<%ExtMsg%>
|
|
30
|
+
AUTHORITY_ERRCODEDIDAUTHORITYREGISTERED = 'Authority.ErrCodeDidAuthorityRegistered'
|
|
31
|
+
|
|
20
32
|
# CAM鉴权失败
|
|
21
33
|
CAM_INVALIDAUTH = 'Cam.InvalidAuth'
|
|
22
34
|
|
|
23
35
|
# 创建凭证模板失败,请重新操作
|
|
24
36
|
CPT_CREATECPTFAILED = 'Cpt.CreateCPTFailed'
|
|
25
37
|
|
|
38
|
+
# 模板内容为无效的json格式
|
|
39
|
+
CPT_INVALIDCPTJSON = 'Cpt.InvalidCPTJson'
|
|
40
|
+
|
|
26
41
|
# 凭证模板不存在
|
|
27
42
|
CREDENTIAL_CPTNOTEXISTED = 'Credential.CPTNotExisted'
|
|
28
43
|
|
|
@@ -107,6 +122,9 @@ DIDFAILEDOPERATION_DIDSVCNOTEXISTED = 'DidFailedOperation.DidSvcNotExisted'
|
|
|
107
122
|
# 获取DID文档失败,请重新操作
|
|
108
123
|
DIDFAILEDOPERATION_GETDIDDOCFILED = 'DidFailedOperation.GetDidDocFiled'
|
|
109
124
|
|
|
125
|
+
# 非权威机构DID:<%ExtMsg%>
|
|
126
|
+
DIDFAILEDOPERATION_NOTAUTHORITY = 'DidFailedOperation.NotAuthority'
|
|
127
|
+
|
|
110
128
|
# 非DID创建者,无法更新DID状态
|
|
111
129
|
DIDFAILEDOPERATION_NOTDIDCREATOR = 'DidFailedOperation.NotDidCreator'
|
|
112
130
|
|