tencentcloud-sdk-ioa 3.0.727

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d32a78d185592f0aeaa21e264aae5f1bcbfaeff6
4
+ data.tar.gz: c112c9a00d74456d9b6d6b1242971a5f7592b3be
5
+ SHA512:
6
+ metadata.gz: 16c73acf055c77869f2185c267a7a8cb8e7d3c83ec5ee5319389f78c24b5d3197f0e962cf5d02b1c3e6bc22005a0d34e40ff1807ae60b292731c447648b4cf05
7
+ data.tar.gz: 20d4ad639f6c0e81e0c461fb8f7c7cdc91a9824f8d5afa9b0251a3bff72f573d0145509b54716cbec3af6cf0e35860a95480af07c507bb7ec4b882614ee14bb3
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.727
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220601/client'
6
+ require_relative 'v20220601/models'
7
+
8
+ module TencentCloud
9
+ module Ioa
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Ioa
21
+ module V20220601
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-06-01'
26
+ api_endpoint = 'ioa.tencentcloudapi.com'
27
+ sdk_version = 'IOA_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 查询满足条件的终端数据详情,私有化调用path为:/capi/Assets/Device/DescribeDevices
33
+
34
+ # @param request: Request instance for DescribeDevices.
35
+ # @type request: :class:`Tencentcloud::ioa::V20220601::DescribeDevicesRequest`
36
+ # @rtype: :class:`Tencentcloud::ioa::V20220601::DescribeDevicesResponse`
37
+ def DescribeDevices(request)
38
+ body = send_request('DescribeDevices', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeDevicesResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,311 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Ioa
19
+ module V20220601
20
+ # - [ ] 过滤条件<br>
21
+
22
+ # <li>Name - String - 是否必填:否 - 操作符: ilike - 排序支持:否- 根据分组名称进行查询。</li>
23
+ # 分页参数<br>
24
+ # <li>PageNum 从1开始,小于等于0时使用默认参数。</li>
25
+ # <li>PageSize 最大值5000,最好不超过100。</li>
26
+ class Condition < TencentCloud::Common::AbstractModel
27
+ # @param Filters: Filters 条件过滤
28
+ # 注意:此字段可能返回 null,表示取不到有效值。
29
+ # @type Filters: Array
30
+ # @param FilterGroups: FilterGroups 条件过滤组
31
+ # 注意:此字段可能返回 null,表示取不到有效值。
32
+ # @type FilterGroups: Array
33
+ # @param Sort: Sort 排序字段
34
+ # 注意:此字段可能返回 null,表示取不到有效值。
35
+ # @type Sort: :class:`Tencentcloud::Ioa.v20220601.models.Sort`
36
+ # @param PageSize: PageSize 每页获取数(只支持32位)
37
+ # 注意:此字段可能返回 null,表示取不到有效值。
38
+ # @type PageSize: Integer
39
+ # @param PageNum: PageNum 获取第几页(只支持32位)
40
+ # 注意:此字段可能返回 null,表示取不到有效值。
41
+ # @type PageNum: Integer
42
+
43
+ attr_accessor :Filters, :FilterGroups, :Sort, :PageSize, :PageNum
44
+
45
+ def initialize(filters=nil, filtergroups=nil, sort=nil, pagesize=nil, pagenum=nil)
46
+ @Filters = filters
47
+ @FilterGroups = filtergroups
48
+ @Sort = sort
49
+ @PageSize = pagesize
50
+ @PageNum = pagenum
51
+ end
52
+
53
+ def deserialize(params)
54
+ unless params['Filters'].nil?
55
+ @Filters = []
56
+ params['Filters'].each do |i|
57
+ filter_tmp = Filter.new
58
+ filter_tmp.deserialize(i)
59
+ @Filters << filter_tmp
60
+ end
61
+ end
62
+ unless params['FilterGroups'].nil?
63
+ @FilterGroups = []
64
+ params['FilterGroups'].each do |i|
65
+ filtergroup_tmp = FilterGroup.new
66
+ filtergroup_tmp.deserialize(i)
67
+ @FilterGroups << filtergroup_tmp
68
+ end
69
+ end
70
+ unless params['Sort'].nil?
71
+ @Sort = Sort.new
72
+ @Sort.deserialize(params['Sort'])
73
+ end
74
+ @PageSize = params['PageSize']
75
+ @PageNum = params['PageNum']
76
+ end
77
+ end
78
+
79
+ # 分页的data数据
80
+ class DescribeDevicesPageRsp < TencentCloud::Common::AbstractModel
81
+ # @param Paging: 数据分页信息
82
+ # 注意:此字段可能返回 null,表示取不到有效值。
83
+ # @type Paging: :class:`Tencentcloud::Ioa.v20220601.models.Paging`
84
+
85
+ attr_accessor :Paging
86
+
87
+ def initialize(paging=nil)
88
+ @Paging = paging
89
+ end
90
+
91
+ def deserialize(params)
92
+ unless params['Paging'].nil?
93
+ @Paging = Paging.new
94
+ @Paging.deserialize(params['Paging'])
95
+ end
96
+ end
97
+ end
98
+
99
+ # DescribeDevices请求参数结构体
100
+ class DescribeDevicesRequest < TencentCloud::Common::AbstractModel
101
+ # @param Condition: 过滤条件<br>
102
+ # <li>Ip - String - 是否必填:否 - 操作符: eq - 排序支持:否- 按照Ip进行过滤。</li>
103
+ # <li>MacAddr - String - 是否必填:否 - 操作符: eq - 排序支持:否- 按照mac地址进行过滤。</li>
104
+ # <li>IoaUserName - String - 是否必填:否 - 操作符: eq - 排序支持:否- 按照ioa用户名进行过滤。</li>
105
+ # 分页参数<br>
106
+ # <li>PageNum 从1开始,小于等于0时使用默认参数。</li>
107
+ # <li>PageSize 最大值5000,最好不超过100。</li>
108
+ # @type Condition: :class:`Tencentcloud::Ioa.v20220601.models.Condition`
109
+ # @param GroupId: 私有化默认分组id-名称-操作系统
110
+ # 1 全网终端 Win
111
+ # 2 未分组终端 Win
112
+ # 30000000 服务器 Win
113
+ # 40000101 全网终端 Linux
114
+ # 40000102 未分组终端 Linux
115
+ # 40000103 服务器 Linux
116
+ # 40000201 全网终端 macOS
117
+ # 40000202 未分组终端 macOS
118
+ # 40000203 服务器 macOS
119
+ # 40000401 全网终端 Android
120
+ # 40000402 未分组终端 Android
121
+ # 40000501 全网终端 iOS
122
+ # 40000502 未分组终端 iOS
123
+ # @type GroupId: Integer
124
+ # @param OsType: 系统类型(0: win,1:linux,2: mac,3: win_srv,4:android,5:ios 默认值0)
125
+ # @type OsType: Integer
126
+ # @param OnlineStatus: 在线状态 2 在线 0,1 离线
127
+ # @type OnlineStatus: Integer
128
+ # @param Filters: 过滤条件--兼容旧接口,参数同Condition
129
+ # @type Filters: Array
130
+ # @param Sort: 排序字段--兼容旧接口,参数同Condition
131
+ # @type Sort: :class:`Tencentcloud::Ioa.v20220601.models.Sort`
132
+ # @param PageNum: 获取第几页--兼容旧接口,参数同Condition(只支持32位)
133
+ # @type PageNum: Integer
134
+ # @param PageSize: 每页获取数--兼容旧接口,参数同Condition(只支持32位)
135
+ # @type PageSize: Integer
136
+ # @param Status: 授权状态 4未授权 5已授权
137
+ # @type Status: Integer
138
+
139
+ attr_accessor :Condition, :GroupId, :OsType, :OnlineStatus, :Filters, :Sort, :PageNum, :PageSize, :Status
140
+
141
+ def initialize(condition=nil, groupid=nil, ostype=nil, onlinestatus=nil, filters=nil, sort=nil, pagenum=nil, pagesize=nil, status=nil)
142
+ @Condition = condition
143
+ @GroupId = groupid
144
+ @OsType = ostype
145
+ @OnlineStatus = onlinestatus
146
+ @Filters = filters
147
+ @Sort = sort
148
+ @PageNum = pagenum
149
+ @PageSize = pagesize
150
+ @Status = status
151
+ end
152
+
153
+ def deserialize(params)
154
+ unless params['Condition'].nil?
155
+ @Condition = Condition.new
156
+ @Condition.deserialize(params['Condition'])
157
+ end
158
+ @GroupId = params['GroupId']
159
+ @OsType = params['OsType']
160
+ @OnlineStatus = params['OnlineStatus']
161
+ unless params['Filters'].nil?
162
+ @Filters = []
163
+ params['Filters'].each do |i|
164
+ filter_tmp = Filter.new
165
+ filter_tmp.deserialize(i)
166
+ @Filters << filter_tmp
167
+ end
168
+ end
169
+ unless params['Sort'].nil?
170
+ @Sort = Sort.new
171
+ @Sort.deserialize(params['Sort'])
172
+ end
173
+ @PageNum = params['PageNum']
174
+ @PageSize = params['PageSize']
175
+ @Status = params['Status']
176
+ end
177
+ end
178
+
179
+ # DescribeDevices返回参数结构体
180
+ class DescribeDevicesResponse < TencentCloud::Common::AbstractModel
181
+ # @param Data: 分页的data数据
182
+ # 注意:此字段可能返回 null,表示取不到有效值。
183
+ # @type Data: :class:`Tencentcloud::Ioa.v20220601.models.DescribeDevicesPageRsp`
184
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
185
+ # @type RequestId: String
186
+
187
+ attr_accessor :Data, :RequestId
188
+
189
+ def initialize(data=nil, requestid=nil)
190
+ @Data = data
191
+ @RequestId = requestid
192
+ end
193
+
194
+ def deserialize(params)
195
+ unless params['Data'].nil?
196
+ @Data = DescribeDevicesPageRsp.new
197
+ @Data.deserialize(params['Data'])
198
+ end
199
+ @RequestId = params['RequestId']
200
+ end
201
+ end
202
+
203
+ # Filters 条件过滤
204
+ class Filter < TencentCloud::Common::AbstractModel
205
+ # @param Field: 过滤字段
206
+ # 注意:此字段可能返回 null,表示取不到有效值。
207
+ # @type Field: String
208
+ # @param Operator: 过滤方式 eq:等于,net:不等于,like,nlike,gt:大于,lt:小于,egt:大于等于,elt:小于等于
209
+ # 注意:此字段可能返回 null,表示取不到有效值。
210
+ # @type Operator: String
211
+ # @param Values: 过滤条件
212
+ # 注意:此字段可能返回 null,表示取不到有效值。
213
+ # @type Values: Array
214
+
215
+ attr_accessor :Field, :Operator, :Values
216
+
217
+ def initialize(field=nil, operator=nil, values=nil)
218
+ @Field = field
219
+ @Operator = operator
220
+ @Values = values
221
+ end
222
+
223
+ def deserialize(params)
224
+ @Field = params['Field']
225
+ @Operator = params['Operator']
226
+ @Values = params['Values']
227
+ end
228
+ end
229
+
230
+ # FilterGroups 条件过滤组
231
+ class FilterGroup < TencentCloud::Common::AbstractModel
232
+ # @param Filters: Filters 条件过滤
233
+ # 注意:此字段可能返回 null,表示取不到有效值。
234
+ # @type Filters: Array
235
+
236
+ attr_accessor :Filters
237
+
238
+ def initialize(filters=nil)
239
+ @Filters = filters
240
+ end
241
+
242
+ def deserialize(params)
243
+ unless params['Filters'].nil?
244
+ @Filters = []
245
+ params['Filters'].each do |i|
246
+ filter_tmp = Filter.new
247
+ filter_tmp.deserialize(i)
248
+ @Filters << filter_tmp
249
+ end
250
+ end
251
+ end
252
+ end
253
+
254
+ # 数据分页信息
255
+ class Paging < TencentCloud::Common::AbstractModel
256
+ # @param PageSize: 每页条数(只支持32位)
257
+ # 注意:此字段可能返回 null,表示取不到有效值。
258
+ # @type PageSize: Integer
259
+ # @param PageNum: 页码(只支持32位)
260
+ # 注意:此字段可能返回 null,表示取不到有效值。
261
+ # @type PageNum: Integer
262
+ # @param PageCount: 总页数(只支持32位)
263
+ # 注意:此字段可能返回 null,表示取不到有效值。
264
+ # @type PageCount: Integer
265
+ # @param Total: 记录总数
266
+ # 注意:此字段可能返回 null,表示取不到有效值。
267
+ # @type Total: Integer
268
+
269
+ attr_accessor :PageSize, :PageNum, :PageCount, :Total
270
+
271
+ def initialize(pagesize=nil, pagenum=nil, pagecount=nil, total=nil)
272
+ @PageSize = pagesize
273
+ @PageNum = pagenum
274
+ @PageCount = pagecount
275
+ @Total = total
276
+ end
277
+
278
+ def deserialize(params)
279
+ @PageSize = params['PageSize']
280
+ @PageNum = params['PageNum']
281
+ @PageCount = params['PageCount']
282
+ @Total = params['Total']
283
+ end
284
+ end
285
+
286
+ # Sort 排序字段
287
+ class Sort < TencentCloud::Common::AbstractModel
288
+ # @param Field: 排序字段
289
+ # 注意:此字段可能返回 null,表示取不到有效值。
290
+ # @type Field: String
291
+ # @param Order: 排序方式
292
+ # 注意:此字段可能返回 null,表示取不到有效值。
293
+ # @type Order: String
294
+
295
+ attr_accessor :Field, :Order
296
+
297
+ def initialize(field=nil, order=nil)
298
+ @Field = field
299
+ @Order = order
300
+ end
301
+
302
+ def deserialize(params)
303
+ @Field = params['Field']
304
+ @Order = params['Order']
305
+ end
306
+ end
307
+
308
+ end
309
+ end
310
+ end
311
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-ioa
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.727
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ IOA.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20220601/client.rb
37
+ - lib/v20220601/models.rb
38
+ - lib/tencentcloud-sdk-ioa.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-ioa
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - IOA
66
+ test_files: []