tencentcloud-sdk-python-wedata 3.1.178__tar.gz → 3.1.184__tar.gz

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.
Files changed (22) hide show
  1. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/setup.py +1 -1
  3. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20250806/models.py +482 -0
  5. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20250806/wedata_client.py +23 -0
  6. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20250806/wedata_client_async.py +18 -0
  7. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud_sdk_python_wedata.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_wedata-3.1.184/tencentcloud_sdk_python_wedata.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_wedata-3.1.178/tencentcloud_sdk_python_wedata.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/README.rst +0 -0
  11. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/__init__.py +0 -0
  13. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20210820/__init__.py +0 -0
  14. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20210820/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20210820/models.py +0 -0
  16. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20210820/wedata_client.py +0 -0
  17. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20210820/wedata_client_async.py +0 -0
  18. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20250806/__init__.py +0 -0
  19. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud/wedata/v20250806/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud_sdk_python_wedata.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud_sdk_python_wedata.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_wedata-3.1.178 → tencentcloud_sdk_python_wedata-3.1.184}/tencentcloud_sdk_python_wedata.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-wedata
3
- Version: 3.1.178
3
+ Version: 3.1.184
4
4
  Summary: Tencent Cloud Wedata 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.178
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.184
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-wedata',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.178,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.184,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Wedata SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.178'
17
+ __version__ = '3.1.184'
@@ -17539,6 +17539,117 @@ class GetSQLFolderResponse(AbstractModel):
17539
17539
  self._RequestId = params.get("RequestId")
17540
17540
 
17541
17541
 
17542
+ class GetSQLRunResultRequest(AbstractModel):
17543
+ r"""GetSQLRunResult请求参数结构体
17544
+
17545
+ """
17546
+
17547
+ def __init__(self):
17548
+ r"""
17549
+ :param _ProjectId: 项目ID
17550
+ :type ProjectId: str
17551
+ :param _JobId: 查询任务ID,由 RunSQLScript 返回
17552
+ :type JobId: str
17553
+ :param _JobExecutionId: 子查询任务运行ID。不传则返回该任务下全部子查询的结果
17554
+ :type JobExecutionId: str
17555
+ """
17556
+ self._ProjectId = None
17557
+ self._JobId = None
17558
+ self._JobExecutionId = None
17559
+
17560
+ @property
17561
+ def ProjectId(self):
17562
+ r"""项目ID
17563
+ :rtype: str
17564
+ """
17565
+ return self._ProjectId
17566
+
17567
+ @ProjectId.setter
17568
+ def ProjectId(self, ProjectId):
17569
+ self._ProjectId = ProjectId
17570
+
17571
+ @property
17572
+ def JobId(self):
17573
+ r"""查询任务ID,由 RunSQLScript 返回
17574
+ :rtype: str
17575
+ """
17576
+ return self._JobId
17577
+
17578
+ @JobId.setter
17579
+ def JobId(self, JobId):
17580
+ self._JobId = JobId
17581
+
17582
+ @property
17583
+ def JobExecutionId(self):
17584
+ r"""子查询任务运行ID。不传则返回该任务下全部子查询的结果
17585
+ :rtype: str
17586
+ """
17587
+ return self._JobExecutionId
17588
+
17589
+ @JobExecutionId.setter
17590
+ def JobExecutionId(self, JobExecutionId):
17591
+ self._JobExecutionId = JobExecutionId
17592
+
17593
+
17594
+ def _deserialize(self, params):
17595
+ self._ProjectId = params.get("ProjectId")
17596
+ self._JobId = params.get("JobId")
17597
+ self._JobExecutionId = params.get("JobExecutionId")
17598
+ memeber_set = set(params.keys())
17599
+ for name, value in vars(self).items():
17600
+ property_name = name[1:]
17601
+ if property_name in memeber_set:
17602
+ memeber_set.remove(property_name)
17603
+ if len(memeber_set) > 0:
17604
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17605
+
17606
+
17607
+
17608
+ class GetSQLRunResultResponse(AbstractModel):
17609
+ r"""GetSQLRunResult返回参数结构体
17610
+
17611
+ """
17612
+
17613
+ def __init__(self):
17614
+ r"""
17615
+ :param _Data: SQL查询结果
17616
+ :type Data: :class:`tencentcloud.wedata.v20250806.models.SqlRunResult`
17617
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17618
+ :type RequestId: str
17619
+ """
17620
+ self._Data = None
17621
+ self._RequestId = None
17622
+
17623
+ @property
17624
+ def Data(self):
17625
+ r"""SQL查询结果
17626
+ :rtype: :class:`tencentcloud.wedata.v20250806.models.SqlRunResult`
17627
+ """
17628
+ return self._Data
17629
+
17630
+ @Data.setter
17631
+ def Data(self, Data):
17632
+ self._Data = Data
17633
+
17634
+ @property
17635
+ def RequestId(self):
17636
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17637
+ :rtype: str
17638
+ """
17639
+ return self._RequestId
17640
+
17641
+ @RequestId.setter
17642
+ def RequestId(self, RequestId):
17643
+ self._RequestId = RequestId
17644
+
17645
+
17646
+ def _deserialize(self, params):
17647
+ if params.get("Data") is not None:
17648
+ self._Data = SqlRunResult()
17649
+ self._Data._deserialize(params.get("Data"))
17650
+ self._RequestId = params.get("RequestId")
17651
+
17652
+
17542
17653
  class GetSQLScriptRequest(AbstractModel):
17543
17654
  r"""GetSQLScript请求参数结构体
17544
17655
 
@@ -46668,6 +46779,61 @@ class ResourceType(AbstractModel):
46668
46779
 
46669
46780
 
46670
46781
 
46782
+ class ResultColumnInfo(AbstractModel):
46783
+ r"""查询结果字段信息
46784
+
46785
+ """
46786
+
46787
+ def __init__(self):
46788
+ r"""
46789
+ :param _ColumnName: 字段名称
46790
+ 注意:此字段可能返回 null,表示取不到有效值。
46791
+ :type ColumnName: str
46792
+ :param _ColumnType: 字段类型,如 int、string、bigint 等
46793
+ 注意:此字段可能返回 null,表示取不到有效值。
46794
+ :type ColumnType: str
46795
+ """
46796
+ self._ColumnName = None
46797
+ self._ColumnType = None
46798
+
46799
+ @property
46800
+ def ColumnName(self):
46801
+ r"""字段名称
46802
+ 注意:此字段可能返回 null,表示取不到有效值。
46803
+ :rtype: str
46804
+ """
46805
+ return self._ColumnName
46806
+
46807
+ @ColumnName.setter
46808
+ def ColumnName(self, ColumnName):
46809
+ self._ColumnName = ColumnName
46810
+
46811
+ @property
46812
+ def ColumnType(self):
46813
+ r"""字段类型,如 int、string、bigint 等
46814
+ 注意:此字段可能返回 null,表示取不到有效值。
46815
+ :rtype: str
46816
+ """
46817
+ return self._ColumnType
46818
+
46819
+ @ColumnType.setter
46820
+ def ColumnType(self, ColumnType):
46821
+ self._ColumnType = ColumnType
46822
+
46823
+
46824
+ def _deserialize(self, params):
46825
+ self._ColumnName = params.get("ColumnName")
46826
+ self._ColumnType = params.get("ColumnType")
46827
+ memeber_set = set(params.keys())
46828
+ for name, value in vars(self).items():
46829
+ property_name = name[1:]
46830
+ if property_name in memeber_set:
46831
+ memeber_set.remove(property_name)
46832
+ if len(memeber_set) > 0:
46833
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
46834
+
46835
+
46836
+
46671
46837
  class RevokeDataSourceAuthorizationRequest(AbstractModel):
46672
46838
  r"""RevokeDataSourceAuthorization请求参数结构体
46673
46839
 
@@ -48122,6 +48288,322 @@ class SqlCreateResult(AbstractModel):
48122
48288
 
48123
48289
 
48124
48290
 
48291
+ class SqlRunExecutionResult(AbstractModel):
48292
+ r"""单个子查询(对应一条 SQL 语句)的查询结果
48293
+
48294
+ """
48295
+
48296
+ def __init__(self):
48297
+ r"""
48298
+ :param _JobExecutionId: 子查询任务运行ID
48299
+ 注意:此字段可能返回 null,表示取不到有效值。
48300
+ :type JobExecutionId: str
48301
+ :param _Status: 子查询状态:SUCCESS、FAILED、TERMINATED、CANCELED 等
48302
+ 注意:此字段可能返回 null,表示取不到有效值。
48303
+ :type Status: str
48304
+ :param _Columns: 结果集字段信息;非查询类语句(INSERT/CREATE 等)为空列表
48305
+ 注意:此字段可能返回 null,表示取不到有效值。
48306
+ :type Columns: list of ResultColumnInfo
48307
+ :param _Rows: 结果数据行,每个元素的 Values 顺序与 Columns 一致
48308
+ 注意:此字段可能返回 null,表示取不到有效值。
48309
+ :type Rows: list of SqlRunResultRow
48310
+ :param _Total: 本子查询的预览结果行数。预览行数上限遵循「项目管理-数据分析配置-单次运行的预览行数上限」,由执行平台在结果产出阶段截断
48311
+ 注意:此字段可能返回 null,表示取不到有效值。
48312
+ :type Total: int
48313
+ :param _CostMs: 本子查询耗时,单位毫秒
48314
+ 注意:此字段可能返回 null,表示取不到有效值。
48315
+ :type CostMs: int
48316
+ :param _Truncated: 本子查询结果是否不完整。返回数据总大小超过 10MB、或结果文件已被清理导致读取不完整时为 true
48317
+ 注意:此字段可能返回 null,表示取不到有效值。
48318
+ :type Truncated: bool
48319
+ """
48320
+ self._JobExecutionId = None
48321
+ self._Status = None
48322
+ self._Columns = None
48323
+ self._Rows = None
48324
+ self._Total = None
48325
+ self._CostMs = None
48326
+ self._Truncated = None
48327
+
48328
+ @property
48329
+ def JobExecutionId(self):
48330
+ r"""子查询任务运行ID
48331
+ 注意:此字段可能返回 null,表示取不到有效值。
48332
+ :rtype: str
48333
+ """
48334
+ return self._JobExecutionId
48335
+
48336
+ @JobExecutionId.setter
48337
+ def JobExecutionId(self, JobExecutionId):
48338
+ self._JobExecutionId = JobExecutionId
48339
+
48340
+ @property
48341
+ def Status(self):
48342
+ r"""子查询状态:SUCCESS、FAILED、TERMINATED、CANCELED 等
48343
+ 注意:此字段可能返回 null,表示取不到有效值。
48344
+ :rtype: str
48345
+ """
48346
+ return self._Status
48347
+
48348
+ @Status.setter
48349
+ def Status(self, Status):
48350
+ self._Status = Status
48351
+
48352
+ @property
48353
+ def Columns(self):
48354
+ r"""结果集字段信息;非查询类语句(INSERT/CREATE 等)为空列表
48355
+ 注意:此字段可能返回 null,表示取不到有效值。
48356
+ :rtype: list of ResultColumnInfo
48357
+ """
48358
+ return self._Columns
48359
+
48360
+ @Columns.setter
48361
+ def Columns(self, Columns):
48362
+ self._Columns = Columns
48363
+
48364
+ @property
48365
+ def Rows(self):
48366
+ r"""结果数据行,每个元素的 Values 顺序与 Columns 一致
48367
+ 注意:此字段可能返回 null,表示取不到有效值。
48368
+ :rtype: list of SqlRunResultRow
48369
+ """
48370
+ return self._Rows
48371
+
48372
+ @Rows.setter
48373
+ def Rows(self, Rows):
48374
+ self._Rows = Rows
48375
+
48376
+ @property
48377
+ def Total(self):
48378
+ r"""本子查询的预览结果行数。预览行数上限遵循「项目管理-数据分析配置-单次运行的预览行数上限」,由执行平台在结果产出阶段截断
48379
+ 注意:此字段可能返回 null,表示取不到有效值。
48380
+ :rtype: int
48381
+ """
48382
+ return self._Total
48383
+
48384
+ @Total.setter
48385
+ def Total(self, Total):
48386
+ self._Total = Total
48387
+
48388
+ @property
48389
+ def CostMs(self):
48390
+ r"""本子查询耗时,单位毫秒
48391
+ 注意:此字段可能返回 null,表示取不到有效值。
48392
+ :rtype: int
48393
+ """
48394
+ return self._CostMs
48395
+
48396
+ @CostMs.setter
48397
+ def CostMs(self, CostMs):
48398
+ self._CostMs = CostMs
48399
+
48400
+ @property
48401
+ def Truncated(self):
48402
+ r"""本子查询结果是否不完整。返回数据总大小超过 10MB、或结果文件已被清理导致读取不完整时为 true
48403
+ 注意:此字段可能返回 null,表示取不到有效值。
48404
+ :rtype: bool
48405
+ """
48406
+ return self._Truncated
48407
+
48408
+ @Truncated.setter
48409
+ def Truncated(self, Truncated):
48410
+ self._Truncated = Truncated
48411
+
48412
+
48413
+ def _deserialize(self, params):
48414
+ self._JobExecutionId = params.get("JobExecutionId")
48415
+ self._Status = params.get("Status")
48416
+ if params.get("Columns") is not None:
48417
+ self._Columns = []
48418
+ for item in params.get("Columns"):
48419
+ obj = ResultColumnInfo()
48420
+ obj._deserialize(item)
48421
+ self._Columns.append(obj)
48422
+ if params.get("Rows") is not None:
48423
+ self._Rows = []
48424
+ for item in params.get("Rows"):
48425
+ obj = SqlRunResultRow()
48426
+ obj._deserialize(item)
48427
+ self._Rows.append(obj)
48428
+ self._Total = params.get("Total")
48429
+ self._CostMs = params.get("CostMs")
48430
+ self._Truncated = params.get("Truncated")
48431
+ memeber_set = set(params.keys())
48432
+ for name, value in vars(self).items():
48433
+ property_name = name[1:]
48434
+ if property_name in memeber_set:
48435
+ memeber_set.remove(property_name)
48436
+ if len(memeber_set) > 0:
48437
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
48438
+
48439
+
48440
+
48441
+ class SqlRunResult(AbstractModel):
48442
+ r"""GetSQLRunResult 出参:一个查询任务下全部(或指定)子查询的结果集合
48443
+
48444
+ """
48445
+
48446
+ def __init__(self):
48447
+ r"""
48448
+ :param _JobId: 查询任务ID
48449
+ 注意:此字段可能返回 null,表示取不到有效值。
48450
+ :type JobId: str
48451
+ :param _Status: 查询任务状态。终态取值:SUCCESS(成功)、FAILED(失败)、TERMINATED(已终止)、CANCELED(已取消);非终态取值:QUEUED(排队中)、RUNNING(执行中)。非终态时不报错,Results 返回空数组,调用方应指数退避轮询直至进入终态
48452
+ 注意:此字段可能返回 null,表示取不到有效值。
48453
+ :type Status: str
48454
+ :param _StatusMessage: 当前状态的可读说明,任意状态下均有值。用于说明 Results 为空的具体原因并给出下一步动作建议:任务未完成时提示稍后以相同 JobId 重试;任务失败/终止/取消时提示无结果数据及后续处理;成功且结果被截断时提示缩小查询范围。命名上与云API错误响应的 Error.Message 区分,本字段描述的是业务状态而非错误信息。随 Language 参数国际化
48455
+ 注意:此字段可能返回 null,表示取不到有效值。
48456
+ :type StatusMessage: str
48457
+ :param _CostMs: 查询任务总耗时,单位毫秒
48458
+ 注意:此字段可能返回 null,表示取不到有效值。
48459
+ :type CostMs: int
48460
+ :param _Truncated: 是否存在结果不完整的子查询。任一子查询的 Truncated 为 true 时本字段为 true
48461
+ 注意:此字段可能返回 null,表示取不到有效值。
48462
+ :type Truncated: bool
48463
+ :param _Results: 各子查询的结果列表,顺序与 SQL 语句执行顺序一致
48464
+ 注意:此字段可能返回 null,表示取不到有效值。
48465
+ :type Results: list of SqlRunExecutionResult
48466
+ """
48467
+ self._JobId = None
48468
+ self._Status = None
48469
+ self._StatusMessage = None
48470
+ self._CostMs = None
48471
+ self._Truncated = None
48472
+ self._Results = None
48473
+
48474
+ @property
48475
+ def JobId(self):
48476
+ r"""查询任务ID
48477
+ 注意:此字段可能返回 null,表示取不到有效值。
48478
+ :rtype: str
48479
+ """
48480
+ return self._JobId
48481
+
48482
+ @JobId.setter
48483
+ def JobId(self, JobId):
48484
+ self._JobId = JobId
48485
+
48486
+ @property
48487
+ def Status(self):
48488
+ r"""查询任务状态。终态取值:SUCCESS(成功)、FAILED(失败)、TERMINATED(已终止)、CANCELED(已取消);非终态取值:QUEUED(排队中)、RUNNING(执行中)。非终态时不报错,Results 返回空数组,调用方应指数退避轮询直至进入终态
48489
+ 注意:此字段可能返回 null,表示取不到有效值。
48490
+ :rtype: str
48491
+ """
48492
+ return self._Status
48493
+
48494
+ @Status.setter
48495
+ def Status(self, Status):
48496
+ self._Status = Status
48497
+
48498
+ @property
48499
+ def StatusMessage(self):
48500
+ r"""当前状态的可读说明,任意状态下均有值。用于说明 Results 为空的具体原因并给出下一步动作建议:任务未完成时提示稍后以相同 JobId 重试;任务失败/终止/取消时提示无结果数据及后续处理;成功且结果被截断时提示缩小查询范围。命名上与云API错误响应的 Error.Message 区分,本字段描述的是业务状态而非错误信息。随 Language 参数国际化
48501
+ 注意:此字段可能返回 null,表示取不到有效值。
48502
+ :rtype: str
48503
+ """
48504
+ return self._StatusMessage
48505
+
48506
+ @StatusMessage.setter
48507
+ def StatusMessage(self, StatusMessage):
48508
+ self._StatusMessage = StatusMessage
48509
+
48510
+ @property
48511
+ def CostMs(self):
48512
+ r"""查询任务总耗时,单位毫秒
48513
+ 注意:此字段可能返回 null,表示取不到有效值。
48514
+ :rtype: int
48515
+ """
48516
+ return self._CostMs
48517
+
48518
+ @CostMs.setter
48519
+ def CostMs(self, CostMs):
48520
+ self._CostMs = CostMs
48521
+
48522
+ @property
48523
+ def Truncated(self):
48524
+ r"""是否存在结果不完整的子查询。任一子查询的 Truncated 为 true 时本字段为 true
48525
+ 注意:此字段可能返回 null,表示取不到有效值。
48526
+ :rtype: bool
48527
+ """
48528
+ return self._Truncated
48529
+
48530
+ @Truncated.setter
48531
+ def Truncated(self, Truncated):
48532
+ self._Truncated = Truncated
48533
+
48534
+ @property
48535
+ def Results(self):
48536
+ r"""各子查询的结果列表,顺序与 SQL 语句执行顺序一致
48537
+ 注意:此字段可能返回 null,表示取不到有效值。
48538
+ :rtype: list of SqlRunExecutionResult
48539
+ """
48540
+ return self._Results
48541
+
48542
+ @Results.setter
48543
+ def Results(self, Results):
48544
+ self._Results = Results
48545
+
48546
+
48547
+ def _deserialize(self, params):
48548
+ self._JobId = params.get("JobId")
48549
+ self._Status = params.get("Status")
48550
+ self._StatusMessage = params.get("StatusMessage")
48551
+ self._CostMs = params.get("CostMs")
48552
+ self._Truncated = params.get("Truncated")
48553
+ if params.get("Results") is not None:
48554
+ self._Results = []
48555
+ for item in params.get("Results"):
48556
+ obj = SqlRunExecutionResult()
48557
+ obj._deserialize(item)
48558
+ self._Results.append(obj)
48559
+ memeber_set = set(params.keys())
48560
+ for name, value in vars(self).items():
48561
+ property_name = name[1:]
48562
+ if property_name in memeber_set:
48563
+ memeber_set.remove(property_name)
48564
+ if len(memeber_set) > 0:
48565
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
48566
+
48567
+
48568
+
48569
+ class SqlRunResultRow(AbstractModel):
48570
+ r"""查询结果的单行数据。云API 数据结构不支持二维数组,故将一行数据包装为对象。
48571
+
48572
+ """
48573
+
48574
+ def __init__(self):
48575
+ r"""
48576
+ :param _Values: 该行各单元格取值,顺序与 Columns 一致。均为字符串:底层预览结果为 CSV 格式不携带类型信息,字段真实类型参见 Columns[].ColumnType
48577
+ 注意:此字段可能返回 null,表示取不到有效值。
48578
+ :type Values: list of str
48579
+ """
48580
+ self._Values = None
48581
+
48582
+ @property
48583
+ def Values(self):
48584
+ r"""该行各单元格取值,顺序与 Columns 一致。均为字符串:底层预览结果为 CSV 格式不携带类型信息,字段真实类型参见 Columns[].ColumnType
48585
+ 注意:此字段可能返回 null,表示取不到有效值。
48586
+ :rtype: list of str
48587
+ """
48588
+ return self._Values
48589
+
48590
+ @Values.setter
48591
+ def Values(self, Values):
48592
+ self._Values = Values
48593
+
48594
+
48595
+ def _deserialize(self, params):
48596
+ self._Values = params.get("Values")
48597
+ memeber_set = set(params.keys())
48598
+ for name, value in vars(self).items():
48599
+ property_name = name[1:]
48600
+ if property_name in memeber_set:
48601
+ memeber_set.remove(property_name)
48602
+ if len(memeber_set) > 0:
48603
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
48604
+
48605
+
48606
+
48125
48607
  class StartOpsTasksRequest(AbstractModel):
48126
48608
  r"""StartOpsTasks请求参数结构体
48127
48609
 
@@ -1705,6 +1705,29 @@ class WedataClient(AbstractClient):
1705
1705
  raise TencentCloudSDKException(type(e).__name__, str(e))
1706
1706
 
1707
1707
 
1708
+ def GetSQLRunResult(self, request):
1709
+ r"""获取SQL查询任务的数据结果。直接返回预览数据结果,而非预览结果文件路径。不传 JobExecutionId 时返回该任务下全部子查询的结果数组。返回数据总大小不超过 10MB。任务处于非终态(QUEUED/RUNNING)时不报错,返回当前 Status 与空的 Results 数组,并通过 StatusMessage 说明原因,调用方应采用指数退避策略轮询直至进入终态。
1710
+
1711
+ :param request: Request instance for GetSQLRunResult.
1712
+ :type request: :class:`tencentcloud.wedata.v20250806.models.GetSQLRunResultRequest`
1713
+ :rtype: :class:`tencentcloud.wedata.v20250806.models.GetSQLRunResultResponse`
1714
+
1715
+ """
1716
+ try:
1717
+ params = request._serialize()
1718
+ headers = request.headers
1719
+ body = self.call("GetSQLRunResult", params, headers=headers)
1720
+ response = json.loads(body)
1721
+ model = models.GetSQLRunResultResponse()
1722
+ model._deserialize(response["Response"])
1723
+ return model
1724
+ except Exception as e:
1725
+ if isinstance(e, TencentCloudSDKException):
1726
+ raise
1727
+ else:
1728
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1729
+
1730
+
1708
1731
  def GetSQLScript(self, request):
1709
1732
  r"""查询脚本详情
1710
1733
 
@@ -1339,6 +1339,24 @@ class WedataClient(AbstractClient):
1339
1339
 
1340
1340
  return await self.call_and_deserialize(**kwargs)
1341
1341
 
1342
+ async def GetSQLRunResult(
1343
+ self,
1344
+ request: models.GetSQLRunResultRequest,
1345
+ opts: Dict = None,
1346
+ ) -> models.GetSQLRunResultResponse:
1347
+ """
1348
+ 获取SQL查询任务的数据结果。直接返回预览数据结果,而非预览结果文件路径。不传 JobExecutionId 时返回该任务下全部子查询的结果数组。返回数据总大小不超过 10MB。任务处于非终态(QUEUED/RUNNING)时不报错,返回当前 Status 与空的 Results 数组,并通过 StatusMessage 说明原因,调用方应采用指数退避策略轮询直至进入终态。
1349
+ """
1350
+
1351
+ kwargs = {}
1352
+ kwargs["action"] = "GetSQLRunResult"
1353
+ kwargs["params"] = request._serialize()
1354
+ kwargs["resp_cls"] = models.GetSQLRunResultResponse
1355
+ kwargs["headers"] = request.headers
1356
+ kwargs["opts"] = opts or {}
1357
+
1358
+ return await self.call_and_deserialize(**kwargs)
1359
+
1342
1360
  async def GetSQLScript(
1343
1361
  self,
1344
1362
  request: models.GetSQLScriptRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-wedata
3
- Version: 3.1.178
3
+ Version: 3.1.184
4
4
  Summary: Tencent Cloud Wedata 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.178
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.184
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.184
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.178