tencentcloud-sdk-essbasic 3.0.502 → 3.0.504

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: 5b46534caa025905213f66a72c65dfd548718927
4
- data.tar.gz: c8d9c900790b1c9800801f0a3e4e3edcaf11f2b8
3
+ metadata.gz: dc52e8d76662b213648b7224415b1012d9f40139
4
+ data.tar.gz: eb2288f2e329e05a9607f9a76ef738eaa7d0d010
5
5
  SHA512:
6
- metadata.gz: d0c602d63f502dabe8dbfc781a76ea3d359914048988915a075954ab1387a8ab54d1ad71d4fa28dbdf1e8be3ba2d457df6c24ebe769183b32d6be57d3ef05474
7
- data.tar.gz: c4d87b45b9296f4d4efff9302107daa6ad7e69598b5d71c9ed1f1f32b1059f72ba4c4ce2175202730856b85429e66844333a9627e4a3f234a72b910c84377cfa
6
+ metadata.gz: 53ef3beb21fcae974a5cba40f66bdd482ea6f0609cdb5e500f5799c80b28a7c5707b293f80d96b4e097bc0dc84f8e870a416a2bd734afefb965231dbac7e8dcc
7
+ data.tar.gz: a11df3b97f8db0323e97bdc29058106180ac662b7f75a56dc7c8a9b4a9812e8ddcf01ab122e33516de998ccdf79d2f208cb78ae97e2fff2391a14fc1cb812026
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.502
1
+ 3.0.504
@@ -358,6 +358,54 @@ module TencentCloud
358
358
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
359
359
  end
360
360
 
361
+ # 将指定印章授权给企业下的某些员工
362
+
363
+ # @param request: Request instance for ChannelCreateSealPolicy.
364
+ # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateSealPolicyRequest`
365
+ # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateSealPolicyResponse`
366
+ def ChannelCreateSealPolicy(request)
367
+ body = send_request('ChannelCreateSealPolicy', request.serialize)
368
+ response = JSON.parse(body)
369
+ if response['Response'].key?('Error') == false
370
+ model = ChannelCreateSealPolicyResponse.new
371
+ model.deserialize(response['Response'])
372
+ model
373
+ else
374
+ code = response['Response']['Error']['Code']
375
+ message = response['Response']['Error']['Message']
376
+ reqid = response['Response']['RequestId']
377
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
378
+ end
379
+ rescue TencentCloud::Common::TencentCloudSDKException => e
380
+ raise e
381
+ rescue StandardError => e
382
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
383
+ end
384
+
385
+ # 删除指定印章下多个授权信息
386
+
387
+ # @param request: Request instance for ChannelDeleteSealPolicies.
388
+ # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelDeleteSealPoliciesRequest`
389
+ # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelDeleteSealPoliciesResponse`
390
+ def ChannelDeleteSealPolicies(request)
391
+ body = send_request('ChannelDeleteSealPolicies', request.serialize)
392
+ response = JSON.parse(body)
393
+ if response['Response'].key?('Error') == false
394
+ model = ChannelDeleteSealPoliciesResponse.new
395
+ model.deserialize(response['Response'])
396
+ model
397
+ else
398
+ code = response['Response']['Error']['Code']
399
+ message = response['Response']['Error']['Message']
400
+ reqid = response['Response']['RequestId']
401
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
402
+ end
403
+ rescue TencentCloud::Common::TencentCloudSDKException => e
404
+ raise e
405
+ rescue StandardError => e
406
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
407
+ end
408
+
361
409
  # 查询企业员工列表
362
410
 
363
411
  # @param request: Request instance for ChannelDescribeEmployees.
@@ -1038,6 +1038,124 @@ module TencentCloud
1038
1038
  end
1039
1039
  end
1040
1040
 
1041
+ # ChannelCreateSealPolicy请求参数结构体
1042
+ class ChannelCreateSealPolicyRequest < TencentCloud::Common::AbstractModel
1043
+ # @param Agent: 用户渠道信息
1044
+ # @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
1045
+ # @param SealId: 指定印章
1046
+ # @type SealId: String
1047
+ # @param UserIds: 指定待授权的用户ID数组
1048
+ # @type UserIds: Array
1049
+ # @param Organization: 企业机构信息
1050
+ # @type Organization: :class:`Tencentcloud::Essbasic.v20210526.models.OrganizationInfo`
1051
+ # @param Operator: 操作人(用户)信息
1052
+ # @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
1053
+
1054
+ attr_accessor :Agent, :SealId, :UserIds, :Organization, :Operator
1055
+
1056
+ def initialize(agent=nil, sealid=nil, userids=nil, organization=nil, operator=nil)
1057
+ @Agent = agent
1058
+ @SealId = sealid
1059
+ @UserIds = userids
1060
+ @Organization = organization
1061
+ @Operator = operator
1062
+ end
1063
+
1064
+ def deserialize(params)
1065
+ unless params['Agent'].nil?
1066
+ @Agent = Agent.new
1067
+ @Agent.deserialize(params['Agent'])
1068
+ end
1069
+ @SealId = params['SealId']
1070
+ @UserIds = params['UserIds']
1071
+ unless params['Organization'].nil?
1072
+ @Organization = OrganizationInfo.new
1073
+ @Organization.deserialize(params['Organization'])
1074
+ end
1075
+ unless params['Operator'].nil?
1076
+ @Operator = UserInfo.new
1077
+ @Operator.deserialize(params['Operator'])
1078
+ end
1079
+ end
1080
+ end
1081
+
1082
+ # ChannelCreateSealPolicy返回参数结构体
1083
+ class ChannelCreateSealPolicyResponse < TencentCloud::Common::AbstractModel
1084
+ # @param UserIds: 最终授权成功的用户ID数组。其他的跳过的是已经授权了的
1085
+ # @type UserIds: Array
1086
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1087
+ # @type RequestId: String
1088
+
1089
+ attr_accessor :UserIds, :RequestId
1090
+
1091
+ def initialize(userids=nil, requestid=nil)
1092
+ @UserIds = userids
1093
+ @RequestId = requestid
1094
+ end
1095
+
1096
+ def deserialize(params)
1097
+ @UserIds = params['UserIds']
1098
+ @RequestId = params['RequestId']
1099
+ end
1100
+ end
1101
+
1102
+ # ChannelDeleteSealPolicies请求参数结构体
1103
+ class ChannelDeleteSealPoliciesRequest < TencentCloud::Common::AbstractModel
1104
+ # @param Agent: 渠道信息
1105
+ # @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
1106
+ # @param SealId: 指定印章ID
1107
+ # @type SealId: String
1108
+ # @param UserIds: 指定用户ID数组
1109
+ # @type UserIds: Array
1110
+ # @param Operator: 操作人(用户)信息
1111
+ # @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
1112
+ # @param Organization: 组织机构信息
1113
+ # @type Organization: :class:`Tencentcloud::Essbasic.v20210526.models.OrganizationInfo`
1114
+
1115
+ attr_accessor :Agent, :SealId, :UserIds, :Operator, :Organization
1116
+
1117
+ def initialize(agent=nil, sealid=nil, userids=nil, operator=nil, organization=nil)
1118
+ @Agent = agent
1119
+ @SealId = sealid
1120
+ @UserIds = userids
1121
+ @Operator = operator
1122
+ @Organization = organization
1123
+ end
1124
+
1125
+ def deserialize(params)
1126
+ unless params['Agent'].nil?
1127
+ @Agent = Agent.new
1128
+ @Agent.deserialize(params['Agent'])
1129
+ end
1130
+ @SealId = params['SealId']
1131
+ @UserIds = params['UserIds']
1132
+ unless params['Operator'].nil?
1133
+ @Operator = UserInfo.new
1134
+ @Operator.deserialize(params['Operator'])
1135
+ end
1136
+ unless params['Organization'].nil?
1137
+ @Organization = OrganizationInfo.new
1138
+ @Organization.deserialize(params['Organization'])
1139
+ end
1140
+ end
1141
+ end
1142
+
1143
+ # ChannelDeleteSealPolicies返回参数结构体
1144
+ class ChannelDeleteSealPoliciesResponse < TencentCloud::Common::AbstractModel
1145
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1146
+ # @type RequestId: String
1147
+
1148
+ attr_accessor :RequestId
1149
+
1150
+ def initialize(requestid=nil)
1151
+ @RequestId = requestid
1152
+ end
1153
+
1154
+ def deserialize(params)
1155
+ @RequestId = params['RequestId']
1156
+ end
1157
+ end
1158
+
1041
1159
  # ChannelDescribeEmployees请求参数结构体
1042
1160
  class ChannelDescribeEmployeesRequest < TencentCloud::Common::AbstractModel
1043
1161
  # @param Limit: 返回最大数量,最大为20
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.502
4
+ version: 3.0.504
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-02-06 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common