tencentcloud-sdk-organization 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-organization.rb +14 -0
- data/lib/v20181225/client.rb +516 -0
- data/lib/v20181225/models.rb +944 -0
- data/lib/v20210331/client.rb +84 -0
- data/lib/v20210331/models.rb +119 -0
- metadata +68 -0
@@ -0,0 +1,944 @@
|
|
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 Organization
|
19
|
+
module V20181225
|
20
|
+
# AcceptOrganizationInvitation请求参数结构体
|
21
|
+
class AcceptOrganizationInvitationRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Id: 邀请ID
|
23
|
+
# @type Id: Integer
|
24
|
+
|
25
|
+
attr_accessor :Id
|
26
|
+
|
27
|
+
def initialize(id=nil)
|
28
|
+
@Id = id
|
29
|
+
end
|
30
|
+
|
31
|
+
def deserialize(params)
|
32
|
+
@Id = params['Id']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# AcceptOrganizationInvitation返回参数结构体
|
37
|
+
class AcceptOrganizationInvitationResponse < TencentCloud::Common::AbstractModel
|
38
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
39
|
+
# @type RequestId: String
|
40
|
+
|
41
|
+
attr_accessor :RequestId
|
42
|
+
|
43
|
+
def initialize(requestid=nil)
|
44
|
+
@RequestId = requestid
|
45
|
+
end
|
46
|
+
|
47
|
+
def deserialize(params)
|
48
|
+
@RequestId = params['RequestId']
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# AddOrganizationNode请求参数结构体
|
53
|
+
class AddOrganizationNodeRequest < TencentCloud::Common::AbstractModel
|
54
|
+
# @param ParentNodeId: 父组织单元ID
|
55
|
+
# @type ParentNodeId: Integer
|
56
|
+
# @param Name: 组织单元名字
|
57
|
+
# @type Name: String
|
58
|
+
|
59
|
+
attr_accessor :ParentNodeId, :Name
|
60
|
+
|
61
|
+
def initialize(parentnodeid=nil, name=nil)
|
62
|
+
@ParentNodeId = parentnodeid
|
63
|
+
@Name = name
|
64
|
+
end
|
65
|
+
|
66
|
+
def deserialize(params)
|
67
|
+
@ParentNodeId = params['ParentNodeId']
|
68
|
+
@Name = params['Name']
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# AddOrganizationNode返回参数结构体
|
73
|
+
class AddOrganizationNodeResponse < TencentCloud::Common::AbstractModel
|
74
|
+
# @param NodeId: 组织单元ID
|
75
|
+
# @type NodeId: Integer
|
76
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
77
|
+
# @type RequestId: String
|
78
|
+
|
79
|
+
attr_accessor :NodeId, :RequestId
|
80
|
+
|
81
|
+
def initialize(nodeid=nil, requestid=nil)
|
82
|
+
@NodeId = nodeid
|
83
|
+
@RequestId = requestid
|
84
|
+
end
|
85
|
+
|
86
|
+
def deserialize(params)
|
87
|
+
@NodeId = params['NodeId']
|
88
|
+
@RequestId = params['RequestId']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# CancelOrganizationInvitation请求参数结构体
|
93
|
+
class CancelOrganizationInvitationRequest < TencentCloud::Common::AbstractModel
|
94
|
+
# @param Id: 邀请ID
|
95
|
+
# @type Id: Integer
|
96
|
+
|
97
|
+
attr_accessor :Id
|
98
|
+
|
99
|
+
def initialize(id=nil)
|
100
|
+
@Id = id
|
101
|
+
end
|
102
|
+
|
103
|
+
def deserialize(params)
|
104
|
+
@Id = params['Id']
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# CancelOrganizationInvitation返回参数结构体
|
109
|
+
class CancelOrganizationInvitationResponse < TencentCloud::Common::AbstractModel
|
110
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
111
|
+
# @type RequestId: String
|
112
|
+
|
113
|
+
attr_accessor :RequestId
|
114
|
+
|
115
|
+
def initialize(requestid=nil)
|
116
|
+
@RequestId = requestid
|
117
|
+
end
|
118
|
+
|
119
|
+
def deserialize(params)
|
120
|
+
@RequestId = params['RequestId']
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# CreateOrganization请求参数结构体
|
125
|
+
class CreateOrganizationRequest < TencentCloud::Common::AbstractModel
|
126
|
+
# @param OrgType: 组织类型(目前固定为1)
|
127
|
+
# @type OrgType: Integer
|
128
|
+
|
129
|
+
attr_accessor :OrgType
|
130
|
+
|
131
|
+
def initialize(orgtype=nil)
|
132
|
+
@OrgType = orgtype
|
133
|
+
end
|
134
|
+
|
135
|
+
def deserialize(params)
|
136
|
+
@OrgType = params['OrgType']
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# CreateOrganization返回参数结构体
|
141
|
+
class CreateOrganizationResponse < TencentCloud::Common::AbstractModel
|
142
|
+
# @param OrgId: 企业组织ID
|
143
|
+
# @type OrgId: Integer
|
144
|
+
# @param Nickname: 创建者昵称
|
145
|
+
# @type Nickname: String
|
146
|
+
# @param Mail: 创建者邮箱
|
147
|
+
# @type Mail: String
|
148
|
+
# @param OrgType: 组织类型
|
149
|
+
# @type OrgType: Integer
|
150
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
151
|
+
# @type RequestId: String
|
152
|
+
|
153
|
+
attr_accessor :OrgId, :Nickname, :Mail, :OrgType, :RequestId
|
154
|
+
|
155
|
+
def initialize(orgid=nil, nickname=nil, mail=nil, orgtype=nil, requestid=nil)
|
156
|
+
@OrgId = orgid
|
157
|
+
@Nickname = nickname
|
158
|
+
@Mail = mail
|
159
|
+
@OrgType = orgtype
|
160
|
+
@RequestId = requestid
|
161
|
+
end
|
162
|
+
|
163
|
+
def deserialize(params)
|
164
|
+
@OrgId = params['OrgId']
|
165
|
+
@Nickname = params['Nickname']
|
166
|
+
@Mail = params['Mail']
|
167
|
+
@OrgType = params['OrgType']
|
168
|
+
@RequestId = params['RequestId']
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# DeleteOrganizationMemberFromNode请求参数结构体
|
173
|
+
class DeleteOrganizationMemberFromNodeRequest < TencentCloud::Common::AbstractModel
|
174
|
+
# @param MemberUin: 被删除成员UIN
|
175
|
+
# @type MemberUin: Integer
|
176
|
+
# @param NodeId: 组织单元ID
|
177
|
+
# @type NodeId: Integer
|
178
|
+
|
179
|
+
attr_accessor :MemberUin, :NodeId
|
180
|
+
|
181
|
+
def initialize(memberuin=nil, nodeid=nil)
|
182
|
+
@MemberUin = memberuin
|
183
|
+
@NodeId = nodeid
|
184
|
+
end
|
185
|
+
|
186
|
+
def deserialize(params)
|
187
|
+
@MemberUin = params['MemberUin']
|
188
|
+
@NodeId = params['NodeId']
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# DeleteOrganizationMemberFromNode返回参数结构体
|
193
|
+
class DeleteOrganizationMemberFromNodeResponse < TencentCloud::Common::AbstractModel
|
194
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
195
|
+
# @type RequestId: String
|
196
|
+
|
197
|
+
attr_accessor :RequestId
|
198
|
+
|
199
|
+
def initialize(requestid=nil)
|
200
|
+
@RequestId = requestid
|
201
|
+
end
|
202
|
+
|
203
|
+
def deserialize(params)
|
204
|
+
@RequestId = params['RequestId']
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# DeleteOrganizationMembers请求参数结构体
|
209
|
+
class DeleteOrganizationMembersRequest < TencentCloud::Common::AbstractModel
|
210
|
+
# @param Uins: 被删除成员的UIN列表
|
211
|
+
# @type Uins: Array
|
212
|
+
|
213
|
+
attr_accessor :Uins
|
214
|
+
|
215
|
+
def initialize(uins=nil)
|
216
|
+
@Uins = uins
|
217
|
+
end
|
218
|
+
|
219
|
+
def deserialize(params)
|
220
|
+
@Uins = params['Uins']
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# DeleteOrganizationMembers返回参数结构体
|
225
|
+
class DeleteOrganizationMembersResponse < TencentCloud::Common::AbstractModel
|
226
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
227
|
+
# @type RequestId: String
|
228
|
+
|
229
|
+
attr_accessor :RequestId
|
230
|
+
|
231
|
+
def initialize(requestid=nil)
|
232
|
+
@RequestId = requestid
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
@RequestId = params['RequestId']
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# DeleteOrganizationNodes请求参数结构体
|
241
|
+
class DeleteOrganizationNodesRequest < TencentCloud::Common::AbstractModel
|
242
|
+
# @param NodeIds: 组织单元ID列表
|
243
|
+
# @type NodeIds: Array
|
244
|
+
|
245
|
+
attr_accessor :NodeIds
|
246
|
+
|
247
|
+
def initialize(nodeids=nil)
|
248
|
+
@NodeIds = nodeids
|
249
|
+
end
|
250
|
+
|
251
|
+
def deserialize(params)
|
252
|
+
@NodeIds = params['NodeIds']
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
# DeleteOrganizationNodes返回参数结构体
|
257
|
+
class DeleteOrganizationNodesResponse < TencentCloud::Common::AbstractModel
|
258
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
259
|
+
# @type RequestId: String
|
260
|
+
|
261
|
+
attr_accessor :RequestId
|
262
|
+
|
263
|
+
def initialize(requestid=nil)
|
264
|
+
@RequestId = requestid
|
265
|
+
end
|
266
|
+
|
267
|
+
def deserialize(params)
|
268
|
+
@RequestId = params['RequestId']
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# DeleteOrganization请求参数结构体
|
273
|
+
class DeleteOrganizationRequest < TencentCloud::Common::AbstractModel
|
274
|
+
|
275
|
+
|
276
|
+
def initialize()
|
277
|
+
end
|
278
|
+
|
279
|
+
def deserialize(params)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# DeleteOrganization返回参数结构体
|
284
|
+
class DeleteOrganizationResponse < TencentCloud::Common::AbstractModel
|
285
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
286
|
+
# @type RequestId: String
|
287
|
+
|
288
|
+
attr_accessor :RequestId
|
289
|
+
|
290
|
+
def initialize(requestid=nil)
|
291
|
+
@RequestId = requestid
|
292
|
+
end
|
293
|
+
|
294
|
+
def deserialize(params)
|
295
|
+
@RequestId = params['RequestId']
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# DenyOrganizationInvitation请求参数结构体
|
300
|
+
class DenyOrganizationInvitationRequest < TencentCloud::Common::AbstractModel
|
301
|
+
# @param Id: 邀请ID
|
302
|
+
# @type Id: Integer
|
303
|
+
|
304
|
+
attr_accessor :Id
|
305
|
+
|
306
|
+
def initialize(id=nil)
|
307
|
+
@Id = id
|
308
|
+
end
|
309
|
+
|
310
|
+
def deserialize(params)
|
311
|
+
@Id = params['Id']
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
# DenyOrganizationInvitation返回参数结构体
|
316
|
+
class DenyOrganizationInvitationResponse < TencentCloud::Common::AbstractModel
|
317
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
318
|
+
# @type RequestId: String
|
319
|
+
|
320
|
+
attr_accessor :RequestId
|
321
|
+
|
322
|
+
def initialize(requestid=nil)
|
323
|
+
@RequestId = requestid
|
324
|
+
end
|
325
|
+
|
326
|
+
def deserialize(params)
|
327
|
+
@RequestId = params['RequestId']
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# GetOrganizationMember请求参数结构体
|
332
|
+
class GetOrganizationMemberRequest < TencentCloud::Common::AbstractModel
|
333
|
+
# @param MemberUin: 组织成员UIN
|
334
|
+
# @type MemberUin: Integer
|
335
|
+
|
336
|
+
attr_accessor :MemberUin
|
337
|
+
|
338
|
+
def initialize(memberuin=nil)
|
339
|
+
@MemberUin = memberuin
|
340
|
+
end
|
341
|
+
|
342
|
+
def deserialize(params)
|
343
|
+
@MemberUin = params['MemberUin']
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# GetOrganizationMember返回参数结构体
|
348
|
+
class GetOrganizationMemberResponse < TencentCloud::Common::AbstractModel
|
349
|
+
# @param Uin: 组织成员UIN
|
350
|
+
# @type Uin: Integer
|
351
|
+
# @param Name: 组织成员名称
|
352
|
+
# @type Name: String
|
353
|
+
# @param Remark: 备注
|
354
|
+
# @type Remark: String
|
355
|
+
# @param JoinTime: 加入时间
|
356
|
+
# @type JoinTime: String
|
357
|
+
# @param NodeId: 组织单元ID
|
358
|
+
# @type NodeId: Integer
|
359
|
+
# @param NodeName: 组织单元名称
|
360
|
+
# @type NodeName: String
|
361
|
+
# @param ParentNodeId: 父组织单元ID
|
362
|
+
# @type ParentNodeId: Integer
|
363
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
364
|
+
# @type RequestId: String
|
365
|
+
|
366
|
+
attr_accessor :Uin, :Name, :Remark, :JoinTime, :NodeId, :NodeName, :ParentNodeId, :RequestId
|
367
|
+
|
368
|
+
def initialize(uin=nil, name=nil, remark=nil, jointime=nil, nodeid=nil, nodename=nil, parentnodeid=nil, requestid=nil)
|
369
|
+
@Uin = uin
|
370
|
+
@Name = name
|
371
|
+
@Remark = remark
|
372
|
+
@JoinTime = jointime
|
373
|
+
@NodeId = nodeid
|
374
|
+
@NodeName = nodename
|
375
|
+
@ParentNodeId = parentnodeid
|
376
|
+
@RequestId = requestid
|
377
|
+
end
|
378
|
+
|
379
|
+
def deserialize(params)
|
380
|
+
@Uin = params['Uin']
|
381
|
+
@Name = params['Name']
|
382
|
+
@Remark = params['Remark']
|
383
|
+
@JoinTime = params['JoinTime']
|
384
|
+
@NodeId = params['NodeId']
|
385
|
+
@NodeName = params['NodeName']
|
386
|
+
@ParentNodeId = params['ParentNodeId']
|
387
|
+
@RequestId = params['RequestId']
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
# GetOrganization请求参数结构体
|
392
|
+
class GetOrganizationRequest < TencentCloud::Common::AbstractModel
|
393
|
+
|
394
|
+
|
395
|
+
def initialize()
|
396
|
+
end
|
397
|
+
|
398
|
+
def deserialize(params)
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# GetOrganization返回参数结构体
|
403
|
+
class GetOrganizationResponse < TencentCloud::Common::AbstractModel
|
404
|
+
# @param OrgId: 企业组织ID
|
405
|
+
# @type OrgId: Integer
|
406
|
+
# @param HostUin: 创建者UIN
|
407
|
+
# @type HostUin: Integer
|
408
|
+
# @param Nickname: 创建者昵称
|
409
|
+
# @type Nickname: String
|
410
|
+
# @param Mail: 创建者邮箱
|
411
|
+
# @type Mail: String
|
412
|
+
# @param OrgType: 企业组织类型
|
413
|
+
# @type OrgType: Integer
|
414
|
+
# @param IsEmpty: 是否为空
|
415
|
+
# @type IsEmpty: Integer
|
416
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
417
|
+
# @type RequestId: String
|
418
|
+
|
419
|
+
attr_accessor :OrgId, :HostUin, :Nickname, :Mail, :OrgType, :IsEmpty, :RequestId
|
420
|
+
|
421
|
+
def initialize(orgid=nil, hostuin=nil, nickname=nil, mail=nil, orgtype=nil, isempty=nil, requestid=nil)
|
422
|
+
@OrgId = orgid
|
423
|
+
@HostUin = hostuin
|
424
|
+
@Nickname = nickname
|
425
|
+
@Mail = mail
|
426
|
+
@OrgType = orgtype
|
427
|
+
@IsEmpty = isempty
|
428
|
+
@RequestId = requestid
|
429
|
+
end
|
430
|
+
|
431
|
+
def deserialize(params)
|
432
|
+
@OrgId = params['OrgId']
|
433
|
+
@HostUin = params['HostUin']
|
434
|
+
@Nickname = params['Nickname']
|
435
|
+
@Mail = params['Mail']
|
436
|
+
@OrgType = params['OrgType']
|
437
|
+
@IsEmpty = params['IsEmpty']
|
438
|
+
@RequestId = params['RequestId']
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
# ListOrganizationInvitations请求参数结构体
|
443
|
+
class ListOrganizationInvitationsRequest < TencentCloud::Common::AbstractModel
|
444
|
+
# @param Invited: 是否被邀请。1:被邀请,0:发出的邀请
|
445
|
+
# @type Invited: Integer
|
446
|
+
# @param Offset: 偏移量
|
447
|
+
# @type Offset: Integer
|
448
|
+
# @param Limit: 限制数目
|
449
|
+
# @type Limit: Integer
|
450
|
+
|
451
|
+
attr_accessor :Invited, :Offset, :Limit
|
452
|
+
|
453
|
+
def initialize(invited=nil, offset=nil, limit=nil)
|
454
|
+
@Invited = invited
|
455
|
+
@Offset = offset
|
456
|
+
@Limit = limit
|
457
|
+
end
|
458
|
+
|
459
|
+
def deserialize(params)
|
460
|
+
@Invited = params['Invited']
|
461
|
+
@Offset = params['Offset']
|
462
|
+
@Limit = params['Limit']
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
# ListOrganizationInvitations返回参数结构体
|
467
|
+
class ListOrganizationInvitationsResponse < TencentCloud::Common::AbstractModel
|
468
|
+
# @param Invitations: 邀请信息列表
|
469
|
+
# @type Invitations: Array
|
470
|
+
# @param TotalCount: 总数目
|
471
|
+
# @type TotalCount: Integer
|
472
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
473
|
+
# @type RequestId: String
|
474
|
+
|
475
|
+
attr_accessor :Invitations, :TotalCount, :RequestId
|
476
|
+
|
477
|
+
def initialize(invitations=nil, totalcount=nil, requestid=nil)
|
478
|
+
@Invitations = invitations
|
479
|
+
@TotalCount = totalcount
|
480
|
+
@RequestId = requestid
|
481
|
+
end
|
482
|
+
|
483
|
+
def deserialize(params)
|
484
|
+
unless params['Invitations'].nil?
|
485
|
+
@Invitations = []
|
486
|
+
params['Invitations'].each do |i|
|
487
|
+
orginvitation_tmp = OrgInvitation.new
|
488
|
+
orginvitation_tmp.deserialize(i)
|
489
|
+
@Invitations << orginvitation_tmp
|
490
|
+
end
|
491
|
+
end
|
492
|
+
@TotalCount = params['TotalCount']
|
493
|
+
@RequestId = params['RequestId']
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
# ListOrganizationMembers请求参数结构体
|
498
|
+
class ListOrganizationMembersRequest < TencentCloud::Common::AbstractModel
|
499
|
+
# @param Offset: 偏移量
|
500
|
+
# @type Offset: Integer
|
501
|
+
# @param Limit: 限制数目
|
502
|
+
# @type Limit: Integer
|
503
|
+
|
504
|
+
attr_accessor :Offset, :Limit
|
505
|
+
|
506
|
+
def initialize(offset=nil, limit=nil)
|
507
|
+
@Offset = offset
|
508
|
+
@Limit = limit
|
509
|
+
end
|
510
|
+
|
511
|
+
def deserialize(params)
|
512
|
+
@Offset = params['Offset']
|
513
|
+
@Limit = params['Limit']
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
# ListOrganizationMembers返回参数结构体
|
518
|
+
class ListOrganizationMembersResponse < TencentCloud::Common::AbstractModel
|
519
|
+
# @param Members: 成员列表
|
520
|
+
# @type Members: Array
|
521
|
+
# @param TotalCount: 总数目
|
522
|
+
# @type TotalCount: Integer
|
523
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
524
|
+
# @type RequestId: String
|
525
|
+
|
526
|
+
attr_accessor :Members, :TotalCount, :RequestId
|
527
|
+
|
528
|
+
def initialize(members=nil, totalcount=nil, requestid=nil)
|
529
|
+
@Members = members
|
530
|
+
@TotalCount = totalcount
|
531
|
+
@RequestId = requestid
|
532
|
+
end
|
533
|
+
|
534
|
+
def deserialize(params)
|
535
|
+
unless params['Members'].nil?
|
536
|
+
@Members = []
|
537
|
+
params['Members'].each do |i|
|
538
|
+
orgmember_tmp = OrgMember.new
|
539
|
+
orgmember_tmp.deserialize(i)
|
540
|
+
@Members << orgmember_tmp
|
541
|
+
end
|
542
|
+
end
|
543
|
+
@TotalCount = params['TotalCount']
|
544
|
+
@RequestId = params['RequestId']
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
# ListOrganizationNodeMembers请求参数结构体
|
549
|
+
class ListOrganizationNodeMembersRequest < TencentCloud::Common::AbstractModel
|
550
|
+
# @param NodeId: 企业组织单元ID
|
551
|
+
# @type NodeId: Integer
|
552
|
+
# @param Offset: 偏移量
|
553
|
+
# @type Offset: Integer
|
554
|
+
# @param Limit: 限制数目
|
555
|
+
# @type Limit: Integer
|
556
|
+
|
557
|
+
attr_accessor :NodeId, :Offset, :Limit
|
558
|
+
|
559
|
+
def initialize(nodeid=nil, offset=nil, limit=nil)
|
560
|
+
@NodeId = nodeid
|
561
|
+
@Offset = offset
|
562
|
+
@Limit = limit
|
563
|
+
end
|
564
|
+
|
565
|
+
def deserialize(params)
|
566
|
+
@NodeId = params['NodeId']
|
567
|
+
@Offset = params['Offset']
|
568
|
+
@Limit = params['Limit']
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# ListOrganizationNodeMembers返回参数结构体
|
573
|
+
class ListOrganizationNodeMembersResponse < TencentCloud::Common::AbstractModel
|
574
|
+
# @param TotalCount: 总数目
|
575
|
+
# @type TotalCount: Integer
|
576
|
+
# @param Members: 成员列表
|
577
|
+
# @type Members: Array
|
578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
579
|
+
# @type RequestId: String
|
580
|
+
|
581
|
+
attr_accessor :TotalCount, :Members, :RequestId
|
582
|
+
|
583
|
+
def initialize(totalcount=nil, members=nil, requestid=nil)
|
584
|
+
@TotalCount = totalcount
|
585
|
+
@Members = members
|
586
|
+
@RequestId = requestid
|
587
|
+
end
|
588
|
+
|
589
|
+
def deserialize(params)
|
590
|
+
@TotalCount = params['TotalCount']
|
591
|
+
unless params['Members'].nil?
|
592
|
+
@Members = []
|
593
|
+
params['Members'].each do |i|
|
594
|
+
orgmember_tmp = OrgMember.new
|
595
|
+
orgmember_tmp.deserialize(i)
|
596
|
+
@Members << orgmember_tmp
|
597
|
+
end
|
598
|
+
end
|
599
|
+
@RequestId = params['RequestId']
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# ListOrganizationNodes请求参数结构体
|
604
|
+
class ListOrganizationNodesRequest < TencentCloud::Common::AbstractModel
|
605
|
+
|
606
|
+
|
607
|
+
def initialize()
|
608
|
+
end
|
609
|
+
|
610
|
+
def deserialize(params)
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
614
|
+
# ListOrganizationNodes返回参数结构体
|
615
|
+
class ListOrganizationNodesResponse < TencentCloud::Common::AbstractModel
|
616
|
+
# @param Nodes: 企业组织单元列表
|
617
|
+
# @type Nodes: Array
|
618
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
619
|
+
# @type RequestId: String
|
620
|
+
|
621
|
+
attr_accessor :Nodes, :RequestId
|
622
|
+
|
623
|
+
def initialize(nodes=nil, requestid=nil)
|
624
|
+
@Nodes = nodes
|
625
|
+
@RequestId = requestid
|
626
|
+
end
|
627
|
+
|
628
|
+
def deserialize(params)
|
629
|
+
unless params['Nodes'].nil?
|
630
|
+
@Nodes = []
|
631
|
+
params['Nodes'].each do |i|
|
632
|
+
orgnode_tmp = OrgNode.new
|
633
|
+
orgnode_tmp.deserialize(i)
|
634
|
+
@Nodes << orgnode_tmp
|
635
|
+
end
|
636
|
+
end
|
637
|
+
@RequestId = params['RequestId']
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
641
|
+
# MoveOrganizationMembersToNode请求参数结构体
|
642
|
+
class MoveOrganizationMembersToNodeRequest < TencentCloud::Common::AbstractModel
|
643
|
+
# @param NodeId: 组织单元ID
|
644
|
+
# @type NodeId: Integer
|
645
|
+
# @param Uins: 成员UIN列表
|
646
|
+
# @type Uins: Array
|
647
|
+
|
648
|
+
attr_accessor :NodeId, :Uins
|
649
|
+
|
650
|
+
def initialize(nodeid=nil, uins=nil)
|
651
|
+
@NodeId = nodeid
|
652
|
+
@Uins = uins
|
653
|
+
end
|
654
|
+
|
655
|
+
def deserialize(params)
|
656
|
+
@NodeId = params['NodeId']
|
657
|
+
@Uins = params['Uins']
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# MoveOrganizationMembersToNode返回参数结构体
|
662
|
+
class MoveOrganizationMembersToNodeResponse < TencentCloud::Common::AbstractModel
|
663
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
664
|
+
# @type RequestId: String
|
665
|
+
|
666
|
+
attr_accessor :RequestId
|
667
|
+
|
668
|
+
def initialize(requestid=nil)
|
669
|
+
@RequestId = requestid
|
670
|
+
end
|
671
|
+
|
672
|
+
def deserialize(params)
|
673
|
+
@RequestId = params['RequestId']
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
677
|
+
# 企业组织邀请
|
678
|
+
class OrgInvitation < TencentCloud::Common::AbstractModel
|
679
|
+
# @param Id: 邀请ID
|
680
|
+
# @type Id: Integer
|
681
|
+
# @param Uin: 被邀请UIN
|
682
|
+
# @type Uin: Integer
|
683
|
+
# @param HostUin: 创建者UIN
|
684
|
+
# @type HostUin: Integer
|
685
|
+
# @param HostName: 创建者名称
|
686
|
+
# @type HostName: String
|
687
|
+
# @param HostMail: 创建者邮箱
|
688
|
+
# @type HostMail: String
|
689
|
+
# @param Status: 邀请状态。-1:已过期,0:正常,1:已接受,2:已失效,3:已取消
|
690
|
+
# @type Status: Integer
|
691
|
+
# @param Name: 名称
|
692
|
+
# @type Name: String
|
693
|
+
# @param Remark: 备注
|
694
|
+
# @type Remark: String
|
695
|
+
# @param OrgType: 企业组织类型
|
696
|
+
# @type OrgType: Integer
|
697
|
+
# @param InviteTime: 邀请时间
|
698
|
+
# @type InviteTime: String
|
699
|
+
# @param ExpireTime: 过期时间
|
700
|
+
# @type ExpireTime: String
|
701
|
+
|
702
|
+
attr_accessor :Id, :Uin, :HostUin, :HostName, :HostMail, :Status, :Name, :Remark, :OrgType, :InviteTime, :ExpireTime
|
703
|
+
|
704
|
+
def initialize(id=nil, uin=nil, hostuin=nil, hostname=nil, hostmail=nil, status=nil, name=nil, remark=nil, orgtype=nil, invitetime=nil, expiretime=nil)
|
705
|
+
@Id = id
|
706
|
+
@Uin = uin
|
707
|
+
@HostUin = hostuin
|
708
|
+
@HostName = hostname
|
709
|
+
@HostMail = hostmail
|
710
|
+
@Status = status
|
711
|
+
@Name = name
|
712
|
+
@Remark = remark
|
713
|
+
@OrgType = orgtype
|
714
|
+
@InviteTime = invitetime
|
715
|
+
@ExpireTime = expiretime
|
716
|
+
end
|
717
|
+
|
718
|
+
def deserialize(params)
|
719
|
+
@Id = params['Id']
|
720
|
+
@Uin = params['Uin']
|
721
|
+
@HostUin = params['HostUin']
|
722
|
+
@HostName = params['HostName']
|
723
|
+
@HostMail = params['HostMail']
|
724
|
+
@Status = params['Status']
|
725
|
+
@Name = params['Name']
|
726
|
+
@Remark = params['Remark']
|
727
|
+
@OrgType = params['OrgType']
|
728
|
+
@InviteTime = params['InviteTime']
|
729
|
+
@ExpireTime = params['ExpireTime']
|
730
|
+
end
|
731
|
+
end
|
732
|
+
|
733
|
+
# 企业组织成员
|
734
|
+
class OrgMember < TencentCloud::Common::AbstractModel
|
735
|
+
# @param Uin: UIN
|
736
|
+
# @type Uin: Integer
|
737
|
+
# @param Name: 名称
|
738
|
+
# @type Name: String
|
739
|
+
# @param Remark: 备注
|
740
|
+
# @type Remark: String
|
741
|
+
# @param JoinTime: 加入时间
|
742
|
+
# @type JoinTime: String
|
743
|
+
|
744
|
+
attr_accessor :Uin, :Name, :Remark, :JoinTime
|
745
|
+
|
746
|
+
def initialize(uin=nil, name=nil, remark=nil, jointime=nil)
|
747
|
+
@Uin = uin
|
748
|
+
@Name = name
|
749
|
+
@Remark = remark
|
750
|
+
@JoinTime = jointime
|
751
|
+
end
|
752
|
+
|
753
|
+
def deserialize(params)
|
754
|
+
@Uin = params['Uin']
|
755
|
+
@Name = params['Name']
|
756
|
+
@Remark = params['Remark']
|
757
|
+
@JoinTime = params['JoinTime']
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
761
|
+
# 企业组织单元
|
762
|
+
class OrgNode < TencentCloud::Common::AbstractModel
|
763
|
+
# @param NodeId: 组织单元ID
|
764
|
+
# @type NodeId: Integer
|
765
|
+
# @param Name: 名称
|
766
|
+
# @type Name: String
|
767
|
+
# @param ParentNodeId: 父单元ID
|
768
|
+
# @type ParentNodeId: Integer
|
769
|
+
# @param MemberCount: 成员数量
|
770
|
+
# @type MemberCount: Integer
|
771
|
+
|
772
|
+
attr_accessor :NodeId, :Name, :ParentNodeId, :MemberCount
|
773
|
+
|
774
|
+
def initialize(nodeid=nil, name=nil, parentnodeid=nil, membercount=nil)
|
775
|
+
@NodeId = nodeid
|
776
|
+
@Name = name
|
777
|
+
@ParentNodeId = parentnodeid
|
778
|
+
@MemberCount = membercount
|
779
|
+
end
|
780
|
+
|
781
|
+
def deserialize(params)
|
782
|
+
@NodeId = params['NodeId']
|
783
|
+
@Name = params['Name']
|
784
|
+
@ParentNodeId = params['ParentNodeId']
|
785
|
+
@MemberCount = params['MemberCount']
|
786
|
+
end
|
787
|
+
end
|
788
|
+
|
789
|
+
# QuitOrganization请求参数结构体
|
790
|
+
class QuitOrganizationRequest < TencentCloud::Common::AbstractModel
|
791
|
+
# @param OrgId: 企业组织ID
|
792
|
+
# @type OrgId: Integer
|
793
|
+
|
794
|
+
attr_accessor :OrgId
|
795
|
+
|
796
|
+
def initialize(orgid=nil)
|
797
|
+
@OrgId = orgid
|
798
|
+
end
|
799
|
+
|
800
|
+
def deserialize(params)
|
801
|
+
@OrgId = params['OrgId']
|
802
|
+
end
|
803
|
+
end
|
804
|
+
|
805
|
+
# QuitOrganization返回参数结构体
|
806
|
+
class QuitOrganizationResponse < TencentCloud::Common::AbstractModel
|
807
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
808
|
+
# @type RequestId: String
|
809
|
+
|
810
|
+
attr_accessor :RequestId
|
811
|
+
|
812
|
+
def initialize(requestid=nil)
|
813
|
+
@RequestId = requestid
|
814
|
+
end
|
815
|
+
|
816
|
+
def deserialize(params)
|
817
|
+
@RequestId = params['RequestId']
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
821
|
+
# SendOrganizationInvitation请求参数结构体
|
822
|
+
class SendOrganizationInvitationRequest < TencentCloud::Common::AbstractModel
|
823
|
+
# @param InviteUin: 被邀请账户UIN
|
824
|
+
# @type InviteUin: Integer
|
825
|
+
# @param Name: 名称
|
826
|
+
# @type Name: String
|
827
|
+
# @param Remark: 备注
|
828
|
+
# @type Remark: String
|
829
|
+
|
830
|
+
attr_accessor :InviteUin, :Name, :Remark
|
831
|
+
|
832
|
+
def initialize(inviteuin=nil, name=nil, remark=nil)
|
833
|
+
@InviteUin = inviteuin
|
834
|
+
@Name = name
|
835
|
+
@Remark = remark
|
836
|
+
end
|
837
|
+
|
838
|
+
def deserialize(params)
|
839
|
+
@InviteUin = params['InviteUin']
|
840
|
+
@Name = params['Name']
|
841
|
+
@Remark = params['Remark']
|
842
|
+
end
|
843
|
+
end
|
844
|
+
|
845
|
+
# SendOrganizationInvitation返回参数结构体
|
846
|
+
class SendOrganizationInvitationResponse < TencentCloud::Common::AbstractModel
|
847
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
848
|
+
# @type RequestId: String
|
849
|
+
|
850
|
+
attr_accessor :RequestId
|
851
|
+
|
852
|
+
def initialize(requestid=nil)
|
853
|
+
@RequestId = requestid
|
854
|
+
end
|
855
|
+
|
856
|
+
def deserialize(params)
|
857
|
+
@RequestId = params['RequestId']
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
# UpdateOrganizationMember请求参数结构体
|
862
|
+
class UpdateOrganizationMemberRequest < TencentCloud::Common::AbstractModel
|
863
|
+
# @param MemberUin: 成员UIN
|
864
|
+
# @type MemberUin: Integer
|
865
|
+
# @param Name: 名称
|
866
|
+
# @type Name: String
|
867
|
+
# @param Remark: 备注
|
868
|
+
# @type Remark: String
|
869
|
+
|
870
|
+
attr_accessor :MemberUin, :Name, :Remark
|
871
|
+
|
872
|
+
def initialize(memberuin=nil, name=nil, remark=nil)
|
873
|
+
@MemberUin = memberuin
|
874
|
+
@Name = name
|
875
|
+
@Remark = remark
|
876
|
+
end
|
877
|
+
|
878
|
+
def deserialize(params)
|
879
|
+
@MemberUin = params['MemberUin']
|
880
|
+
@Name = params['Name']
|
881
|
+
@Remark = params['Remark']
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
# UpdateOrganizationMember返回参数结构体
|
886
|
+
class UpdateOrganizationMemberResponse < TencentCloud::Common::AbstractModel
|
887
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
888
|
+
# @type RequestId: String
|
889
|
+
|
890
|
+
attr_accessor :RequestId
|
891
|
+
|
892
|
+
def initialize(requestid=nil)
|
893
|
+
@RequestId = requestid
|
894
|
+
end
|
895
|
+
|
896
|
+
def deserialize(params)
|
897
|
+
@RequestId = params['RequestId']
|
898
|
+
end
|
899
|
+
end
|
900
|
+
|
901
|
+
# UpdateOrganizationNode请求参数结构体
|
902
|
+
class UpdateOrganizationNodeRequest < TencentCloud::Common::AbstractModel
|
903
|
+
# @param NodeId: 企业组织单元ID
|
904
|
+
# @type NodeId: Integer
|
905
|
+
# @param Name: 名称
|
906
|
+
# @type Name: String
|
907
|
+
# @param ParentNodeId: 父单元ID
|
908
|
+
# @type ParentNodeId: Integer
|
909
|
+
|
910
|
+
attr_accessor :NodeId, :Name, :ParentNodeId
|
911
|
+
|
912
|
+
def initialize(nodeid=nil, name=nil, parentnodeid=nil)
|
913
|
+
@NodeId = nodeid
|
914
|
+
@Name = name
|
915
|
+
@ParentNodeId = parentnodeid
|
916
|
+
end
|
917
|
+
|
918
|
+
def deserialize(params)
|
919
|
+
@NodeId = params['NodeId']
|
920
|
+
@Name = params['Name']
|
921
|
+
@ParentNodeId = params['ParentNodeId']
|
922
|
+
end
|
923
|
+
end
|
924
|
+
|
925
|
+
# UpdateOrganizationNode返回参数结构体
|
926
|
+
class UpdateOrganizationNodeResponse < TencentCloud::Common::AbstractModel
|
927
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
928
|
+
# @type RequestId: String
|
929
|
+
|
930
|
+
attr_accessor :RequestId
|
931
|
+
|
932
|
+
def initialize(requestid=nil)
|
933
|
+
@RequestId = requestid
|
934
|
+
end
|
935
|
+
|
936
|
+
def deserialize(params)
|
937
|
+
@RequestId = params['RequestId']
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
941
|
+
end
|
942
|
+
end
|
943
|
+
end
|
944
|
+
|