tencentcloud-sdk-python-ioa 3.0.1402__tar.gz → 3.0.1413__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.
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/setup.py +1 -1
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud/ioa/v20220601/errorcodes.py +9 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud/ioa/v20220601/ioa_client.py +46 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud/ioa/v20220601/models.py +471 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud_sdk_python_ioa.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ioa-3.0.1413/tencentcloud_sdk_python_ioa.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ioa-3.0.1402/tencentcloud_sdk_python_ioa.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/README.rst +0 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud/ioa/__init__.py +0 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud/ioa/v20220601/__init__.py +0 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud_sdk_python_ioa.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud_sdk_python_ioa.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ioa-3.0.1402 → tencentcloud-sdk-python-ioa-3.0.1413}/tencentcloud_sdk_python_ioa.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ioa',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1413"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ioa SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -26,6 +26,9 @@ INTERNALERROR = 'InternalError'
|
|
|
26
26
|
# 内部错误,数据库异常。
|
|
27
27
|
INTERNALERROR_DATABASEEXCEPTION = 'InternalError.DatabaseException'
|
|
28
28
|
|
|
29
|
+
# 数据库查询失败。
|
|
30
|
+
INTERNALERROR_DATABASEQUERYFAILED = 'InternalError.DatabaseQueryFailed'
|
|
31
|
+
|
|
29
32
|
# 内部未知错误。
|
|
30
33
|
INTERNALERROR_UNKNOWN = 'InternalError.Unknown'
|
|
31
34
|
|
|
@@ -41,9 +44,15 @@ INVALIDPARAMETER_DUPLICATEIDINBLACKWHITELIST = 'InvalidParameter.DuplicateIdInBl
|
|
|
41
44
|
# 请求参数错误。
|
|
42
45
|
INVALIDPARAMETER_REQUESTPARAM = 'InvalidParameter.RequestParam'
|
|
43
46
|
|
|
47
|
+
# 没有找到对应的终端自定义分组
|
|
48
|
+
INVALIDPARAMETERVALUE_VIRTUALDEVICEGROUPNOTFOUND = 'InvalidParameterValue.VirtualDeviceGroupNotFound'
|
|
49
|
+
|
|
44
50
|
# 缺少公共参数。
|
|
45
51
|
MISSINGPARAMETER_COMMONPARAM = 'MissingParameter.CommonParam'
|
|
46
52
|
|
|
53
|
+
# 上次操作还未完成,请稍后重试。
|
|
54
|
+
REQUESTLIMITEXCEEDED_WAITFORTHELASTOPERATIONTOCOMPLETE = 'RequestLimitExceeded.WaitForTheLastOperationToComplete'
|
|
55
|
+
|
|
47
56
|
# 资源不存在。
|
|
48
57
|
RESOURCENOTFOUND_NOTFOUND = 'ResourceNotFound.NotFound'
|
|
49
58
|
|
|
@@ -318,6 +318,52 @@ class IoaClient(AbstractClient):
|
|
|
318
318
|
model = models.DescribeSoftwareInformationResponse()
|
|
319
319
|
model._deserialize(response["Response"])
|
|
320
320
|
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def DescribeVirtualDevices(self, request):
|
|
329
|
+
"""展示自定义分组终端列表,私有化调用path为:/capi/Assets/DescribeVirtualDevices
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for DescribeVirtualDevices.
|
|
332
|
+
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeVirtualDevicesRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeVirtualDevicesResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("DescribeVirtualDevices", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.DescribeVirtualDevicesResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def ModifyVirtualDeviceGroups(self, request):
|
|
352
|
+
"""终端自定义分组增减终端,私有化调用path为:/capi/Assets/Device/ModifyVirtualDeviceGroups
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for ModifyVirtualDeviceGroups.
|
|
355
|
+
:type request: :class:`tencentcloud.ioa.v20220601.models.ModifyVirtualDeviceGroupsRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.ioa.v20220601.models.ModifyVirtualDeviceGroupsResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("ModifyVirtualDeviceGroups", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.ModifyVirtualDeviceGroupsResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
321
367
|
except Exception as e:
|
|
322
368
|
if isinstance(e, TencentCloudSDKException):
|
|
323
369
|
raise
|
|
@@ -434,6 +434,8 @@ class CreateDeviceVirtualGroupRequest(AbstractModel):
|
|
|
434
434
|
|
|
435
435
|
def __init__(self):
|
|
436
436
|
r"""
|
|
437
|
+
:param _DomainInstanceId: 管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
|
438
|
+
:type DomainInstanceId: str
|
|
437
439
|
:param _DeviceVirtualGroupName: 必填,终端自定义分组名
|
|
438
440
|
:type DeviceVirtualGroupName: str
|
|
439
441
|
:param _Description: 详情
|
|
@@ -447,6 +449,7 @@ class CreateDeviceVirtualGroupRequest(AbstractModel):
|
|
|
447
449
|
:param _AutoRules: 选填,手动分组不填,自动划分分组的划分规则数据
|
|
448
450
|
:type AutoRules: :class:`tencentcloud.ioa.v20220601.models.ComplexRule`
|
|
449
451
|
"""
|
|
452
|
+
self._DomainInstanceId = None
|
|
450
453
|
self._DeviceVirtualGroupName = None
|
|
451
454
|
self._Description = None
|
|
452
455
|
self._OsType = None
|
|
@@ -454,6 +457,17 @@ class CreateDeviceVirtualGroupRequest(AbstractModel):
|
|
|
454
457
|
self._AutoMinute = None
|
|
455
458
|
self._AutoRules = None
|
|
456
459
|
|
|
460
|
+
@property
|
|
461
|
+
def DomainInstanceId(self):
|
|
462
|
+
"""管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
|
463
|
+
:rtype: str
|
|
464
|
+
"""
|
|
465
|
+
return self._DomainInstanceId
|
|
466
|
+
|
|
467
|
+
@DomainInstanceId.setter
|
|
468
|
+
def DomainInstanceId(self, DomainInstanceId):
|
|
469
|
+
self._DomainInstanceId = DomainInstanceId
|
|
470
|
+
|
|
457
471
|
@property
|
|
458
472
|
def DeviceVirtualGroupName(self):
|
|
459
473
|
"""必填,终端自定义分组名
|
|
@@ -522,6 +536,7 @@ class CreateDeviceVirtualGroupRequest(AbstractModel):
|
|
|
522
536
|
|
|
523
537
|
|
|
524
538
|
def _deserialize(self, params):
|
|
539
|
+
self._DomainInstanceId = params.get("DomainInstanceId")
|
|
525
540
|
self._DeviceVirtualGroupName = params.get("DeviceVirtualGroupName")
|
|
526
541
|
self._Description = params.get("Description")
|
|
527
542
|
self._OsType = params.get("OsType")
|
|
@@ -3659,6 +3674,207 @@ class DescribeSoftwareInformationResponse(AbstractModel):
|
|
|
3659
3674
|
self._RequestId = params.get("RequestId")
|
|
3660
3675
|
|
|
3661
3676
|
|
|
3677
|
+
class DescribeVirtualDevicesPageRsp(AbstractModel):
|
|
3678
|
+
"""返回的具体Data数据
|
|
3679
|
+
|
|
3680
|
+
"""
|
|
3681
|
+
|
|
3682
|
+
def __init__(self):
|
|
3683
|
+
r"""
|
|
3684
|
+
:param _Paging: 数据分页信息
|
|
3685
|
+
:type Paging: :class:`tencentcloud.ioa.v20220601.models.Paging`
|
|
3686
|
+
:param _Items: 设备列表
|
|
3687
|
+
:type Items: list of DeviceDetail
|
|
3688
|
+
"""
|
|
3689
|
+
self._Paging = None
|
|
3690
|
+
self._Items = None
|
|
3691
|
+
|
|
3692
|
+
@property
|
|
3693
|
+
def Paging(self):
|
|
3694
|
+
"""数据分页信息
|
|
3695
|
+
:rtype: :class:`tencentcloud.ioa.v20220601.models.Paging`
|
|
3696
|
+
"""
|
|
3697
|
+
return self._Paging
|
|
3698
|
+
|
|
3699
|
+
@Paging.setter
|
|
3700
|
+
def Paging(self, Paging):
|
|
3701
|
+
self._Paging = Paging
|
|
3702
|
+
|
|
3703
|
+
@property
|
|
3704
|
+
def Items(self):
|
|
3705
|
+
"""设备列表
|
|
3706
|
+
:rtype: list of DeviceDetail
|
|
3707
|
+
"""
|
|
3708
|
+
return self._Items
|
|
3709
|
+
|
|
3710
|
+
@Items.setter
|
|
3711
|
+
def Items(self, Items):
|
|
3712
|
+
self._Items = Items
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
def _deserialize(self, params):
|
|
3716
|
+
if params.get("Paging") is not None:
|
|
3717
|
+
self._Paging = Paging()
|
|
3718
|
+
self._Paging._deserialize(params.get("Paging"))
|
|
3719
|
+
if params.get("Items") is not None:
|
|
3720
|
+
self._Items = []
|
|
3721
|
+
for item in params.get("Items"):
|
|
3722
|
+
obj = DeviceDetail()
|
|
3723
|
+
obj._deserialize(item)
|
|
3724
|
+
self._Items.append(obj)
|
|
3725
|
+
memeber_set = set(params.keys())
|
|
3726
|
+
for name, value in vars(self).items():
|
|
3727
|
+
property_name = name[1:]
|
|
3728
|
+
if property_name in memeber_set:
|
|
3729
|
+
memeber_set.remove(property_name)
|
|
3730
|
+
if len(memeber_set) > 0:
|
|
3731
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
class DescribeVirtualDevicesRequest(AbstractModel):
|
|
3736
|
+
"""DescribeVirtualDevices请求参数结构体
|
|
3737
|
+
|
|
3738
|
+
"""
|
|
3739
|
+
|
|
3740
|
+
def __init__(self):
|
|
3741
|
+
r"""
|
|
3742
|
+
:param _DomainInstanceId: 管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
|
3743
|
+
:type DomainInstanceId: str
|
|
3744
|
+
:param _Condition: 过滤条件参数(字段含义请参考接口返回值)- Mid, 类型String,支持操作:【eq,like,ilike】,支持排序- Name, 类型String,支持操作:【eq,like,ilike】,支持排序- Itime, 类型String,支持操作:【eq,like,ilike】,支持排序- UserName, 类型String,支持操作:【eq,like,ilike】,支持排序- MacAddr, 类型String,支持操作:【eq,like,ilike】,支持排序- UserId, 类型String,支持操作:【eq,like,ilike】,支持排序- Ip, 类型String,支持操作:【eq,like,ilike】,支持排序- Tags,类型String,支持操作:【eq,like,ilike】,支持排序- LocalIpList,类型String,支持操作:【eq,like,ilike】,支持排序- SerialNum,类型String,支持操作:【eq,like,ilike】,支持排序- Version,类型String,支持操作:【eq,like,ilike】,支持排序- StrVersion,类型String,支持操作:【eq,like,ilike】,支持排序- RtpStatus,类型String,支持操作:【eq,like,ilike】,**不支持排序**- HostName,类型String,支持操作:【eq,like,ilike】,支持排序- IoaUserName,类型String,支持操作:【eq,like,ilike】,支持排序- GroupName,类型String,支持操作:【eq,like,ilike】,支持排序- CriticalVulListCount,**类型Int**,支持操作:【eq】,**不支持排序**- RiskCount,**类型Int**,支持操作:【eq】,**不支持排序**- VulVersion,类型String,支持操作:【eq,like,ilike】,**不支持排序**- Virusver,类型String,支持操作:【eq,like,ilike】,**不支持排序**- SysRepver,类型String,支持操作:【eq,like,ilike】,**不支持排序**- BaseBoardSn,类型String,支持操作:【eq,like,ilike】,支持排序- Os,类型String,支持操作:【eq,like,ilike】,支持排序- ConnActiveTime,类型String,支持操作:【eq,like,ilike】,**不支持排序**- FirewallStatus,**类型Int**,支持操作:【eq】,**不支持排序**- ProfileName,类型String,支持操作:【eq,like,ilike】,支持排序- DomainName,类型String,支持操作:【eq,like,ilike】,支持排序- SysRepVersion,类型String,支持操作:【eq,like,ilike】,支持排序- VirusVer,类型String,支持操作:【eq,like,ilike】,支持排序- Cpu,类型String,支持操作:【eq,like,ilike】,支持排序- Memory,类型String,支持操作:【eq,like,ilike】,支持排序- HardDiskSize,类型String,支持操作:【eq,like,ilike】,支持排序- HardwareChangeCount,**类型Int**,支持操作:【eq】,支持排序- AccountName,类型String,支持操作:【like.ilike】,支持排序- AccountGroupName,类型String,支持操作:【like.ilike】,支持排序- ScreenRecordingPermission,**类型Int**,支持操作:【eq】,支持排序- DiskAccessPermission,**类型Int**,支持操作:【eq】,支持排序分页参数- PageNum 从1开始,小于等于0时使用默认参数- PageSize 最大值5000,最好不超过100
|
|
3745
|
+
:type Condition: :class:`tencentcloud.ioa.v20220601.models.Condition`
|
|
3746
|
+
:param _DeviceVirtualGroupId: 必填,终端自定义分组id
|
|
3747
|
+
:type DeviceVirtualGroupId: int
|
|
3748
|
+
:param _OsType: 必填,系统类型(0: win,1:linux,2: mac,3: win_srv,4:android,5:ios 默认值0)
|
|
3749
|
+
:type OsType: int
|
|
3750
|
+
:param _OnlineStatus: 选填,在线状态 (2表示在线,0或者1表示离线)
|
|
3751
|
+
:type OnlineStatus: int
|
|
3752
|
+
"""
|
|
3753
|
+
self._DomainInstanceId = None
|
|
3754
|
+
self._Condition = None
|
|
3755
|
+
self._DeviceVirtualGroupId = None
|
|
3756
|
+
self._OsType = None
|
|
3757
|
+
self._OnlineStatus = None
|
|
3758
|
+
|
|
3759
|
+
@property
|
|
3760
|
+
def DomainInstanceId(self):
|
|
3761
|
+
"""管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
|
3762
|
+
:rtype: str
|
|
3763
|
+
"""
|
|
3764
|
+
return self._DomainInstanceId
|
|
3765
|
+
|
|
3766
|
+
@DomainInstanceId.setter
|
|
3767
|
+
def DomainInstanceId(self, DomainInstanceId):
|
|
3768
|
+
self._DomainInstanceId = DomainInstanceId
|
|
3769
|
+
|
|
3770
|
+
@property
|
|
3771
|
+
def Condition(self):
|
|
3772
|
+
"""过滤条件参数(字段含义请参考接口返回值)- Mid, 类型String,支持操作:【eq,like,ilike】,支持排序- Name, 类型String,支持操作:【eq,like,ilike】,支持排序- Itime, 类型String,支持操作:【eq,like,ilike】,支持排序- UserName, 类型String,支持操作:【eq,like,ilike】,支持排序- MacAddr, 类型String,支持操作:【eq,like,ilike】,支持排序- UserId, 类型String,支持操作:【eq,like,ilike】,支持排序- Ip, 类型String,支持操作:【eq,like,ilike】,支持排序- Tags,类型String,支持操作:【eq,like,ilike】,支持排序- LocalIpList,类型String,支持操作:【eq,like,ilike】,支持排序- SerialNum,类型String,支持操作:【eq,like,ilike】,支持排序- Version,类型String,支持操作:【eq,like,ilike】,支持排序- StrVersion,类型String,支持操作:【eq,like,ilike】,支持排序- RtpStatus,类型String,支持操作:【eq,like,ilike】,**不支持排序**- HostName,类型String,支持操作:【eq,like,ilike】,支持排序- IoaUserName,类型String,支持操作:【eq,like,ilike】,支持排序- GroupName,类型String,支持操作:【eq,like,ilike】,支持排序- CriticalVulListCount,**类型Int**,支持操作:【eq】,**不支持排序**- RiskCount,**类型Int**,支持操作:【eq】,**不支持排序**- VulVersion,类型String,支持操作:【eq,like,ilike】,**不支持排序**- Virusver,类型String,支持操作:【eq,like,ilike】,**不支持排序**- SysRepver,类型String,支持操作:【eq,like,ilike】,**不支持排序**- BaseBoardSn,类型String,支持操作:【eq,like,ilike】,支持排序- Os,类型String,支持操作:【eq,like,ilike】,支持排序- ConnActiveTime,类型String,支持操作:【eq,like,ilike】,**不支持排序**- FirewallStatus,**类型Int**,支持操作:【eq】,**不支持排序**- ProfileName,类型String,支持操作:【eq,like,ilike】,支持排序- DomainName,类型String,支持操作:【eq,like,ilike】,支持排序- SysRepVersion,类型String,支持操作:【eq,like,ilike】,支持排序- VirusVer,类型String,支持操作:【eq,like,ilike】,支持排序- Cpu,类型String,支持操作:【eq,like,ilike】,支持排序- Memory,类型String,支持操作:【eq,like,ilike】,支持排序- HardDiskSize,类型String,支持操作:【eq,like,ilike】,支持排序- HardwareChangeCount,**类型Int**,支持操作:【eq】,支持排序- AccountName,类型String,支持操作:【like.ilike】,支持排序- AccountGroupName,类型String,支持操作:【like.ilike】,支持排序- ScreenRecordingPermission,**类型Int**,支持操作:【eq】,支持排序- DiskAccessPermission,**类型Int**,支持操作:【eq】,支持排序分页参数- PageNum 从1开始,小于等于0时使用默认参数- PageSize 最大值5000,最好不超过100
|
|
3773
|
+
:rtype: :class:`tencentcloud.ioa.v20220601.models.Condition`
|
|
3774
|
+
"""
|
|
3775
|
+
return self._Condition
|
|
3776
|
+
|
|
3777
|
+
@Condition.setter
|
|
3778
|
+
def Condition(self, Condition):
|
|
3779
|
+
self._Condition = Condition
|
|
3780
|
+
|
|
3781
|
+
@property
|
|
3782
|
+
def DeviceVirtualGroupId(self):
|
|
3783
|
+
"""必填,终端自定义分组id
|
|
3784
|
+
:rtype: int
|
|
3785
|
+
"""
|
|
3786
|
+
return self._DeviceVirtualGroupId
|
|
3787
|
+
|
|
3788
|
+
@DeviceVirtualGroupId.setter
|
|
3789
|
+
def DeviceVirtualGroupId(self, DeviceVirtualGroupId):
|
|
3790
|
+
self._DeviceVirtualGroupId = DeviceVirtualGroupId
|
|
3791
|
+
|
|
3792
|
+
@property
|
|
3793
|
+
def OsType(self):
|
|
3794
|
+
"""必填,系统类型(0: win,1:linux,2: mac,3: win_srv,4:android,5:ios 默认值0)
|
|
3795
|
+
:rtype: int
|
|
3796
|
+
"""
|
|
3797
|
+
return self._OsType
|
|
3798
|
+
|
|
3799
|
+
@OsType.setter
|
|
3800
|
+
def OsType(self, OsType):
|
|
3801
|
+
self._OsType = OsType
|
|
3802
|
+
|
|
3803
|
+
@property
|
|
3804
|
+
def OnlineStatus(self):
|
|
3805
|
+
"""选填,在线状态 (2表示在线,0或者1表示离线)
|
|
3806
|
+
:rtype: int
|
|
3807
|
+
"""
|
|
3808
|
+
return self._OnlineStatus
|
|
3809
|
+
|
|
3810
|
+
@OnlineStatus.setter
|
|
3811
|
+
def OnlineStatus(self, OnlineStatus):
|
|
3812
|
+
self._OnlineStatus = OnlineStatus
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
def _deserialize(self, params):
|
|
3816
|
+
self._DomainInstanceId = params.get("DomainInstanceId")
|
|
3817
|
+
if params.get("Condition") is not None:
|
|
3818
|
+
self._Condition = Condition()
|
|
3819
|
+
self._Condition._deserialize(params.get("Condition"))
|
|
3820
|
+
self._DeviceVirtualGroupId = params.get("DeviceVirtualGroupId")
|
|
3821
|
+
self._OsType = params.get("OsType")
|
|
3822
|
+
self._OnlineStatus = params.get("OnlineStatus")
|
|
3823
|
+
memeber_set = set(params.keys())
|
|
3824
|
+
for name, value in vars(self).items():
|
|
3825
|
+
property_name = name[1:]
|
|
3826
|
+
if property_name in memeber_set:
|
|
3827
|
+
memeber_set.remove(property_name)
|
|
3828
|
+
if len(memeber_set) > 0:
|
|
3829
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
class DescribeVirtualDevicesResponse(AbstractModel):
|
|
3834
|
+
"""DescribeVirtualDevices返回参数结构体
|
|
3835
|
+
|
|
3836
|
+
"""
|
|
3837
|
+
|
|
3838
|
+
def __init__(self):
|
|
3839
|
+
r"""
|
|
3840
|
+
:param _Data: 返回的具体Data数据
|
|
3841
|
+
:type Data: :class:`tencentcloud.ioa.v20220601.models.DescribeVirtualDevicesPageRsp`
|
|
3842
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3843
|
+
:type RequestId: str
|
|
3844
|
+
"""
|
|
3845
|
+
self._Data = None
|
|
3846
|
+
self._RequestId = None
|
|
3847
|
+
|
|
3848
|
+
@property
|
|
3849
|
+
def Data(self):
|
|
3850
|
+
"""返回的具体Data数据
|
|
3851
|
+
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeVirtualDevicesPageRsp`
|
|
3852
|
+
"""
|
|
3853
|
+
return self._Data
|
|
3854
|
+
|
|
3855
|
+
@Data.setter
|
|
3856
|
+
def Data(self, Data):
|
|
3857
|
+
self._Data = Data
|
|
3858
|
+
|
|
3859
|
+
@property
|
|
3860
|
+
def RequestId(self):
|
|
3861
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3862
|
+
:rtype: str
|
|
3863
|
+
"""
|
|
3864
|
+
return self._RequestId
|
|
3865
|
+
|
|
3866
|
+
@RequestId.setter
|
|
3867
|
+
def RequestId(self, RequestId):
|
|
3868
|
+
self._RequestId = RequestId
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
def _deserialize(self, params):
|
|
3872
|
+
if params.get("Data") is not None:
|
|
3873
|
+
self._Data = DescribeVirtualDevicesPageRsp()
|
|
3874
|
+
self._Data._deserialize(params.get("Data"))
|
|
3875
|
+
self._RequestId = params.get("RequestId")
|
|
3876
|
+
|
|
3877
|
+
|
|
3662
3878
|
class DeviceDetail(AbstractModel):
|
|
3663
3879
|
"""业务响应数据
|
|
3664
3880
|
|
|
@@ -3700,6 +3916,16 @@ class DeviceDetail(AbstractModel):
|
|
|
3700
3916
|
:type GroupNamePath: str
|
|
3701
3917
|
:param _CriticalVulListCount: 未修复高危漏洞数(只支持32位)
|
|
3702
3918
|
:type CriticalVulListCount: int
|
|
3919
|
+
:param _Os: 操作系统名称
|
|
3920
|
+
:type Os: str
|
|
3921
|
+
:param _OsBits: 操作系统位数
|
|
3922
|
+
:type OsBits: int
|
|
3923
|
+
:param _OsVersion: 操作系统版本
|
|
3924
|
+
:type OsVersion: str
|
|
3925
|
+
:param _OsLanguage: 操作系统语言
|
|
3926
|
+
:type OsLanguage: str
|
|
3927
|
+
:param _OsInstallDate: 操作系统安装时间
|
|
3928
|
+
:type OsInstallDate: str
|
|
3703
3929
|
:param _ComputerName: 设备名,和Name相同
|
|
3704
3930
|
:type ComputerName: str
|
|
3705
3931
|
:param _DomainName: 登录域名
|
|
@@ -3772,6 +3998,11 @@ class DeviceDetail(AbstractModel):
|
|
|
3772
3998
|
self._GroupName = None
|
|
3773
3999
|
self._GroupNamePath = None
|
|
3774
4000
|
self._CriticalVulListCount = None
|
|
4001
|
+
self._Os = None
|
|
4002
|
+
self._OsBits = None
|
|
4003
|
+
self._OsVersion = None
|
|
4004
|
+
self._OsLanguage = None
|
|
4005
|
+
self._OsInstallDate = None
|
|
3775
4006
|
self._ComputerName = None
|
|
3776
4007
|
self._DomainName = None
|
|
3777
4008
|
self._MacAddr = None
|
|
@@ -3987,6 +4218,61 @@ class DeviceDetail(AbstractModel):
|
|
|
3987
4218
|
def CriticalVulListCount(self, CriticalVulListCount):
|
|
3988
4219
|
self._CriticalVulListCount = CriticalVulListCount
|
|
3989
4220
|
|
|
4221
|
+
@property
|
|
4222
|
+
def Os(self):
|
|
4223
|
+
"""操作系统名称
|
|
4224
|
+
:rtype: str
|
|
4225
|
+
"""
|
|
4226
|
+
return self._Os
|
|
4227
|
+
|
|
4228
|
+
@Os.setter
|
|
4229
|
+
def Os(self, Os):
|
|
4230
|
+
self._Os = Os
|
|
4231
|
+
|
|
4232
|
+
@property
|
|
4233
|
+
def OsBits(self):
|
|
4234
|
+
"""操作系统位数
|
|
4235
|
+
:rtype: int
|
|
4236
|
+
"""
|
|
4237
|
+
return self._OsBits
|
|
4238
|
+
|
|
4239
|
+
@OsBits.setter
|
|
4240
|
+
def OsBits(self, OsBits):
|
|
4241
|
+
self._OsBits = OsBits
|
|
4242
|
+
|
|
4243
|
+
@property
|
|
4244
|
+
def OsVersion(self):
|
|
4245
|
+
"""操作系统版本
|
|
4246
|
+
:rtype: str
|
|
4247
|
+
"""
|
|
4248
|
+
return self._OsVersion
|
|
4249
|
+
|
|
4250
|
+
@OsVersion.setter
|
|
4251
|
+
def OsVersion(self, OsVersion):
|
|
4252
|
+
self._OsVersion = OsVersion
|
|
4253
|
+
|
|
4254
|
+
@property
|
|
4255
|
+
def OsLanguage(self):
|
|
4256
|
+
"""操作系统语言
|
|
4257
|
+
:rtype: str
|
|
4258
|
+
"""
|
|
4259
|
+
return self._OsLanguage
|
|
4260
|
+
|
|
4261
|
+
@OsLanguage.setter
|
|
4262
|
+
def OsLanguage(self, OsLanguage):
|
|
4263
|
+
self._OsLanguage = OsLanguage
|
|
4264
|
+
|
|
4265
|
+
@property
|
|
4266
|
+
def OsInstallDate(self):
|
|
4267
|
+
"""操作系统安装时间
|
|
4268
|
+
:rtype: str
|
|
4269
|
+
"""
|
|
4270
|
+
return self._OsInstallDate
|
|
4271
|
+
|
|
4272
|
+
@OsInstallDate.setter
|
|
4273
|
+
def OsInstallDate(self, OsInstallDate):
|
|
4274
|
+
self._OsInstallDate = OsInstallDate
|
|
4275
|
+
|
|
3990
4276
|
@property
|
|
3991
4277
|
def ComputerName(self):
|
|
3992
4278
|
"""设备名,和Name相同
|
|
@@ -4303,6 +4589,11 @@ class DeviceDetail(AbstractModel):
|
|
|
4303
4589
|
self._GroupName = params.get("GroupName")
|
|
4304
4590
|
self._GroupNamePath = params.get("GroupNamePath")
|
|
4305
4591
|
self._CriticalVulListCount = params.get("CriticalVulListCount")
|
|
4592
|
+
self._Os = params.get("Os")
|
|
4593
|
+
self._OsBits = params.get("OsBits")
|
|
4594
|
+
self._OsVersion = params.get("OsVersion")
|
|
4595
|
+
self._OsLanguage = params.get("OsLanguage")
|
|
4596
|
+
self._OsInstallDate = params.get("OsInstallDate")
|
|
4306
4597
|
self._ComputerName = params.get("ComputerName")
|
|
4307
4598
|
self._DomainName = params.get("DomainName")
|
|
4308
4599
|
self._MacAddr = params.get("MacAddr")
|
|
@@ -5143,6 +5434,186 @@ class GetAccountGroupData(AbstractModel):
|
|
|
5143
5434
|
|
|
5144
5435
|
|
|
5145
5436
|
|
|
5437
|
+
class ModifyVirtualDeviceGroupsReqItem(AbstractModel):
|
|
5438
|
+
"""操作的设备列表
|
|
5439
|
+
|
|
5440
|
+
"""
|
|
5441
|
+
|
|
5442
|
+
def __init__(self):
|
|
5443
|
+
r"""
|
|
5444
|
+
:param _DeviceMid: 设备mid
|
|
5445
|
+
:type DeviceMid: str
|
|
5446
|
+
:param _Operation: 操作标识 0:删除设备 1:添加设备
|
|
5447
|
+
:type Operation: int
|
|
5448
|
+
"""
|
|
5449
|
+
self._DeviceMid = None
|
|
5450
|
+
self._Operation = None
|
|
5451
|
+
|
|
5452
|
+
@property
|
|
5453
|
+
def DeviceMid(self):
|
|
5454
|
+
"""设备mid
|
|
5455
|
+
:rtype: str
|
|
5456
|
+
"""
|
|
5457
|
+
return self._DeviceMid
|
|
5458
|
+
|
|
5459
|
+
@DeviceMid.setter
|
|
5460
|
+
def DeviceMid(self, DeviceMid):
|
|
5461
|
+
self._DeviceMid = DeviceMid
|
|
5462
|
+
|
|
5463
|
+
@property
|
|
5464
|
+
def Operation(self):
|
|
5465
|
+
"""操作标识 0:删除设备 1:添加设备
|
|
5466
|
+
:rtype: int
|
|
5467
|
+
"""
|
|
5468
|
+
return self._Operation
|
|
5469
|
+
|
|
5470
|
+
@Operation.setter
|
|
5471
|
+
def Operation(self, Operation):
|
|
5472
|
+
self._Operation = Operation
|
|
5473
|
+
|
|
5474
|
+
|
|
5475
|
+
def _deserialize(self, params):
|
|
5476
|
+
self._DeviceMid = params.get("DeviceMid")
|
|
5477
|
+
self._Operation = params.get("Operation")
|
|
5478
|
+
memeber_set = set(params.keys())
|
|
5479
|
+
for name, value in vars(self).items():
|
|
5480
|
+
property_name = name[1:]
|
|
5481
|
+
if property_name in memeber_set:
|
|
5482
|
+
memeber_set.remove(property_name)
|
|
5483
|
+
if len(memeber_set) > 0:
|
|
5484
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5485
|
+
|
|
5486
|
+
|
|
5487
|
+
|
|
5488
|
+
class ModifyVirtualDeviceGroupsRequest(AbstractModel):
|
|
5489
|
+
"""ModifyVirtualDeviceGroups请求参数结构体
|
|
5490
|
+
|
|
5491
|
+
"""
|
|
5492
|
+
|
|
5493
|
+
def __init__(self):
|
|
5494
|
+
r"""
|
|
5495
|
+
:param _DomainInstanceId: 管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
|
5496
|
+
:type DomainInstanceId: str
|
|
5497
|
+
:param _DeviceVirtualGroupId: 添加到的终端自定义分组id。和DeviceVirtualGroupIds互斥,必填其一,优先使用本参数
|
|
5498
|
+
:type DeviceVirtualGroupId: int
|
|
5499
|
+
:param _DeviceList: 必填,操作的设备列表数据
|
|
5500
|
+
:type DeviceList: list of ModifyVirtualDeviceGroupsReqItem
|
|
5501
|
+
:param _DeviceVirtualGroupIds: 要添加的终端自定义分组id列表
|
|
5502
|
+
:type DeviceVirtualGroupIds: list of int
|
|
5503
|
+
:param _OsType: 必填,系统类型(0: win,1:linux,2: mac,3: win_srv,4:android,5:ios 默认值0)
|
|
5504
|
+
:type OsType: int
|
|
5505
|
+
"""
|
|
5506
|
+
self._DomainInstanceId = None
|
|
5507
|
+
self._DeviceVirtualGroupId = None
|
|
5508
|
+
self._DeviceList = None
|
|
5509
|
+
self._DeviceVirtualGroupIds = None
|
|
5510
|
+
self._OsType = None
|
|
5511
|
+
|
|
5512
|
+
@property
|
|
5513
|
+
def DomainInstanceId(self):
|
|
5514
|
+
"""管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
|
5515
|
+
:rtype: str
|
|
5516
|
+
"""
|
|
5517
|
+
return self._DomainInstanceId
|
|
5518
|
+
|
|
5519
|
+
@DomainInstanceId.setter
|
|
5520
|
+
def DomainInstanceId(self, DomainInstanceId):
|
|
5521
|
+
self._DomainInstanceId = DomainInstanceId
|
|
5522
|
+
|
|
5523
|
+
@property
|
|
5524
|
+
def DeviceVirtualGroupId(self):
|
|
5525
|
+
"""添加到的终端自定义分组id。和DeviceVirtualGroupIds互斥,必填其一,优先使用本参数
|
|
5526
|
+
:rtype: int
|
|
5527
|
+
"""
|
|
5528
|
+
return self._DeviceVirtualGroupId
|
|
5529
|
+
|
|
5530
|
+
@DeviceVirtualGroupId.setter
|
|
5531
|
+
def DeviceVirtualGroupId(self, DeviceVirtualGroupId):
|
|
5532
|
+
self._DeviceVirtualGroupId = DeviceVirtualGroupId
|
|
5533
|
+
|
|
5534
|
+
@property
|
|
5535
|
+
def DeviceList(self):
|
|
5536
|
+
"""必填,操作的设备列表数据
|
|
5537
|
+
:rtype: list of ModifyVirtualDeviceGroupsReqItem
|
|
5538
|
+
"""
|
|
5539
|
+
return self._DeviceList
|
|
5540
|
+
|
|
5541
|
+
@DeviceList.setter
|
|
5542
|
+
def DeviceList(self, DeviceList):
|
|
5543
|
+
self._DeviceList = DeviceList
|
|
5544
|
+
|
|
5545
|
+
@property
|
|
5546
|
+
def DeviceVirtualGroupIds(self):
|
|
5547
|
+
"""要添加的终端自定义分组id列表
|
|
5548
|
+
:rtype: list of int
|
|
5549
|
+
"""
|
|
5550
|
+
return self._DeviceVirtualGroupIds
|
|
5551
|
+
|
|
5552
|
+
@DeviceVirtualGroupIds.setter
|
|
5553
|
+
def DeviceVirtualGroupIds(self, DeviceVirtualGroupIds):
|
|
5554
|
+
self._DeviceVirtualGroupIds = DeviceVirtualGroupIds
|
|
5555
|
+
|
|
5556
|
+
@property
|
|
5557
|
+
def OsType(self):
|
|
5558
|
+
"""必填,系统类型(0: win,1:linux,2: mac,3: win_srv,4:android,5:ios 默认值0)
|
|
5559
|
+
:rtype: int
|
|
5560
|
+
"""
|
|
5561
|
+
return self._OsType
|
|
5562
|
+
|
|
5563
|
+
@OsType.setter
|
|
5564
|
+
def OsType(self, OsType):
|
|
5565
|
+
self._OsType = OsType
|
|
5566
|
+
|
|
5567
|
+
|
|
5568
|
+
def _deserialize(self, params):
|
|
5569
|
+
self._DomainInstanceId = params.get("DomainInstanceId")
|
|
5570
|
+
self._DeviceVirtualGroupId = params.get("DeviceVirtualGroupId")
|
|
5571
|
+
if params.get("DeviceList") is not None:
|
|
5572
|
+
self._DeviceList = []
|
|
5573
|
+
for item in params.get("DeviceList"):
|
|
5574
|
+
obj = ModifyVirtualDeviceGroupsReqItem()
|
|
5575
|
+
obj._deserialize(item)
|
|
5576
|
+
self._DeviceList.append(obj)
|
|
5577
|
+
self._DeviceVirtualGroupIds = params.get("DeviceVirtualGroupIds")
|
|
5578
|
+
self._OsType = params.get("OsType")
|
|
5579
|
+
memeber_set = set(params.keys())
|
|
5580
|
+
for name, value in vars(self).items():
|
|
5581
|
+
property_name = name[1:]
|
|
5582
|
+
if property_name in memeber_set:
|
|
5583
|
+
memeber_set.remove(property_name)
|
|
5584
|
+
if len(memeber_set) > 0:
|
|
5585
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5586
|
+
|
|
5587
|
+
|
|
5588
|
+
|
|
5589
|
+
class ModifyVirtualDeviceGroupsResponse(AbstractModel):
|
|
5590
|
+
"""ModifyVirtualDeviceGroups返回参数结构体
|
|
5591
|
+
|
|
5592
|
+
"""
|
|
5593
|
+
|
|
5594
|
+
def __init__(self):
|
|
5595
|
+
r"""
|
|
5596
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5597
|
+
:type RequestId: str
|
|
5598
|
+
"""
|
|
5599
|
+
self._RequestId = None
|
|
5600
|
+
|
|
5601
|
+
@property
|
|
5602
|
+
def RequestId(self):
|
|
5603
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5604
|
+
:rtype: str
|
|
5605
|
+
"""
|
|
5606
|
+
return self._RequestId
|
|
5607
|
+
|
|
5608
|
+
@RequestId.setter
|
|
5609
|
+
def RequestId(self, RequestId):
|
|
5610
|
+
self._RequestId = RequestId
|
|
5611
|
+
|
|
5612
|
+
|
|
5613
|
+
def _deserialize(self, params):
|
|
5614
|
+
self._RequestId = params.get("RequestId")
|
|
5615
|
+
|
|
5616
|
+
|
|
5146
5617
|
class Paging(AbstractModel):
|
|
5147
5618
|
"""页码
|
|
5148
5619
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1413
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1402
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|