tencentcloud-sdk-python-tat 3.0.1483__tar.gz → 3.1.51__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_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/setup.py +2 -1
  3. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud/tat/v20201028/models.py +64 -88
  5. tencentcloud_sdk_python_tat-3.1.51/tencentcloud/tat/v20201028/tat_client_async.py +565 -0
  6. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud_sdk_python_tat.egg-info/PKG-INFO +2 -2
  7. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud_sdk_python_tat.egg-info/SOURCES.txt +1 -0
  8. tencentcloud_sdk_python_tat-3.1.51/tencentcloud_sdk_python_tat.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tat-3.0.1483/tencentcloud_sdk_python_tat.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud/tat/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud/tat/v20201028/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud/tat/v20201028/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud/tat/v20201028/tat_client.py +0 -0
  16. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud_sdk_python_tat.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tat-3.0.1483 → tencentcloud_sdk_python_tat-3.1.51}/tencentcloud_sdk_python_tat.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tat
3
- Version: 3.0.1483
3
+ Version: 3.1.51
4
4
  Summary: Tencent Cloud Tat 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.0.1483
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.51
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-tat',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1483,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.51,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Tat SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1483'
17
+ __version__ = '3.1.51'
@@ -233,43 +233,43 @@ class Command(AbstractModel):
233
233
 
234
234
  def __init__(self):
235
235
  r"""
236
- :param _CommandId: 命令ID。
236
+ :param _CommandId: <p>命令ID。</p>
237
237
  :type CommandId: str
238
- :param _CommandName: 命令名称。
238
+ :param _CommandName: <p>命令名称。</p>
239
239
  :type CommandName: str
240
- :param _Description: 命令描述。
240
+ :param _Description: <p>命令描述。</p>
241
241
  :type Description: str
242
- :param _Content: Base64编码后的命令内容。
242
+ :param _Content: <p>Base64编码后的命令内容。</p>
243
243
  :type Content: str
244
- :param _CommandType: 命令类型。取值为 SHELL、POWERSHELL、BAT 之一。
244
+ :param _CommandType: <p>命令类型。取值为 SHELL、POWERSHELL、BAT 之一。</p>
245
245
  :type CommandType: str
246
- :param _WorkingDirectory: 命令执行路径。
246
+ :param _WorkingDirectory: <p>命令执行路径。</p>
247
247
  :type WorkingDirectory: str
248
- :param _Timeout: 命令超时时间。
248
+ :param _Timeout: <p>命令超时时间。</p><p>单位:秒</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
249
249
  :type Timeout: int
250
- :param _CreatedTime: 命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ
250
+ :param _CreatedTime: <p>命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
251
251
  :type CreatedTime: str
252
- :param _UpdatedTime: 命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ
252
+ :param _UpdatedTime: <p>命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
253
253
  :type UpdatedTime: str
254
- :param _EnableParameter: 是否启用自定义参数功能。
254
+ :param _EnableParameter: <p>是否启用自定义参数功能。</p>
255
255
  :type EnableParameter: bool
256
- :param _DefaultParameters: 自定义参数的默认取值。
256
+ :param _DefaultParameters: <p>自定义参数的默认取值。</p>
257
257
  :type DefaultParameters: str
258
- :param _DefaultParameterConfs: 自定义参数的默认取值。
258
+ :param _DefaultParameterConfs: <p>自定义参数的默认取值。</p>
259
259
  :type DefaultParameterConfs: list of DefaultParameterConf
260
- :param _Scenes: 命令关联的场景
260
+ :param _Scenes: <p>命令关联的场景</p>
261
261
  :type Scenes: list of str
262
- :param _FormattedDescription: 命令的结构化描述。公共命令有值,用户命令为空字符串。
262
+ :param _FormattedDescription: <p>命令的结构化描述。公共命令有值,用户命令为空字符串。</p>
263
263
  :type FormattedDescription: str
264
- :param _CreatedBy: 命令创建者。TAT 代表公共命令,USER 代表个人命令。
264
+ :param _CreatedBy: <p>命令创建者。</p><p>枚举值:</p><ul><li>TAT: 公共命令</li><li>USER: 个人创建的命令</li></ul>
265
265
  :type CreatedBy: str
266
- :param _Tags: 命令关联的标签列表。
266
+ :param _Tags: <p>命令关联的标签列表。</p>
267
267
  :type Tags: list of Tag
268
- :param _Username: 在实例上执行命令的用户名。
268
+ :param _Username: <p>在实例上执行命令的用户名。</p>
269
269
  :type Username: str
270
- :param _OutputCOSBucketUrl: 日志上传的cos bucket 地址。
270
+ :param _OutputCOSBucketUrl: <p>日志上传的cos bucket 地址。</p>
271
271
  :type OutputCOSBucketUrl: str
272
- :param _OutputCOSKeyPrefix: 日志在cos bucket中的目录。
272
+ :param _OutputCOSKeyPrefix: <p>日志在cos bucket中的目录。</p>
273
273
  :type OutputCOSKeyPrefix: str
274
274
  """
275
275
  self._CommandId = None
@@ -294,7 +294,7 @@ class Command(AbstractModel):
294
294
 
295
295
  @property
296
296
  def CommandId(self):
297
- r"""命令ID。
297
+ r"""<p>命令ID。</p>
298
298
  :rtype: str
299
299
  """
300
300
  return self._CommandId
@@ -305,7 +305,7 @@ class Command(AbstractModel):
305
305
 
306
306
  @property
307
307
  def CommandName(self):
308
- r"""命令名称。
308
+ r"""<p>命令名称。</p>
309
309
  :rtype: str
310
310
  """
311
311
  return self._CommandName
@@ -316,7 +316,7 @@ class Command(AbstractModel):
316
316
 
317
317
  @property
318
318
  def Description(self):
319
- r"""命令描述。
319
+ r"""<p>命令描述。</p>
320
320
  :rtype: str
321
321
  """
322
322
  return self._Description
@@ -327,7 +327,7 @@ class Command(AbstractModel):
327
327
 
328
328
  @property
329
329
  def Content(self):
330
- r"""Base64编码后的命令内容。
330
+ r"""<p>Base64编码后的命令内容。</p>
331
331
  :rtype: str
332
332
  """
333
333
  return self._Content
@@ -338,7 +338,7 @@ class Command(AbstractModel):
338
338
 
339
339
  @property
340
340
  def CommandType(self):
341
- r"""命令类型。取值为 SHELL、POWERSHELL、BAT 之一。
341
+ r"""<p>命令类型。取值为 SHELL、POWERSHELL、BAT 之一。</p>
342
342
  :rtype: str
343
343
  """
344
344
  return self._CommandType
@@ -349,7 +349,7 @@ class Command(AbstractModel):
349
349
 
350
350
  @property
351
351
  def WorkingDirectory(self):
352
- r"""命令执行路径。
352
+ r"""<p>命令执行路径。</p>
353
353
  :rtype: str
354
354
  """
355
355
  return self._WorkingDirectory
@@ -360,7 +360,7 @@ class Command(AbstractModel):
360
360
 
361
361
  @property
362
362
  def Timeout(self):
363
- r"""命令超时时间。
363
+ r"""<p>命令超时时间。</p><p>单位:秒</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
364
364
  :rtype: int
365
365
  """
366
366
  return self._Timeout
@@ -371,7 +371,7 @@ class Command(AbstractModel):
371
371
 
372
372
  @property
373
373
  def CreatedTime(self):
374
- r"""命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ
374
+ r"""<p>命令创建时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
375
375
  :rtype: str
376
376
  """
377
377
  return self._CreatedTime
@@ -382,7 +382,7 @@ class Command(AbstractModel):
382
382
 
383
383
  @property
384
384
  def UpdatedTime(self):
385
- r"""命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ
385
+ r"""<p>命令更新时间。格式为:YYYY-MM-DDThh:mm:ssZ</p>
386
386
  :rtype: str
387
387
  """
388
388
  return self._UpdatedTime
@@ -393,7 +393,7 @@ class Command(AbstractModel):
393
393
 
394
394
  @property
395
395
  def EnableParameter(self):
396
- r"""是否启用自定义参数功能。
396
+ r"""<p>是否启用自定义参数功能。</p>
397
397
  :rtype: bool
398
398
  """
399
399
  return self._EnableParameter
@@ -404,7 +404,7 @@ class Command(AbstractModel):
404
404
 
405
405
  @property
406
406
  def DefaultParameters(self):
407
- r"""自定义参数的默认取值。
407
+ r"""<p>自定义参数的默认取值。</p>
408
408
  :rtype: str
409
409
  """
410
410
  return self._DefaultParameters
@@ -415,7 +415,7 @@ class Command(AbstractModel):
415
415
 
416
416
  @property
417
417
  def DefaultParameterConfs(self):
418
- r"""自定义参数的默认取值。
418
+ r"""<p>自定义参数的默认取值。</p>
419
419
  :rtype: list of DefaultParameterConf
420
420
  """
421
421
  return self._DefaultParameterConfs
@@ -426,7 +426,7 @@ class Command(AbstractModel):
426
426
 
427
427
  @property
428
428
  def Scenes(self):
429
- r"""命令关联的场景
429
+ r"""<p>命令关联的场景</p>
430
430
  :rtype: list of str
431
431
  """
432
432
  return self._Scenes
@@ -437,7 +437,7 @@ class Command(AbstractModel):
437
437
 
438
438
  @property
439
439
  def FormattedDescription(self):
440
- r"""命令的结构化描述。公共命令有值,用户命令为空字符串。
440
+ r"""<p>命令的结构化描述。公共命令有值,用户命令为空字符串。</p>
441
441
  :rtype: str
442
442
  """
443
443
  return self._FormattedDescription
@@ -448,7 +448,7 @@ class Command(AbstractModel):
448
448
 
449
449
  @property
450
450
  def CreatedBy(self):
451
- r"""命令创建者。TAT 代表公共命令,USER 代表个人命令。
451
+ r"""<p>命令创建者。</p><p>枚举值:</p><ul><li>TAT: 公共命令</li><li>USER: 个人创建的命令</li></ul>
452
452
  :rtype: str
453
453
  """
454
454
  return self._CreatedBy
@@ -459,7 +459,7 @@ class Command(AbstractModel):
459
459
 
460
460
  @property
461
461
  def Tags(self):
462
- r"""命令关联的标签列表。
462
+ r"""<p>命令关联的标签列表。</p>
463
463
  :rtype: list of Tag
464
464
  """
465
465
  return self._Tags
@@ -470,7 +470,7 @@ class Command(AbstractModel):
470
470
 
471
471
  @property
472
472
  def Username(self):
473
- r"""在实例上执行命令的用户名。
473
+ r"""<p>在实例上执行命令的用户名。</p>
474
474
  :rtype: str
475
475
  """
476
476
  return self._Username
@@ -481,7 +481,7 @@ class Command(AbstractModel):
481
481
 
482
482
  @property
483
483
  def OutputCOSBucketUrl(self):
484
- r"""日志上传的cos bucket 地址。
484
+ r"""<p>日志上传的cos bucket 地址。</p>
485
485
  :rtype: str
486
486
  """
487
487
  return self._OutputCOSBucketUrl
@@ -492,7 +492,7 @@ class Command(AbstractModel):
492
492
 
493
493
  @property
494
494
  def OutputCOSKeyPrefix(self):
495
- r"""日志在cos bucket中的目录。
495
+ r"""<p>日志在cos bucket中的目录。</p>
496
496
  :rtype: str
497
497
  """
498
498
  return self._OutputCOSKeyPrefix
@@ -3870,6 +3870,7 @@ class Invocation(AbstractModel):
3870
3870
  :param _StartTime: 执行活动开始时间。格式为:YYYY-MM-DDThh:mm:ssZ
3871
3871
  :type StartTime: str
3872
3872
  :param _EndTime: 执行活动结束时间。格式为:YYYY-MM-DDThh:mm:ssZ
3873
+ 注意:此字段可能返回 null,表示取不到有效值。
3873
3874
  :type EndTime: str
3874
3875
  :param _CreatedTime: 执行活动创建时间。格式为:YYYY-MM-DDThh:mm:ssZ
3875
3876
  :type CreatedTime: str
@@ -4013,6 +4014,7 @@ class Invocation(AbstractModel):
4013
4014
  @property
4014
4015
  def EndTime(self):
4015
4016
  r"""执行活动结束时间。格式为:YYYY-MM-DDThh:mm:ssZ
4017
+ 注意:此字段可能返回 null,表示取不到有效值。
4016
4018
  :rtype: str
4017
4019
  """
4018
4020
  return self._EndTime
@@ -5095,42 +5097,29 @@ class ModifyCommandRequest(AbstractModel):
5095
5097
 
5096
5098
  def __init__(self):
5097
5099
  r"""
5098
- :param _CommandId: 命令ID。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。
5100
+ :param _CommandId: <p>命令ID。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取。</p>
5099
5101
  :type CommandId: str
5100
- :param _CommandName: 命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。
5102
+ :param _CommandName: <p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符&quot;-&quot;、小数点,最大长度不能超60个字节。</p>
5101
5103
  :type CommandName: str
5102
- :param _Description: 命令描述。不超过120字符。
5104
+ :param _Description: <p>命令描述。不超过120字符。</p>
5103
5105
  :type Description: str
5104
- :param _Content: Base64编码后的命令内容,长度不可超过64KB。
5106
+ :param _Content: <p>Base64编码后的命令内容,长度不可超过64KB。</p>
5105
5107
  :type Content: str
5106
- :param _CommandType: 命令类型,目前支持取值:SHELL、POWERSHELL、BAT。
5108
+ :param _CommandType: <p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。</p>
5107
5109
  :type CommandType: str
5108
- :param _WorkingDirectory: 命令执行路径。
5110
+ :param _WorkingDirectory: <p>命令执行路径。</p>
5109
5111
  :type WorkingDirectory: str
5110
- :param _Timeout: 命令超时时间。取值范围[1, 86400]。
5112
+ :param _Timeout: <p>命令超时时间。</p><p>取值范围:[1, 86400]</p><p>单位:秒</p><p>默认值:60</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
5111
5113
  :type Timeout: int
5112
- :param _DefaultParameters: 启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。
5113
- 参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
5114
- 采取整体全覆盖式修改,即修改时必须提供所有新默认值。
5115
- 仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
5116
- key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
5117
- 自定义参数最多20个。
5118
- 自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
5114
+ :param _DefaultParameters: <p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{&quot;varA&quot;: &quot;222&quot;}。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>采取整体全覆盖式修改,即修改时必须提供所有新默认值。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
5119
5115
  :type DefaultParameters: str
5120
- :param _DefaultParameterConfs: 自定义参数数组。如果 InvokeCommand 时未提供参数取值,将使用这里的默认值进行替换。
5121
- 参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
5122
- 仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
5123
- 自定义参数最多20个。
5116
+ :param _DefaultParameterConfs: <p>自定义参数数组。如果 InvokeCommand 时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>自定义参数最多20个。</p>
5124
5117
  :type DefaultParameterConfs: list of DefaultParameterConf
5125
- :param _Username: 在 CVM 或 Lighthouse 实例中执行命令的用户名称。
5126
- 使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。
5118
+ :param _Username: <p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。</p>
5127
5119
  :type Username: str
5128
- :param _OutputCOSBucketUrl: 指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。
5120
+ :param _OutputCOSBucketUrl: <p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
5129
5121
  :type OutputCOSBucketUrl: str
5130
- :param _OutputCOSKeyPrefix: 指定日志在cos bucket中的目录,目录命名有如下规则:
5131
- 1. 可用数字、中英文和可见字符的组合,长度最多为60。
5132
- 2. 用 / 分割路径,可快速创建子目录。
5133
- 3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。
5122
+ :param _OutputCOSKeyPrefix: <p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。</li></ol>
5134
5123
  :type OutputCOSKeyPrefix: str
5135
5124
  """
5136
5125
  self._CommandId = None
@@ -5148,7 +5137,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5148
5137
 
5149
5138
  @property
5150
5139
  def CommandId(self):
5151
- r"""命令ID。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取。
5140
+ r"""<p>命令ID。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取。</p>
5152
5141
  :rtype: str
5153
5142
  """
5154
5143
  return self._CommandId
@@ -5159,7 +5148,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5159
5148
 
5160
5149
  @property
5161
5150
  def CommandName(self):
5162
- r"""命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。
5151
+ r"""<p>命令名称。名称仅支持中文、英文、数字、下划线、分隔符&quot;-&quot;、小数点,最大长度不能超60个字节。</p>
5163
5152
  :rtype: str
5164
5153
  """
5165
5154
  return self._CommandName
@@ -5170,7 +5159,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5170
5159
 
5171
5160
  @property
5172
5161
  def Description(self):
5173
- r"""命令描述。不超过120字符。
5162
+ r"""<p>命令描述。不超过120字符。</p>
5174
5163
  :rtype: str
5175
5164
  """
5176
5165
  return self._Description
@@ -5181,7 +5170,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5181
5170
 
5182
5171
  @property
5183
5172
  def Content(self):
5184
- r"""Base64编码后的命令内容,长度不可超过64KB。
5173
+ r"""<p>Base64编码后的命令内容,长度不可超过64KB。</p>
5185
5174
  :rtype: str
5186
5175
  """
5187
5176
  return self._Content
@@ -5192,7 +5181,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5192
5181
 
5193
5182
  @property
5194
5183
  def CommandType(self):
5195
- r"""命令类型,目前支持取值:SHELL、POWERSHELL、BAT。
5184
+ r"""<p>命令类型,目前支持取值:SHELL、POWERSHELL、BAT。</p>
5196
5185
  :rtype: str
5197
5186
  """
5198
5187
  return self._CommandType
@@ -5203,7 +5192,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5203
5192
 
5204
5193
  @property
5205
5194
  def WorkingDirectory(self):
5206
- r"""命令执行路径。
5195
+ r"""<p>命令执行路径。</p>
5207
5196
  :rtype: str
5208
5197
  """
5209
5198
  return self._WorkingDirectory
@@ -5214,7 +5203,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5214
5203
 
5215
5204
  @property
5216
5205
  def Timeout(self):
5217
- r"""命令超时时间。取值范围[1, 86400]。
5206
+ r"""<p>命令超时时间。</p><p>取值范围:[1, 86400]</p><p>单位:秒</p><p>默认值:60</p><p>指定 OutputCOSBucketUrl 参数时,超时时间将包含命令输出上传 COS 的耗时</p>
5218
5207
  :rtype: int
5219
5208
  """
5220
5209
  return self._Timeout
@@ -5225,13 +5214,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5225
5214
 
5226
5215
  @property
5227
5216
  def DefaultParameters(self):
5228
- r"""启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{"varA": "222"}。
5229
- 参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
5230
- 采取整体全覆盖式修改,即修改时必须提供所有新默认值。
5231
- 仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
5232
- key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
5233
- 自定义参数最多20个。
5234
- 自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
5217
+ r"""<p>启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{&quot;varA&quot;: &quot;222&quot;}。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>采取整体全覆盖式修改,即修改时必须提供所有新默认值。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。<br>自定义参数最多20个。<br>自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。</p>
5235
5218
  :rtype: str
5236
5219
  """
5237
5220
  return self._DefaultParameters
@@ -5242,10 +5225,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5242
5225
 
5243
5226
  @property
5244
5227
  def DefaultParameterConfs(self):
5245
- r"""自定义参数数组。如果 InvokeCommand 时未提供参数取值,将使用这里的默认值进行替换。
5246
- 参数不支持同时指定 `DefaultParameters` 和 `DefaultParameterConfs` 。
5247
- 仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 [DescribeCommands(查询命令详情)](https://cloud.tencent.com/document/api/1340/52681) 接口获取命令的 EnableParameter 设置。
5248
- 自定义参数最多20个。
5228
+ r"""<p>自定义参数数组。如果 InvokeCommand 时未提供参数取值,将使用这里的默认值进行替换。<br>参数不支持同时指定 <code>DefaultParameters</code> 和 <code>DefaultParameterConfs</code> 。<br>仅在命令的 EnableParameter 为 true 时,才允许修改此参数。可通过 <a href="https://cloud.tencent.com/document/api/1340/52681">DescribeCommands(查询命令详情)</a> 接口获取命令的 EnableParameter 设置。<br>自定义参数最多20个。</p>
5249
5229
  :rtype: list of DefaultParameterConf
5250
5230
  """
5251
5231
  return self._DefaultParameterConfs
@@ -5256,8 +5236,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5256
5236
 
5257
5237
  @property
5258
5238
  def Username(self):
5259
- r"""在 CVM 或 Lighthouse 实例中执行命令的用户名称。
5260
- 使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。
5239
+ r"""<p>在 CVM 或 Lighthouse 实例中执行命令的用户名称。<br>使用最小权限执行命令是权限管理的最佳实践,建议您以普通用户身份执行云助手命令。</p>
5261
5240
  :rtype: str
5262
5241
  """
5263
5242
  return self._Username
@@ -5268,7 +5247,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5268
5247
 
5269
5248
  @property
5270
5249
  def OutputCOSBucketUrl(self):
5271
- r"""指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。
5250
+ r"""<p>指定日志上传的cos bucket 地址,必须以https开头,如 https://BucketName-123454321.cos.ap-beijing.myqcloud.com。</p>
5272
5251
  :rtype: str
5273
5252
  """
5274
5253
  return self._OutputCOSBucketUrl
@@ -5279,10 +5258,7 @@ key为自定义参数名称,value为该参数的默认取值。kv均为字符
5279
5258
 
5280
5259
  @property
5281
5260
  def OutputCOSKeyPrefix(self):
5282
- r"""指定日志在cos bucket中的目录,目录命名有如下规则:
5283
- 1. 可用数字、中英文和可见字符的组合,长度最多为60。
5284
- 2. 用 / 分割路径,可快速创建子目录。
5285
- 3. 不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。
5261
+ r"""<p>指定日志在cos bucket中的目录,目录命名有如下规则:</p><ol><li>可用数字、中英文和可见字符的组合,长度最多为60。</li><li>用 / 分割路径,可快速创建子目录。</li><li>不允许连续 / ;不允许以 / 开头;不允许以..作为文件夹名称。</li></ol>
5286
5262
  :rtype: str
5287
5263
  """
5288
5264
  return self._OutputCOSKeyPrefix
@@ -0,0 +1,565 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.tat.v20201028 import models
20
+ from typing import Dict
21
+
22
+
23
+ class TatClient(AbstractClient):
24
+ _apiVersion = '2020-10-28'
25
+ _endpoint = 'tat.tencentcloudapi.com'
26
+ _service = 'tat'
27
+
28
+ async def CancelInvocation(
29
+ self,
30
+ request: models.CancelInvocationRequest,
31
+ opts: Dict = None,
32
+ ) -> models.CancelInvocationResponse:
33
+ """
34
+ 取消一台或多台实例执行的命令
35
+
36
+ * 如果命令还未下发到agent,任务状态处于PENDING、DELIVERING、DELIVER_DELAYED,取消后任务状态是CANCELLED
37
+ * 如果命令已下发到agent,任务状态处于RUNNING, 取消后任务状态是TERMINATED
38
+ """
39
+
40
+ kwargs = {}
41
+ kwargs["action"] = "CancelInvocation"
42
+ kwargs["params"] = request._serialize()
43
+ kwargs["resp_cls"] = models.CancelInvocationResponse
44
+ kwargs["headers"] = request.headers
45
+ kwargs["opts"] = opts or {}
46
+
47
+ return await self.call_and_deserialize(**kwargs)
48
+
49
+ async def CreateCommand(
50
+ self,
51
+ request: models.CreateCommandRequest,
52
+ opts: Dict = None,
53
+ ) -> models.CreateCommandResponse:
54
+ """
55
+ 此接口用于创建命令。
56
+ """
57
+
58
+ kwargs = {}
59
+ kwargs["action"] = "CreateCommand"
60
+ kwargs["params"] = request._serialize()
61
+ kwargs["resp_cls"] = models.CreateCommandResponse
62
+ kwargs["headers"] = request.headers
63
+ kwargs["opts"] = opts or {}
64
+
65
+ return await self.call_and_deserialize(**kwargs)
66
+
67
+ async def CreateInvoker(
68
+ self,
69
+ request: models.CreateInvokerRequest,
70
+ opts: Dict = None,
71
+ ) -> models.CreateInvokerResponse:
72
+ """
73
+ 此接口用于创建执行器。
74
+ """
75
+
76
+ kwargs = {}
77
+ kwargs["action"] = "CreateInvoker"
78
+ kwargs["params"] = request._serialize()
79
+ kwargs["resp_cls"] = models.CreateInvokerResponse
80
+ kwargs["headers"] = request.headers
81
+ kwargs["opts"] = opts or {}
82
+
83
+ return await self.call_and_deserialize(**kwargs)
84
+
85
+ async def CreateRegisterCode(
86
+ self,
87
+ request: models.CreateRegisterCodeRequest,
88
+ opts: Dict = None,
89
+ ) -> models.CreateRegisterCodeResponse:
90
+ """
91
+ 接口用于创建注册码。
92
+ """
93
+
94
+ kwargs = {}
95
+ kwargs["action"] = "CreateRegisterCode"
96
+ kwargs["params"] = request._serialize()
97
+ kwargs["resp_cls"] = models.CreateRegisterCodeResponse
98
+ kwargs["headers"] = request.headers
99
+ kwargs["opts"] = opts or {}
100
+
101
+ return await self.call_and_deserialize(**kwargs)
102
+
103
+ async def DeleteCommand(
104
+ self,
105
+ request: models.DeleteCommandRequest,
106
+ opts: Dict = None,
107
+ ) -> models.DeleteCommandResponse:
108
+ """
109
+ 此接口用于删除命令。
110
+ 如果命令与执行器关联,则无法被删除。
111
+ """
112
+
113
+ kwargs = {}
114
+ kwargs["action"] = "DeleteCommand"
115
+ kwargs["params"] = request._serialize()
116
+ kwargs["resp_cls"] = models.DeleteCommandResponse
117
+ kwargs["headers"] = request.headers
118
+ kwargs["opts"] = opts or {}
119
+
120
+ return await self.call_and_deserialize(**kwargs)
121
+
122
+ async def DeleteCommands(
123
+ self,
124
+ request: models.DeleteCommandsRequest,
125
+ opts: Dict = None,
126
+ ) -> models.DeleteCommandsResponse:
127
+ """
128
+ 批量删除命令接口
129
+ """
130
+
131
+ kwargs = {}
132
+ kwargs["action"] = "DeleteCommands"
133
+ kwargs["params"] = request._serialize()
134
+ kwargs["resp_cls"] = models.DeleteCommandsResponse
135
+ kwargs["headers"] = request.headers
136
+ kwargs["opts"] = opts or {}
137
+
138
+ return await self.call_and_deserialize(**kwargs)
139
+
140
+ async def DeleteInvoker(
141
+ self,
142
+ request: models.DeleteInvokerRequest,
143
+ opts: Dict = None,
144
+ ) -> models.DeleteInvokerResponse:
145
+ """
146
+ 此接口用于删除执行器。
147
+ """
148
+
149
+ kwargs = {}
150
+ kwargs["action"] = "DeleteInvoker"
151
+ kwargs["params"] = request._serialize()
152
+ kwargs["resp_cls"] = models.DeleteInvokerResponse
153
+ kwargs["headers"] = request.headers
154
+ kwargs["opts"] = opts or {}
155
+
156
+ return await self.call_and_deserialize(**kwargs)
157
+
158
+ async def DeleteRegisterCodes(
159
+ self,
160
+ request: models.DeleteRegisterCodesRequest,
161
+ opts: Dict = None,
162
+ ) -> models.DeleteRegisterCodesResponse:
163
+ """
164
+ 此接口用于批量删除注册码。
165
+ """
166
+
167
+ kwargs = {}
168
+ kwargs["action"] = "DeleteRegisterCodes"
169
+ kwargs["params"] = request._serialize()
170
+ kwargs["resp_cls"] = models.DeleteRegisterCodesResponse
171
+ kwargs["headers"] = request.headers
172
+ kwargs["opts"] = opts or {}
173
+
174
+ return await self.call_and_deserialize(**kwargs)
175
+
176
+ async def DeleteRegisterInstance(
177
+ self,
178
+ request: models.DeleteRegisterInstanceRequest,
179
+ opts: Dict = None,
180
+ ) -> models.DeleteRegisterInstanceResponse:
181
+ """
182
+ 接口用于删除托管实例。
183
+ """
184
+
185
+ kwargs = {}
186
+ kwargs["action"] = "DeleteRegisterInstance"
187
+ kwargs["params"] = request._serialize()
188
+ kwargs["resp_cls"] = models.DeleteRegisterInstanceResponse
189
+ kwargs["headers"] = request.headers
190
+ kwargs["opts"] = opts or {}
191
+
192
+ return await self.call_and_deserialize(**kwargs)
193
+
194
+ async def DescribeAutomationAgentStatus(
195
+ self,
196
+ request: models.DescribeAutomationAgentStatusRequest,
197
+ opts: Dict = None,
198
+ ) -> models.DescribeAutomationAgentStatusResponse:
199
+ """
200
+ 此接口用于查询自动化助手客户端的状态。
201
+ """
202
+
203
+ kwargs = {}
204
+ kwargs["action"] = "DescribeAutomationAgentStatus"
205
+ kwargs["params"] = request._serialize()
206
+ kwargs["resp_cls"] = models.DescribeAutomationAgentStatusResponse
207
+ kwargs["headers"] = request.headers
208
+ kwargs["opts"] = opts or {}
209
+
210
+ return await self.call_and_deserialize(**kwargs)
211
+
212
+ async def DescribeCommands(
213
+ self,
214
+ request: models.DescribeCommandsRequest,
215
+ opts: Dict = None,
216
+ ) -> models.DescribeCommandsResponse:
217
+ """
218
+ 此接口用于查询命令详情。
219
+ """
220
+
221
+ kwargs = {}
222
+ kwargs["action"] = "DescribeCommands"
223
+ kwargs["params"] = request._serialize()
224
+ kwargs["resp_cls"] = models.DescribeCommandsResponse
225
+ kwargs["headers"] = request.headers
226
+ kwargs["opts"] = opts or {}
227
+
228
+ return await self.call_and_deserialize(**kwargs)
229
+
230
+ async def DescribeInvocationTasks(
231
+ self,
232
+ request: models.DescribeInvocationTasksRequest,
233
+ opts: Dict = None,
234
+ ) -> models.DescribeInvocationTasksResponse:
235
+ """
236
+ 此接口用于查询执行任务详情。
237
+ """
238
+
239
+ kwargs = {}
240
+ kwargs["action"] = "DescribeInvocationTasks"
241
+ kwargs["params"] = request._serialize()
242
+ kwargs["resp_cls"] = models.DescribeInvocationTasksResponse
243
+ kwargs["headers"] = request.headers
244
+ kwargs["opts"] = opts or {}
245
+
246
+ return await self.call_and_deserialize(**kwargs)
247
+
248
+ async def DescribeInvocations(
249
+ self,
250
+ request: models.DescribeInvocationsRequest,
251
+ opts: Dict = None,
252
+ ) -> models.DescribeInvocationsResponse:
253
+ """
254
+ 此接口用于查询执行活动详情。
255
+ """
256
+
257
+ kwargs = {}
258
+ kwargs["action"] = "DescribeInvocations"
259
+ kwargs["params"] = request._serialize()
260
+ kwargs["resp_cls"] = models.DescribeInvocationsResponse
261
+ kwargs["headers"] = request.headers
262
+ kwargs["opts"] = opts or {}
263
+
264
+ return await self.call_and_deserialize(**kwargs)
265
+
266
+ async def DescribeInvokerRecords(
267
+ self,
268
+ request: models.DescribeInvokerRecordsRequest,
269
+ opts: Dict = None,
270
+ ) -> models.DescribeInvokerRecordsResponse:
271
+ """
272
+ 此接口用于查询执行器的执行记录。
273
+ """
274
+
275
+ kwargs = {}
276
+ kwargs["action"] = "DescribeInvokerRecords"
277
+ kwargs["params"] = request._serialize()
278
+ kwargs["resp_cls"] = models.DescribeInvokerRecordsResponse
279
+ kwargs["headers"] = request.headers
280
+ kwargs["opts"] = opts or {}
281
+
282
+ return await self.call_and_deserialize(**kwargs)
283
+
284
+ async def DescribeInvokers(
285
+ self,
286
+ request: models.DescribeInvokersRequest,
287
+ opts: Dict = None,
288
+ ) -> models.DescribeInvokersResponse:
289
+ """
290
+ 此接口用于查询执行器信息。
291
+ """
292
+
293
+ kwargs = {}
294
+ kwargs["action"] = "DescribeInvokers"
295
+ kwargs["params"] = request._serialize()
296
+ kwargs["resp_cls"] = models.DescribeInvokersResponse
297
+ kwargs["headers"] = request.headers
298
+ kwargs["opts"] = opts or {}
299
+
300
+ return await self.call_and_deserialize(**kwargs)
301
+
302
+ async def DescribeQuotas(
303
+ self,
304
+ request: models.DescribeQuotasRequest,
305
+ opts: Dict = None,
306
+ ) -> models.DescribeQuotasResponse:
307
+ """
308
+ 此接口用于获取配额信息
309
+ """
310
+
311
+ kwargs = {}
312
+ kwargs["action"] = "DescribeQuotas"
313
+ kwargs["params"] = request._serialize()
314
+ kwargs["resp_cls"] = models.DescribeQuotasResponse
315
+ kwargs["headers"] = request.headers
316
+ kwargs["opts"] = opts or {}
317
+
318
+ return await self.call_and_deserialize(**kwargs)
319
+
320
+ async def DescribeRegions(
321
+ self,
322
+ request: models.DescribeRegionsRequest,
323
+ opts: Dict = None,
324
+ ) -> models.DescribeRegionsResponse:
325
+ """
326
+ 此接口用于查询 TAT 产品后台地域列表。
327
+ RegionState 为 AVAILABLE,代表该地域的 TAT 后台服务已经可用;未返回,代表该地域的 TAT 后台服务尚不可用。
328
+ """
329
+
330
+ kwargs = {}
331
+ kwargs["action"] = "DescribeRegions"
332
+ kwargs["params"] = request._serialize()
333
+ kwargs["resp_cls"] = models.DescribeRegionsResponse
334
+ kwargs["headers"] = request.headers
335
+ kwargs["opts"] = opts or {}
336
+
337
+ return await self.call_and_deserialize(**kwargs)
338
+
339
+ async def DescribeRegisterCodes(
340
+ self,
341
+ request: models.DescribeRegisterCodesRequest,
342
+ opts: Dict = None,
343
+ ) -> models.DescribeRegisterCodesResponse:
344
+ """
345
+ 接口用于查询注册码信息。
346
+ """
347
+
348
+ kwargs = {}
349
+ kwargs["action"] = "DescribeRegisterCodes"
350
+ kwargs["params"] = request._serialize()
351
+ kwargs["resp_cls"] = models.DescribeRegisterCodesResponse
352
+ kwargs["headers"] = request.headers
353
+ kwargs["opts"] = opts or {}
354
+
355
+ return await self.call_and_deserialize(**kwargs)
356
+
357
+ async def DescribeRegisterInstances(
358
+ self,
359
+ request: models.DescribeRegisterInstancesRequest,
360
+ opts: Dict = None,
361
+ ) -> models.DescribeRegisterInstancesResponse:
362
+ """
363
+ 接口用于查询被托管的实例信息。
364
+ """
365
+
366
+ kwargs = {}
367
+ kwargs["action"] = "DescribeRegisterInstances"
368
+ kwargs["params"] = request._serialize()
369
+ kwargs["resp_cls"] = models.DescribeRegisterInstancesResponse
370
+ kwargs["headers"] = request.headers
371
+ kwargs["opts"] = opts or {}
372
+
373
+ return await self.call_and_deserialize(**kwargs)
374
+
375
+ async def DescribeScenes(
376
+ self,
377
+ request: models.DescribeScenesRequest,
378
+ opts: Dict = None,
379
+ ) -> models.DescribeScenesResponse:
380
+ """
381
+ 此接口用于查询场景详情。
382
+ """
383
+
384
+ kwargs = {}
385
+ kwargs["action"] = "DescribeScenes"
386
+ kwargs["params"] = request._serialize()
387
+ kwargs["resp_cls"] = models.DescribeScenesResponse
388
+ kwargs["headers"] = request.headers
389
+ kwargs["opts"] = opts or {}
390
+
391
+ return await self.call_and_deserialize(**kwargs)
392
+
393
+ async def DisableInvoker(
394
+ self,
395
+ request: models.DisableInvokerRequest,
396
+ opts: Dict = None,
397
+ ) -> models.DisableInvokerResponse:
398
+ """
399
+ 此接口用于停止执行器。
400
+ """
401
+
402
+ kwargs = {}
403
+ kwargs["action"] = "DisableInvoker"
404
+ kwargs["params"] = request._serialize()
405
+ kwargs["resp_cls"] = models.DisableInvokerResponse
406
+ kwargs["headers"] = request.headers
407
+ kwargs["opts"] = opts or {}
408
+
409
+ return await self.call_and_deserialize(**kwargs)
410
+
411
+ async def DisableRegisterCodes(
412
+ self,
413
+ request: models.DisableRegisterCodesRequest,
414
+ opts: Dict = None,
415
+ ) -> models.DisableRegisterCodesResponse:
416
+ """
417
+ 此接口用于批量禁用注册码。
418
+ """
419
+
420
+ kwargs = {}
421
+ kwargs["action"] = "DisableRegisterCodes"
422
+ kwargs["params"] = request._serialize()
423
+ kwargs["resp_cls"] = models.DisableRegisterCodesResponse
424
+ kwargs["headers"] = request.headers
425
+ kwargs["opts"] = opts or {}
426
+
427
+ return await self.call_and_deserialize(**kwargs)
428
+
429
+ async def EnableInvoker(
430
+ self,
431
+ request: models.EnableInvokerRequest,
432
+ opts: Dict = None,
433
+ ) -> models.EnableInvokerResponse:
434
+ """
435
+ 此接口用于启用执行器。
436
+ """
437
+
438
+ kwargs = {}
439
+ kwargs["action"] = "EnableInvoker"
440
+ kwargs["params"] = request._serialize()
441
+ kwargs["resp_cls"] = models.EnableInvokerResponse
442
+ kwargs["headers"] = request.headers
443
+ kwargs["opts"] = opts or {}
444
+
445
+ return await self.call_and_deserialize(**kwargs)
446
+
447
+ async def InvokeCommand(
448
+ self,
449
+ request: models.InvokeCommandRequest,
450
+ opts: Dict = None,
451
+ ) -> models.InvokeCommandResponse:
452
+ """
453
+ 在指定的实例上触发命令,调用成功返回执行活动ID(inv-xxxxxxxx),每个执行活动内部有一个或多个执行任务(invt-xxxxxxxx),每个执行任务代表命令在一台 CVM 或一台 Lighthouse 上的执行记录。
454
+
455
+ * 如果指定实例未安装 agent,或 agent 不在线,返回失败
456
+ * 如果命令类型与 agent 运行环境不符,返回失败
457
+ * 指定的实例需要处于 VPC 网络
458
+ * 指定的实例需要处于 RUNNING 状态
459
+ * 不可同时指定 CVM 和 Lighthouse
460
+ """
461
+
462
+ kwargs = {}
463
+ kwargs["action"] = "InvokeCommand"
464
+ kwargs["params"] = request._serialize()
465
+ kwargs["resp_cls"] = models.InvokeCommandResponse
466
+ kwargs["headers"] = request.headers
467
+ kwargs["opts"] = opts or {}
468
+
469
+ return await self.call_and_deserialize(**kwargs)
470
+
471
+ async def ModifyCommand(
472
+ self,
473
+ request: models.ModifyCommandRequest,
474
+ opts: Dict = None,
475
+ ) -> models.ModifyCommandResponse:
476
+ """
477
+ 此接口用于修改命令。
478
+ """
479
+
480
+ kwargs = {}
481
+ kwargs["action"] = "ModifyCommand"
482
+ kwargs["params"] = request._serialize()
483
+ kwargs["resp_cls"] = models.ModifyCommandResponse
484
+ kwargs["headers"] = request.headers
485
+ kwargs["opts"] = opts or {}
486
+
487
+ return await self.call_and_deserialize(**kwargs)
488
+
489
+ async def ModifyInvoker(
490
+ self,
491
+ request: models.ModifyInvokerRequest,
492
+ opts: Dict = None,
493
+ ) -> models.ModifyInvokerResponse:
494
+ """
495
+ 此接口用于修改执行器。
496
+ """
497
+
498
+ kwargs = {}
499
+ kwargs["action"] = "ModifyInvoker"
500
+ kwargs["params"] = request._serialize()
501
+ kwargs["resp_cls"] = models.ModifyInvokerResponse
502
+ kwargs["headers"] = request.headers
503
+ kwargs["opts"] = opts or {}
504
+
505
+ return await self.call_and_deserialize(**kwargs)
506
+
507
+ async def ModifyRegisterInstance(
508
+ self,
509
+ request: models.ModifyRegisterInstanceRequest,
510
+ opts: Dict = None,
511
+ ) -> models.ModifyRegisterInstanceResponse:
512
+ """
513
+ 接口用于修改托管实例信息。
514
+ """
515
+
516
+ kwargs = {}
517
+ kwargs["action"] = "ModifyRegisterInstance"
518
+ kwargs["params"] = request._serialize()
519
+ kwargs["resp_cls"] = models.ModifyRegisterInstanceResponse
520
+ kwargs["headers"] = request.headers
521
+ kwargs["opts"] = opts or {}
522
+
523
+ return await self.call_and_deserialize(**kwargs)
524
+
525
+ async def PreviewReplacedCommandContent(
526
+ self,
527
+ request: models.PreviewReplacedCommandContentRequest,
528
+ opts: Dict = None,
529
+ ) -> models.PreviewReplacedCommandContentResponse:
530
+ """
531
+ 此接口用于预览自定义参数替换后的命令内容。不会触发真实执行。
532
+ """
533
+
534
+ kwargs = {}
535
+ kwargs["action"] = "PreviewReplacedCommandContent"
536
+ kwargs["params"] = request._serialize()
537
+ kwargs["resp_cls"] = models.PreviewReplacedCommandContentResponse
538
+ kwargs["headers"] = request.headers
539
+ kwargs["opts"] = opts or {}
540
+
541
+ return await self.call_and_deserialize(**kwargs)
542
+
543
+ async def RunCommand(
544
+ self,
545
+ request: models.RunCommandRequest,
546
+ opts: Dict = None,
547
+ ) -> models.RunCommandResponse:
548
+ """
549
+ 执行命令,调用成功返回执行活动ID(inv-xxxxxxxx),每个执行活动内部有一个或多个执行任务(invt-xxxxxxxx),每个执行任务代表命令在一台 CVM 或一台 Lighthouse 上的执行记录。
550
+
551
+ * 如果指定实例未安装 agent,或 agent 不在线,返回失败
552
+ * 如果命令类型与 agent 运行环境不符,返回失败
553
+ * 指定的实例需要处于 VPC 网络
554
+ * 指定的实例需要处于 `RUNNING` 状态
555
+ * 不可同时指定 CVM 和 Lighthouse
556
+ """
557
+
558
+ kwargs = {}
559
+ kwargs["action"] = "RunCommand"
560
+ kwargs["params"] = request._serialize()
561
+ kwargs["resp_cls"] = models.RunCommandResponse
562
+ kwargs["headers"] = request.headers
563
+ kwargs["opts"] = opts or {}
564
+
565
+ return await self.call_and_deserialize(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tat
3
- Version: 3.0.1483
3
+ Version: 3.1.51
4
4
  Summary: Tencent Cloud Tat 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.0.1483
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.51
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -7,6 +7,7 @@ tencentcloud/tat/v20201028/__init__.py
7
7
  tencentcloud/tat/v20201028/errorcodes.py
8
8
  tencentcloud/tat/v20201028/models.py
9
9
  tencentcloud/tat/v20201028/tat_client.py
10
+ tencentcloud/tat/v20201028/tat_client_async.py
10
11
  tencentcloud_sdk_python_tat.egg-info/PKG-INFO
11
12
  tencentcloud_sdk_python_tat.egg-info/SOURCES.txt
12
13
  tencentcloud_sdk_python_tat.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.51
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1483