1 Star 0 Fork 0

Mr.feng/tencentcloud-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
models.go 6.74 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2019-02-22 21:56 . release 3.0.49
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20190118
import (
"encoding/json"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
)
type GetLocalEngineRequest struct {
*tchttp.BaseRequest
// 购买服务后获得的授权信息,用于保证请求有效性
Key *string `json:"Key,omitempty" name:"Key"`
}
func (r *GetLocalEngineRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetLocalEngineRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetLocalEngineResponse struct {
*tchttp.BaseResponse
Response *struct {
// 接口调用状态,成功返回200,失败返回400
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 接口调用描述信息,成功返回"scan success",失败返回"scan error"
Info *string `json:"Info,omitempty" name:"Info"`
// 本地引擎下载地址
Data *string `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *GetLocalEngineResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetLocalEngineResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetScanResultRequest struct {
*tchttp.BaseRequest
// 购买服务后获得的授权信息,用于保证请求有效性
Key *string `json:"Key,omitempty" name:"Key"`
// 需要获取扫描接口的md5(只允许单个md5)
Md5 *string `json:"Md5,omitempty" name:"Md5"`
}
func (r *GetScanResultRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetScanResultRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetScanResultResponse struct {
*tchttp.BaseResponse
Response *struct {
// 接口调用状态,成功返回200,失败返回400
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 接口调用描述信息,成功返回"scan success",失败返回"scan error"
Info *string `json:"Info,omitempty" name:"Info"`
// 实际结果信息,包括md5、scan_status、virus_name三个字段;virus_name报毒名:"torjan.**":黑样本的报毒名、".":样本不报毒、"" :样本无检出信息,需上传扫描;
// scan_status样本状态:-1无检出信息需上传扫描、0样本扫描中、1样本扫描结束且不报毒、2样本扫描结束且报黑、3样本下载失败;
Data *string `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *GetScanResultResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetScanResultResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ScanFileHashRequest struct {
*tchttp.BaseRequest
// 购买服务后获得的授权信息,用于保证请求有效性
Key *string `json:"Key,omitempty" name:"Key"`
// 需要查询的md5值(支持单个和多个,多个md5间用逗号分格)
Md5s *string `json:"Md5s,omitempty" name:"Md5s"`
// 保留字段默认填0
WithCategory *string `json:"WithCategory,omitempty" name:"WithCategory"`
// 松严规则控制字段默认填10(5-松、10-标准、15-严)
SensitiveLevel *string `json:"SensitiveLevel,omitempty" name:"SensitiveLevel"`
}
func (r *ScanFileHashRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ScanFileHashRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ScanFileHashResponse struct {
*tchttp.BaseResponse
Response *struct {
// 接口调用状态,成功返回200,失败返回400
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 接口调用描述信息,成功返回"scan success",失败返回"scan error"
Info *string `json:"Info,omitempty" name:"Info"`
// 云查实际结果信息,包括md5、return_state、virus_state、virus_name字符逗号间隔;
// return_state查询状态:-1/0代表失败、1/2代表成功;
// virus_state文状件态:0文件不存在、1白、2黑、3未知、4感染性、5低可信白;
Data *string `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ScanFileHashResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ScanFileHashResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ScanFileRequest struct {
*tchttp.BaseRequest
// 购买服务后获得的授权信息,用于保证请求有效性
Key *string `json:"Key,omitempty" name:"Key"`
// 文件下载url地址
Sample *string `json:"Sample,omitempty" name:"Sample"`
// 文件的md5值
Md5 *string `json:"Md5,omitempty" name:"Md5"`
}
func (r *ScanFileRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ScanFileRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ScanFileResponse struct {
*tchttp.BaseResponse
Response *struct {
// 接口调用状态,成功返回200,失败返回400
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 接口调用描述信息,成功返回"success",失败返回"invalid request"
Info *string `json:"Info,omitempty" name:"Info"`
// 异步扫描任务提交成功返回success
Data *string `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ScanFileResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ScanFileResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mrfenggit/tencentcloud-sdk-go.git
git@gitee.com:mrfenggit/tencentcloud-sdk-go.git
mrfenggit
tencentcloud-sdk-go
tencentcloud-sdk-go
v3.0.233

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385