lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.421 vs lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.422

- old
+ new

@@ -286,10 +286,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 创建员工 + + # @param request: Request instance for CreateIntegrationEmployees. + # @type request: :class:`Tencentcloud::ess::V20201111::CreateIntegrationEmployeesRequest` + # @rtype: :class:`Tencentcloud::ess::V20201111::CreateIntegrationEmployeesResponse` + def CreateIntegrationEmployees(request) + body = send_request('CreateIntegrationEmployees', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = CreateIntegrationEmployeesResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 此接口(CreateMultiFlowSignQRCode)用于创建一码多扫流程签署二维码。 # 适用场景:无需填写签署人信息,可通过模板id生成签署二维码,签署人可通过扫描二维码补充签署信息进行实名签署。常用于提前不知道签署人的身份信息场景,例如:劳务工招工、大批量员工入职等场景。 # 适用的模板仅限于B2C(1、无序签署,2、顺序签署时B静默签署,3、顺序签署时B非首位签署)、单C的模板,且模板中发起方没有填写控件。 # @param request: Request instance for CreateMultiFlowSignQRCode. @@ -346,10 +370,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 移除员工 + + # @param request: Request instance for DeleteIntegrationEmployees. + # @type request: :class:`Tencentcloud::ess::V20201111::DeleteIntegrationEmployeesRequest` + # @rtype: :class:`Tencentcloud::ess::V20201111::DeleteIntegrationEmployeesResponse` + def DeleteIntegrationEmployees(request) + body = send_request('DeleteIntegrationEmployees', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DeleteIntegrationEmployeesResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 查询文件下载URL # 适用场景:通过传参合同流程编号,下载对应的合同PDF文件流到本地。 # @param request: Request instance for DescribeFileUrls. # @type request: :class:`Tencentcloud::ess::V20201111::DescribeFileUrlsRequest` @@ -433,9 +481,33 @@ def DescribeFlowTemplates(request) body = send_request('DescribeFlowTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFlowTemplatesResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 查询员工信息,每次返回的数据量最大为20 + + # @param request: Request instance for DescribeIntegrationEmployees. + # @type request: :class:`Tencentcloud::ess::V20201111::DescribeIntegrationEmployeesRequest` + # @rtype: :class:`Tencentcloud::ess::V20201111::DescribeIntegrationEmployeesResponse` + def DescribeIntegrationEmployees(request) + body = send_request('DescribeIntegrationEmployees', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeIntegrationEmployeesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file