tencentcloud-sdk-essbasic 3.0.659 → 3.0.661
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/v20210526/client.rb +85 -2
- data/lib/v20210526/models.rb +299 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a9f46d7c8732513b98602b3431a0944f7103701
|
4
|
+
data.tar.gz: 6f93a891347da7e5c6635c721772ace7d93fbcf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ba17718588eeec81bf1a92f9f52577aeac29627d69bcf65999bba276a1497a75fa90913c0955fe91a5da78900094be5968ac76fb16b095b159deb551b0dd41
|
7
|
+
data.tar.gz: f0ff27cb3300949e915f929bc434d510bfe80749107fe07b8de0d79d3a07aaf919b7c13c048d4f733c7196176b9b9e81703cfa6013cbed21f250566909c6c18e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.661
|
data/lib/v20210526/client.rb
CHANGED
@@ -537,6 +537,34 @@ module TencentCloud
|
|
537
537
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
538
538
|
end
|
539
539
|
|
540
|
+
# 此接口(ChannelCreateRole)用来创建企业自定义角色。
|
541
|
+
|
542
|
+
# 适用场景1:创建当前企业的自定义角色,并且创建时不进行权限的设置(PermissionGroups 参数不传),角色中的权限内容可通过接口 ChannelModifyRole 完成更新。
|
543
|
+
|
544
|
+
# 适用场景2:创建当前企业的自定义角色,并且创建时进行权限的设置(PermissionGroups 参数要传),权限树内容 PermissionGroups 可参考接口 ChannelDescribeRoles 的输出。
|
545
|
+
|
546
|
+
# @param request: Request instance for ChannelCreateRole.
|
547
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateRoleRequest`
|
548
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateRoleResponse`
|
549
|
+
def ChannelCreateRole(request)
|
550
|
+
body = send_request('ChannelCreateRole', request.serialize)
|
551
|
+
response = JSON.parse(body)
|
552
|
+
if response['Response'].key?('Error') == false
|
553
|
+
model = ChannelCreateRoleResponse.new
|
554
|
+
model.deserialize(response['Response'])
|
555
|
+
model
|
556
|
+
else
|
557
|
+
code = response['Response']['Error']['Code']
|
558
|
+
message = response['Response']['Error']['Message']
|
559
|
+
reqid = response['Response']['RequestId']
|
560
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
561
|
+
end
|
562
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
563
|
+
raise e
|
564
|
+
rescue StandardError => e
|
565
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
566
|
+
end
|
567
|
+
|
540
568
|
# 将指定印章授权给第三方平台子客企业下的某些员工
|
541
569
|
|
542
570
|
# @param request: Request instance for ChannelCreateSealPolicy.
|
@@ -609,7 +637,8 @@ module TencentCloud
|
|
609
637
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
610
638
|
end
|
611
639
|
|
612
|
-
#
|
640
|
+
# 用来创建嵌入式页面个性化主题配置(例如是否展示电子签logo、定义主题色等),该接口配合其他所有可嵌入页面接口使用
|
641
|
+
# 创建配置对当前第三方应用全局生效,如果多次调用,会以最后一次的配置为准
|
613
642
|
|
614
643
|
# @param request: Request instance for ChannelCreateWebThemeConfig.
|
615
644
|
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateWebThemeConfigRequest`
|
@@ -633,6 +662,32 @@ module TencentCloud
|
|
633
662
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
634
663
|
end
|
635
664
|
|
665
|
+
# 此接口(ChannelDeleteRole)用来删除企业自定义角色。
|
666
|
+
|
667
|
+
# 注意:系统角色不可删除。
|
668
|
+
|
669
|
+
# @param request: Request instance for ChannelDeleteRole.
|
670
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelDeleteRoleRequest`
|
671
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelDeleteRoleResponse`
|
672
|
+
def ChannelDeleteRole(request)
|
673
|
+
body = send_request('ChannelDeleteRole', request.serialize)
|
674
|
+
response = JSON.parse(body)
|
675
|
+
if response['Response'].key?('Error') == false
|
676
|
+
model = ChannelDeleteRoleResponse.new
|
677
|
+
model.deserialize(response['Response'])
|
678
|
+
model
|
679
|
+
else
|
680
|
+
code = response['Response']['Error']['Code']
|
681
|
+
message = response['Response']['Error']['Message']
|
682
|
+
reqid = response['Response']['RequestId']
|
683
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
684
|
+
end
|
685
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
686
|
+
raise e
|
687
|
+
rescue StandardError => e
|
688
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
689
|
+
end
|
690
|
+
|
636
691
|
# 通过此接口,删除员工绑定的角色,支持以电子签userId、客户系统userId两种方式调用。
|
637
692
|
|
638
693
|
# @param request: Request instance for ChannelDeleteRoleUsers.
|
@@ -754,7 +809,7 @@ module TencentCloud
|
|
754
809
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
755
810
|
end
|
756
811
|
|
757
|
-
#
|
812
|
+
# 分页查询企业角色列表,法人的角色是系统保留角色,不会返回,按照角色创建时间升序排列
|
758
813
|
|
759
814
|
# @param request: Request instance for ChannelDescribeRoles.
|
760
815
|
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelDescribeRolesRequest`
|
@@ -851,6 +906,34 @@ module TencentCloud
|
|
851
906
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
852
907
|
end
|
853
908
|
|
909
|
+
# 此接口(ChannelModifyRole)用来更新企业自定义角色。
|
910
|
+
|
911
|
+
# 适用场景1:更新当前企业的自定义角色的名称或描述等其他信息,更新时不进行权限的设置(PermissionGroups 参数不传)。
|
912
|
+
|
913
|
+
# 适用场景2:更新当前企业的自定义角色的权限信息,更新时进行权限的设置(PermissionGroups 参数要传),权限树内容 PermissionGroups 可参考接口 ChannelDescribeRoles 的输出。
|
914
|
+
|
915
|
+
# @param request: Request instance for ChannelModifyRole.
|
916
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelModifyRoleRequest`
|
917
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelModifyRoleResponse`
|
918
|
+
def ChannelModifyRole(request)
|
919
|
+
body = send_request('ChannelModifyRole', request.serialize)
|
920
|
+
response = JSON.parse(body)
|
921
|
+
if response['Response'].key?('Error') == false
|
922
|
+
model = ChannelModifyRoleResponse.new
|
923
|
+
model.deserialize(response['Response'])
|
924
|
+
model
|
925
|
+
else
|
926
|
+
code = response['Response']['Error']['Code']
|
927
|
+
message = response['Response']['Error']['Message']
|
928
|
+
reqid = response['Response']['RequestId']
|
929
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
930
|
+
end
|
931
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
932
|
+
raise e
|
933
|
+
rescue StandardError => e
|
934
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
935
|
+
end
|
936
|
+
|
854
937
|
# 本接口(ChannelUpdateSealStatus)用于第三方应用平台为子客企业更新印章状态
|
855
938
|
|
856
939
|
# @param request: Request instance for ChannelUpdateSealStatus.
|
data/lib/v20210526/models.rb
CHANGED
@@ -1717,6 +1717,64 @@ module TencentCloud
|
|
1717
1717
|
end
|
1718
1718
|
end
|
1719
1719
|
|
1720
|
+
# ChannelCreateRole请求参数结构体
|
1721
|
+
class ChannelCreateRoleRequest < TencentCloud::Common::AbstractModel
|
1722
|
+
# @param Name: 角色名称,最大长度为20个字符,仅限中文、字母、数字和下划线组成。
|
1723
|
+
# @type Name: String
|
1724
|
+
# @param Agent: 代理企业和员工的信息。
|
1725
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
1726
|
+
# @param Description: 角色描述,最大长度为50个字符
|
1727
|
+
# @type Description: String
|
1728
|
+
# @param PermissionGroups: 权限树,权限树内容 PermissionGroups 可参考接口 DescribeIntegrationRoles 的输出
|
1729
|
+
# @type PermissionGroups: Array
|
1730
|
+
|
1731
|
+
attr_accessor :Name, :Agent, :Description, :PermissionGroups
|
1732
|
+
|
1733
|
+
def initialize(name=nil, agent=nil, description=nil, permissiongroups=nil)
|
1734
|
+
@Name = name
|
1735
|
+
@Agent = agent
|
1736
|
+
@Description = description
|
1737
|
+
@PermissionGroups = permissiongroups
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
def deserialize(params)
|
1741
|
+
@Name = params['Name']
|
1742
|
+
unless params['Agent'].nil?
|
1743
|
+
@Agent = Agent.new
|
1744
|
+
@Agent.deserialize(params['Agent'])
|
1745
|
+
end
|
1746
|
+
@Description = params['Description']
|
1747
|
+
unless params['PermissionGroups'].nil?
|
1748
|
+
@PermissionGroups = []
|
1749
|
+
params['PermissionGroups'].each do |i|
|
1750
|
+
permissiongroup_tmp = PermissionGroup.new
|
1751
|
+
permissiongroup_tmp.deserialize(i)
|
1752
|
+
@PermissionGroups << permissiongroup_tmp
|
1753
|
+
end
|
1754
|
+
end
|
1755
|
+
end
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
# ChannelCreateRole返回参数结构体
|
1759
|
+
class ChannelCreateRoleResponse < TencentCloud::Common::AbstractModel
|
1760
|
+
# @param RoleId: 角色id
|
1761
|
+
# @type RoleId: String
|
1762
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1763
|
+
# @type RequestId: String
|
1764
|
+
|
1765
|
+
attr_accessor :RoleId, :RequestId
|
1766
|
+
|
1767
|
+
def initialize(roleid=nil, requestid=nil)
|
1768
|
+
@RoleId = roleid
|
1769
|
+
@RequestId = requestid
|
1770
|
+
end
|
1771
|
+
|
1772
|
+
def deserialize(params)
|
1773
|
+
@RoleId = params['RoleId']
|
1774
|
+
@RequestId = params['RequestId']
|
1775
|
+
end
|
1776
|
+
end
|
1777
|
+
|
1720
1778
|
# ChannelCreateSealPolicy请求参数结构体
|
1721
1779
|
class ChannelCreateSealPolicyRequest < TencentCloud::Common::AbstractModel
|
1722
1780
|
# @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 必填。
|
@@ -1994,6 +2052,45 @@ module TencentCloud
|
|
1994
2052
|
end
|
1995
2053
|
end
|
1996
2054
|
|
2055
|
+
# ChannelDeleteRole请求参数结构体
|
2056
|
+
class ChannelDeleteRoleRequest < TencentCloud::Common::AbstractModel
|
2057
|
+
# @param Agent: 代理企业和员工的信息。
|
2058
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
2059
|
+
# @param RoleIds: 角色id,最多20个
|
2060
|
+
# @type RoleIds: Array
|
2061
|
+
|
2062
|
+
attr_accessor :Agent, :RoleIds
|
2063
|
+
|
2064
|
+
def initialize(agent=nil, roleids=nil)
|
2065
|
+
@Agent = agent
|
2066
|
+
@RoleIds = roleids
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
def deserialize(params)
|
2070
|
+
unless params['Agent'].nil?
|
2071
|
+
@Agent = Agent.new
|
2072
|
+
@Agent.deserialize(params['Agent'])
|
2073
|
+
end
|
2074
|
+
@RoleIds = params['RoleIds']
|
2075
|
+
end
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
# ChannelDeleteRole返回参数结构体
|
2079
|
+
class ChannelDeleteRoleResponse < TencentCloud::Common::AbstractModel
|
2080
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2081
|
+
# @type RequestId: String
|
2082
|
+
|
2083
|
+
attr_accessor :RequestId
|
2084
|
+
|
2085
|
+
def initialize(requestid=nil)
|
2086
|
+
@RequestId = requestid
|
2087
|
+
end
|
2088
|
+
|
2089
|
+
def deserialize(params)
|
2090
|
+
@RequestId = params['RequestId']
|
2091
|
+
end
|
2092
|
+
end
|
2093
|
+
|
1997
2094
|
# ChannelDeleteRoleUsers请求参数结构体
|
1998
2095
|
class ChannelDeleteRoleUsersRequest < TencentCloud::Common::AbstractModel
|
1999
2096
|
# @param Agent: 代理信息此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 必填。
|
@@ -2340,27 +2437,28 @@ module TencentCloud
|
|
2340
2437
|
class ChannelDescribeRolesRequest < TencentCloud::Common::AbstractModel
|
2341
2438
|
# @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 必填。
|
2342
2439
|
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
2343
|
-
# @param Offset: 查询结果分页返回,此处指定第几页,如果不传默认从第一页返回。页码从 0 开始,即首页为 0,最大2000
|
2344
|
-
# @type Offset: Integer
|
2345
2440
|
# @param Limit: 指定每页多少条数据,单页最大200
|
2346
2441
|
# @type Limit: String
|
2347
2442
|
# @param Filters: 查询的关键字段:
|
2348
2443
|
# Key:"RoleType",Values:["1"]查询系统角色,Values:["2"]查询自定义角色
|
2349
2444
|
# Key:"RoleStatus",Values:["1"]查询启用角色,Values:["2"]查询禁用角色
|
2445
|
+
# Key:"IsReturnPermissionGroup",Values:["0"]:表示接口不返回角色对应的权限树字段,Values:["1"]表示接口返回角色对应的权限树字段
|
2350
2446
|
# @type Filters: Array
|
2447
|
+
# @param Offset: 查询结果分页返回,此处指定第几页,如果不传默认从第一页返回。页码从 0 开始,即首页为 0,最大2000
|
2448
|
+
# @type Offset: Integer
|
2351
2449
|
# @param Operator: 操作人信息
|
2352
2450
|
# @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
|
2353
2451
|
|
2354
|
-
attr_accessor :Agent, :
|
2452
|
+
attr_accessor :Agent, :Limit, :Filters, :Offset, :Operator
|
2355
2453
|
extend Gem::Deprecate
|
2356
2454
|
deprecate :Operator, :none, 2023, 9
|
2357
2455
|
deprecate :Operator=, :none, 2023, 9
|
2358
2456
|
|
2359
|
-
def initialize(agent=nil,
|
2457
|
+
def initialize(agent=nil, limit=nil, filters=nil, offset=nil, operator=nil)
|
2360
2458
|
@Agent = agent
|
2361
|
-
@Offset = offset
|
2362
2459
|
@Limit = limit
|
2363
2460
|
@Filters = filters
|
2461
|
+
@Offset = offset
|
2364
2462
|
@Operator = operator
|
2365
2463
|
end
|
2366
2464
|
|
@@ -2369,7 +2467,6 @@ module TencentCloud
|
|
2369
2467
|
@Agent = Agent.new
|
2370
2468
|
@Agent.deserialize(params['Agent'])
|
2371
2469
|
end
|
2372
|
-
@Offset = params['Offset']
|
2373
2470
|
@Limit = params['Limit']
|
2374
2471
|
unless params['Filters'].nil?
|
2375
2472
|
@Filters = []
|
@@ -2379,6 +2476,7 @@ module TencentCloud
|
|
2379
2476
|
@Filters << filter_tmp
|
2380
2477
|
end
|
2381
2478
|
end
|
2479
|
+
@Offset = params['Offset']
|
2382
2480
|
unless params['Operator'].nil?
|
2383
2481
|
@Operator = UserInfo.new
|
2384
2482
|
@Operator.deserialize(params['Operator'])
|
@@ -2645,6 +2743,68 @@ module TencentCloud
|
|
2645
2743
|
end
|
2646
2744
|
end
|
2647
2745
|
|
2746
|
+
# ChannelModifyRole请求参数结构体
|
2747
|
+
class ChannelModifyRoleRequest < TencentCloud::Common::AbstractModel
|
2748
|
+
# @param Agent: 代理企业和员工的信息。
|
2749
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
2750
|
+
# @param Name: 角色名称,最大长度为20个字符,仅限中文、字母、数字和下划线组成。
|
2751
|
+
# @type Name: String
|
2752
|
+
# @param RoleId: 角色Id,可通过接口 ChannelDescribeRoles 查询获取
|
2753
|
+
# @type RoleId: String
|
2754
|
+
# @param Description: 角色描述,最大长度为50个字符
|
2755
|
+
# @type Description: String
|
2756
|
+
# @param PermissionGroups: 权限树,权限树内容 PermissionGroups 可参考接口 DescribeIntegrationRoles 的输出
|
2757
|
+
# @type PermissionGroups: Array
|
2758
|
+
|
2759
|
+
attr_accessor :Agent, :Name, :RoleId, :Description, :PermissionGroups
|
2760
|
+
|
2761
|
+
def initialize(agent=nil, name=nil, roleid=nil, description=nil, permissiongroups=nil)
|
2762
|
+
@Agent = agent
|
2763
|
+
@Name = name
|
2764
|
+
@RoleId = roleid
|
2765
|
+
@Description = description
|
2766
|
+
@PermissionGroups = permissiongroups
|
2767
|
+
end
|
2768
|
+
|
2769
|
+
def deserialize(params)
|
2770
|
+
unless params['Agent'].nil?
|
2771
|
+
@Agent = Agent.new
|
2772
|
+
@Agent.deserialize(params['Agent'])
|
2773
|
+
end
|
2774
|
+
@Name = params['Name']
|
2775
|
+
@RoleId = params['RoleId']
|
2776
|
+
@Description = params['Description']
|
2777
|
+
unless params['PermissionGroups'].nil?
|
2778
|
+
@PermissionGroups = []
|
2779
|
+
params['PermissionGroups'].each do |i|
|
2780
|
+
permissiongroup_tmp = PermissionGroup.new
|
2781
|
+
permissiongroup_tmp.deserialize(i)
|
2782
|
+
@PermissionGroups << permissiongroup_tmp
|
2783
|
+
end
|
2784
|
+
end
|
2785
|
+
end
|
2786
|
+
end
|
2787
|
+
|
2788
|
+
# ChannelModifyRole返回参数结构体
|
2789
|
+
class ChannelModifyRoleResponse < TencentCloud::Common::AbstractModel
|
2790
|
+
# @param RoleId: 角色id
|
2791
|
+
# @type RoleId: String
|
2792
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2793
|
+
# @type RequestId: String
|
2794
|
+
|
2795
|
+
attr_accessor :RoleId, :RequestId
|
2796
|
+
|
2797
|
+
def initialize(roleid=nil, requestid=nil)
|
2798
|
+
@RoleId = roleid
|
2799
|
+
@RequestId = requestid
|
2800
|
+
end
|
2801
|
+
|
2802
|
+
def deserialize(params)
|
2803
|
+
@RoleId = params['RoleId']
|
2804
|
+
@RequestId = params['RequestId']
|
2805
|
+
end
|
2806
|
+
end
|
2807
|
+
|
2648
2808
|
# 渠道角色信息
|
2649
2809
|
class ChannelRole < TencentCloud::Common::AbstractModel
|
2650
2810
|
# @param RoleId: 角色id
|
@@ -2656,19 +2816,31 @@ module TencentCloud
|
|
2656
2816
|
# @param RoleStatus: 角色状态:1-启用;2-禁用
|
2657
2817
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2658
2818
|
# @type RoleStatus: Integer
|
2819
|
+
# @param PermissionGroups: 权限树
|
2820
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2821
|
+
# @type PermissionGroups: Array
|
2659
2822
|
|
2660
|
-
attr_accessor :RoleId, :RoleName, :RoleStatus
|
2823
|
+
attr_accessor :RoleId, :RoleName, :RoleStatus, :PermissionGroups
|
2661
2824
|
|
2662
|
-
def initialize(roleid=nil, rolename=nil, rolestatus=nil)
|
2825
|
+
def initialize(roleid=nil, rolename=nil, rolestatus=nil, permissiongroups=nil)
|
2663
2826
|
@RoleId = roleid
|
2664
2827
|
@RoleName = rolename
|
2665
2828
|
@RoleStatus = rolestatus
|
2829
|
+
@PermissionGroups = permissiongroups
|
2666
2830
|
end
|
2667
2831
|
|
2668
2832
|
def deserialize(params)
|
2669
2833
|
@RoleId = params['RoleId']
|
2670
2834
|
@RoleName = params['RoleName']
|
2671
2835
|
@RoleStatus = params['RoleStatus']
|
2836
|
+
unless params['PermissionGroups'].nil?
|
2837
|
+
@PermissionGroups = []
|
2838
|
+
params['PermissionGroups'].each do |i|
|
2839
|
+
permissiongroup_tmp = PermissionGroup.new
|
2840
|
+
permissiongroup_tmp.deserialize(i)
|
2841
|
+
@PermissionGroups << permissiongroup_tmp
|
2842
|
+
end
|
2843
|
+
end
|
2672
2844
|
end
|
2673
2845
|
end
|
2674
2846
|
|
@@ -5537,6 +5709,119 @@ module TencentCloud
|
|
5537
5709
|
end
|
5538
5710
|
end
|
5539
5711
|
|
5712
|
+
# 权限树节点权限
|
5713
|
+
class Permission < TencentCloud::Common::AbstractModel
|
5714
|
+
# @param Name: 权限名称
|
5715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5716
|
+
# @type Name: String
|
5717
|
+
# @param Key: 权限key
|
5718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5719
|
+
# @type Key: String
|
5720
|
+
# @param Type: 权限类型 1前端,2后端
|
5721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5722
|
+
# @type Type: Integer
|
5723
|
+
# @param Hide: 是否隐藏
|
5724
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5725
|
+
# @type Hide: Integer
|
5726
|
+
# @param DataLabel: 数据权限标签 1:表示根节点,2:表示叶子结点
|
5727
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5728
|
+
# @type DataLabel: Integer
|
5729
|
+
# @param DataType: 数据权限独有,1:关联其他模块鉴权,2:表示关联自己模块鉴权
|
5730
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5731
|
+
# @type DataType: Integer
|
5732
|
+
# @param DataRange: 数据权限独有,表示数据范围,1:全公司,2:部门及下级部门,3:自己
|
5733
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5734
|
+
# @type DataRange: Integer
|
5735
|
+
# @param DataTo: 关联权限, 表示这个功能权限要受哪个数据权限管控
|
5736
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5737
|
+
# @type DataTo: String
|
5738
|
+
# @param ParentKey: 父级权限key
|
5739
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5740
|
+
# @type ParentKey: String
|
5741
|
+
# @param IsChecked: 是否选中
|
5742
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5743
|
+
# @type IsChecked: Boolean
|
5744
|
+
# @param Children: 子权限集合
|
5745
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5746
|
+
# @type Children: Array
|
5747
|
+
|
5748
|
+
attr_accessor :Name, :Key, :Type, :Hide, :DataLabel, :DataType, :DataRange, :DataTo, :ParentKey, :IsChecked, :Children
|
5749
|
+
|
5750
|
+
def initialize(name=nil, key=nil, type=nil, hide=nil, datalabel=nil, datatype=nil, datarange=nil, datato=nil, parentkey=nil, ischecked=nil, children=nil)
|
5751
|
+
@Name = name
|
5752
|
+
@Key = key
|
5753
|
+
@Type = type
|
5754
|
+
@Hide = hide
|
5755
|
+
@DataLabel = datalabel
|
5756
|
+
@DataType = datatype
|
5757
|
+
@DataRange = datarange
|
5758
|
+
@DataTo = datato
|
5759
|
+
@ParentKey = parentkey
|
5760
|
+
@IsChecked = ischecked
|
5761
|
+
@Children = children
|
5762
|
+
end
|
5763
|
+
|
5764
|
+
def deserialize(params)
|
5765
|
+
@Name = params['Name']
|
5766
|
+
@Key = params['Key']
|
5767
|
+
@Type = params['Type']
|
5768
|
+
@Hide = params['Hide']
|
5769
|
+
@DataLabel = params['DataLabel']
|
5770
|
+
@DataType = params['DataType']
|
5771
|
+
@DataRange = params['DataRange']
|
5772
|
+
@DataTo = params['DataTo']
|
5773
|
+
@ParentKey = params['ParentKey']
|
5774
|
+
@IsChecked = params['IsChecked']
|
5775
|
+
unless params['Children'].nil?
|
5776
|
+
@Children = []
|
5777
|
+
params['Children'].each do |i|
|
5778
|
+
permission_tmp = Permission.new
|
5779
|
+
permission_tmp.deserialize(i)
|
5780
|
+
@Children << permission_tmp
|
5781
|
+
end
|
5782
|
+
end
|
5783
|
+
end
|
5784
|
+
end
|
5785
|
+
|
5786
|
+
# 权限树中的权限组
|
5787
|
+
class PermissionGroup < TencentCloud::Common::AbstractModel
|
5788
|
+
# @param GroupName: 权限组名称
|
5789
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5790
|
+
# @type GroupName: String
|
5791
|
+
# @param GroupKey: 权限组key
|
5792
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5793
|
+
# @type GroupKey: String
|
5794
|
+
# @param Hide: 是否隐藏分组,0否1是
|
5795
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5796
|
+
# @type Hide: Integer
|
5797
|
+
# @param Permissions: 权限集合
|
5798
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5799
|
+
# @type Permissions: Array
|
5800
|
+
|
5801
|
+
attr_accessor :GroupName, :GroupKey, :Hide, :Permissions
|
5802
|
+
|
5803
|
+
def initialize(groupname=nil, groupkey=nil, hide=nil, permissions=nil)
|
5804
|
+
@GroupName = groupname
|
5805
|
+
@GroupKey = groupkey
|
5806
|
+
@Hide = hide
|
5807
|
+
@Permissions = permissions
|
5808
|
+
end
|
5809
|
+
|
5810
|
+
def deserialize(params)
|
5811
|
+
@GroupName = params['GroupName']
|
5812
|
+
@GroupKey = params['GroupKey']
|
5813
|
+
@Hide = params['Hide']
|
5814
|
+
unless params['Permissions'].nil?
|
5815
|
+
@Permissions = []
|
5816
|
+
params['Permissions'].each do |i|
|
5817
|
+
permission_tmp = Permission.new
|
5818
|
+
permission_tmp.deserialize(i)
|
5819
|
+
@Permissions << permission_tmp
|
5820
|
+
end
|
5821
|
+
end
|
5822
|
+
end
|
5823
|
+
end
|
5824
|
+
|
5540
5825
|
# PrepareFlows请求参数结构体
|
5541
5826
|
class PrepareFlowsRequest < TencentCloud::Common::AbstractModel
|
5542
5827
|
# @param Agent: 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 必填。
|
@@ -6640,12 +6925,13 @@ module TencentCloud
|
|
6640
6925
|
|
6641
6926
|
# 主题配置
|
6642
6927
|
class WebThemeConfig < TencentCloud::Common::AbstractModel
|
6643
|
-
# @param DisplaySignBrandLogo:
|
6644
|
-
# <
|
6645
|
-
# <
|
6928
|
+
# @param DisplaySignBrandLogo: 是否显示页面底部电子签logo,取值如下:
|
6929
|
+
# <ul><li> **true**:页面底部显示电子签logo</li>
|
6930
|
+
# <li> **false**:页面底部不显示电子签logo(默认)</li></ul>
|
6646
6931
|
# @type DisplaySignBrandLogo: Boolean
|
6647
|
-
# @param WebEmbedThemeColor:
|
6648
|
-
#
|
6932
|
+
# @param WebEmbedThemeColor: 主题颜色:
|
6933
|
+
# 支持十六进制颜色值以及RGB格式颜色值,例如:#D54941,rgb(213, 73, 65)
|
6934
|
+
# <br/>
|
6649
6935
|
# @type WebEmbedThemeColor: String
|
6650
6936
|
|
6651
6937
|
attr_accessor :DisplaySignBrandLogo, :WebEmbedThemeColor
|
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.
|
4
|
+
version: 3.0.661
|
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-09-
|
11
|
+
date: 2023-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|