Class: TencentCloud::Hunyuan::V20230901::GetEmbeddingResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::GetEmbeddingResponse
- Defined in:
- lib/v20230901/models.rb
Overview
GetEmbedding返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(data = nil, usage = nil, requestid = nil) ⇒ GetEmbeddingResponse
constructor
A new instance of GetEmbeddingResponse.
Constructor Details
#initialize(data = nil, usage = nil, requestid = nil) ⇒ GetEmbeddingResponse
Returns a new instance of GetEmbeddingResponse.
985 986 987 988 989 |
# File 'lib/v20230901/models.rb', line 985 def initialize(data=nil, usage=nil, requestid=nil) @Data = data @Usage = usage @RequestId = requestid end |
Instance Attribute Details
#Data ⇒ Object
983 984 985 |
# File 'lib/v20230901/models.rb', line 983 def Data @Data end |
#RequestId ⇒ Object
983 984 985 |
# File 'lib/v20230901/models.rb', line 983 def RequestId @RequestId end |
#Usage ⇒ Object
983 984 985 |
# File 'lib/v20230901/models.rb', line 983 def Usage @Usage end |
Instance Method Details
#deserialize(params) ⇒ Object
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 |
# File 'lib/v20230901/models.rb', line 991 def deserialize(params) unless params['Data'].nil? @Data = [] params['Data'].each do |i| = EmbeddingData.new .deserialize(i) @Data << end end unless params['Usage'].nil? @Usage = EmbeddingUsage.new @Usage.deserialize(params['Usage']) end @RequestId = params['RequestId'] end |