Class: TencentCloud::Hunyuan::V20230901::FileObject

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

Overview

已上传的文件对象。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, object = nil, bytes = nil, createdat = nil, filename = nil, purpose = nil) ⇒ FileObject

Returns a new instance of FileObject.



776
777
778
779
780
781
782
783
# File 'lib/v20230901/models.rb', line 776

def initialize(id=nil, object=nil, bytes=nil, createdat=nil, filename=nil, purpose=nil)
  @ID = id
  @Object = object
  @Bytes = bytes
  @CreatedAt = createdat
  @Filename = filename
  @Purpose = purpose
end

Instance Attribute Details

#BytesObject

Parameters:

  • ID:

    文件标识符,可在各个API中引用。

  • Object:

    对象类型,始终为 file。

  • Bytes:

    文件大小,单位为字节。

  • CreatedAt:

    文件创建时的 Unix 时间戳(秒)。

  • Filename:

    文件名。

  • Purpose:

    上传文件的用途。



774
775
776
# File 'lib/v20230901/models.rb', line 774

def Bytes
  @Bytes
end

#CreatedAtObject

Parameters:

  • ID:

    文件标识符,可在各个API中引用。

  • Object:

    对象类型,始终为 file。

  • Bytes:

    文件大小,单位为字节。

  • CreatedAt:

    文件创建时的 Unix 时间戳(秒)。

  • Filename:

    文件名。

  • Purpose:

    上传文件的用途。



774
775
776
# File 'lib/v20230901/models.rb', line 774

def CreatedAt
  @CreatedAt
end

#FilenameObject

Parameters:

  • ID:

    文件标识符,可在各个API中引用。

  • Object:

    对象类型,始终为 file。

  • Bytes:

    文件大小,单位为字节。

  • CreatedAt:

    文件创建时的 Unix 时间戳(秒)。

  • Filename:

    文件名。

  • Purpose:

    上传文件的用途。



774
775
776
# File 'lib/v20230901/models.rb', line 774

def Filename
  @Filename
end

#IDObject

Parameters:

  • ID:

    文件标识符,可在各个API中引用。

  • Object:

    对象类型,始终为 file。

  • Bytes:

    文件大小,单位为字节。

  • CreatedAt:

    文件创建时的 Unix 时间戳(秒)。

  • Filename:

    文件名。

  • Purpose:

    上传文件的用途。



774
775
776
# File 'lib/v20230901/models.rb', line 774

def ID
  @ID
end

#ObjectObject

Parameters:

  • ID:

    文件标识符,可在各个API中引用。

  • Object:

    对象类型,始终为 file。

  • Bytes:

    文件大小,单位为字节。

  • CreatedAt:

    文件创建时的 Unix 时间戳(秒)。

  • Filename:

    文件名。

  • Purpose:

    上传文件的用途。



774
775
776
# File 'lib/v20230901/models.rb', line 774

def Object
  @Object
end

#PurposeObject

Parameters:

  • ID:

    文件标识符,可在各个API中引用。

  • Object:

    对象类型,始终为 file。

  • Bytes:

    文件大小,单位为字节。

  • CreatedAt:

    文件创建时的 Unix 时间戳(秒)。

  • Filename:

    文件名。

  • Purpose:

    上传文件的用途。



774
775
776
# File 'lib/v20230901/models.rb', line 774

def Purpose
  @Purpose
end

Instance Method Details

#deserialize(params) ⇒ Object



785
786
787
788
789
790
791
792
# File 'lib/v20230901/models.rb', line 785

def deserialize(params)
  @ID = params['ID']
  @Object = params['Object']
  @Bytes = params['Bytes']
  @CreatedAt = params['CreatedAt']
  @Filename = params['Filename']
  @Purpose = params['Purpose']
end