tencentcloud-sdk-ess 3.0.503 → 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: ec699f45478a0f37f75e11a48e79f6027571bfbe
4
- data.tar.gz: 15a544d86fffa2674e4180027598620763f0a6da
3
+ metadata.gz: 03d2eff1fae573a1a99c1a8d30a445114099c499
4
+ data.tar.gz: 283eb0cedc996545ea79ede571d62d7dedf2b5cd
5
5
  SHA512:
6
- metadata.gz: f025f60ab4cc855292cf6f54ad965ee98701480e45d0839969b9fe3936cba235c3e18c0d9298c2d2225c4cfe624b236e282b521cddce11c60f998e52521767be
7
- data.tar.gz: 0b57fa6df0916f0bb567cb636495cb462ab557171396cd91d2648a0683c8ce0411142d4d278ea47e5b5935e94d124998c4d2ed5690993b3bc7c3dc8dfd7441a9
6
+ metadata.gz: 03086b937bc83477bda469f2ae390978d9aae2bfe5aed0a34e89791875954a7b9462d52ca2d3a98a08007711fc4ac825e5ed59e0c8ac520616357692ce5a9cc1
7
+ data.tar.gz: aa4e8561b7a417d7b30a3cca416921531674e22ca53995bcc1886c4b73e890107b13b7d02d9e7eed0bf291e5194aa2b6088387ac859399b19da45a73bb2f90b2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.503
1
+ 3.0.504
@@ -448,6 +448,30 @@ module TencentCloud
448
448
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
449
449
  end
450
450
 
451
+ # 对企业员工进行印章授权
452
+
453
+ # @param request: Request instance for CreateSealPolicy.
454
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateSealPolicyRequest`
455
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateSealPolicyResponse`
456
+ def CreateSealPolicy(request)
457
+ body = send_request('CreateSealPolicy', request.serialize)
458
+ response = JSON.parse(body)
459
+ if response['Response'].key?('Error') == false
460
+ model = CreateSealPolicyResponse.new
461
+ model.deserialize(response['Response'])
462
+ model
463
+ else
464
+ code = response['Response']['Error']['Code']
465
+ message = response['Response']['Error']['Message']
466
+ reqid = response['Response']['RequestId']
467
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
468
+ end
469
+ rescue TencentCloud::Common::TencentCloudSDKException => e
470
+ raise e
471
+ rescue StandardError => e
472
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
473
+ end
474
+
451
475
  # 移除员工
452
476
 
453
477
  # @param request: Request instance for DeleteIntegrationEmployees.
@@ -472,6 +496,30 @@ module TencentCloud
472
496
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
473
497
  end
474
498
 
499
+ # 撤销员工持有的印章权限
500
+
501
+ # @param request: Request instance for DeleteSealPolicies.
502
+ # @type request: :class:`Tencentcloud::ess::V20201111::DeleteSealPoliciesRequest`
503
+ # @rtype: :class:`Tencentcloud::ess::V20201111::DeleteSealPoliciesResponse`
504
+ def DeleteSealPolicies(request)
505
+ body = send_request('DeleteSealPolicies', request.serialize)
506
+ response = JSON.parse(body)
507
+ if response['Response'].key?('Error') == false
508
+ model = DeleteSealPoliciesResponse.new
509
+ model.deserialize(response['Response'])
510
+ model
511
+ else
512
+ code = response['Response']['Error']['Code']
513
+ message = response['Response']['Error']['Message']
514
+ reqid = response['Response']['RequestId']
515
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
516
+ end
517
+ rescue TencentCloud::Common::TencentCloudSDKException => e
518
+ raise e
519
+ rescue StandardError => e
520
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
521
+ end
522
+
475
523
  # 查询文件下载URL
476
524
  # 适用场景:通过传参合同流程编号,下载对应的合同PDF文件流到本地。
477
525
 
@@ -1625,6 +1625,79 @@ module TencentCloud
1625
1625
  end
1626
1626
  end
1627
1627
 
1628
+ # CreateSealPolicy请求参数结构体
1629
+ class CreateSealPolicyRequest < TencentCloud::Common::AbstractModel
1630
+ # @param Operator: 授权发起人在平台信息,具体参考UserInfo结构体
1631
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
1632
+ # @param Users: 用户在电子文件签署平台标识信息,具体参考UserInfo结构体。可跟下面的UserIds可叠加起作用
1633
+ # @type Users: Array
1634
+ # @param SealId: 印章ID
1635
+ # @type SealId: String
1636
+ # @param Expired: 授权有效期。时间戳秒级
1637
+ # @type Expired: Integer
1638
+ # @param Policy: 印章授权内容
1639
+ # @type Policy: String
1640
+ # @param Agent: 应用相关
1641
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
1642
+ # @param UserIds: 需要授权的用户UserId集合。跟上面的SealId参数配合使用。选填,跟上面的Users同时起作用
1643
+ # @type UserIds: Array
1644
+
1645
+ attr_accessor :Operator, :Users, :SealId, :Expired, :Policy, :Agent, :UserIds
1646
+
1647
+ def initialize(operator=nil, users=nil, sealid=nil, expired=nil, policy=nil, agent=nil, userids=nil)
1648
+ @Operator = operator
1649
+ @Users = users
1650
+ @SealId = sealid
1651
+ @Expired = expired
1652
+ @Policy = policy
1653
+ @Agent = agent
1654
+ @UserIds = userids
1655
+ end
1656
+
1657
+ def deserialize(params)
1658
+ unless params['Operator'].nil?
1659
+ @Operator = UserInfo.new
1660
+ @Operator.deserialize(params['Operator'])
1661
+ end
1662
+ unless params['Users'].nil?
1663
+ @Users = []
1664
+ params['Users'].each do |i|
1665
+ userinfo_tmp = UserInfo.new
1666
+ userinfo_tmp.deserialize(i)
1667
+ @Users << userinfo_tmp
1668
+ end
1669
+ end
1670
+ @SealId = params['SealId']
1671
+ @Expired = params['Expired']
1672
+ @Policy = params['Policy']
1673
+ unless params['Agent'].nil?
1674
+ @Agent = Agent.new
1675
+ @Agent.deserialize(params['Agent'])
1676
+ end
1677
+ @UserIds = params['UserIds']
1678
+ end
1679
+ end
1680
+
1681
+ # CreateSealPolicy返回参数结构体
1682
+ class CreateSealPolicyResponse < TencentCloud::Common::AbstractModel
1683
+ # @param UserIds: 最终授权成功的。其他的跳过的是已经授权了的
1684
+ # @type UserIds: Array
1685
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1686
+ # @type RequestId: String
1687
+
1688
+ attr_accessor :UserIds, :RequestId
1689
+
1690
+ def initialize(userids=nil, requestid=nil)
1691
+ @UserIds = userids
1692
+ @RequestId = requestid
1693
+ end
1694
+
1695
+ def deserialize(params)
1696
+ @UserIds = params['UserIds']
1697
+ @RequestId = params['RequestId']
1698
+ end
1699
+ end
1700
+
1628
1701
  # 创建员工的结果
1629
1702
  class CreateStaffResult < TencentCloud::Common::AbstractModel
1630
1703
  # @param SuccessEmployeeData: 创建员工的成功列表
@@ -1714,6 +1787,60 @@ module TencentCloud
1714
1787
  end
1715
1788
  end
1716
1789
 
1790
+ # DeleteSealPolicies请求参数结构体
1791
+ class DeleteSealPoliciesRequest < TencentCloud::Common::AbstractModel
1792
+ # @param Operator: 操作撤销的用户信息
1793
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
1794
+ # @param PolicyIds: 印章授权编码数组。这个参数跟下面的SealId其中一个必填,另外一个可选填
1795
+ # @type PolicyIds: Array
1796
+ # @param Agent: 应用相关
1797
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
1798
+ # @param SealId: 印章ID。这个参数跟上面的PolicyIds其中一个必填,另外一个可选填
1799
+ # @type SealId: String
1800
+ # @param UserIds: 待授权的员工ID
1801
+ # @type UserIds: Array
1802
+
1803
+ attr_accessor :Operator, :PolicyIds, :Agent, :SealId, :UserIds
1804
+
1805
+ def initialize(operator=nil, policyids=nil, agent=nil, sealid=nil, userids=nil)
1806
+ @Operator = operator
1807
+ @PolicyIds = policyids
1808
+ @Agent = agent
1809
+ @SealId = sealid
1810
+ @UserIds = userids
1811
+ end
1812
+
1813
+ def deserialize(params)
1814
+ unless params['Operator'].nil?
1815
+ @Operator = UserInfo.new
1816
+ @Operator.deserialize(params['Operator'])
1817
+ end
1818
+ @PolicyIds = params['PolicyIds']
1819
+ unless params['Agent'].nil?
1820
+ @Agent = Agent.new
1821
+ @Agent.deserialize(params['Agent'])
1822
+ end
1823
+ @SealId = params['SealId']
1824
+ @UserIds = params['UserIds']
1825
+ end
1826
+ end
1827
+
1828
+ # DeleteSealPolicies返回参数结构体
1829
+ class DeleteSealPoliciesResponse < TencentCloud::Common::AbstractModel
1830
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1831
+ # @type RequestId: String
1832
+
1833
+ attr_accessor :RequestId
1834
+
1835
+ def initialize(requestid=nil)
1836
+ @RequestId = requestid
1837
+ end
1838
+
1839
+ def deserialize(params)
1840
+ @RequestId = params['RequestId']
1841
+ end
1842
+ end
1843
+
1717
1844
  # 删除员工结果
1718
1845
  class DeleteStaffsResult < TencentCloud::Common::AbstractModel
1719
1846
  # @param SuccessEmployeeData: 删除员工的成功数据
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ess
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.503
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-07 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