tencentcloud-sdk-python 3.0.1357__py2.py3-none-any.whl → 3.0.1359__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/ccc/v20200210/ccc_client.py +69 -0
- tencentcloud/ccc/v20200210/models.py +559 -0
- 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/clb/v20180317/models.py +17 -0
- tencentcloud/cls/v20201016/cls_client.py +23 -0
- tencentcloud/cls/v20201016/models.py +79 -0
- tencentcloud/cwp/v20180228/cwp_client.py +1 -1
- tencentcloud/cwp/v20180228/models.py +4 -4
- 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 +34 -0
- tencentcloud/ess/v20201111/models.py +137 -2
- tencentcloud/essbasic/v20210526/essbasic_client.py +33 -0
- tencentcloud/essbasic/v20210526/models.py +120 -0
- tencentcloud/hunyuan/v20230901/errorcodes.py +27 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +46 -0
- tencentcloud/hunyuan/v20230901/models.py +345 -0
- tencentcloud/lcic/v20220817/models.py +15 -0
- tencentcloud/live/v20180801/models.py +2 -14
- tencentcloud/lke/v20231130/models.py +232 -2
- tencentcloud/lkeap/v20240522/lkeap_client.py +3 -3
- tencentcloud/monitor/v20180724/errorcodes.py +3 -0
- tencentcloud/monitor/v20180724/models.py +34 -0
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/mps/v20190612/models.py +38 -20
- 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/trtc/v20190722/models.py +4 -10
- tencentcloud/trtc/v20190722/trtc_client.py +4 -0
- tencentcloud/tse/v20201207/models.py +0 -298
- 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.1359.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1359.dist-info}/RECORD +57 -53
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1359.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1359.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1357.dist-info → tencentcloud_sdk_python-3.0.1359.dist-info}/top_level.txt +0 -0
@@ -3559,6 +3559,205 @@ class CreateDeviceGroupResponse(AbstractModel):
|
|
3559
3559
|
self._RequestId = params.get("RequestId")
|
3560
3560
|
|
3561
3561
|
|
3562
|
+
class CreateOperationTaskRequest(AbstractModel):
|
3563
|
+
"""CreateOperationTask请求参数结构体
|
3564
|
+
|
3565
|
+
"""
|
3566
|
+
|
3567
|
+
def __init__(self):
|
3568
|
+
r"""
|
3569
|
+
:param _Name: 运维任务名称
|
3570
|
+
:type Name: str
|
3571
|
+
:param _Type: 运维任务类型,1 - 手工执行, 2 - 周期性自动执行
|
3572
|
+
:type Type: int
|
3573
|
+
:param _Account: 执行账号
|
3574
|
+
:type Account: str
|
3575
|
+
:param _Timeout: 超时时间,单位秒
|
3576
|
+
:type Timeout: int
|
3577
|
+
:param _Script: 执行脚本内容
|
3578
|
+
:type Script: str
|
3579
|
+
:param _DeviceIdSet: 执行主机集合,满足条件以下三个条件:1. 资产绑定可用的专业版或国密版堡垒机服务;2、资产类型为linux资产;3、用户具有资产权限,且资产添加了指定执行账号
|
3580
|
+
:type DeviceIdSet: list of int non-negative
|
3581
|
+
:param _Period: 执行间隔,单位天. 手工执行时无需传入
|
3582
|
+
:type Period: int
|
3583
|
+
:param _FirstTime: 首次执行日期 默认1970-01-01T08:00:01+08:00,手工执行时无需传入
|
3584
|
+
:type FirstTime: str
|
3585
|
+
:param _Encoding: Script参数是否需要进行base64编码后传递,1-需要进行base64编码后传递,非1值-不需要进行base64编码后传递
|
3586
|
+
:type Encoding: int
|
3587
|
+
"""
|
3588
|
+
self._Name = None
|
3589
|
+
self._Type = None
|
3590
|
+
self._Account = None
|
3591
|
+
self._Timeout = None
|
3592
|
+
self._Script = None
|
3593
|
+
self._DeviceIdSet = None
|
3594
|
+
self._Period = None
|
3595
|
+
self._FirstTime = None
|
3596
|
+
self._Encoding = None
|
3597
|
+
|
3598
|
+
@property
|
3599
|
+
def Name(self):
|
3600
|
+
"""运维任务名称
|
3601
|
+
:rtype: str
|
3602
|
+
"""
|
3603
|
+
return self._Name
|
3604
|
+
|
3605
|
+
@Name.setter
|
3606
|
+
def Name(self, Name):
|
3607
|
+
self._Name = Name
|
3608
|
+
|
3609
|
+
@property
|
3610
|
+
def Type(self):
|
3611
|
+
"""运维任务类型,1 - 手工执行, 2 - 周期性自动执行
|
3612
|
+
:rtype: int
|
3613
|
+
"""
|
3614
|
+
return self._Type
|
3615
|
+
|
3616
|
+
@Type.setter
|
3617
|
+
def Type(self, Type):
|
3618
|
+
self._Type = Type
|
3619
|
+
|
3620
|
+
@property
|
3621
|
+
def Account(self):
|
3622
|
+
"""执行账号
|
3623
|
+
:rtype: str
|
3624
|
+
"""
|
3625
|
+
return self._Account
|
3626
|
+
|
3627
|
+
@Account.setter
|
3628
|
+
def Account(self, Account):
|
3629
|
+
self._Account = Account
|
3630
|
+
|
3631
|
+
@property
|
3632
|
+
def Timeout(self):
|
3633
|
+
"""超时时间,单位秒
|
3634
|
+
:rtype: int
|
3635
|
+
"""
|
3636
|
+
return self._Timeout
|
3637
|
+
|
3638
|
+
@Timeout.setter
|
3639
|
+
def Timeout(self, Timeout):
|
3640
|
+
self._Timeout = Timeout
|
3641
|
+
|
3642
|
+
@property
|
3643
|
+
def Script(self):
|
3644
|
+
"""执行脚本内容
|
3645
|
+
:rtype: str
|
3646
|
+
"""
|
3647
|
+
return self._Script
|
3648
|
+
|
3649
|
+
@Script.setter
|
3650
|
+
def Script(self, Script):
|
3651
|
+
self._Script = Script
|
3652
|
+
|
3653
|
+
@property
|
3654
|
+
def DeviceIdSet(self):
|
3655
|
+
"""执行主机集合,满足条件以下三个条件:1. 资产绑定可用的专业版或国密版堡垒机服务;2、资产类型为linux资产;3、用户具有资产权限,且资产添加了指定执行账号
|
3656
|
+
:rtype: list of int non-negative
|
3657
|
+
"""
|
3658
|
+
return self._DeviceIdSet
|
3659
|
+
|
3660
|
+
@DeviceIdSet.setter
|
3661
|
+
def DeviceIdSet(self, DeviceIdSet):
|
3662
|
+
self._DeviceIdSet = DeviceIdSet
|
3663
|
+
|
3664
|
+
@property
|
3665
|
+
def Period(self):
|
3666
|
+
"""执行间隔,单位天. 手工执行时无需传入
|
3667
|
+
:rtype: int
|
3668
|
+
"""
|
3669
|
+
return self._Period
|
3670
|
+
|
3671
|
+
@Period.setter
|
3672
|
+
def Period(self, Period):
|
3673
|
+
self._Period = Period
|
3674
|
+
|
3675
|
+
@property
|
3676
|
+
def FirstTime(self):
|
3677
|
+
"""首次执行日期 默认1970-01-01T08:00:01+08:00,手工执行时无需传入
|
3678
|
+
:rtype: str
|
3679
|
+
"""
|
3680
|
+
return self._FirstTime
|
3681
|
+
|
3682
|
+
@FirstTime.setter
|
3683
|
+
def FirstTime(self, FirstTime):
|
3684
|
+
self._FirstTime = FirstTime
|
3685
|
+
|
3686
|
+
@property
|
3687
|
+
def Encoding(self):
|
3688
|
+
"""Script参数是否需要进行base64编码后传递,1-需要进行base64编码后传递,非1值-不需要进行base64编码后传递
|
3689
|
+
:rtype: int
|
3690
|
+
"""
|
3691
|
+
return self._Encoding
|
3692
|
+
|
3693
|
+
@Encoding.setter
|
3694
|
+
def Encoding(self, Encoding):
|
3695
|
+
self._Encoding = Encoding
|
3696
|
+
|
3697
|
+
|
3698
|
+
def _deserialize(self, params):
|
3699
|
+
self._Name = params.get("Name")
|
3700
|
+
self._Type = params.get("Type")
|
3701
|
+
self._Account = params.get("Account")
|
3702
|
+
self._Timeout = params.get("Timeout")
|
3703
|
+
self._Script = params.get("Script")
|
3704
|
+
self._DeviceIdSet = params.get("DeviceIdSet")
|
3705
|
+
self._Period = params.get("Period")
|
3706
|
+
self._FirstTime = params.get("FirstTime")
|
3707
|
+
self._Encoding = params.get("Encoding")
|
3708
|
+
memeber_set = set(params.keys())
|
3709
|
+
for name, value in vars(self).items():
|
3710
|
+
property_name = name[1:]
|
3711
|
+
if property_name in memeber_set:
|
3712
|
+
memeber_set.remove(property_name)
|
3713
|
+
if len(memeber_set) > 0:
|
3714
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3715
|
+
|
3716
|
+
|
3717
|
+
|
3718
|
+
class CreateOperationTaskResponse(AbstractModel):
|
3719
|
+
"""CreateOperationTask返回参数结构体
|
3720
|
+
|
3721
|
+
"""
|
3722
|
+
|
3723
|
+
def __init__(self):
|
3724
|
+
r"""
|
3725
|
+
:param _TaskId: 运维任务ID
|
3726
|
+
:type TaskId: int
|
3727
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3728
|
+
:type RequestId: str
|
3729
|
+
"""
|
3730
|
+
self._TaskId = None
|
3731
|
+
self._RequestId = None
|
3732
|
+
|
3733
|
+
@property
|
3734
|
+
def TaskId(self):
|
3735
|
+
"""运维任务ID
|
3736
|
+
:rtype: int
|
3737
|
+
"""
|
3738
|
+
return self._TaskId
|
3739
|
+
|
3740
|
+
@TaskId.setter
|
3741
|
+
def TaskId(self, TaskId):
|
3742
|
+
self._TaskId = TaskId
|
3743
|
+
|
3744
|
+
@property
|
3745
|
+
def RequestId(self):
|
3746
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3747
|
+
:rtype: str
|
3748
|
+
"""
|
3749
|
+
return self._RequestId
|
3750
|
+
|
3751
|
+
@RequestId.setter
|
3752
|
+
def RequestId(self, RequestId):
|
3753
|
+
self._RequestId = RequestId
|
3754
|
+
|
3755
|
+
|
3756
|
+
def _deserialize(self, params):
|
3757
|
+
self._TaskId = params.get("TaskId")
|
3758
|
+
self._RequestId = params.get("RequestId")
|
3759
|
+
|
3760
|
+
|
3562
3761
|
class CreateResourceRequest(AbstractModel):
|
3563
3762
|
"""CreateResource请求参数结构体
|
3564
3763
|
|
@@ -4563,6 +4762,70 @@ class DeleteDevicesResponse(AbstractModel):
|
|
4563
4762
|
self._RequestId = params.get("RequestId")
|
4564
4763
|
|
4565
4764
|
|
4765
|
+
class DeleteOperationTasksRequest(AbstractModel):
|
4766
|
+
"""DeleteOperationTasks请求参数结构体
|
4767
|
+
|
4768
|
+
"""
|
4769
|
+
|
4770
|
+
def __init__(self):
|
4771
|
+
r"""
|
4772
|
+
:param _IdSet: 运维任务ID集合
|
4773
|
+
:type IdSet: list of int non-negative
|
4774
|
+
"""
|
4775
|
+
self._IdSet = None
|
4776
|
+
|
4777
|
+
@property
|
4778
|
+
def IdSet(self):
|
4779
|
+
"""运维任务ID集合
|
4780
|
+
:rtype: list of int non-negative
|
4781
|
+
"""
|
4782
|
+
return self._IdSet
|
4783
|
+
|
4784
|
+
@IdSet.setter
|
4785
|
+
def IdSet(self, IdSet):
|
4786
|
+
self._IdSet = IdSet
|
4787
|
+
|
4788
|
+
|
4789
|
+
def _deserialize(self, params):
|
4790
|
+
self._IdSet = params.get("IdSet")
|
4791
|
+
memeber_set = set(params.keys())
|
4792
|
+
for name, value in vars(self).items():
|
4793
|
+
property_name = name[1:]
|
4794
|
+
if property_name in memeber_set:
|
4795
|
+
memeber_set.remove(property_name)
|
4796
|
+
if len(memeber_set) > 0:
|
4797
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4798
|
+
|
4799
|
+
|
4800
|
+
|
4801
|
+
class DeleteOperationTasksResponse(AbstractModel):
|
4802
|
+
"""DeleteOperationTasks返回参数结构体
|
4803
|
+
|
4804
|
+
"""
|
4805
|
+
|
4806
|
+
def __init__(self):
|
4807
|
+
r"""
|
4808
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4809
|
+
:type RequestId: str
|
4810
|
+
"""
|
4811
|
+
self._RequestId = None
|
4812
|
+
|
4813
|
+
@property
|
4814
|
+
def RequestId(self):
|
4815
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4816
|
+
:rtype: str
|
4817
|
+
"""
|
4818
|
+
return self._RequestId
|
4819
|
+
|
4820
|
+
@RequestId.setter
|
4821
|
+
def RequestId(self, RequestId):
|
4822
|
+
self._RequestId = RequestId
|
4823
|
+
|
4824
|
+
|
4825
|
+
def _deserialize(self, params):
|
4826
|
+
self._RequestId = params.get("RequestId")
|
4827
|
+
|
4828
|
+
|
4566
4829
|
class DeleteUserGroupMembersRequest(AbstractModel):
|
4567
4830
|
"""DeleteUserGroupMembers请求参数结构体
|
4568
4831
|
|
@@ -7343,51 +7606,195 @@ class DescribeOperationEventResponse(AbstractModel):
|
|
7343
7606
|
self._RequestId = params.get("RequestId")
|
7344
7607
|
|
7345
7608
|
|
7346
|
-
class
|
7347
|
-
"""
|
7609
|
+
class DescribeOperationTaskRequest(AbstractModel):
|
7610
|
+
"""DescribeOperationTask请求参数结构体
|
7348
7611
|
|
7349
7612
|
"""
|
7350
7613
|
|
7351
7614
|
def __init__(self):
|
7352
7615
|
r"""
|
7353
|
-
:param
|
7354
|
-
:type
|
7355
|
-
:param
|
7356
|
-
:type
|
7357
|
-
:param
|
7358
|
-
:type ResourceIds: list of str
|
7359
|
-
:param _Limit: 每页条目数量
|
7360
|
-
:type Limit: int
|
7361
|
-
:param _Offset: 分页偏移位置
|
7616
|
+
:param _Name: 运维任务名称
|
7617
|
+
:type Name: str
|
7618
|
+
:param _Type: 运维任务类型,1 - 手工执行任务, 2 - 周期性任务
|
7619
|
+
:type Type: int
|
7620
|
+
:param _Offset: 分页偏移位置,默认值为0
|
7362
7621
|
:type Offset: int
|
7622
|
+
:param _Limit: 每页条目数,默认20
|
7623
|
+
:type Limit: int
|
7363
7624
|
"""
|
7364
|
-
self.
|
7365
|
-
self.
|
7366
|
-
self._ResourceIds = None
|
7367
|
-
self._Limit = None
|
7625
|
+
self._Name = None
|
7626
|
+
self._Type = None
|
7368
7627
|
self._Offset = None
|
7628
|
+
self._Limit = None
|
7369
7629
|
|
7370
7630
|
@property
|
7371
|
-
def
|
7372
|
-
"""
|
7631
|
+
def Name(self):
|
7632
|
+
"""运维任务名称
|
7373
7633
|
:rtype: str
|
7374
7634
|
"""
|
7375
|
-
return self.
|
7635
|
+
return self._Name
|
7376
7636
|
|
7377
|
-
@
|
7378
|
-
def
|
7379
|
-
self.
|
7637
|
+
@Name.setter
|
7638
|
+
def Name(self, Name):
|
7639
|
+
self._Name = Name
|
7380
7640
|
|
7381
7641
|
@property
|
7382
|
-
def
|
7383
|
-
"""
|
7384
|
-
:rtype:
|
7642
|
+
def Type(self):
|
7643
|
+
"""运维任务类型,1 - 手工执行任务, 2 - 周期性任务
|
7644
|
+
:rtype: int
|
7385
7645
|
"""
|
7386
|
-
return self.
|
7646
|
+
return self._Type
|
7387
7647
|
|
7388
|
-
@
|
7389
|
-
def
|
7390
|
-
self.
|
7648
|
+
@Type.setter
|
7649
|
+
def Type(self, Type):
|
7650
|
+
self._Type = Type
|
7651
|
+
|
7652
|
+
@property
|
7653
|
+
def Offset(self):
|
7654
|
+
"""分页偏移位置,默认值为0
|
7655
|
+
:rtype: int
|
7656
|
+
"""
|
7657
|
+
return self._Offset
|
7658
|
+
|
7659
|
+
@Offset.setter
|
7660
|
+
def Offset(self, Offset):
|
7661
|
+
self._Offset = Offset
|
7662
|
+
|
7663
|
+
@property
|
7664
|
+
def Limit(self):
|
7665
|
+
"""每页条目数,默认20
|
7666
|
+
:rtype: int
|
7667
|
+
"""
|
7668
|
+
return self._Limit
|
7669
|
+
|
7670
|
+
@Limit.setter
|
7671
|
+
def Limit(self, Limit):
|
7672
|
+
self._Limit = Limit
|
7673
|
+
|
7674
|
+
|
7675
|
+
def _deserialize(self, params):
|
7676
|
+
self._Name = params.get("Name")
|
7677
|
+
self._Type = params.get("Type")
|
7678
|
+
self._Offset = params.get("Offset")
|
7679
|
+
self._Limit = params.get("Limit")
|
7680
|
+
memeber_set = set(params.keys())
|
7681
|
+
for name, value in vars(self).items():
|
7682
|
+
property_name = name[1:]
|
7683
|
+
if property_name in memeber_set:
|
7684
|
+
memeber_set.remove(property_name)
|
7685
|
+
if len(memeber_set) > 0:
|
7686
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7687
|
+
|
7688
|
+
|
7689
|
+
|
7690
|
+
class DescribeOperationTaskResponse(AbstractModel):
|
7691
|
+
"""DescribeOperationTask返回参数结构体
|
7692
|
+
|
7693
|
+
"""
|
7694
|
+
|
7695
|
+
def __init__(self):
|
7696
|
+
r"""
|
7697
|
+
:param _OperationTasks: 运维任务列表
|
7698
|
+
:type OperationTasks: list of OperationTask
|
7699
|
+
:param _TotalCount: 任务总数
|
7700
|
+
:type TotalCount: int
|
7701
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7702
|
+
:type RequestId: str
|
7703
|
+
"""
|
7704
|
+
self._OperationTasks = None
|
7705
|
+
self._TotalCount = None
|
7706
|
+
self._RequestId = None
|
7707
|
+
|
7708
|
+
@property
|
7709
|
+
def OperationTasks(self):
|
7710
|
+
"""运维任务列表
|
7711
|
+
:rtype: list of OperationTask
|
7712
|
+
"""
|
7713
|
+
return self._OperationTasks
|
7714
|
+
|
7715
|
+
@OperationTasks.setter
|
7716
|
+
def OperationTasks(self, OperationTasks):
|
7717
|
+
self._OperationTasks = OperationTasks
|
7718
|
+
|
7719
|
+
@property
|
7720
|
+
def TotalCount(self):
|
7721
|
+
"""任务总数
|
7722
|
+
:rtype: int
|
7723
|
+
"""
|
7724
|
+
return self._TotalCount
|
7725
|
+
|
7726
|
+
@TotalCount.setter
|
7727
|
+
def TotalCount(self, TotalCount):
|
7728
|
+
self._TotalCount = TotalCount
|
7729
|
+
|
7730
|
+
@property
|
7731
|
+
def RequestId(self):
|
7732
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7733
|
+
:rtype: str
|
7734
|
+
"""
|
7735
|
+
return self._RequestId
|
7736
|
+
|
7737
|
+
@RequestId.setter
|
7738
|
+
def RequestId(self, RequestId):
|
7739
|
+
self._RequestId = RequestId
|
7740
|
+
|
7741
|
+
|
7742
|
+
def _deserialize(self, params):
|
7743
|
+
if params.get("OperationTasks") is not None:
|
7744
|
+
self._OperationTasks = []
|
7745
|
+
for item in params.get("OperationTasks"):
|
7746
|
+
obj = OperationTask()
|
7747
|
+
obj._deserialize(item)
|
7748
|
+
self._OperationTasks.append(obj)
|
7749
|
+
self._TotalCount = params.get("TotalCount")
|
7750
|
+
self._RequestId = params.get("RequestId")
|
7751
|
+
|
7752
|
+
|
7753
|
+
class DescribeResourcesRequest(AbstractModel):
|
7754
|
+
"""DescribeResources请求参数结构体
|
7755
|
+
|
7756
|
+
"""
|
7757
|
+
|
7758
|
+
def __init__(self):
|
7759
|
+
r"""
|
7760
|
+
:param _ApCode: 地域码, 如: ap-guangzhou
|
7761
|
+
:type ApCode: str
|
7762
|
+
:param _VpcId: 按照堡垒机开通的 VPC 实例ID查询
|
7763
|
+
:type VpcId: str
|
7764
|
+
:param _ResourceIds: 资源ID集合,当传入ID集合时忽略 ApCode 和 VpcId
|
7765
|
+
:type ResourceIds: list of str
|
7766
|
+
:param _Limit: 每页条目数量
|
7767
|
+
:type Limit: int
|
7768
|
+
:param _Offset: 分页偏移位置
|
7769
|
+
:type Offset: int
|
7770
|
+
"""
|
7771
|
+
self._ApCode = None
|
7772
|
+
self._VpcId = None
|
7773
|
+
self._ResourceIds = None
|
7774
|
+
self._Limit = None
|
7775
|
+
self._Offset = None
|
7776
|
+
|
7777
|
+
@property
|
7778
|
+
def ApCode(self):
|
7779
|
+
"""地域码, 如: ap-guangzhou
|
7780
|
+
:rtype: str
|
7781
|
+
"""
|
7782
|
+
return self._ApCode
|
7783
|
+
|
7784
|
+
@ApCode.setter
|
7785
|
+
def ApCode(self, ApCode):
|
7786
|
+
self._ApCode = ApCode
|
7787
|
+
|
7788
|
+
@property
|
7789
|
+
def VpcId(self):
|
7790
|
+
"""按照堡垒机开通的 VPC 实例ID查询
|
7791
|
+
:rtype: str
|
7792
|
+
"""
|
7793
|
+
return self._VpcId
|
7794
|
+
|
7795
|
+
@VpcId.setter
|
7796
|
+
def VpcId(self, VpcId):
|
7797
|
+
self._VpcId = VpcId
|
7391
7798
|
|
7392
7799
|
@property
|
7393
7800
|
def ResourceIds(self):
|
@@ -10463,6 +10870,205 @@ class ModifyOAuthSettingResponse(AbstractModel):
|
|
10463
10870
|
self._RequestId = params.get("RequestId")
|
10464
10871
|
|
10465
10872
|
|
10873
|
+
class ModifyOperationTaskRequest(AbstractModel):
|
10874
|
+
"""ModifyOperationTask请求参数结构体
|
10875
|
+
|
10876
|
+
"""
|
10877
|
+
|
10878
|
+
def __init__(self):
|
10879
|
+
r"""
|
10880
|
+
:param _Id: 任务Id
|
10881
|
+
:type Id: int
|
10882
|
+
:param _Name: 任务名称
|
10883
|
+
:type Name: str
|
10884
|
+
:param _Type: 任务类型, 1 - 手工执行, 2 - 周期性自动执行
|
10885
|
+
:type Type: int
|
10886
|
+
:param _Account: 执行账号
|
10887
|
+
:type Account: str
|
10888
|
+
:param _Timeout: 超时时间,单位秒
|
10889
|
+
:type Timeout: int
|
10890
|
+
:param _Script: 执行脚本内容
|
10891
|
+
:type Script: str
|
10892
|
+
:param _DeviceIdSet: 执行主机集合,满足条件以下三个条件:1. 资产绑定可用的专业版或国密版堡垒机服务;2、资产类型为linux资产;3、用户具有资产权限,且资产添加了指定执行账号
|
10893
|
+
:type DeviceIdSet: list of int non-negative
|
10894
|
+
:param _Period: 执行间隔,单位天. 手工执行时无需传入
|
10895
|
+
:type Period: int
|
10896
|
+
:param _FirstTime: 首次执行日期,默认1970-01-01T08:00:01+08:00,手工执行时无需传入
|
10897
|
+
:type FirstTime: str
|
10898
|
+
:param _Encoding: Script参数是否需要进行base64编码后传递,1-需要进行base64编码后传递,非1值-不需要进行base64编码后传递
|
10899
|
+
:type Encoding: int
|
10900
|
+
"""
|
10901
|
+
self._Id = None
|
10902
|
+
self._Name = None
|
10903
|
+
self._Type = None
|
10904
|
+
self._Account = None
|
10905
|
+
self._Timeout = None
|
10906
|
+
self._Script = None
|
10907
|
+
self._DeviceIdSet = None
|
10908
|
+
self._Period = None
|
10909
|
+
self._FirstTime = None
|
10910
|
+
self._Encoding = None
|
10911
|
+
|
10912
|
+
@property
|
10913
|
+
def Id(self):
|
10914
|
+
"""任务Id
|
10915
|
+
:rtype: int
|
10916
|
+
"""
|
10917
|
+
return self._Id
|
10918
|
+
|
10919
|
+
@Id.setter
|
10920
|
+
def Id(self, Id):
|
10921
|
+
self._Id = Id
|
10922
|
+
|
10923
|
+
@property
|
10924
|
+
def Name(self):
|
10925
|
+
"""任务名称
|
10926
|
+
:rtype: str
|
10927
|
+
"""
|
10928
|
+
return self._Name
|
10929
|
+
|
10930
|
+
@Name.setter
|
10931
|
+
def Name(self, Name):
|
10932
|
+
self._Name = Name
|
10933
|
+
|
10934
|
+
@property
|
10935
|
+
def Type(self):
|
10936
|
+
"""任务类型, 1 - 手工执行, 2 - 周期性自动执行
|
10937
|
+
:rtype: int
|
10938
|
+
"""
|
10939
|
+
return self._Type
|
10940
|
+
|
10941
|
+
@Type.setter
|
10942
|
+
def Type(self, Type):
|
10943
|
+
self._Type = Type
|
10944
|
+
|
10945
|
+
@property
|
10946
|
+
def Account(self):
|
10947
|
+
"""执行账号
|
10948
|
+
:rtype: str
|
10949
|
+
"""
|
10950
|
+
return self._Account
|
10951
|
+
|
10952
|
+
@Account.setter
|
10953
|
+
def Account(self, Account):
|
10954
|
+
self._Account = Account
|
10955
|
+
|
10956
|
+
@property
|
10957
|
+
def Timeout(self):
|
10958
|
+
"""超时时间,单位秒
|
10959
|
+
:rtype: int
|
10960
|
+
"""
|
10961
|
+
return self._Timeout
|
10962
|
+
|
10963
|
+
@Timeout.setter
|
10964
|
+
def Timeout(self, Timeout):
|
10965
|
+
self._Timeout = Timeout
|
10966
|
+
|
10967
|
+
@property
|
10968
|
+
def Script(self):
|
10969
|
+
"""执行脚本内容
|
10970
|
+
:rtype: str
|
10971
|
+
"""
|
10972
|
+
return self._Script
|
10973
|
+
|
10974
|
+
@Script.setter
|
10975
|
+
def Script(self, Script):
|
10976
|
+
self._Script = Script
|
10977
|
+
|
10978
|
+
@property
|
10979
|
+
def DeviceIdSet(self):
|
10980
|
+
"""执行主机集合,满足条件以下三个条件:1. 资产绑定可用的专业版或国密版堡垒机服务;2、资产类型为linux资产;3、用户具有资产权限,且资产添加了指定执行账号
|
10981
|
+
:rtype: list of int non-negative
|
10982
|
+
"""
|
10983
|
+
return self._DeviceIdSet
|
10984
|
+
|
10985
|
+
@DeviceIdSet.setter
|
10986
|
+
def DeviceIdSet(self, DeviceIdSet):
|
10987
|
+
self._DeviceIdSet = DeviceIdSet
|
10988
|
+
|
10989
|
+
@property
|
10990
|
+
def Period(self):
|
10991
|
+
"""执行间隔,单位天. 手工执行时无需传入
|
10992
|
+
:rtype: int
|
10993
|
+
"""
|
10994
|
+
return self._Period
|
10995
|
+
|
10996
|
+
@Period.setter
|
10997
|
+
def Period(self, Period):
|
10998
|
+
self._Period = Period
|
10999
|
+
|
11000
|
+
@property
|
11001
|
+
def FirstTime(self):
|
11002
|
+
"""首次执行日期,默认1970-01-01T08:00:01+08:00,手工执行时无需传入
|
11003
|
+
:rtype: str
|
11004
|
+
"""
|
11005
|
+
return self._FirstTime
|
11006
|
+
|
11007
|
+
@FirstTime.setter
|
11008
|
+
def FirstTime(self, FirstTime):
|
11009
|
+
self._FirstTime = FirstTime
|
11010
|
+
|
11011
|
+
@property
|
11012
|
+
def Encoding(self):
|
11013
|
+
"""Script参数是否需要进行base64编码后传递,1-需要进行base64编码后传递,非1值-不需要进行base64编码后传递
|
11014
|
+
:rtype: int
|
11015
|
+
"""
|
11016
|
+
return self._Encoding
|
11017
|
+
|
11018
|
+
@Encoding.setter
|
11019
|
+
def Encoding(self, Encoding):
|
11020
|
+
self._Encoding = Encoding
|
11021
|
+
|
11022
|
+
|
11023
|
+
def _deserialize(self, params):
|
11024
|
+
self._Id = params.get("Id")
|
11025
|
+
self._Name = params.get("Name")
|
11026
|
+
self._Type = params.get("Type")
|
11027
|
+
self._Account = params.get("Account")
|
11028
|
+
self._Timeout = params.get("Timeout")
|
11029
|
+
self._Script = params.get("Script")
|
11030
|
+
self._DeviceIdSet = params.get("DeviceIdSet")
|
11031
|
+
self._Period = params.get("Period")
|
11032
|
+
self._FirstTime = params.get("FirstTime")
|
11033
|
+
self._Encoding = params.get("Encoding")
|
11034
|
+
memeber_set = set(params.keys())
|
11035
|
+
for name, value in vars(self).items():
|
11036
|
+
property_name = name[1:]
|
11037
|
+
if property_name in memeber_set:
|
11038
|
+
memeber_set.remove(property_name)
|
11039
|
+
if len(memeber_set) > 0:
|
11040
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11041
|
+
|
11042
|
+
|
11043
|
+
|
11044
|
+
class ModifyOperationTaskResponse(AbstractModel):
|
11045
|
+
"""ModifyOperationTask返回参数结构体
|
11046
|
+
|
11047
|
+
"""
|
11048
|
+
|
11049
|
+
def __init__(self):
|
11050
|
+
r"""
|
11051
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11052
|
+
:type RequestId: str
|
11053
|
+
"""
|
11054
|
+
self._RequestId = None
|
11055
|
+
|
11056
|
+
@property
|
11057
|
+
def RequestId(self):
|
11058
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11059
|
+
:rtype: str
|
11060
|
+
"""
|
11061
|
+
return self._RequestId
|
11062
|
+
|
11063
|
+
@RequestId.setter
|
11064
|
+
def RequestId(self, RequestId):
|
11065
|
+
self._RequestId = RequestId
|
11066
|
+
|
11067
|
+
|
11068
|
+
def _deserialize(self, params):
|
11069
|
+
self._RequestId = params.get("RequestId")
|
11070
|
+
|
11071
|
+
|
10466
11072
|
class ModifyResourceRequest(AbstractModel):
|
10467
11073
|
"""ModifyResource请求参数结构体
|
10468
11074
|
|
@@ -11070,6 +11676,162 @@ class OperationEvent(AbstractModel):
|
|
11070
11676
|
|
11071
11677
|
|
11072
11678
|
|
11679
|
+
class OperationTask(AbstractModel):
|
11680
|
+
"""运维任务信息
|
11681
|
+
|
11682
|
+
"""
|
11683
|
+
|
11684
|
+
def __init__(self):
|
11685
|
+
r"""
|
11686
|
+
:param _Id: 运维任务主键ID
|
11687
|
+
:type Id: int
|
11688
|
+
:param _OperationId: 运维任务ID
|
11689
|
+
:type OperationId: str
|
11690
|
+
:param _Name: 运维任务名称
|
11691
|
+
:type Name: str
|
11692
|
+
:param _UserName: 创建用户
|
11693
|
+
:type UserName: str
|
11694
|
+
:param _RealName: 运维人员姓名
|
11695
|
+
:type RealName: str
|
11696
|
+
:param _Type: 任务类型,1 - 手工执行任务, 2 - 周期性任务
|
11697
|
+
:type Type: int
|
11698
|
+
:param _Period: 周期性任务执行间隔,单位天
|
11699
|
+
:type Period: int
|
11700
|
+
:param _NextTime: 执行账户
|
11701
|
+
:type NextTime: str
|
11702
|
+
:param _FirstTime: 下一次执行时间
|
11703
|
+
:type FirstTime: str
|
11704
|
+
"""
|
11705
|
+
self._Id = None
|
11706
|
+
self._OperationId = None
|
11707
|
+
self._Name = None
|
11708
|
+
self._UserName = None
|
11709
|
+
self._RealName = None
|
11710
|
+
self._Type = None
|
11711
|
+
self._Period = None
|
11712
|
+
self._NextTime = None
|
11713
|
+
self._FirstTime = None
|
11714
|
+
|
11715
|
+
@property
|
11716
|
+
def Id(self):
|
11717
|
+
"""运维任务主键ID
|
11718
|
+
:rtype: int
|
11719
|
+
"""
|
11720
|
+
return self._Id
|
11721
|
+
|
11722
|
+
@Id.setter
|
11723
|
+
def Id(self, Id):
|
11724
|
+
self._Id = Id
|
11725
|
+
|
11726
|
+
@property
|
11727
|
+
def OperationId(self):
|
11728
|
+
"""运维任务ID
|
11729
|
+
:rtype: str
|
11730
|
+
"""
|
11731
|
+
return self._OperationId
|
11732
|
+
|
11733
|
+
@OperationId.setter
|
11734
|
+
def OperationId(self, OperationId):
|
11735
|
+
self._OperationId = OperationId
|
11736
|
+
|
11737
|
+
@property
|
11738
|
+
def Name(self):
|
11739
|
+
"""运维任务名称
|
11740
|
+
:rtype: str
|
11741
|
+
"""
|
11742
|
+
return self._Name
|
11743
|
+
|
11744
|
+
@Name.setter
|
11745
|
+
def Name(self, Name):
|
11746
|
+
self._Name = Name
|
11747
|
+
|
11748
|
+
@property
|
11749
|
+
def UserName(self):
|
11750
|
+
"""创建用户
|
11751
|
+
:rtype: str
|
11752
|
+
"""
|
11753
|
+
return self._UserName
|
11754
|
+
|
11755
|
+
@UserName.setter
|
11756
|
+
def UserName(self, UserName):
|
11757
|
+
self._UserName = UserName
|
11758
|
+
|
11759
|
+
@property
|
11760
|
+
def RealName(self):
|
11761
|
+
"""运维人员姓名
|
11762
|
+
:rtype: str
|
11763
|
+
"""
|
11764
|
+
return self._RealName
|
11765
|
+
|
11766
|
+
@RealName.setter
|
11767
|
+
def RealName(self, RealName):
|
11768
|
+
self._RealName = RealName
|
11769
|
+
|
11770
|
+
@property
|
11771
|
+
def Type(self):
|
11772
|
+
"""任务类型,1 - 手工执行任务, 2 - 周期性任务
|
11773
|
+
:rtype: int
|
11774
|
+
"""
|
11775
|
+
return self._Type
|
11776
|
+
|
11777
|
+
@Type.setter
|
11778
|
+
def Type(self, Type):
|
11779
|
+
self._Type = Type
|
11780
|
+
|
11781
|
+
@property
|
11782
|
+
def Period(self):
|
11783
|
+
"""周期性任务执行间隔,单位天
|
11784
|
+
:rtype: int
|
11785
|
+
"""
|
11786
|
+
return self._Period
|
11787
|
+
|
11788
|
+
@Period.setter
|
11789
|
+
def Period(self, Period):
|
11790
|
+
self._Period = Period
|
11791
|
+
|
11792
|
+
@property
|
11793
|
+
def NextTime(self):
|
11794
|
+
"""执行账户
|
11795
|
+
:rtype: str
|
11796
|
+
"""
|
11797
|
+
return self._NextTime
|
11798
|
+
|
11799
|
+
@NextTime.setter
|
11800
|
+
def NextTime(self, NextTime):
|
11801
|
+
self._NextTime = NextTime
|
11802
|
+
|
11803
|
+
@property
|
11804
|
+
def FirstTime(self):
|
11805
|
+
"""下一次执行时间
|
11806
|
+
:rtype: str
|
11807
|
+
"""
|
11808
|
+
return self._FirstTime
|
11809
|
+
|
11810
|
+
@FirstTime.setter
|
11811
|
+
def FirstTime(self, FirstTime):
|
11812
|
+
self._FirstTime = FirstTime
|
11813
|
+
|
11814
|
+
|
11815
|
+
def _deserialize(self, params):
|
11816
|
+
self._Id = params.get("Id")
|
11817
|
+
self._OperationId = params.get("OperationId")
|
11818
|
+
self._Name = params.get("Name")
|
11819
|
+
self._UserName = params.get("UserName")
|
11820
|
+
self._RealName = params.get("RealName")
|
11821
|
+
self._Type = params.get("Type")
|
11822
|
+
self._Period = params.get("Period")
|
11823
|
+
self._NextTime = params.get("NextTime")
|
11824
|
+
self._FirstTime = params.get("FirstTime")
|
11825
|
+
memeber_set = set(params.keys())
|
11826
|
+
for name, value in vars(self).items():
|
11827
|
+
property_name = name[1:]
|
11828
|
+
if property_name in memeber_set:
|
11829
|
+
memeber_set.remove(property_name)
|
11830
|
+
if len(memeber_set) > 0:
|
11831
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11832
|
+
|
11833
|
+
|
11834
|
+
|
11073
11835
|
class ResetDeviceAccountPasswordRequest(AbstractModel):
|
11074
11836
|
"""ResetDeviceAccountPassword请求参数结构体
|
11075
11837
|
|
@@ -12038,6 +12800,70 @@ class RunChangePwdTaskResponse(AbstractModel):
|
|
12038
12800
|
self._RequestId = params.get("RequestId")
|
12039
12801
|
|
12040
12802
|
|
12803
|
+
class RunOperationTaskRequest(AbstractModel):
|
12804
|
+
"""RunOperationTask请求参数结构体
|
12805
|
+
|
12806
|
+
"""
|
12807
|
+
|
12808
|
+
def __init__(self):
|
12809
|
+
r"""
|
12810
|
+
:param _Id: 运维任务ID
|
12811
|
+
:type Id: int
|
12812
|
+
"""
|
12813
|
+
self._Id = None
|
12814
|
+
|
12815
|
+
@property
|
12816
|
+
def Id(self):
|
12817
|
+
"""运维任务ID
|
12818
|
+
:rtype: int
|
12819
|
+
"""
|
12820
|
+
return self._Id
|
12821
|
+
|
12822
|
+
@Id.setter
|
12823
|
+
def Id(self, Id):
|
12824
|
+
self._Id = Id
|
12825
|
+
|
12826
|
+
|
12827
|
+
def _deserialize(self, params):
|
12828
|
+
self._Id = params.get("Id")
|
12829
|
+
memeber_set = set(params.keys())
|
12830
|
+
for name, value in vars(self).items():
|
12831
|
+
property_name = name[1:]
|
12832
|
+
if property_name in memeber_set:
|
12833
|
+
memeber_set.remove(property_name)
|
12834
|
+
if len(memeber_set) > 0:
|
12835
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
12836
|
+
|
12837
|
+
|
12838
|
+
|
12839
|
+
class RunOperationTaskResponse(AbstractModel):
|
12840
|
+
"""RunOperationTask返回参数结构体
|
12841
|
+
|
12842
|
+
"""
|
12843
|
+
|
12844
|
+
def __init__(self):
|
12845
|
+
r"""
|
12846
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12847
|
+
:type RequestId: str
|
12848
|
+
"""
|
12849
|
+
self._RequestId = None
|
12850
|
+
|
12851
|
+
@property
|
12852
|
+
def RequestId(self):
|
12853
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12854
|
+
:rtype: str
|
12855
|
+
"""
|
12856
|
+
return self._RequestId
|
12857
|
+
|
12858
|
+
@RequestId.setter
|
12859
|
+
def RequestId(self, RequestId):
|
12860
|
+
self._RequestId = RequestId
|
12861
|
+
|
12862
|
+
|
12863
|
+
def _deserialize(self, params):
|
12864
|
+
self._RequestId = params.get("RequestId")
|
12865
|
+
|
12866
|
+
|
12041
12867
|
class SearchAuditLogRequest(AbstractModel):
|
12042
12868
|
"""SearchAuditLog请求参数结构体
|
12043
12869
|
|