tencentcloud-sdk-essbasic 3.0.537 → 3.0.538

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5768ab06056e0b4a4f4980c5b7d69170c87b88c
4
- data.tar.gz: e2082ce581796ae9937e2e501aa0074684343616
3
+ metadata.gz: 32bb608a147531eab5f002f53299134da125de4c
4
+ data.tar.gz: 3546af1fa5d21e70fba55ec9010b3b2e69480dec
5
5
  SHA512:
6
- metadata.gz: 61ea6ce9ad613c195d151c45ec7f4f25c0b6ab5b4685bc9471f79e1a77fb8a9dd65b28f0239248471e38464da7f22f13421b48d57b063462ba39d202714af512
7
- data.tar.gz: 37457c6d0104717cb1c62f629173e44cd46e685e03017cb31bf8068150874cfa48e1f9961497a520542618e09fcb4bbbcf1b9c81be475f7cc23a9a3dba605933
6
+ metadata.gz: 95fcb745f1e17923448b28e7182c0228e6e499b18235fb373fe3b150eabf09b6831812f58cfdb9e0bdd73cde33c61e3610d8472ef8af875a790a164c88373288
7
+ data.tar.gz: f8c2e208d002347b061339f115662e853978c46d3f0bab8b2adff461ef82be13190bde8e00c1e90aadb95bfb9892331ccd83cc6837f7b67ffbc04b7387d79ab2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.537
1
+ 3.0.538
@@ -439,6 +439,54 @@ module TencentCloud
439
439
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
440
440
  end
441
441
 
442
+ # 渠道版绑定员工角色
443
+
444
+ # @param request: Request instance for ChannelCreateUserRoles.
445
+ # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateUserRolesRequest`
446
+ # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateUserRolesResponse`
447
+ def ChannelCreateUserRoles(request)
448
+ body = send_request('ChannelCreateUserRoles', request.serialize)
449
+ response = JSON.parse(body)
450
+ if response['Response'].key?('Error') == false
451
+ model = ChannelCreateUserRolesResponse.new
452
+ model.deserialize(response['Response'])
453
+ model
454
+ else
455
+ code = response['Response']['Error']['Code']
456
+ message = response['Response']['Error']['Message']
457
+ reqid = response['Response']['RequestId']
458
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
459
+ end
460
+ rescue TencentCloud::Common::TencentCloudSDKException => e
461
+ raise e
462
+ rescue StandardError => e
463
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
464
+ end
465
+
466
+ # 渠道版删除员工绑定角色
467
+
468
+ # @param request: Request instance for ChannelDeleteRoleUsers.
469
+ # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelDeleteRoleUsersRequest`
470
+ # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelDeleteRoleUsersResponse`
471
+ def ChannelDeleteRoleUsers(request)
472
+ body = send_request('ChannelDeleteRoleUsers', request.serialize)
473
+ response = JSON.parse(body)
474
+ if response['Response'].key?('Error') == false
475
+ model = ChannelDeleteRoleUsersResponse.new
476
+ model.deserialize(response['Response'])
477
+ model
478
+ else
479
+ code = response['Response']['Error']['Code']
480
+ message = response['Response']['Error']['Message']
481
+ reqid = response['Response']['RequestId']
482
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
483
+ end
484
+ rescue TencentCloud::Common::TencentCloudSDKException => e
485
+ raise e
486
+ rescue StandardError => e
487
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
488
+ end
489
+
442
490
  # 删除指定印章下多个授权信息
443
491
 
444
492
  # @param request: Request instance for ChannelDeleteSealPolicies.
@@ -512,6 +560,30 @@ module TencentCloud
512
560
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
513
561
  end
514
562
 
563
+ # 渠道办查询用户角色
564
+
565
+ # @param request: Request instance for ChannelDescribeRoles.
566
+ # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelDescribeRolesRequest`
567
+ # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelDescribeRolesResponse`
568
+ def ChannelDescribeRoles(request)
569
+ body = send_request('ChannelDescribeRoles', request.serialize)
570
+ response = JSON.parse(body)
571
+ if response['Response'].key?('Error') == false
572
+ model = ChannelDescribeRolesResponse.new
573
+ model.deserialize(response['Response'])
574
+ model
575
+ else
576
+ code = response['Response']['Error']['Code']
577
+ message = response['Response']['Error']['Message']
578
+ reqid = response['Response']['RequestId']
579
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
580
+ end
581
+ rescue TencentCloud::Common::TencentCloudSDKException => e
582
+ raise e
583
+ rescue StandardError => e
584
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
585
+ end
586
+
515
587
  # 查询转换任务状态
516
588
 
517
589
  # @param request: Request instance for ChannelGetTaskResultApi.
@@ -1336,6 +1336,121 @@ module TencentCloud
1336
1336
  end
1337
1337
  end
1338
1338
 
1339
+ # ChannelCreateUserRoles请求参数结构体
1340
+ class ChannelCreateUserRolesRequest < TencentCloud::Common::AbstractModel
1341
+ # @param Operator: 操作者信息
1342
+ # @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
1343
+ # @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 必填。
1344
+ # @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
1345
+ # @param UserIds: 绑定角色的员工id列表
1346
+ # @type UserIds: Array
1347
+ # @param RoleIds: 绑定角色的角色id列表
1348
+ # @type RoleIds: Array
1349
+
1350
+ attr_accessor :Operator, :Agent, :UserIds, :RoleIds
1351
+
1352
+ def initialize(operator=nil, agent=nil, userids=nil, roleids=nil)
1353
+ @Operator = operator
1354
+ @Agent = agent
1355
+ @UserIds = userids
1356
+ @RoleIds = roleids
1357
+ end
1358
+
1359
+ def deserialize(params)
1360
+ unless params['Operator'].nil?
1361
+ @Operator = UserInfo.new
1362
+ @Operator.deserialize(params['Operator'])
1363
+ end
1364
+ unless params['Agent'].nil?
1365
+ @Agent = Agent.new
1366
+ @Agent.deserialize(params['Agent'])
1367
+ end
1368
+ @UserIds = params['UserIds']
1369
+ @RoleIds = params['RoleIds']
1370
+ end
1371
+ end
1372
+
1373
+ # ChannelCreateUserRoles返回参数结构体
1374
+ class ChannelCreateUserRolesResponse < TencentCloud::Common::AbstractModel
1375
+ # @param FailedCreateRoleData: 绑定失败的用户角色列表
1376
+ # @type FailedCreateRoleData: Array
1377
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1378
+ # @type RequestId: String
1379
+
1380
+ attr_accessor :FailedCreateRoleData, :RequestId
1381
+
1382
+ def initialize(failedcreateroledata=nil, requestid=nil)
1383
+ @FailedCreateRoleData = failedcreateroledata
1384
+ @RequestId = requestid
1385
+ end
1386
+
1387
+ def deserialize(params)
1388
+ unless params['FailedCreateRoleData'].nil?
1389
+ @FailedCreateRoleData = []
1390
+ params['FailedCreateRoleData'].each do |i|
1391
+ failedcreateroledata_tmp = FailedCreateRoleData.new
1392
+ failedcreateroledata_tmp.deserialize(i)
1393
+ @FailedCreateRoleData << failedcreateroledata_tmp
1394
+ end
1395
+ end
1396
+ @RequestId = params['RequestId']
1397
+ end
1398
+ end
1399
+
1400
+ # ChannelDeleteRoleUsers请求参数结构体
1401
+ class ChannelDeleteRoleUsersRequest < TencentCloud::Common::AbstractModel
1402
+ # @param Operator: 操作人信息
1403
+ # @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
1404
+ # @param RoleId: 角色Id
1405
+ # @type RoleId: String
1406
+ # @param UserIds: 用户列表
1407
+ # @type UserIds: Array
1408
+ # @param Agent: 代理信息
1409
+ # @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
1410
+
1411
+ attr_accessor :Operator, :RoleId, :UserIds, :Agent
1412
+
1413
+ def initialize(operator=nil, roleid=nil, userids=nil, agent=nil)
1414
+ @Operator = operator
1415
+ @RoleId = roleid
1416
+ @UserIds = userids
1417
+ @Agent = agent
1418
+ end
1419
+
1420
+ def deserialize(params)
1421
+ unless params['Operator'].nil?
1422
+ @Operator = UserInfo.new
1423
+ @Operator.deserialize(params['Operator'])
1424
+ end
1425
+ @RoleId = params['RoleId']
1426
+ @UserIds = params['UserIds']
1427
+ unless params['Agent'].nil?
1428
+ @Agent = Agent.new
1429
+ @Agent.deserialize(params['Agent'])
1430
+ end
1431
+ end
1432
+ end
1433
+
1434
+ # ChannelDeleteRoleUsers返回参数结构体
1435
+ class ChannelDeleteRoleUsersResponse < TencentCloud::Common::AbstractModel
1436
+ # @param RoleId: 角色id
1437
+ # @type RoleId: String
1438
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1439
+ # @type RequestId: String
1440
+
1441
+ attr_accessor :RoleId, :RequestId
1442
+
1443
+ def initialize(roleid=nil, requestid=nil)
1444
+ @RoleId = roleid
1445
+ @RequestId = requestid
1446
+ end
1447
+
1448
+ def deserialize(params)
1449
+ @RoleId = params['RoleId']
1450
+ @RequestId = params['RequestId']
1451
+ end
1452
+ end
1453
+
1339
1454
  # ChannelDeleteSealPolicies请求参数结构体
1340
1455
  class ChannelDeleteSealPoliciesRequest < TencentCloud::Common::AbstractModel
1341
1456
  # @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填。
@@ -1557,6 +1672,93 @@ module TencentCloud
1557
1672
  end
1558
1673
  end
1559
1674
 
1675
+ # ChannelDescribeRoles请求参数结构体
1676
+ class ChannelDescribeRolesRequest < TencentCloud::Common::AbstractModel
1677
+ # @param Operator: 操作人信息
1678
+ # @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
1679
+ # @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 必填。
1680
+ # @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
1681
+ # @param Offset: 查询起始偏移,最大2000
1682
+ # @type Offset: Integer
1683
+ # @param Limit: 查询数量,最大200
1684
+ # @type Limit: String
1685
+ # @param Filters: 查询的关键字段:
1686
+ # Key:"RoleType",Vales:["1"]查询系统角色,Values:["2]查询自定义角色
1687
+ # Key:"RoleStatus",Values:["1"]查询启用角色,Values:["2"]查询禁用角色
1688
+ # @type Filters: Array
1689
+
1690
+ attr_accessor :Operator, :Agent, :Offset, :Limit, :Filters
1691
+
1692
+ def initialize(operator=nil, agent=nil, offset=nil, limit=nil, filters=nil)
1693
+ @Operator = operator
1694
+ @Agent = agent
1695
+ @Offset = offset
1696
+ @Limit = limit
1697
+ @Filters = filters
1698
+ end
1699
+
1700
+ def deserialize(params)
1701
+ unless params['Operator'].nil?
1702
+ @Operator = UserInfo.new
1703
+ @Operator.deserialize(params['Operator'])
1704
+ end
1705
+ unless params['Agent'].nil?
1706
+ @Agent = Agent.new
1707
+ @Agent.deserialize(params['Agent'])
1708
+ end
1709
+ @Offset = params['Offset']
1710
+ @Limit = params['Limit']
1711
+ unless params['Filters'].nil?
1712
+ @Filters = []
1713
+ params['Filters'].each do |i|
1714
+ filter_tmp = Filter.new
1715
+ filter_tmp.deserialize(i)
1716
+ @Filters << filter_tmp
1717
+ end
1718
+ end
1719
+ end
1720
+ end
1721
+
1722
+ # ChannelDescribeRoles返回参数结构体
1723
+ class ChannelDescribeRolesResponse < TencentCloud::Common::AbstractModel
1724
+ # @param Offset: 页面偏移量,最大2000
1725
+ # @type Offset: Integer
1726
+ # @param Limit: 查询数量,最大200
1727
+ # @type Limit: Integer
1728
+ # @param TotalCount: 查询角色的总数量
1729
+ # @type TotalCount: Integer
1730
+ # @param ChannelRoles: 角色信息
1731
+ # 注意:此字段可能返回 null,表示取不到有效值。
1732
+ # @type ChannelRoles: Array
1733
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1734
+ # @type RequestId: String
1735
+
1736
+ attr_accessor :Offset, :Limit, :TotalCount, :ChannelRoles, :RequestId
1737
+
1738
+ def initialize(offset=nil, limit=nil, totalcount=nil, channelroles=nil, requestid=nil)
1739
+ @Offset = offset
1740
+ @Limit = limit
1741
+ @TotalCount = totalcount
1742
+ @ChannelRoles = channelroles
1743
+ @RequestId = requestid
1744
+ end
1745
+
1746
+ def deserialize(params)
1747
+ @Offset = params['Offset']
1748
+ @Limit = params['Limit']
1749
+ @TotalCount = params['TotalCount']
1750
+ unless params['ChannelRoles'].nil?
1751
+ @ChannelRoles = []
1752
+ params['ChannelRoles'].each do |i|
1753
+ channelrole_tmp = ChannelRole.new
1754
+ channelrole_tmp.deserialize(i)
1755
+ @ChannelRoles << channelrole_tmp
1756
+ end
1757
+ end
1758
+ @RequestId = params['RequestId']
1759
+ end
1760
+ end
1761
+
1560
1762
  # ChannelGetTaskResultApi请求参数结构体
1561
1763
  class ChannelGetTaskResultApiRequest < TencentCloud::Common::AbstractModel
1562
1764
  # @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填。
@@ -1643,6 +1845,33 @@ module TencentCloud
1643
1845
  end
1644
1846
  end
1645
1847
 
1848
+ # 渠道角色信息
1849
+ class ChannelRole < TencentCloud::Common::AbstractModel
1850
+ # @param RoleId: 角色id
1851
+ # 注意:此字段可能返回 null,表示取不到有效值。
1852
+ # @type RoleId: String
1853
+ # @param RoleName: 角色名
1854
+ # 注意:此字段可能返回 null,表示取不到有效值。
1855
+ # @type RoleName: String
1856
+ # @param RoleStatus: 角色状态:1-启用;2-禁用
1857
+ # 注意:此字段可能返回 null,表示取不到有效值。
1858
+ # @type RoleStatus: Integer
1859
+
1860
+ attr_accessor :RoleId, :RoleName, :RoleStatus
1861
+
1862
+ def initialize(roleid=nil, rolename=nil, rolestatus=nil)
1863
+ @RoleId = roleid
1864
+ @RoleName = rolename
1865
+ @RoleStatus = rolestatus
1866
+ end
1867
+
1868
+ def deserialize(params)
1869
+ @RoleId = params['RoleId']
1870
+ @RoleName = params['RoleName']
1871
+ @RoleStatus = params['RoleStatus']
1872
+ end
1873
+ end
1874
+
1646
1875
  # ChannelUpdateSealStatus请求参数结构体
1647
1876
  class ChannelUpdateSealStatusRequest < TencentCloud::Common::AbstractModel
1648
1877
  # @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填。
@@ -1699,7 +1928,7 @@ module TencentCloud
1699
1928
 
1700
1929
  # ChannelVerifyPdf请求参数结构体
1701
1930
  class ChannelVerifyPdfRequest < TencentCloud::Common::AbstractModel
1702
- # @param FlowId: 合同Id,流程Id
1931
+ # @param FlowId: 流程ID
1703
1932
  # @type FlowId: String
1704
1933
  # @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填。
1705
1934
  # @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
@@ -1731,8 +1960,7 @@ module TencentCloud
1731
1960
  class ChannelVerifyPdfResponse < TencentCloud::Common::AbstractModel
1732
1961
  # @param VerifyResult: 验签结果,1-文件未被篡改,全部签名在腾讯电子签完成; 2-文件未被篡改,部分签名在腾讯电子签完成;3-文件被篡改;4-异常:文件内没有签名域;5-异常:文件签名格式错误
1733
1962
  # @type VerifyResult: Integer
1734
- # @param PdfVerifyResults: 验签结果详情,内部状态1-验签成功,在电子签签署;2-验签成功,在其他平台签署;3-验签失败;4-pdf文件没有签名域
1735
- # ;5-文件签名格式错误
1963
+ # @param PdfVerifyResults: 验签结果详情,内部状态1-验签成功,在电子签签署;2-验签成功,在其他平台签署;3-验签失败;4-pdf文件没有签名域;5-文件签名格式错误
1736
1964
  # @type PdfVerifyResults: Array
1737
1965
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1738
1966
  # @type RequestId: String
@@ -3040,6 +3268,28 @@ module TencentCloud
3040
3268
  end
3041
3269
  end
3042
3270
 
3271
+ # 绑定失败的用户角色信息
3272
+ class FailedCreateRoleData < TencentCloud::Common::AbstractModel
3273
+ # @param UserId: 用户userId
3274
+ # 注意:此字段可能返回 null,表示取不到有效值。
3275
+ # @type UserId: String
3276
+ # @param RoleIds: 角色RoleId列表
3277
+ # 注意:此字段可能返回 null,表示取不到有效值。
3278
+ # @type RoleIds: Array
3279
+
3280
+ attr_accessor :UserId, :RoleIds
3281
+
3282
+ def initialize(userid=nil, roleids=nil)
3283
+ @UserId = userid
3284
+ @RoleIds = roleids
3285
+ end
3286
+
3287
+ def deserialize(params)
3288
+ @UserId = params['UserId']
3289
+ @RoleIds = params['RoleIds']
3290
+ end
3291
+ end
3292
+
3043
3293
  # 此结构体 (Filter) 用于描述查询过滤条件。
3044
3294
  class Filter < TencentCloud::Common::AbstractModel
3045
3295
  # @param Key: 查询过滤条件的Key
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-essbasic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.537
4
+ version: 3.0.538
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common