tencentcloud-sdk-ciam 1.0.356 → 1.0.359

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f409f4a112196d1f8e3a2dc15e413aaf459e39da
4
- data.tar.gz: 60274f2972504b44f6a9f8b4def4cb91cd38112b
3
+ metadata.gz: dc78121003ff524d2c1c39e551de7a9da76c78bc
4
+ data.tar.gz: ab277c2ed1fa0e7a99492f0fd02a3ad970e930aa
5
5
  SHA512:
6
- metadata.gz: 8ffed3724314dcfb84260b509173ca08d0c75ac20fa6b0bd320473d70615b9aa0050e7d647816055aac6d4beae216f2ecaf7f867d58c32308c6985ef8733ba46
7
- data.tar.gz: 08ebb1ecbc8796a12c703897bf1dfcd29942a09efda34219898e368a6b5462702cbe09fd078f1a4bf34ab9a88b9b952d6eb8fb33e9ee3b7be07d35c4a255ecb1
6
+ metadata.gz: 0f9ebc1d3e8446324067b8b0e4eb1394f93223888fc0bb2927ec2d043b60147f22367fb950c77cc56c47842616bd9525621612a228d8afc01b74404b792bfcc5
7
+ data.tar.gz: 9530febbb963cc24ecfba94d644932b1137e0de19226344f120195164ef7991e8a3ba32ebb957ebba372e8256a7a2c9bc2af487e52b8e85d0a50ba7b61a22565
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.356
1
+ 1.0.359
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 多条件查询用户信息
129
+
130
+ # @param request: Request instance for DescribeUser.
131
+ # @type request: :class:`Tencentcloud::ciam::V20220331::DescribeUserRequest`
132
+ # @rtype: :class:`Tencentcloud::ciam::V20220331::DescribeUserResponse`
133
+ def DescribeUser(request)
134
+ body = send_request('DescribeUser', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeUserResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
128
152
  # 根据ID查询用户信息
129
153
 
130
154
  # @param request: Request instance for DescribeUserById.
@@ -264,17 +264,24 @@ module TencentCloud
264
264
  # @type UserStoreId: String
265
265
  # @param UserId: 用户ID
266
266
  # @type UserId: String
267
+ # @param Original: 返回信息是否为原文
267
268
 
268
- attr_accessor :UserStoreId, :UserId
269
+ # <li> **false** </li> 默认,返回信息为脱敏信息
270
+ # <li> **true** </li> 返回用户信息原文
271
+ # @type Original: Boolean
272
+
273
+ attr_accessor :UserStoreId, :UserId, :Original
269
274
 
270
- def initialize(userstoreid=nil, userid=nil)
275
+ def initialize(userstoreid=nil, userid=nil, original=nil)
271
276
  @UserStoreId = userstoreid
272
277
  @UserId = userid
278
+ @Original = original
273
279
  end
274
280
 
275
281
  def deserialize(params)
276
282
  @UserStoreId = params['UserStoreId']
277
283
  @UserId = params['UserId']
284
+ @Original = params['Original']
278
285
  end
279
286
  end
280
287
 
@@ -302,6 +309,85 @@ module TencentCloud
302
309
  end
303
310
  end
304
311
 
312
+ # DescribeUser请求参数结构体
313
+ class DescribeUserRequest < TencentCloud::Common::AbstractModel
314
+ # @param UserStoreId: 用户目录ID
315
+ # @type UserStoreId: String
316
+ # @param Pageable: 分页数据
317
+ # @type Pageable: :class:`Tencentcloud::Ciam.v20220331.models.Pageable`
318
+ # @param Filters: 查询条件,根据propertycode和propertykey
319
+ # @type Filters: Array
320
+ # @param Original: 是否返回明文
321
+ # @type Original: Boolean
322
+
323
+ attr_accessor :UserStoreId, :Pageable, :Filters, :Original
324
+
325
+ def initialize(userstoreid=nil, pageable=nil, filters=nil, original=nil)
326
+ @UserStoreId = userstoreid
327
+ @Pageable = pageable
328
+ @Filters = filters
329
+ @Original = original
330
+ end
331
+
332
+ def deserialize(params)
333
+ @UserStoreId = params['UserStoreId']
334
+ unless params['Pageable'].nil?
335
+ @Pageable = Pageable.new
336
+ @Pageable.deserialize(params['Pageable'])
337
+ end
338
+ unless params['Filters'].nil?
339
+ @Filters = []
340
+ params['Filters'].each do |i|
341
+ queryuserfilter_tmp = QueryUserFilter.new
342
+ queryuserfilter_tmp.deserialize(i)
343
+ @Filters << queryuserfilter_tmp
344
+ end
345
+ end
346
+ @Original = params['Original']
347
+ end
348
+ end
349
+
350
+ # DescribeUser返回参数结构体
351
+ class DescribeUserResponse < TencentCloud::Common::AbstractModel
352
+ # @param Total: 总条数
353
+ # 注意:此字段可能返回 null,表示取不到有效值。
354
+ # @type Total: Integer
355
+ # @param Pageable: 分页对象
356
+ # 注意:此字段可能返回 null,表示取不到有效值。
357
+ # @type Pageable: :class:`Tencentcloud::Ciam.v20220331.models.Pageable`
358
+ # @param Content: 用户列表
359
+ # 注意:此字段可能返回 null,表示取不到有效值。
360
+ # @type Content: Array
361
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
362
+ # @type RequestId: String
363
+
364
+ attr_accessor :Total, :Pageable, :Content, :RequestId
365
+
366
+ def initialize(total=nil, pageable=nil, content=nil, requestid=nil)
367
+ @Total = total
368
+ @Pageable = pageable
369
+ @Content = content
370
+ @RequestId = requestid
371
+ end
372
+
373
+ def deserialize(params)
374
+ @Total = params['Total']
375
+ unless params['Pageable'].nil?
376
+ @Pageable = Pageable.new
377
+ @Pageable.deserialize(params['Pageable'])
378
+ end
379
+ unless params['Content'].nil?
380
+ @Content = []
381
+ params['Content'].each do |i|
382
+ user_tmp = User.new
383
+ user_tmp.deserialize(i)
384
+ @Content << user_tmp
385
+ end
386
+ end
387
+ @RequestId = params['RequestId']
388
+ end
389
+ end
390
+
305
391
  # 失败详情
306
392
  class ErrorDetails < TencentCloud::Common::AbstractModel
307
393
  # @param UserId: 用户信息
@@ -780,19 +866,23 @@ module TencentCloud
780
866
  # @type PropertyCode: String
781
867
  # @param PropertyValue: 属性值
782
868
  # @type PropertyValue: String
869
+ # @param Original: 返回信息是否为原文
870
+ # @type Original: Boolean
783
871
 
784
- attr_accessor :UserStoreId, :PropertyCode, :PropertyValue
872
+ attr_accessor :UserStoreId, :PropertyCode, :PropertyValue, :Original
785
873
 
786
- def initialize(userstoreid=nil, propertycode=nil, propertyvalue=nil)
874
+ def initialize(userstoreid=nil, propertycode=nil, propertyvalue=nil, original=nil)
787
875
  @UserStoreId = userstoreid
788
876
  @PropertyCode = propertycode
789
877
  @PropertyValue = propertyvalue
878
+ @Original = original
790
879
  end
791
880
 
792
881
  def deserialize(params)
793
882
  @UserStoreId = params['UserStoreId']
794
883
  @PropertyCode = params['PropertyCode']
795
884
  @PropertyValue = params['PropertyValue']
885
+ @Original = params['Original']
796
886
  end
797
887
  end
798
888
 
@@ -835,13 +925,16 @@ module TencentCloud
835
925
  # <li> **condition** </li> Values = 查询条件,用户ID,用户名称,手机或邮箱
836
926
  # <li> **userGroupId** </li> Values = 用户组ID
837
927
  # @type Filters: Array
928
+ # @param Original: 返回信息是否为原文
929
+ # @type Original: Boolean
838
930
 
839
- attr_accessor :UserStoreId, :Pageable, :Filters
931
+ attr_accessor :UserStoreId, :Pageable, :Filters, :Original
840
932
 
841
- def initialize(userstoreid=nil, pageable=nil, filters=nil)
933
+ def initialize(userstoreid=nil, pageable=nil, filters=nil, original=nil)
842
934
  @UserStoreId = userstoreid
843
935
  @Pageable = pageable
844
936
  @Filters = filters
937
+ @Original = original
845
938
  end
846
939
 
847
940
  def deserialize(params)
@@ -858,6 +951,7 @@ module TencentCloud
858
951
  @Filters << filter_tmp
859
952
  end
860
953
  end
954
+ @Original = params['Original']
861
955
  end
862
956
  end
863
957
 
@@ -1046,6 +1140,30 @@ module TencentCloud
1046
1140
  end
1047
1141
  end
1048
1142
 
1143
+ # 查询用户信息条件
1144
+ class QueryUserFilter < TencentCloud::Common::AbstractModel
1145
+ # @param PropertyKey: 属性key
1146
+ # @type PropertyKey: String
1147
+ # @param PropertyValue: 属性value
1148
+ # @type PropertyValue: String
1149
+ # @param Logic: 逻辑值,等于true,不等于false
1150
+ # @type Logic: Boolean
1151
+
1152
+ attr_accessor :PropertyKey, :PropertyValue, :Logic
1153
+
1154
+ def initialize(propertykey=nil, propertyvalue=nil, logic=nil)
1155
+ @PropertyKey = propertykey
1156
+ @PropertyValue = propertyvalue
1157
+ @Logic = logic
1158
+ end
1159
+
1160
+ def deserialize(params)
1161
+ @PropertyKey = params['PropertyKey']
1162
+ @PropertyValue = params['PropertyValue']
1163
+ @Logic = params['Logic']
1164
+ end
1165
+ end
1166
+
1049
1167
  # ResetPassword请求参数结构体
1050
1168
  class ResetPasswordRequest < TencentCloud::Common::AbstractModel
1051
1169
  # @param UserId: 用户ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ciam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.356
4
+ version: 1.0.359
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-14 00:00:00.000000000 Z
11
+ date: 2022-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common