tencentcloud-sdk-python 3.0.1357__py2.py3-none-any.whl → 3.0.1358__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/bh/v20230418/bh_client.py +115 -0
- tencentcloud/bh/v20230418/errorcodes.py +15 -0
- tencentcloud/bh/v20230418/models.py +854 -28
- tencentcloud/bpaas/v20181217/models.py +0 -54
- tencentcloud/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdb/v20170320/models.py +15 -0
- tencentcloud/chc/v20230418/chc_client.py +23 -0
- tencentcloud/chc/v20230418/models.py +185 -2
- tencentcloud/cls/v20201016/cls_client.py +23 -0
- tencentcloud/cls/v20201016/models.py +79 -0
- tencentcloud/cwp/v20180228/models.py +2 -2
- tencentcloud/es/v20180416/models.py +57 -6
- tencentcloud/es/v20250101/__init__.py +0 -0
- tencentcloud/es/v20250101/errorcodes.py +45 -0
- tencentcloud/es/v20250101/es_client.py +228 -0
- tencentcloud/es/v20250101/models.py +2168 -0
- tencentcloud/ess/v20201111/ess_client.py +33 -0
- tencentcloud/ess/v20201111/models.py +137 -2
- tencentcloud/essbasic/v20210526/essbasic_client.py +33 -0
- tencentcloud/essbasic/v20210526/models.py +120 -0
- tencentcloud/lcic/v20220817/models.py +15 -0
- tencentcloud/ocr/v20181119/models.py +2 -2
- tencentcloud/sts/v20180813/errorcodes.py +9 -0
- tencentcloud/sts/v20180813/models.py +171 -0
- tencentcloud/sts/v20180813/sts_client.py +23 -0
- tencentcloud/tcr/v20190924/models.py +10 -6
- tencentcloud/tdmq/v20200217/models.py +68 -0
- tencentcloud/tione/v20211111/errorcodes.py +3 -0
- tencentcloud/tione/v20211111/models.py +384 -0
- tencentcloud/tione/v20211111/tione_client.py +23 -0
- tencentcloud/tse/v20201207/models.py +0 -296
- tencentcloud/tsf/v20180326/models.py +6 -110
- tencentcloud/tsf/v20180326/tsf_client.py +3 -1
- tencentcloud/waf/v20180125/models.py +473 -0
- tencentcloud/waf/v20180125/waf_client.py +69 -0
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/RECORD +41 -37
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1358.dist-info}/top_level.txt +0 -0
@@ -168,6 +168,29 @@ class StsClient(AbstractClient):
|
|
168
168
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
169
169
|
|
170
170
|
|
171
|
+
def GetSessionToken(self, request):
|
172
|
+
"""获取MFA临时证书
|
173
|
+
|
174
|
+
:param request: Request instance for GetSessionToken.
|
175
|
+
:type request: :class:`tencentcloud.sts.v20180813.models.GetSessionTokenRequest`
|
176
|
+
:rtype: :class:`tencentcloud.sts.v20180813.models.GetSessionTokenResponse`
|
177
|
+
|
178
|
+
"""
|
179
|
+
try:
|
180
|
+
params = request._serialize()
|
181
|
+
headers = request.headers
|
182
|
+
body = self.call("GetSessionToken", params, headers=headers)
|
183
|
+
response = json.loads(body)
|
184
|
+
model = models.GetSessionTokenResponse()
|
185
|
+
model._deserialize(response["Response"])
|
186
|
+
return model
|
187
|
+
except Exception as e:
|
188
|
+
if isinstance(e, TencentCloudSDKException):
|
189
|
+
raise
|
190
|
+
else:
|
191
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
192
|
+
|
193
|
+
|
171
194
|
def QueryApiKey(self, request):
|
172
195
|
"""拉取API密钥列表
|
173
196
|
|
@@ -2246,7 +2246,9 @@ class CreateRepositoryRequest(AbstractModel):
|
|
2246
2246
|
:type RegistryId: str
|
2247
2247
|
:param _NamespaceName: 命名空间名称
|
2248
2248
|
:type NamespaceName: str
|
2249
|
-
:param _RepositoryName:
|
2249
|
+
:param _RepositoryName: 仓库名称,需满足以下规则:
|
2250
|
+
1. 长度需 大于2且小于245个字符
|
2251
|
+
2. 仅允许小写字母、数字及符号 . _ -
|
2250
2252
|
:type RepositoryName: str
|
2251
2253
|
:param _BriefDescription: 仓库简短描述
|
2252
2254
|
:type BriefDescription: str
|
@@ -2283,7 +2285,9 @@ class CreateRepositoryRequest(AbstractModel):
|
|
2283
2285
|
|
2284
2286
|
@property
|
2285
2287
|
def RepositoryName(self):
|
2286
|
-
"""
|
2288
|
+
"""仓库名称,需满足以下规则:
|
2289
|
+
1. 长度需 大于2且小于245个字符
|
2290
|
+
2. 仅允许小写字母、数字及符号 . _ -
|
2287
2291
|
:rtype: str
|
2288
2292
|
"""
|
2289
2293
|
return self._RepositoryName
|
@@ -9627,9 +9631,9 @@ class DescribeTagRetentionExecutionTaskRequest(AbstractModel):
|
|
9627
9631
|
:type RetentionId: int
|
9628
9632
|
:param _ExecutionId: 规则执行Id
|
9629
9633
|
:type ExecutionId: int
|
9630
|
-
:param _Offset:
|
9634
|
+
:param _Offset: 页数,第几页,用于分页
|
9631
9635
|
:type Offset: int
|
9632
|
-
:param _Limit:
|
9636
|
+
:param _Limit: 每页个数,用于分页,最大值为100
|
9633
9637
|
:type Limit: int
|
9634
9638
|
"""
|
9635
9639
|
self._RegistryId = None
|
@@ -9673,7 +9677,7 @@ class DescribeTagRetentionExecutionTaskRequest(AbstractModel):
|
|
9673
9677
|
|
9674
9678
|
@property
|
9675
9679
|
def Offset(self):
|
9676
|
-
"""
|
9680
|
+
"""页数,第几页,用于分页
|
9677
9681
|
:rtype: int
|
9678
9682
|
"""
|
9679
9683
|
return self._Offset
|
@@ -9684,7 +9688,7 @@ class DescribeTagRetentionExecutionTaskRequest(AbstractModel):
|
|
9684
9688
|
|
9685
9689
|
@property
|
9686
9690
|
def Limit(self):
|
9687
|
-
"""
|
9691
|
+
"""每页个数,用于分页,最大值为100
|
9688
9692
|
:rtype: int
|
9689
9693
|
"""
|
9690
9694
|
return self._Limit
|
@@ -31896,6 +31896,12 @@ class RocketMQGroup(AbstractModel):
|
|
31896
31896
|
:param _RetryMaxTimes: 重试次数
|
31897
31897
|
注意:此字段可能返回 null,表示取不到有效值。
|
31898
31898
|
:type RetryMaxTimes: int
|
31899
|
+
:param _InstanceId: 实例ID
|
31900
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31901
|
+
:type InstanceId: str
|
31902
|
+
:param _Namespace: 命名空间
|
31903
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
31904
|
+
:type Namespace: str
|
31899
31905
|
"""
|
31900
31906
|
self._Name = None
|
31901
31907
|
self._ConsumerNum = None
|
@@ -31912,6 +31918,8 @@ class RocketMQGroup(AbstractModel):
|
|
31912
31918
|
self._BroadcastEnabled = None
|
31913
31919
|
self._GroupType = None
|
31914
31920
|
self._RetryMaxTimes = None
|
31921
|
+
self._InstanceId = None
|
31922
|
+
self._Namespace = None
|
31915
31923
|
|
31916
31924
|
@property
|
31917
31925
|
def Name(self):
|
@@ -32083,6 +32091,30 @@ class RocketMQGroup(AbstractModel):
|
|
32083
32091
|
def RetryMaxTimes(self, RetryMaxTimes):
|
32084
32092
|
self._RetryMaxTimes = RetryMaxTimes
|
32085
32093
|
|
32094
|
+
@property
|
32095
|
+
def InstanceId(self):
|
32096
|
+
"""实例ID
|
32097
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
32098
|
+
:rtype: str
|
32099
|
+
"""
|
32100
|
+
return self._InstanceId
|
32101
|
+
|
32102
|
+
@InstanceId.setter
|
32103
|
+
def InstanceId(self, InstanceId):
|
32104
|
+
self._InstanceId = InstanceId
|
32105
|
+
|
32106
|
+
@property
|
32107
|
+
def Namespace(self):
|
32108
|
+
"""命名空间
|
32109
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
32110
|
+
:rtype: str
|
32111
|
+
"""
|
32112
|
+
return self._Namespace
|
32113
|
+
|
32114
|
+
@Namespace.setter
|
32115
|
+
def Namespace(self, Namespace):
|
32116
|
+
self._Namespace = Namespace
|
32117
|
+
|
32086
32118
|
|
32087
32119
|
def _deserialize(self, params):
|
32088
32120
|
self._Name = params.get("Name")
|
@@ -32100,6 +32132,8 @@ class RocketMQGroup(AbstractModel):
|
|
32100
32132
|
self._BroadcastEnabled = params.get("BroadcastEnabled")
|
32101
32133
|
self._GroupType = params.get("GroupType")
|
32102
32134
|
self._RetryMaxTimes = params.get("RetryMaxTimes")
|
32135
|
+
self._InstanceId = params.get("InstanceId")
|
32136
|
+
self._Namespace = params.get("Namespace")
|
32103
32137
|
memeber_set = set(params.keys())
|
32104
32138
|
for name, value in vars(self).items():
|
32105
32139
|
property_name = name[1:]
|
@@ -33547,6 +33581,12 @@ class RocketMQTopic(AbstractModel):
|
|
33547
33581
|
:type CreateTime: int
|
33548
33582
|
:param _UpdateTime: 创建时间,以毫秒为单位
|
33549
33583
|
:type UpdateTime: int
|
33584
|
+
:param _InstanceId: 实例ID
|
33585
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
33586
|
+
:type InstanceId: str
|
33587
|
+
:param _Namespace: 命名空间
|
33588
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
33589
|
+
:type Namespace: str
|
33550
33590
|
:param _LastUpdateTime: 最后写入时间,单位为秒
|
33551
33591
|
注意:此字段可能返回 null,表示取不到有效值。
|
33552
33592
|
:type LastUpdateTime: int
|
@@ -33564,6 +33604,8 @@ class RocketMQTopic(AbstractModel):
|
|
33564
33604
|
self._PartitionNum = None
|
33565
33605
|
self._CreateTime = None
|
33566
33606
|
self._UpdateTime = None
|
33607
|
+
self._InstanceId = None
|
33608
|
+
self._Namespace = None
|
33567
33609
|
self._LastUpdateTime = None
|
33568
33610
|
self._SubscriptionCount = None
|
33569
33611
|
self._SubscriptionData = None
|
@@ -33646,6 +33688,30 @@ class RocketMQTopic(AbstractModel):
|
|
33646
33688
|
def UpdateTime(self, UpdateTime):
|
33647
33689
|
self._UpdateTime = UpdateTime
|
33648
33690
|
|
33691
|
+
@property
|
33692
|
+
def InstanceId(self):
|
33693
|
+
"""实例ID
|
33694
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
33695
|
+
:rtype: str
|
33696
|
+
"""
|
33697
|
+
return self._InstanceId
|
33698
|
+
|
33699
|
+
@InstanceId.setter
|
33700
|
+
def InstanceId(self, InstanceId):
|
33701
|
+
self._InstanceId = InstanceId
|
33702
|
+
|
33703
|
+
@property
|
33704
|
+
def Namespace(self):
|
33705
|
+
"""命名空间
|
33706
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
33707
|
+
:rtype: str
|
33708
|
+
"""
|
33709
|
+
return self._Namespace
|
33710
|
+
|
33711
|
+
@Namespace.setter
|
33712
|
+
def Namespace(self, Namespace):
|
33713
|
+
self._Namespace = Namespace
|
33714
|
+
|
33649
33715
|
@property
|
33650
33716
|
def LastUpdateTime(self):
|
33651
33717
|
"""最后写入时间,单位为秒
|
@@ -33691,6 +33757,8 @@ class RocketMQTopic(AbstractModel):
|
|
33691
33757
|
self._PartitionNum = params.get("PartitionNum")
|
33692
33758
|
self._CreateTime = params.get("CreateTime")
|
33693
33759
|
self._UpdateTime = params.get("UpdateTime")
|
33760
|
+
self._InstanceId = params.get("InstanceId")
|
33761
|
+
self._Namespace = params.get("Namespace")
|
33694
33762
|
self._LastUpdateTime = params.get("LastUpdateTime")
|
33695
33763
|
self._SubscriptionCount = params.get("SubscriptionCount")
|
33696
33764
|
if params.get("SubscriptionData") is not None:
|
@@ -53,6 +53,9 @@ FAILEDOPERATION_CLSSERVICENOTACTIVED = 'FailedOperation.ClsServiceNotActived'
|
|
53
53
|
# 集群访问失败。
|
54
54
|
FAILEDOPERATION_CLUSTERQUERYFAILED = 'FailedOperation.ClusterQueryFailed'
|
55
55
|
|
56
|
+
# 翻页超过1万条,建议重新选择日志查询时间
|
57
|
+
FAILEDOPERATION_CONTEXTLIMITERROR = 'FailedOperation.ContextLimitError'
|
58
|
+
|
56
59
|
# cos client 内部错误。
|
57
60
|
FAILEDOPERATION_DCCOSCLIENTERR = 'FailedOperation.DCCosClientErr'
|
58
61
|
|
@@ -6699,6 +6699,301 @@ class DescribeInferTemplatesResponse(AbstractModel):
|
|
6699
6699
|
self._RequestId = params.get("RequestId")
|
6700
6700
|
|
6701
6701
|
|
6702
|
+
class DescribeLogsRequest(AbstractModel):
|
6703
|
+
"""DescribeLogs请求参数结构体
|
6704
|
+
|
6705
|
+
"""
|
6706
|
+
|
6707
|
+
def __init__(self):
|
6708
|
+
r"""
|
6709
|
+
:param _Service: 服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测
|
6710
|
+
枚举值:
|
6711
|
+
- TRAIN
|
6712
|
+
- NOTEBOOK
|
6713
|
+
- INFER
|
6714
|
+
- BATCH
|
6715
|
+
:type Service: str
|
6716
|
+
:param _StartTime: 日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时
|
6717
|
+
:type StartTime: str
|
6718
|
+
:param _EndTime: 日志查询结束时间(RFC3339格式的时间字符串),默认值为当前时间
|
6719
|
+
:type EndTime: str
|
6720
|
+
:param _Limit: 日志查询条数,默认值100,最大值100
|
6721
|
+
:type Limit: int
|
6722
|
+
:param _ServiceId: 服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:
|
6723
|
+
- Service类型为TRAIN:
|
6724
|
+
调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId
|
6725
|
+
- Service类型为NOTEBOOK:
|
6726
|
+
调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName
|
6727
|
+
- Service类型为INFER:
|
6728
|
+
调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId
|
6729
|
+
- Service类型为BATCH:
|
6730
|
+
调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId
|
6731
|
+
:type ServiceId: str
|
6732
|
+
:param _PodName: Pod的名称,即需要查询服务对应的Pod,和Service参数对应,不同Service的PodName获取方式不同,具体如下:
|
6733
|
+
- Service类型为TRAIN:
|
6734
|
+
调用[DescribeTrainingTaskPods接口](/document/product/851/75088)查询训练任务pod列表,PodName为接口返回值中Response.PodNames
|
6735
|
+
- Service类型为NOTEBOOK:
|
6736
|
+
调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,PodName为接口返回值中Response.NotebookDetail.PodName
|
6737
|
+
- Service类型为INFER:
|
6738
|
+
调用[DescribeModelService接口](/document/product/851/82287)查询单个服务详情,PodName为接口返回值中Response.Service.ServiceInfo.PodInfos
|
6739
|
+
- Service类型为BATCH:
|
6740
|
+
调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,PodName为接口返回值中Response.BatchTaskDetail. PodList
|
6741
|
+
注:支持结尾通配符*
|
6742
|
+
:type PodName: str
|
6743
|
+
:param _Order: 排序方向(可选值为ASC, DESC ),默认为DESC
|
6744
|
+
:type Order: str
|
6745
|
+
:param _OrderField: 按哪个字段排序(可选值为Timestamp),默认值为Timestamp
|
6746
|
+
:type OrderField: str
|
6747
|
+
:param _Context: 日志查询上下文,查询下一页的时候需要回传这个字段,该字段来自本接口的返回
|
6748
|
+
:type Context: str
|
6749
|
+
:param _Filters: 过滤条件
|
6750
|
+
注意:
|
6751
|
+
1. Filter.Name:目前只支持Key(也就是按关键字过滤日志)
|
6752
|
+
2. Filter.Values:表示过滤日志的关键字;Values为多个的时候表示同时满足
|
6753
|
+
3. Filter. Negative和Filter. Fuzzy没有使用
|
6754
|
+
:type Filters: list of Filter
|
6755
|
+
"""
|
6756
|
+
self._Service = None
|
6757
|
+
self._StartTime = None
|
6758
|
+
self._EndTime = None
|
6759
|
+
self._Limit = None
|
6760
|
+
self._ServiceId = None
|
6761
|
+
self._PodName = None
|
6762
|
+
self._Order = None
|
6763
|
+
self._OrderField = None
|
6764
|
+
self._Context = None
|
6765
|
+
self._Filters = None
|
6766
|
+
|
6767
|
+
@property
|
6768
|
+
def Service(self):
|
6769
|
+
"""服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测
|
6770
|
+
枚举值:
|
6771
|
+
- TRAIN
|
6772
|
+
- NOTEBOOK
|
6773
|
+
- INFER
|
6774
|
+
- BATCH
|
6775
|
+
:rtype: str
|
6776
|
+
"""
|
6777
|
+
return self._Service
|
6778
|
+
|
6779
|
+
@Service.setter
|
6780
|
+
def Service(self, Service):
|
6781
|
+
self._Service = Service
|
6782
|
+
|
6783
|
+
@property
|
6784
|
+
def StartTime(self):
|
6785
|
+
"""日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时
|
6786
|
+
:rtype: str
|
6787
|
+
"""
|
6788
|
+
return self._StartTime
|
6789
|
+
|
6790
|
+
@StartTime.setter
|
6791
|
+
def StartTime(self, StartTime):
|
6792
|
+
self._StartTime = StartTime
|
6793
|
+
|
6794
|
+
@property
|
6795
|
+
def EndTime(self):
|
6796
|
+
"""日志查询结束时间(RFC3339格式的时间字符串),默认值为当前时间
|
6797
|
+
:rtype: str
|
6798
|
+
"""
|
6799
|
+
return self._EndTime
|
6800
|
+
|
6801
|
+
@EndTime.setter
|
6802
|
+
def EndTime(self, EndTime):
|
6803
|
+
self._EndTime = EndTime
|
6804
|
+
|
6805
|
+
@property
|
6806
|
+
def Limit(self):
|
6807
|
+
"""日志查询条数,默认值100,最大值100
|
6808
|
+
:rtype: int
|
6809
|
+
"""
|
6810
|
+
return self._Limit
|
6811
|
+
|
6812
|
+
@Limit.setter
|
6813
|
+
def Limit(self, Limit):
|
6814
|
+
self._Limit = Limit
|
6815
|
+
|
6816
|
+
@property
|
6817
|
+
def ServiceId(self):
|
6818
|
+
"""服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:
|
6819
|
+
- Service类型为TRAIN:
|
6820
|
+
调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId
|
6821
|
+
- Service类型为NOTEBOOK:
|
6822
|
+
调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName
|
6823
|
+
- Service类型为INFER:
|
6824
|
+
调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId
|
6825
|
+
- Service类型为BATCH:
|
6826
|
+
调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId
|
6827
|
+
:rtype: str
|
6828
|
+
"""
|
6829
|
+
return self._ServiceId
|
6830
|
+
|
6831
|
+
@ServiceId.setter
|
6832
|
+
def ServiceId(self, ServiceId):
|
6833
|
+
self._ServiceId = ServiceId
|
6834
|
+
|
6835
|
+
@property
|
6836
|
+
def PodName(self):
|
6837
|
+
"""Pod的名称,即需要查询服务对应的Pod,和Service参数对应,不同Service的PodName获取方式不同,具体如下:
|
6838
|
+
- Service类型为TRAIN:
|
6839
|
+
调用[DescribeTrainingTaskPods接口](/document/product/851/75088)查询训练任务pod列表,PodName为接口返回值中Response.PodNames
|
6840
|
+
- Service类型为NOTEBOOK:
|
6841
|
+
调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,PodName为接口返回值中Response.NotebookDetail.PodName
|
6842
|
+
- Service类型为INFER:
|
6843
|
+
调用[DescribeModelService接口](/document/product/851/82287)查询单个服务详情,PodName为接口返回值中Response.Service.ServiceInfo.PodInfos
|
6844
|
+
- Service类型为BATCH:
|
6845
|
+
调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,PodName为接口返回值中Response.BatchTaskDetail. PodList
|
6846
|
+
注:支持结尾通配符*
|
6847
|
+
:rtype: str
|
6848
|
+
"""
|
6849
|
+
return self._PodName
|
6850
|
+
|
6851
|
+
@PodName.setter
|
6852
|
+
def PodName(self, PodName):
|
6853
|
+
self._PodName = PodName
|
6854
|
+
|
6855
|
+
@property
|
6856
|
+
def Order(self):
|
6857
|
+
"""排序方向(可选值为ASC, DESC ),默认为DESC
|
6858
|
+
:rtype: str
|
6859
|
+
"""
|
6860
|
+
return self._Order
|
6861
|
+
|
6862
|
+
@Order.setter
|
6863
|
+
def Order(self, Order):
|
6864
|
+
self._Order = Order
|
6865
|
+
|
6866
|
+
@property
|
6867
|
+
def OrderField(self):
|
6868
|
+
"""按哪个字段排序(可选值为Timestamp),默认值为Timestamp
|
6869
|
+
:rtype: str
|
6870
|
+
"""
|
6871
|
+
return self._OrderField
|
6872
|
+
|
6873
|
+
@OrderField.setter
|
6874
|
+
def OrderField(self, OrderField):
|
6875
|
+
self._OrderField = OrderField
|
6876
|
+
|
6877
|
+
@property
|
6878
|
+
def Context(self):
|
6879
|
+
"""日志查询上下文,查询下一页的时候需要回传这个字段,该字段来自本接口的返回
|
6880
|
+
:rtype: str
|
6881
|
+
"""
|
6882
|
+
return self._Context
|
6883
|
+
|
6884
|
+
@Context.setter
|
6885
|
+
def Context(self, Context):
|
6886
|
+
self._Context = Context
|
6887
|
+
|
6888
|
+
@property
|
6889
|
+
def Filters(self):
|
6890
|
+
"""过滤条件
|
6891
|
+
注意:
|
6892
|
+
1. Filter.Name:目前只支持Key(也就是按关键字过滤日志)
|
6893
|
+
2. Filter.Values:表示过滤日志的关键字;Values为多个的时候表示同时满足
|
6894
|
+
3. Filter. Negative和Filter. Fuzzy没有使用
|
6895
|
+
:rtype: list of Filter
|
6896
|
+
"""
|
6897
|
+
return self._Filters
|
6898
|
+
|
6899
|
+
@Filters.setter
|
6900
|
+
def Filters(self, Filters):
|
6901
|
+
self._Filters = Filters
|
6902
|
+
|
6903
|
+
|
6904
|
+
def _deserialize(self, params):
|
6905
|
+
self._Service = params.get("Service")
|
6906
|
+
self._StartTime = params.get("StartTime")
|
6907
|
+
self._EndTime = params.get("EndTime")
|
6908
|
+
self._Limit = params.get("Limit")
|
6909
|
+
self._ServiceId = params.get("ServiceId")
|
6910
|
+
self._PodName = params.get("PodName")
|
6911
|
+
self._Order = params.get("Order")
|
6912
|
+
self._OrderField = params.get("OrderField")
|
6913
|
+
self._Context = params.get("Context")
|
6914
|
+
if params.get("Filters") is not None:
|
6915
|
+
self._Filters = []
|
6916
|
+
for item in params.get("Filters"):
|
6917
|
+
obj = Filter()
|
6918
|
+
obj._deserialize(item)
|
6919
|
+
self._Filters.append(obj)
|
6920
|
+
memeber_set = set(params.keys())
|
6921
|
+
for name, value in vars(self).items():
|
6922
|
+
property_name = name[1:]
|
6923
|
+
if property_name in memeber_set:
|
6924
|
+
memeber_set.remove(property_name)
|
6925
|
+
if len(memeber_set) > 0:
|
6926
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6927
|
+
|
6928
|
+
|
6929
|
+
|
6930
|
+
class DescribeLogsResponse(AbstractModel):
|
6931
|
+
"""DescribeLogs返回参数结构体
|
6932
|
+
|
6933
|
+
"""
|
6934
|
+
|
6935
|
+
def __init__(self):
|
6936
|
+
r"""
|
6937
|
+
:param _Context: 分页的游标
|
6938
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6939
|
+
:type Context: str
|
6940
|
+
:param _Content: 日志数组
|
6941
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6942
|
+
:type Content: list of LogIdentity
|
6943
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6944
|
+
:type RequestId: str
|
6945
|
+
"""
|
6946
|
+
self._Context = None
|
6947
|
+
self._Content = None
|
6948
|
+
self._RequestId = None
|
6949
|
+
|
6950
|
+
@property
|
6951
|
+
def Context(self):
|
6952
|
+
"""分页的游标
|
6953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6954
|
+
:rtype: str
|
6955
|
+
"""
|
6956
|
+
return self._Context
|
6957
|
+
|
6958
|
+
@Context.setter
|
6959
|
+
def Context(self, Context):
|
6960
|
+
self._Context = Context
|
6961
|
+
|
6962
|
+
@property
|
6963
|
+
def Content(self):
|
6964
|
+
"""日志数组
|
6965
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6966
|
+
:rtype: list of LogIdentity
|
6967
|
+
"""
|
6968
|
+
return self._Content
|
6969
|
+
|
6970
|
+
@Content.setter
|
6971
|
+
def Content(self, Content):
|
6972
|
+
self._Content = Content
|
6973
|
+
|
6974
|
+
@property
|
6975
|
+
def RequestId(self):
|
6976
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6977
|
+
:rtype: str
|
6978
|
+
"""
|
6979
|
+
return self._RequestId
|
6980
|
+
|
6981
|
+
@RequestId.setter
|
6982
|
+
def RequestId(self, RequestId):
|
6983
|
+
self._RequestId = RequestId
|
6984
|
+
|
6985
|
+
|
6986
|
+
def _deserialize(self, params):
|
6987
|
+
self._Context = params.get("Context")
|
6988
|
+
if params.get("Content") is not None:
|
6989
|
+
self._Content = []
|
6990
|
+
for item in params.get("Content"):
|
6991
|
+
obj = LogIdentity()
|
6992
|
+
obj._deserialize(item)
|
6993
|
+
self._Content.append(obj)
|
6994
|
+
self._RequestId = params.get("RequestId")
|
6995
|
+
|
6996
|
+
|
6702
6997
|
class DescribeModelAccelerateTaskRequest(AbstractModel):
|
6703
6998
|
"""DescribeModelAccelerateTask请求参数结构体
|
6704
6999
|
|
@@ -10535,6 +10830,95 @@ class LogConfig(AbstractModel):
|
|
10535
10830
|
|
10536
10831
|
|
10537
10832
|
|
10833
|
+
class LogIdentity(AbstractModel):
|
10834
|
+
"""单条日志数据结构
|
10835
|
+
|
10836
|
+
"""
|
10837
|
+
|
10838
|
+
def __init__(self):
|
10839
|
+
r"""
|
10840
|
+
:param _Id: 单条日志的ID
|
10841
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10842
|
+
:type Id: str
|
10843
|
+
:param _Message: 单条日志的内容
|
10844
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10845
|
+
:type Message: str
|
10846
|
+
:param _PodName: 这条日志对应的Pod名称
|
10847
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10848
|
+
:type PodName: str
|
10849
|
+
:param _Timestamp: 日志的时间戳(RFC3339格式的时间字符串)
|
10850
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10851
|
+
:type Timestamp: str
|
10852
|
+
"""
|
10853
|
+
self._Id = None
|
10854
|
+
self._Message = None
|
10855
|
+
self._PodName = None
|
10856
|
+
self._Timestamp = None
|
10857
|
+
|
10858
|
+
@property
|
10859
|
+
def Id(self):
|
10860
|
+
"""单条日志的ID
|
10861
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10862
|
+
:rtype: str
|
10863
|
+
"""
|
10864
|
+
return self._Id
|
10865
|
+
|
10866
|
+
@Id.setter
|
10867
|
+
def Id(self, Id):
|
10868
|
+
self._Id = Id
|
10869
|
+
|
10870
|
+
@property
|
10871
|
+
def Message(self):
|
10872
|
+
"""单条日志的内容
|
10873
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10874
|
+
:rtype: str
|
10875
|
+
"""
|
10876
|
+
return self._Message
|
10877
|
+
|
10878
|
+
@Message.setter
|
10879
|
+
def Message(self, Message):
|
10880
|
+
self._Message = Message
|
10881
|
+
|
10882
|
+
@property
|
10883
|
+
def PodName(self):
|
10884
|
+
"""这条日志对应的Pod名称
|
10885
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10886
|
+
:rtype: str
|
10887
|
+
"""
|
10888
|
+
return self._PodName
|
10889
|
+
|
10890
|
+
@PodName.setter
|
10891
|
+
def PodName(self, PodName):
|
10892
|
+
self._PodName = PodName
|
10893
|
+
|
10894
|
+
@property
|
10895
|
+
def Timestamp(self):
|
10896
|
+
"""日志的时间戳(RFC3339格式的时间字符串)
|
10897
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10898
|
+
:rtype: str
|
10899
|
+
"""
|
10900
|
+
return self._Timestamp
|
10901
|
+
|
10902
|
+
@Timestamp.setter
|
10903
|
+
def Timestamp(self, Timestamp):
|
10904
|
+
self._Timestamp = Timestamp
|
10905
|
+
|
10906
|
+
|
10907
|
+
def _deserialize(self, params):
|
10908
|
+
self._Id = params.get("Id")
|
10909
|
+
self._Message = params.get("Message")
|
10910
|
+
self._PodName = params.get("PodName")
|
10911
|
+
self._Timestamp = params.get("Timestamp")
|
10912
|
+
memeber_set = set(params.keys())
|
10913
|
+
for name, value in vars(self).items():
|
10914
|
+
property_name = name[1:]
|
10915
|
+
if property_name in memeber_set:
|
10916
|
+
memeber_set.remove(property_name)
|
10917
|
+
if len(memeber_set) > 0:
|
10918
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
10919
|
+
|
10920
|
+
|
10921
|
+
|
10538
10922
|
class Message(AbstractModel):
|
10539
10923
|
"""对话输入内容
|
10540
10924
|
|
@@ -534,6 +534,29 @@ class TioneClient(AbstractClient):
|
|
534
534
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
535
535
|
|
536
536
|
|
537
|
+
def DescribeLogs(self, request):
|
538
|
+
"""获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
|
539
|
+
|
540
|
+
:param request: Request instance for DescribeLogs.
|
541
|
+
:type request: :class:`tencentcloud.tione.v20211111.models.DescribeLogsRequest`
|
542
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.DescribeLogsResponse`
|
543
|
+
|
544
|
+
"""
|
545
|
+
try:
|
546
|
+
params = request._serialize()
|
547
|
+
headers = request.headers
|
548
|
+
body = self.call("DescribeLogs", params, headers=headers)
|
549
|
+
response = json.loads(body)
|
550
|
+
model = models.DescribeLogsResponse()
|
551
|
+
model._deserialize(response["Response"])
|
552
|
+
return model
|
553
|
+
except Exception as e:
|
554
|
+
if isinstance(e, TencentCloudSDKException):
|
555
|
+
raise
|
556
|
+
else:
|
557
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
558
|
+
|
559
|
+
|
537
560
|
def DescribeModelAccelerateTask(self, request):
|
538
561
|
"""查询模型优化任务详情
|
539
562
|
|