Class: TencentCloud::Ess::V20201111::CreateFileCounterSignRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201111/models.rb

Overview

CreateFileCounterSign请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fileid = nil, operator = nil, agent = nil, syncmode = nil) ⇒ CreateFileCounterSignRequest

Returns a new instance of CreateFileCounterSignRequest.



3723
3724
3725
3726
3727
3728
# File 'lib/v20201111/models.rb', line 3723

def initialize(fileid=nil, operator=nil, agent=nil, syncmode=nil)
  @FileId = fileid
  @Operator = operator
  @Agent = agent
  @SyncMode = syncmode
end

Instance Attribute Details

#AgentObject

注: 暂时只支持pdf类型的文件

  • false:异步模式,返回taskId。需要使用taskId轮询结果查询接口。
  • true: 同步模式,此接口将直接返回taskId和ResultFileId(加签后文件id)。
注: 1. 当加签文件较大的时候,建议使用异步接口进行操作。否则文件加签时间过长会导致接口超时。

Parameters:

  • Operator:

    执行本接口操作的员工信息。注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。

  • Agent:

    代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。

  • SyncMode:

    是否使用同步模式。



3721
3722
3723
# File 'lib/v20201111/models.rb', line 3721

def Agent
  @Agent
end

#FileIdObject

注: 暂时只支持pdf类型的文件

  • false:异步模式,返回taskId。需要使用taskId轮询结果查询接口。
  • true: 同步模式,此接口将直接返回taskId和ResultFileId(加签后文件id)。
注: 1. 当加签文件较大的时候,建议使用异步接口进行操作。否则文件加签时间过长会导致接口超时。

Parameters:

  • Operator:

    执行本接口操作的员工信息。注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。

  • Agent:

    代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。

  • SyncMode:

    是否使用同步模式。



3721
3722
3723
# File 'lib/v20201111/models.rb', line 3721

def FileId
  @FileId
end

#OperatorObject

注: 暂时只支持pdf类型的文件

  • false:异步模式,返回taskId。需要使用taskId轮询结果查询接口。
  • true: 同步模式,此接口将直接返回taskId和ResultFileId(加签后文件id)。
注: 1. 当加签文件较大的时候,建议使用异步接口进行操作。否则文件加签时间过长会导致接口超时。

Parameters:

  • Operator:

    执行本接口操作的员工信息。注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。

  • Agent:

    代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。

  • SyncMode:

    是否使用同步模式。



3721
3722
3723
# File 'lib/v20201111/models.rb', line 3721

def Operator
  @Operator
end

#SyncModeObject

注: 暂时只支持pdf类型的文件

  • false:异步模式,返回taskId。需要使用taskId轮询结果查询接口。
  • true: 同步模式,此接口将直接返回taskId和ResultFileId(加签后文件id)。
注: 1. 当加签文件较大的时候,建议使用异步接口进行操作。否则文件加签时间过长会导致接口超时。

Parameters:

  • Operator:

    执行本接口操作的员工信息。注: 在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。

  • Agent:

    代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。

  • SyncMode:

    是否使用同步模式。



3721
3722
3723
# File 'lib/v20201111/models.rb', line 3721

def SyncMode
  @SyncMode
end

Instance Method Details

#deserialize(params) ⇒ Object



3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
# File 'lib/v20201111/models.rb', line 3730

def deserialize(params)
  @FileId = params['FileId']
  unless params['Operator'].nil?
    @Operator = UserInfo.new
    @Operator.deserialize(params['Operator'])
  end
  unless params['Agent'].nil?
    @Agent = Agent.new
    @Agent.deserialize(params['Agent'])
  end
  @SyncMode = params['SyncMode']
end