tencentcloud-sdk-ioa 3.0.1043 → 3.0.1045
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220601/client.rb +48 -0
- data/lib/v20220601/models.rb +216 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc0de2f4a97a3d9b45ce1d2c5b95416ad7b48a5e
|
4
|
+
data.tar.gz: 3c2ff428ec447c1c9acd060ec3b8eac4222e118c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e3b137a9feca1e1bbe8b7ce3e8ebbbc519709cbc56a119e03f79d0dfbb6e5cf034721b90887eb2108435d2001de4cde72c45f05b5b91885b6bced086ac1ccc
|
7
|
+
data.tar.gz: 2893502a97d0b5aaf7051c7b7ff8992758c35e92ccd2938689414683f3b3188f66cd3a731ee29d1a7f6697059ea5e618bb0810fee17b420a20018d43eb93ec01
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1045
|
data/lib/v20220601/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 生成特权码,私有化调用path为:capi/Assets/Device/CreatePrivilegeCode,生成的特权码、卸载码,仅对该设备当天有效
|
81
|
+
|
82
|
+
# @param request: Request instance for CreatePrivilegeCode.
|
83
|
+
# @type request: :class:`Tencentcloud::ioa::V20220601::CreatePrivilegeCodeRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::ioa::V20220601::CreatePrivilegeCodeResponse`
|
85
|
+
def CreatePrivilegeCode(request)
|
86
|
+
body = send_request('CreatePrivilegeCode', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreatePrivilegeCodeResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 以分页的方式查询账号分组列表,私有化调用path为:/capi/Assets/DescribeAccountGroups
|
81
105
|
|
82
106
|
# @param request: Request instance for DescribeAccountGroups.
|
@@ -197,6 +221,30 @@ module TencentCloud
|
|
197
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
222
|
end
|
199
223
|
|
224
|
+
# 查看终端树下的软件列表,私有化调用path为:capi/Software/DescribeSoftCensusListByDevice
|
225
|
+
|
226
|
+
# @param request: Request instance for DescribeSoftCensusListByDevice.
|
227
|
+
# @type request: :class:`Tencentcloud::ioa::V20220601::DescribeSoftCensusListByDeviceRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::ioa::V20220601::DescribeSoftCensusListByDeviceResponse`
|
229
|
+
def DescribeSoftCensusListByDevice(request)
|
230
|
+
body = send_request('DescribeSoftCensusListByDevice', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DescribeSoftCensusListByDeviceResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
200
248
|
|
201
249
|
end
|
202
250
|
end
|
data/lib/v20220601/models.rb
CHANGED
@@ -244,6 +244,67 @@ module TencentCloud
|
|
244
244
|
end
|
245
245
|
end
|
246
246
|
|
247
|
+
# CreatePrivilegeCode请求参数结构体
|
248
|
+
class CreatePrivilegeCodeRequest < TencentCloud::Common::AbstractModel
|
249
|
+
# @param DomainInstanceId: 管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域"1",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。
|
250
|
+
# @type DomainInstanceId: String
|
251
|
+
# @param Mid: 必填;设备唯一标识符;
|
252
|
+
# @type Mid: String
|
253
|
+
|
254
|
+
attr_accessor :DomainInstanceId, :Mid
|
255
|
+
|
256
|
+
def initialize(domaininstanceid=nil, mid=nil)
|
257
|
+
@DomainInstanceId = domaininstanceid
|
258
|
+
@Mid = mid
|
259
|
+
end
|
260
|
+
|
261
|
+
def deserialize(params)
|
262
|
+
@DomainInstanceId = params['DomainInstanceId']
|
263
|
+
@Mid = params['Mid']
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# CreatePrivilegeCode返回参数结构体
|
268
|
+
class CreatePrivilegeCodeResponse < TencentCloud::Common::AbstractModel
|
269
|
+
# @param Data: 业务响应数据
|
270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
271
|
+
# @type Data: :class:`Tencentcloud::Ioa.v20220601.models.CreatePrivilegeCodeRspData`
|
272
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
273
|
+
# @type RequestId: String
|
274
|
+
|
275
|
+
attr_accessor :Data, :RequestId
|
276
|
+
|
277
|
+
def initialize(data=nil, requestid=nil)
|
278
|
+
@Data = data
|
279
|
+
@RequestId = requestid
|
280
|
+
end
|
281
|
+
|
282
|
+
def deserialize(params)
|
283
|
+
unless params['Data'].nil?
|
284
|
+
@Data = CreatePrivilegeCodeRspData.new
|
285
|
+
@Data.deserialize(params['Data'])
|
286
|
+
end
|
287
|
+
@RequestId = params['RequestId']
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# 业务响应数据
|
292
|
+
class CreatePrivilegeCodeRspData < TencentCloud::Common::AbstractModel
|
293
|
+
# @param Code: 特权码数据
|
294
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
295
|
+
# @type Code: String
|
296
|
+
|
297
|
+
attr_accessor :Code
|
298
|
+
|
299
|
+
def initialize(code=nil)
|
300
|
+
@Code = code
|
301
|
+
end
|
302
|
+
|
303
|
+
def deserialize(params)
|
304
|
+
@Code = params['Code']
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
247
308
|
# 账号分组信息
|
248
309
|
class DescribeAccountGroupsData < TencentCloud::Common::AbstractModel
|
249
310
|
# @param NamePath: 账号分组名全路径,点分格式
|
@@ -920,6 +981,161 @@ module TencentCloud
|
|
920
981
|
end
|
921
982
|
end
|
922
983
|
|
984
|
+
# 软件统计响应对象集合
|
985
|
+
class DescribeSoftCensusListByDeviceData < TencentCloud::Common::AbstractModel
|
986
|
+
# @param UserName: 终端用户名
|
987
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
988
|
+
# @type UserName: String
|
989
|
+
# @param MacAddr: mac地址
|
990
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
991
|
+
# @type MacAddr: String
|
992
|
+
# @param Name: 终端计算机名称
|
993
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
994
|
+
# @type Name: String
|
995
|
+
# @param GroupNamePath: 终端组路径名
|
996
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
997
|
+
# @type GroupNamePath: String
|
998
|
+
# @param Ip: IP地址
|
999
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1000
|
+
# @type Ip: String
|
1001
|
+
# @param Mid: 唯一标识Mid
|
1002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1003
|
+
# @type Mid: String
|
1004
|
+
# @param IoaUserName: 企业账户名
|
1005
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1006
|
+
# @type IoaUserName: String
|
1007
|
+
# @param GroupId: 终端分组Id(只支持32位)
|
1008
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1009
|
+
# @type GroupId: Integer
|
1010
|
+
# @param GroupName: 终端组名
|
1011
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1012
|
+
# @type GroupName: String
|
1013
|
+
# @param Id: 终端列表Id(只支持32位)
|
1014
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1015
|
+
# @type Id: Integer
|
1016
|
+
# @param SoftNum: 软件数量(只支持32位)
|
1017
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1018
|
+
# @type SoftNum: Integer
|
1019
|
+
# @param PiracyRisk: 盗版风险(1=风险;2=未知)
|
1020
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1021
|
+
# @type PiracyRisk: Integer
|
1022
|
+
|
1023
|
+
attr_accessor :UserName, :MacAddr, :Name, :GroupNamePath, :Ip, :Mid, :IoaUserName, :GroupId, :GroupName, :Id, :SoftNum, :PiracyRisk
|
1024
|
+
|
1025
|
+
def initialize(username=nil, macaddr=nil, name=nil, groupnamepath=nil, ip=nil, mid=nil, ioausername=nil, groupid=nil, groupname=nil, id=nil, softnum=nil, piracyrisk=nil)
|
1026
|
+
@UserName = username
|
1027
|
+
@MacAddr = macaddr
|
1028
|
+
@Name = name
|
1029
|
+
@GroupNamePath = groupnamepath
|
1030
|
+
@Ip = ip
|
1031
|
+
@Mid = mid
|
1032
|
+
@IoaUserName = ioausername
|
1033
|
+
@GroupId = groupid
|
1034
|
+
@GroupName = groupname
|
1035
|
+
@Id = id
|
1036
|
+
@SoftNum = softnum
|
1037
|
+
@PiracyRisk = piracyrisk
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
def deserialize(params)
|
1041
|
+
@UserName = params['UserName']
|
1042
|
+
@MacAddr = params['MacAddr']
|
1043
|
+
@Name = params['Name']
|
1044
|
+
@GroupNamePath = params['GroupNamePath']
|
1045
|
+
@Ip = params['Ip']
|
1046
|
+
@Mid = params['Mid']
|
1047
|
+
@IoaUserName = params['IoaUserName']
|
1048
|
+
@GroupId = params['GroupId']
|
1049
|
+
@GroupName = params['GroupName']
|
1050
|
+
@Id = params['Id']
|
1051
|
+
@SoftNum = params['SoftNum']
|
1052
|
+
@PiracyRisk = params['PiracyRisk']
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
# 业务响应数据
|
1057
|
+
class DescribeSoftCensusListByDevicePageData < TencentCloud::Common::AbstractModel
|
1058
|
+
# @param Items: 软件统计响应对象集合
|
1059
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1060
|
+
# @type Items: Array
|
1061
|
+
# @param Page: 分页公共对象
|
1062
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1063
|
+
# @type Page: :class:`Tencentcloud::Ioa.v20220601.models.Paging`
|
1064
|
+
|
1065
|
+
attr_accessor :Items, :Page
|
1066
|
+
|
1067
|
+
def initialize(items=nil, page=nil)
|
1068
|
+
@Items = items
|
1069
|
+
@Page = page
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
def deserialize(params)
|
1073
|
+
unless params['Items'].nil?
|
1074
|
+
@Items = []
|
1075
|
+
params['Items'].each do |i|
|
1076
|
+
describesoftcensuslistbydevicedata_tmp = DescribeSoftCensusListByDeviceData.new
|
1077
|
+
describesoftcensuslistbydevicedata_tmp.deserialize(i)
|
1078
|
+
@Items << describesoftcensuslistbydevicedata_tmp
|
1079
|
+
end
|
1080
|
+
end
|
1081
|
+
unless params['Page'].nil?
|
1082
|
+
@Page = Paging.new
|
1083
|
+
@Page.deserialize(params['Page'])
|
1084
|
+
end
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# DescribeSoftCensusListByDevice请求参数结构体
|
1089
|
+
class DescribeSoftCensusListByDeviceRequest < TencentCloud::Common::AbstractModel
|
1090
|
+
# @param OsType: 必填,系统类型(0: win,1:linux,2: mac,4:android,5:ios )
|
1091
|
+
# @type OsType: Integer
|
1092
|
+
# @param GroupId: 必填,终端分组ID
|
1093
|
+
# @type GroupId: Integer
|
1094
|
+
# @param Condition: 过滤条件、分页参数 <li>Name - String - 是否必填:否 - 操作符: eq,like,ilike - 排序支持:否 - 备注:字段含义,终端名。</li> <li>UserName - String - 是否必填:否 - 操作符: eq,like,ilike - 排序支持:否 - 备注:字段含义,终端用户名。</li> <li>IoaUserName - String - 是否必填:否 - 操作符: eq,like,ilike - 排序支持:否 - 备注:字段含义,最近登录账号。</li> <li>Ip - String - 是否必填:否 - 操作符: eq,like,ilike - 排序支持:否 - 备注:字段含义,IP地址。</li> <li>MacAddr - String - 是否必填:否 - 操作符: eq,like,ilike - 排序支持:否 - 备注:字段含义,MAC地址。</li>
|
1095
|
+
# @type Condition: :class:`Tencentcloud::Ioa.v20220601.models.Condition`
|
1096
|
+
|
1097
|
+
attr_accessor :OsType, :GroupId, :Condition
|
1098
|
+
|
1099
|
+
def initialize(ostype=nil, groupid=nil, condition=nil)
|
1100
|
+
@OsType = ostype
|
1101
|
+
@GroupId = groupid
|
1102
|
+
@Condition = condition
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
def deserialize(params)
|
1106
|
+
@OsType = params['OsType']
|
1107
|
+
@GroupId = params['GroupId']
|
1108
|
+
unless params['Condition'].nil?
|
1109
|
+
@Condition = Condition.new
|
1110
|
+
@Condition.deserialize(params['Condition'])
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# DescribeSoftCensusListByDevice返回参数结构体
|
1116
|
+
class DescribeSoftCensusListByDeviceResponse < TencentCloud::Common::AbstractModel
|
1117
|
+
# @param Data: 业务响应数据
|
1118
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1119
|
+
# @type Data: :class:`Tencentcloud::Ioa.v20220601.models.DescribeSoftCensusListByDevicePageData`
|
1120
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1121
|
+
# @type RequestId: String
|
1122
|
+
|
1123
|
+
attr_accessor :Data, :RequestId
|
1124
|
+
|
1125
|
+
def initialize(data=nil, requestid=nil)
|
1126
|
+
@Data = data
|
1127
|
+
@RequestId = requestid
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def deserialize(params)
|
1131
|
+
unless params['Data'].nil?
|
1132
|
+
@Data = DescribeSoftCensusListByDevicePageData.new
|
1133
|
+
@Data.deserialize(params['Data'])
|
1134
|
+
end
|
1135
|
+
@RequestId = params['RequestId']
|
1136
|
+
end
|
1137
|
+
end
|
1138
|
+
|
923
1139
|
# 业务响应数据
|
924
1140
|
class DeviceDetail < TencentCloud::Common::AbstractModel
|
925
1141
|
# @param Id: 设备ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ioa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1045
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- lib/tencentcloud-sdk-ioa.rb
|
36
37
|
- lib/v20220601/client.rb
|
37
38
|
- lib/v20220601/models.rb
|
38
|
-
- lib/tencentcloud-sdk-ioa.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|