tencentcloud-sdk-python 3.0.1411__py2.py3-none-any.whl → 3.0.1412__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1411'
17
+ __version__ = '3.0.1412'
@@ -49,6 +49,29 @@ class ApmClient(AbstractClient):
49
49
  raise TencentCloudSDKException(type(e).__name__, str(e))
50
50
 
51
51
 
52
+ def CreateProfileTask(self, request):
53
+ """创建事件任务
54
+
55
+ :param request: Request instance for CreateProfileTask.
56
+ :type request: :class:`tencentcloud.apm.v20210622.models.CreateProfileTaskRequest`
57
+ :rtype: :class:`tencentcloud.apm.v20210622.models.CreateProfileTaskResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("CreateProfileTask", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.CreateProfileTaskResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
52
75
  def DescribeApmAgent(self, request):
53
76
  """获取 APM 接入点
54
77
 
@@ -35,6 +35,12 @@ FAILEDOPERATION = 'FailedOperation'
35
35
  # 访问标签失败。
36
36
  FAILEDOPERATION_ACCESSTAGFAIL = 'FailedOperation.AccessTagFail'
37
37
 
38
+ # 未检测到探针在线
39
+ FAILEDOPERATION_AGENTNOTONLINEERROR = 'FailedOperation.AgentNotOnlineError'
40
+
41
+ # 当前探针版本不支持此功能
42
+ FAILEDOPERATION_AGENTVERSIONNOTSUPPORTERROR = 'FailedOperation.AgentVersionNotSupportError'
43
+
38
44
  # token信息不存在。
39
45
  FAILEDOPERATION_APMCREDENTIALNOTEXIST = 'FailedOperation.ApmCredentialNotExist'
40
46
 
@@ -1621,6 +1621,190 @@ class CreateApmInstanceResponse(AbstractModel):
1621
1621
  self._RequestId = params.get("RequestId")
1622
1622
 
1623
1623
 
1624
+ class CreateProfileTaskRequest(AbstractModel):
1625
+ """CreateProfileTask请求参数结构体
1626
+
1627
+ """
1628
+
1629
+ def __init__(self):
1630
+ r"""
1631
+ :param _ServiceName: 应用名称
1632
+ :type ServiceName: str
1633
+ :param _InstanceId: APM业务系统ID
1634
+ :type InstanceId: str
1635
+ :param _ServiceInstance: 应用实例(在线)
1636
+ :type ServiceInstance: str
1637
+ :param _Event: 事件类型(cpu、alloc)
1638
+ :type Event: str
1639
+ :param _Duration: 任务持续时长(单位:毫秒),范围限制在5~180秒
1640
+ :type Duration: int
1641
+ :param _AllTimes: 执行次数,范围限制在1~100次
1642
+ :type AllTimes: int
1643
+ :param _StartTime: 开始时间戳,0代表从当前开始(单位:秒)
1644
+ :type StartTime: int
1645
+ :param _TaskInterval: 任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration
1646
+ :type TaskInterval: int
1647
+ """
1648
+ self._ServiceName = None
1649
+ self._InstanceId = None
1650
+ self._ServiceInstance = None
1651
+ self._Event = None
1652
+ self._Duration = None
1653
+ self._AllTimes = None
1654
+ self._StartTime = None
1655
+ self._TaskInterval = None
1656
+
1657
+ @property
1658
+ def ServiceName(self):
1659
+ """应用名称
1660
+ :rtype: str
1661
+ """
1662
+ return self._ServiceName
1663
+
1664
+ @ServiceName.setter
1665
+ def ServiceName(self, ServiceName):
1666
+ self._ServiceName = ServiceName
1667
+
1668
+ @property
1669
+ def InstanceId(self):
1670
+ """APM业务系统ID
1671
+ :rtype: str
1672
+ """
1673
+ return self._InstanceId
1674
+
1675
+ @InstanceId.setter
1676
+ def InstanceId(self, InstanceId):
1677
+ self._InstanceId = InstanceId
1678
+
1679
+ @property
1680
+ def ServiceInstance(self):
1681
+ """应用实例(在线)
1682
+ :rtype: str
1683
+ """
1684
+ return self._ServiceInstance
1685
+
1686
+ @ServiceInstance.setter
1687
+ def ServiceInstance(self, ServiceInstance):
1688
+ self._ServiceInstance = ServiceInstance
1689
+
1690
+ @property
1691
+ def Event(self):
1692
+ """事件类型(cpu、alloc)
1693
+ :rtype: str
1694
+ """
1695
+ return self._Event
1696
+
1697
+ @Event.setter
1698
+ def Event(self, Event):
1699
+ self._Event = Event
1700
+
1701
+ @property
1702
+ def Duration(self):
1703
+ """任务持续时长(单位:毫秒),范围限制在5~180秒
1704
+ :rtype: int
1705
+ """
1706
+ return self._Duration
1707
+
1708
+ @Duration.setter
1709
+ def Duration(self, Duration):
1710
+ self._Duration = Duration
1711
+
1712
+ @property
1713
+ def AllTimes(self):
1714
+ """执行次数,范围限制在1~100次
1715
+ :rtype: int
1716
+ """
1717
+ return self._AllTimes
1718
+
1719
+ @AllTimes.setter
1720
+ def AllTimes(self, AllTimes):
1721
+ self._AllTimes = AllTimes
1722
+
1723
+ @property
1724
+ def StartTime(self):
1725
+ """开始时间戳,0代表从当前开始(单位:秒)
1726
+ :rtype: int
1727
+ """
1728
+ return self._StartTime
1729
+
1730
+ @StartTime.setter
1731
+ def StartTime(self, StartTime):
1732
+ self._StartTime = StartTime
1733
+
1734
+ @property
1735
+ def TaskInterval(self):
1736
+ """任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration
1737
+ :rtype: int
1738
+ """
1739
+ return self._TaskInterval
1740
+
1741
+ @TaskInterval.setter
1742
+ def TaskInterval(self, TaskInterval):
1743
+ self._TaskInterval = TaskInterval
1744
+
1745
+
1746
+ def _deserialize(self, params):
1747
+ self._ServiceName = params.get("ServiceName")
1748
+ self._InstanceId = params.get("InstanceId")
1749
+ self._ServiceInstance = params.get("ServiceInstance")
1750
+ self._Event = params.get("Event")
1751
+ self._Duration = params.get("Duration")
1752
+ self._AllTimes = params.get("AllTimes")
1753
+ self._StartTime = params.get("StartTime")
1754
+ self._TaskInterval = params.get("TaskInterval")
1755
+ memeber_set = set(params.keys())
1756
+ for name, value in vars(self).items():
1757
+ property_name = name[1:]
1758
+ if property_name in memeber_set:
1759
+ memeber_set.remove(property_name)
1760
+ if len(memeber_set) > 0:
1761
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1762
+
1763
+
1764
+
1765
+ class CreateProfileTaskResponse(AbstractModel):
1766
+ """CreateProfileTask返回参数结构体
1767
+
1768
+ """
1769
+
1770
+ def __init__(self):
1771
+ r"""
1772
+ :param _TaskId: 任务ID
1773
+ :type TaskId: int
1774
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1775
+ :type RequestId: str
1776
+ """
1777
+ self._TaskId = None
1778
+ self._RequestId = None
1779
+
1780
+ @property
1781
+ def TaskId(self):
1782
+ """任务ID
1783
+ :rtype: int
1784
+ """
1785
+ return self._TaskId
1786
+
1787
+ @TaskId.setter
1788
+ def TaskId(self, TaskId):
1789
+ self._TaskId = TaskId
1790
+
1791
+ @property
1792
+ def RequestId(self):
1793
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1794
+ :rtype: str
1795
+ """
1796
+ return self._RequestId
1797
+
1798
+ @RequestId.setter
1799
+ def RequestId(self, RequestId):
1800
+ self._RequestId = RequestId
1801
+
1802
+
1803
+ def _deserialize(self, params):
1804
+ self._TaskId = params.get("TaskId")
1805
+ self._RequestId = params.get("RequestId")
1806
+
1807
+
1624
1808
  class DescribeApmAgentRequest(AbstractModel):
1625
1809
  """DescribeApmAgent请求参数结构体
1626
1810
 
@@ -33701,14 +33701,14 @@ class ResetRootAccountRequest(AbstractModel):
33701
33701
 
33702
33702
  def __init__(self):
33703
33703
  r"""
33704
- :param _InstanceId: 实例id
33704
+ :param _InstanceId: 实例 ID。可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 接口获取。
33705
33705
  :type InstanceId: str
33706
33706
  """
33707
33707
  self._InstanceId = None
33708
33708
 
33709
33709
  @property
33710
33710
  def InstanceId(self):
33711
- """实例id
33711
+ """实例 ID。可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 接口获取。
33712
33712
  :rtype: str
33713
33713
  """
33714
33714
  return self._InstanceId
@@ -245,7 +245,9 @@ class EcmClient(AbstractClient):
245
245
 
246
246
 
247
247
  def AttachDisks(self, request):
248
- """本接口(AttachDisks)用于挂载云硬盘。
248
+ """CBS在ECM早已下线
249
+
250
+ 本接口(AttachDisks)用于挂载云硬盘。
249
251
 
250
252
  * 支持批量操作,将多块云盘挂载到同一云主机。如果多个云盘中存在不允许挂载的云盘,则操作不执行,返回特定的错误码。
251
253
  * 本接口为异步接口,当挂载云盘的请求成功返回时,表示后台已发起挂载云盘的操作,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHING”变为“ATTACHED”,则为挂载成功。
@@ -363,7 +365,9 @@ class EcmClient(AbstractClient):
363
365
 
364
366
 
365
367
  def CreateDisks(self, request):
366
- """本接口(CreateDisks)用于创建云硬盘。
368
+ """CBS在ECM早已下线
369
+
370
+ 本接口(CreateDisks)用于创建云硬盘。
367
371
 
368
372
  * 预付费云盘的购买会预先扣除本次云盘购买所需金额,在调用本接口前请确保账户余额充足。
369
373
  * 本接口支持传入数据盘快照来创建云盘,实现将快照数据复制到新购云盘上。
@@ -957,7 +961,9 @@ class EcmClient(AbstractClient):
957
961
 
958
962
 
959
963
  def DeleteSnapshots(self, request):
960
- """本接口(DeleteSnapshots)用于删除快照。
964
+ """CBS在ECM早已下线
965
+
966
+ 本接口(DeleteSnapshots)用于删除快照。
961
967
 
962
968
  * 快照必须处于NORMAL状态,快照状态可以通过[DescribeSnapshots](/document/product/362/15647)接口查询,见输出参数中SnapshotState字段解释。
963
969
  * 支持批量操作。如果多个快照存在无法删除的快照,则操作不执行,以返回特定的错误码返回。
@@ -1167,7 +1173,9 @@ class EcmClient(AbstractClient):
1167
1173
 
1168
1174
 
1169
1175
  def DescribeDisks(self, request):
1170
- """本接口(DescribeDisks)用于查询云硬盘列表。
1176
+ """CBS在ECM早已下线
1177
+
1178
+ 本接口(DescribeDisks)用于查询云硬盘列表。
1171
1179
 
1172
1180
  * 可以根据云硬盘ID、云硬盘类型或者云硬盘状态等信息来查询云硬盘的详细信息,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
1173
1181
  * 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的云硬盘列表。
@@ -1791,7 +1799,9 @@ class EcmClient(AbstractClient):
1791
1799
 
1792
1800
 
1793
1801
  def DescribeSnapshots(self, request):
1794
- """本接口(DescribeSnapshots)用于查询快照的详细信息。
1802
+ """CBS在ECM早已下线
1803
+
1804
+ 本接口(DescribeSnapshots)用于查询快照的详细信息。
1795
1805
 
1796
1806
  * 根据快照ID、创建快照的云硬盘ID、创建快照的云硬盘类型等对结果进行过滤,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
1797
1807
  * 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的快照列表。
@@ -1955,7 +1965,9 @@ class EcmClient(AbstractClient):
1955
1965
 
1956
1966
 
1957
1967
  def DetachDisks(self, request):
1958
- """本接口(DetachDisks)用于卸载云硬盘。
1968
+ """CBS在ECM早已下线
1969
+
1970
+ 本接口(DetachDisks)用于卸载云硬盘。
1959
1971
 
1960
1972
  * 支持批量操作,卸载挂载在同一主机上的多块云盘。如果多块云盘中存在不允许卸载的云盘,则操作不执行,返回特定的错误码。
1961
1973
  * 本接口为异步接口,当请求成功返回时,云盘并未立即从主机卸载,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHED”变为“UNATTACHED”,则为卸载成功。
@@ -3210,7 +3222,9 @@ class EcmClient(AbstractClient):
3210
3222
 
3211
3223
 
3212
3224
  def TerminateDisks(self, request):
3213
- """本接口(TerminateDisks)用于退还云硬盘。
3225
+ """CBS在ECM早已下线
3226
+
3227
+ 本接口(TerminateDisks)用于退还云硬盘。
3214
3228
 
3215
3229
  * 不再使用的云盘,可通过本接口主动退还。
3216
3230
  * 本接口支持退还预付费云盘和按小时后付费云盘。按小时后付费云盘可直接退还,预付费云盘需符合退还规则。
@@ -3296,7 +3296,7 @@ ChildrenComponent结构体定义:
3296
3296
  :type KeywordIndexes: list of int
3297
3297
  :param _LockComponentValue: **web嵌入发起合同场景下**, 是否锁定填写和签署控件值不允许嵌入页面进行编辑
3298
3298
  <ul><li>false(默认):不锁定控件值,允许在页面编辑控件值</li>
3299
- <li>true:锁定控件值,在页面编辑控件值</li></ul>
3299
+ <li>true:锁定控件值,在页面无法编辑控件值</li></ul>
3300
3300
  :type LockComponentValue: bool
3301
3301
  :param _ForbidMoveAndDelete: **web嵌入发起合同场景下**,是否禁止移动和删除填写和签署控件
3302
3302
  <ul><li> <b>false(默认)</b> :可以移动和删除控件</li>
@@ -3798,7 +3798,7 @@ ChildrenComponent结构体定义:
3798
3798
  def LockComponentValue(self):
3799
3799
  """**web嵌入发起合同场景下**, 是否锁定填写和签署控件值不允许嵌入页面进行编辑
3800
3800
  <ul><li>false(默认):不锁定控件值,允许在页面编辑控件值</li>
3801
- <li>true:锁定控件值,在页面编辑控件值</li></ul>
3801
+ <li>true:锁定控件值,在页面无法编辑控件值</li></ul>
3802
3802
  :rtype: bool
3803
3803
  """
3804
3804
  return self._LockComponentValue
@@ -12913,7 +12913,7 @@ ChildrenComponent结构体定义:
12913
12913
  :type Placeholder: str
12914
12914
  :param _LockComponentValue: **web嵌入发起合同场景下**, 是否锁定填写和签署控件值不允许嵌入页面进行编辑
12915
12915
  <ul><li>false(默认):不锁定控件值,允许在页面编辑控件值</li>
12916
- <li>true:锁定控件值,在页面编辑控件值</li></ul>
12916
+ <li>true:锁定控件值,在页面无法编辑控件值</li></ul>
12917
12917
  :type LockComponentValue: bool
12918
12918
  :param _ForbidMoveAndDelete: **web嵌入发起合同场景下**,是否禁止移动和删除填写和签署控件
12919
12919
  <ul><li> <b>false(默认)</b> :可以移动和删除控件</li>
@@ -13456,7 +13456,7 @@ ChildrenComponent结构体定义:
13456
13456
  def LockComponentValue(self):
13457
13457
  """**web嵌入发起合同场景下**, 是否锁定填写和签署控件值不允许嵌入页面进行编辑
13458
13458
  <ul><li>false(默认):不锁定控件值,允许在页面编辑控件值</li>
13459
- <li>true:锁定控件值,在页面编辑控件值</li></ul>
13459
+ <li>true:锁定控件值,在页面无法编辑控件值</li></ul>
13460
13460
  :rtype: bool
13461
13461
  """
13462
13462
  return self._LockComponentValue
@@ -95,6 +95,9 @@ INVALIDPARAMETERVALUE_INSTANCEHASBEENISOLATED = 'InvalidParameterValue.InstanceH
95
95
  # 计费相关错误,不允许对当前实例进行对应的新购/续费/配置变更操作。
96
96
  INVALIDPARAMETERVALUE_INVALIDTRADEOPERATION = 'InvalidParameterValue.InvalidTradeOperation'
97
97
 
98
+ # limit取值范围[1,100]。
99
+ INVALIDPARAMETERVALUE_LIMITPARAOUTOFRANGE = 'InvalidParameterValue.LimitParaOutOfRange'
100
+
98
101
  # 实例锁定失败。
99
102
  INVALIDPARAMETERVALUE_LOCKFAILED = 'InvalidParameterValue.LockFailed'
100
103
 
@@ -119,6 +122,9 @@ INVALIDPARAMETERVALUE_NODENOTFOUNDINREPLICA = 'InvalidParameterValue.NodeNotFoun
119
122
  # 未找到实例。
120
123
  INVALIDPARAMETERVALUE_NOTFOUNDINSTANCE = 'InvalidParameterValue.NotFoundInstance'
121
124
 
125
+ # offset取值范围[0, 10000]。
126
+ INVALIDPARAMETERVALUE_OFFSETPARAOUTOFRANGE = 'InvalidParameterValue.OffsetParaOutOfRange'
127
+
122
128
  # OplogSize参数设置错误,应介于磁盘容量的10%和90%之间。
123
129
  INVALIDPARAMETERVALUE_OPLOGSIZEOUTOFRANGE = 'InvalidParameterValue.OplogSizeOutOfRange'
124
130
 
@@ -185,6 +191,9 @@ INVALIDPARAMETERVALUE_STATUSABNORMAL = 'InvalidParameterValue.StatusAbnormal'
185
191
  # 未找到指定的标签。
186
192
  INVALIDPARAMETERVALUE_TAGNOTFOUND = 'InvalidParameterValue.TagNotFound'
187
193
 
194
+ # 非法的时间格式。
195
+ INVALIDPARAMETERVALUE_TIMEFORMATERR = 'InvalidParameterValue.TimeFormatErr'
196
+
188
197
  # 用户账户不存在。
189
198
  INVALIDPARAMETERVALUE_USERNOTFOUND = 'InvalidParameterValue.UserNotFound'
190
199