Class: TencentCloud::Bma::V20210624::UpdateCRWorkRequest

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

Overview

UpdateCRWork请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workid = nil, contenttype = nil, content = nil, certtype = nil) ⇒ UpdateCRWorkRequest

Returns a new instance of UpdateCRWorkRequest.



2220
2221
2222
2223
2224
2225
# File 'lib/v20210624/models.rb', line 2220

def initialize(workid=nil, contenttype=nil, content=nil, certtype=nil)
  @WorkId = workid
  @ContentType = contenttype
  @Content = content
  @CertType = certtype
end

Instance Attribute Details

#CertTypeObject

Parameters:

  • WorkId:

    作品ID

  • ContentType:

    文件的扩展名,例如txt,docx

  • Content:

    内容的base64编码

  • CertType:

    本次存证类型:0-不存证 1-存当前文件 2-存历史全量文件



2218
2219
2220
# File 'lib/v20210624/models.rb', line 2218

def CertType
  @CertType
end

#ContentObject

Parameters:

  • WorkId:

    作品ID

  • ContentType:

    文件的扩展名,例如txt,docx

  • Content:

    内容的base64编码

  • CertType:

    本次存证类型:0-不存证 1-存当前文件 2-存历史全量文件



2218
2219
2220
# File 'lib/v20210624/models.rb', line 2218

def Content
  @Content
end

#ContentTypeObject

Parameters:

  • WorkId:

    作品ID

  • ContentType:

    文件的扩展名,例如txt,docx

  • Content:

    内容的base64编码

  • CertType:

    本次存证类型:0-不存证 1-存当前文件 2-存历史全量文件



2218
2219
2220
# File 'lib/v20210624/models.rb', line 2218

def ContentType
  @ContentType
end

#WorkIdObject

Parameters:

  • WorkId:

    作品ID

  • ContentType:

    文件的扩展名,例如txt,docx

  • Content:

    内容的base64编码

  • CertType:

    本次存证类型:0-不存证 1-存当前文件 2-存历史全量文件



2218
2219
2220
# File 'lib/v20210624/models.rb', line 2218

def WorkId
  @WorkId
end

Instance Method Details

#deserialize(params) ⇒ Object



2227
2228
2229
2230
2231
2232
# File 'lib/v20210624/models.rb', line 2227

def deserialize(params)
  @WorkId = params['WorkId']
  @ContentType = params['ContentType']
  @Content = params['Content']
  @CertType = params['CertType']
end