tencentcloud-sdk-python-adp 3.1.124__tar.gz → 3.1.126__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 (17) hide show
  1. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/setup.py +1 -1
  3. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/adp/v20260520/adp_client.py +23 -0
  5. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/adp/v20260520/adp_client_async.py +18 -0
  6. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/adp/v20260520/models.py +134 -10
  7. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud_sdk_python_adp.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_adp-3.1.126/tencentcloud_sdk_python_adp.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_adp-3.1.124/tencentcloud_sdk_python_adp.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/README.rst +0 -0
  11. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/adp/__init__.py +0 -0
  13. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/adp/v20260520/__init__.py +0 -0
  14. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud/adp/v20260520/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud_sdk_python_adp.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud_sdk_python_adp.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_adp-3.1.124 → tencentcloud_sdk_python_adp-3.1.126}/tencentcloud_sdk_python_adp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-adp
3
- Version: 3.1.124
3
+ Version: 3.1.126
4
4
  Summary: Tencent Cloud Adp 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.124
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.126
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-adp',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.124,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.126,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Adp SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.124'
17
+ __version__ = '3.1.126'
@@ -26,6 +26,29 @@ class AdpClient(AbstractClient):
26
26
  _service = 'adp'
27
27
 
28
28
 
29
+ def CopyAgentFromApp(self, request):
30
+ r"""创建Agent
31
+
32
+ :param request: Request instance for CopyAgentFromApp.
33
+ :type request: :class:`tencentcloud.adp.v20260520.models.CopyAgentFromAppRequest`
34
+ :rtype: :class:`tencentcloud.adp.v20260520.models.CopyAgentFromAppResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CopyAgentFromApp", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CopyAgentFromAppResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
29
52
  def CopyApp(self, request):
30
53
  r"""复制应用
31
54
 
@@ -25,6 +25,24 @@ class AdpClient(AbstractClient):
25
25
  _endpoint = 'adp.tencentcloudapi.com'
26
26
  _service = 'adp'
27
27
 
28
+ async def CopyAgentFromApp(
29
+ self,
30
+ request: models.CopyAgentFromAppRequest,
31
+ opts: Dict = None,
32
+ ) -> models.CopyAgentFromAppResponse:
33
+ """
34
+ 创建Agent
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "CopyAgentFromApp"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.CopyAgentFromAppResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
28
46
  async def CopyApp(
29
47
  self,
30
48
  request: models.CopyAppRequest,
@@ -6450,6 +6450,115 @@ class ConversationWorkspace(AbstractModel):
6450
6450
 
6451
6451
 
6452
6452
 
6453
+ class CopyAgentFromAppRequest(AbstractModel):
6454
+ r"""CopyAgentFromApp请求参数结构体
6455
+
6456
+ """
6457
+
6458
+ def __init__(self):
6459
+ r"""
6460
+ :param _AppId: <p>应用Id</p>
6461
+ :type AppId: str
6462
+ :param _TargetAppId: <p>目标应用ID,kind=0时需传入</p>
6463
+ :type TargetAppId: str
6464
+ :param _Kind: <p>Agent 类型,区分 B 端配置态 Agent 与 C 端用户态 Agent</p><p>枚举值:</p><ul><li>0: 配置端Agent </li><li>1: 用户态 Agent</li></ul>
6465
+ :type Kind: int
6466
+ """
6467
+ self._AppId = None
6468
+ self._TargetAppId = None
6469
+ self._Kind = None
6470
+
6471
+ @property
6472
+ def AppId(self):
6473
+ r"""<p>应用Id</p>
6474
+ :rtype: str
6475
+ """
6476
+ return self._AppId
6477
+
6478
+ @AppId.setter
6479
+ def AppId(self, AppId):
6480
+ self._AppId = AppId
6481
+
6482
+ @property
6483
+ def TargetAppId(self):
6484
+ r"""<p>目标应用ID,kind=0时需传入</p>
6485
+ :rtype: str
6486
+ """
6487
+ return self._TargetAppId
6488
+
6489
+ @TargetAppId.setter
6490
+ def TargetAppId(self, TargetAppId):
6491
+ self._TargetAppId = TargetAppId
6492
+
6493
+ @property
6494
+ def Kind(self):
6495
+ r"""<p>Agent 类型,区分 B 端配置态 Agent 与 C 端用户态 Agent</p><p>枚举值:</p><ul><li>0: 配置端Agent </li><li>1: 用户态 Agent</li></ul>
6496
+ :rtype: int
6497
+ """
6498
+ return self._Kind
6499
+
6500
+ @Kind.setter
6501
+ def Kind(self, Kind):
6502
+ self._Kind = Kind
6503
+
6504
+
6505
+ def _deserialize(self, params):
6506
+ self._AppId = params.get("AppId")
6507
+ self._TargetAppId = params.get("TargetAppId")
6508
+ self._Kind = params.get("Kind")
6509
+ memeber_set = set(params.keys())
6510
+ for name, value in vars(self).items():
6511
+ property_name = name[1:]
6512
+ if property_name in memeber_set:
6513
+ memeber_set.remove(property_name)
6514
+ if len(memeber_set) > 0:
6515
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6516
+
6517
+
6518
+
6519
+ class CopyAgentFromAppResponse(AbstractModel):
6520
+ r"""CopyAgentFromApp返回参数结构体
6521
+
6522
+ """
6523
+
6524
+ def __init__(self):
6525
+ r"""
6526
+ :param _ParentAgentId: <p>主 Agent Id</p>
6527
+ :type ParentAgentId: str
6528
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6529
+ :type RequestId: str
6530
+ """
6531
+ self._ParentAgentId = None
6532
+ self._RequestId = None
6533
+
6534
+ @property
6535
+ def ParentAgentId(self):
6536
+ r"""<p>主 Agent Id</p>
6537
+ :rtype: str
6538
+ """
6539
+ return self._ParentAgentId
6540
+
6541
+ @ParentAgentId.setter
6542
+ def ParentAgentId(self, ParentAgentId):
6543
+ self._ParentAgentId = ParentAgentId
6544
+
6545
+ @property
6546
+ def RequestId(self):
6547
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6548
+ :rtype: str
6549
+ """
6550
+ return self._RequestId
6551
+
6552
+ @RequestId.setter
6553
+ def RequestId(self, RequestId):
6554
+ self._RequestId = RequestId
6555
+
6556
+
6557
+ def _deserialize(self, params):
6558
+ self._ParentAgentId = params.get("ParentAgentId")
6559
+ self._RequestId = params.get("RequestId")
6560
+
6561
+
6453
6562
  class CopyAppRequest(AbstractModel):
6454
6563
  r"""CopyApp请求参数结构体
6455
6564
 
@@ -15689,26 +15798,29 @@ class SingleWorkflowConfig(AbstractModel):
15689
15798
 
15690
15799
  def __init__(self):
15691
15800
  r"""
15692
- :param _AsyncWorkflow: 是否开启异步工作流
15801
+ :param _AsyncWorkflow: <p>是否开启异步工作流</p>
15693
15802
  :type AsyncWorkflow: bool
15694
- :param _Status: 状态 发布状态(UNPUBLISHED: 待发布 PUBLISHING: 发布中 PUBLISHED: 已发布 PUBLISHED_FAIL:发布失败;DRAFT:待调试)
15803
+ :param _Status: <p>状态 发布状态(UNPUBLISHED: 待发布 PUBLISHING: 发布中 PUBLISHED: 已发布 PUBLISHED_FAIL:发布失败;DRAFT:待调试)</p>
15695
15804
  :type Status: str
15696
- :param _WorkflowDescription: 工作流描述
15805
+ :param _WorkflowDescription: <p>工作流描述</p>
15697
15806
  :type WorkflowDescription: str
15698
- :param _WorkflowId: 工作流Id
15807
+ :param _WorkflowId: <p>工作流Id</p>
15699
15808
  :type WorkflowId: str
15700
- :param _WorkflowName: 工作流名称
15809
+ :param _WorkflowName: <p>工作流名称</p>
15701
15810
  :type WorkflowName: str
15811
+ :param _Enabled: <p>工作流是否启用</p>
15812
+ :type Enabled: bool
15702
15813
  """
15703
15814
  self._AsyncWorkflow = None
15704
15815
  self._Status = None
15705
15816
  self._WorkflowDescription = None
15706
15817
  self._WorkflowId = None
15707
15818
  self._WorkflowName = None
15819
+ self._Enabled = None
15708
15820
 
15709
15821
  @property
15710
15822
  def AsyncWorkflow(self):
15711
- r"""是否开启异步工作流
15823
+ r"""<p>是否开启异步工作流</p>
15712
15824
  :rtype: bool
15713
15825
  """
15714
15826
  return self._AsyncWorkflow
@@ -15719,7 +15831,7 @@ class SingleWorkflowConfig(AbstractModel):
15719
15831
 
15720
15832
  @property
15721
15833
  def Status(self):
15722
- r"""状态 发布状态(UNPUBLISHED: 待发布 PUBLISHING: 发布中 PUBLISHED: 已发布 PUBLISHED_FAIL:发布失败;DRAFT:待调试)
15834
+ r"""<p>状态 发布状态(UNPUBLISHED: 待发布 PUBLISHING: 发布中 PUBLISHED: 已发布 PUBLISHED_FAIL:发布失败;DRAFT:待调试)</p>
15723
15835
  :rtype: str
15724
15836
  """
15725
15837
  return self._Status
@@ -15730,7 +15842,7 @@ class SingleWorkflowConfig(AbstractModel):
15730
15842
 
15731
15843
  @property
15732
15844
  def WorkflowDescription(self):
15733
- r"""工作流描述
15845
+ r"""<p>工作流描述</p>
15734
15846
  :rtype: str
15735
15847
  """
15736
15848
  return self._WorkflowDescription
@@ -15741,7 +15853,7 @@ class SingleWorkflowConfig(AbstractModel):
15741
15853
 
15742
15854
  @property
15743
15855
  def WorkflowId(self):
15744
- r"""工作流Id
15856
+ r"""<p>工作流Id</p>
15745
15857
  :rtype: str
15746
15858
  """
15747
15859
  return self._WorkflowId
@@ -15752,7 +15864,7 @@ class SingleWorkflowConfig(AbstractModel):
15752
15864
 
15753
15865
  @property
15754
15866
  def WorkflowName(self):
15755
- r"""工作流名称
15867
+ r"""<p>工作流名称</p>
15756
15868
  :rtype: str
15757
15869
  """
15758
15870
  return self._WorkflowName
@@ -15761,6 +15873,17 @@ class SingleWorkflowConfig(AbstractModel):
15761
15873
  def WorkflowName(self, WorkflowName):
15762
15874
  self._WorkflowName = WorkflowName
15763
15875
 
15876
+ @property
15877
+ def Enabled(self):
15878
+ r"""<p>工作流是否启用</p>
15879
+ :rtype: bool
15880
+ """
15881
+ return self._Enabled
15882
+
15883
+ @Enabled.setter
15884
+ def Enabled(self, Enabled):
15885
+ self._Enabled = Enabled
15886
+
15764
15887
 
15765
15888
  def _deserialize(self, params):
15766
15889
  self._AsyncWorkflow = params.get("AsyncWorkflow")
@@ -15768,6 +15891,7 @@ class SingleWorkflowConfig(AbstractModel):
15768
15891
  self._WorkflowDescription = params.get("WorkflowDescription")
15769
15892
  self._WorkflowId = params.get("WorkflowId")
15770
15893
  self._WorkflowName = params.get("WorkflowName")
15894
+ self._Enabled = params.get("Enabled")
15771
15895
  memeber_set = set(params.keys())
15772
15896
  for name, value in vars(self).items():
15773
15897
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-adp
3
- Version: 3.1.124
3
+ Version: 3.1.126
4
4
  Summary: Tencent Cloud Adp 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.124
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.126
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.126
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.124