tencentcloud-sdk-habo 1.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7788bf0187dd7152836bf8ca3615acb28243e1a4
4
+ data.tar.gz: d33db3ba419d3449421c6682da628accdc9d134b
5
+ SHA512:
6
+ metadata.gz: 948fd8cd68c13d975b8b621f8ab7817347ccd784e8f54b2c85e06d3ceb957088f76fc39f38ef7b18696e027bdcdbbd7d070f2fcd217092579b831b5ff088e776
7
+ data.tar.gz: 426f652312e50fdd6bee02a19f9b9e2fef50a10a03c4b3e27f815316d436fb1e106fd30a8e1eba593badc0acdd23bece86f84a84b88bf6aca1e51f78098e9b29
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20181203/client'
6
+ require_relative 'v20181203/models'
7
+
8
+ module TencentCloud
9
+ module Habo
10
+ end
11
+ end
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Habo
21
+ module V20181203
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2018-12-03'
26
+ api_endpoint = 'habo.tencentcloudapi.com'
27
+ sdk_version = 'HABO_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 查询指定md5样本是否分析完成,并获取分析日志下载地址。
33
+
34
+ # @param request: Request instance for DescribeStatus.
35
+ # @type request: :class:`Tencentcloud::habo::V20181203::DescribeStatusRequest`
36
+ # @rtype: :class:`Tencentcloud::habo::V20181203::DescribeStatusResponse`
37
+ def DescribeStatus(request)
38
+ body = send_request('DescribeStatus', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeStatusResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 上传样本到哈勃进行分析,异步生成分析日志。
57
+
58
+ # @param request: Request instance for StartAnalyse.
59
+ # @type request: :class:`Tencentcloud::habo::V20181203::StartAnalyseRequest`
60
+ # @rtype: :class:`Tencentcloud::habo::V20181203::StartAnalyseResponse`
61
+ def StartAnalyse(request)
62
+ body = send_request('StartAnalyse', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = StartAnalyseResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,123 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Habo
19
+ module V20181203
20
+ # DescribeStatus请求参数结构体
21
+ class DescribeStatusRequest < TencentCloud::Common::AbstractModel
22
+ # @param Pk: 购买服务后获得的授权帐号,用于保证请求有效性
23
+ # @type Pk: String
24
+ # @param Md5: 需要获取分析结果的样本md5
25
+ # @type Md5: String
26
+
27
+ attr_accessor :Pk, :Md5
28
+
29
+ def initialize(pk=nil, md5=nil)
30
+ @Pk = pk
31
+ @Md5 = md5
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Pk = params['Pk']
36
+ @Md5 = params['Md5']
37
+ end
38
+ end
39
+
40
+ # DescribeStatus返回参数结构体
41
+ class DescribeStatusResponse < TencentCloud::Common::AbstractModel
42
+ # @param Status: 接口调用状态,1表示成功,非1表示失败
43
+ # @type Status: Integer
44
+ # @param Info: 成功时返回success,失败时返回具体的失败原因,如样本分析未完成
45
+ # @type Info: String
46
+ # @param Data: 成功时返回样本日志下载地址,该地址10分钟内有效
47
+ # @type Data: String
48
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
49
+ # @type RequestId: String
50
+
51
+ attr_accessor :Status, :Info, :Data, :RequestId
52
+
53
+ def initialize(status=nil, info=nil, data=nil, requestid=nil)
54
+ @Status = status
55
+ @Info = info
56
+ @Data = data
57
+ @RequestId = requestid
58
+ end
59
+
60
+ def deserialize(params)
61
+ @Status = params['Status']
62
+ @Info = params['Info']
63
+ @Data = params['Data']
64
+ @RequestId = params['RequestId']
65
+ end
66
+ end
67
+
68
+ # StartAnalyse请求参数结构体
69
+ class StartAnalyseRequest < TencentCloud::Common::AbstractModel
70
+ # @param Pk: 购买服务后获得的授权帐号,用于保证请求有效性
71
+ # @type Pk: String
72
+ # @param Md5: 样本md5,用于对下载获得的样本完整性进行校验
73
+ # @type Md5: String
74
+ # @param DlUrl: 待分析样本下载地址
75
+ # @type DlUrl: String
76
+
77
+ attr_accessor :Pk, :Md5, :DlUrl
78
+
79
+ def initialize(pk=nil, md5=nil, dlurl=nil)
80
+ @Pk = pk
81
+ @Md5 = md5
82
+ @DlUrl = dlurl
83
+ end
84
+
85
+ def deserialize(params)
86
+ @Pk = params['Pk']
87
+ @Md5 = params['Md5']
88
+ @DlUrl = params['DlUrl']
89
+ end
90
+ end
91
+
92
+ # StartAnalyse返回参数结构体
93
+ class StartAnalyseResponse < TencentCloud::Common::AbstractModel
94
+ # @param Status: 接口调用状态,1表示成功,非1表示失败
95
+ # @type Status: Integer
96
+ # @param Info: 成功时返回success,失败时返回具体的失败原因
97
+ # @type Info: String
98
+ # @param Data: 保留字段
99
+ # @type Data: String
100
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
101
+ # @type RequestId: String
102
+
103
+ attr_accessor :Status, :Info, :Data, :RequestId
104
+
105
+ def initialize(status=nil, info=nil, data=nil, requestid=nil)
106
+ @Status = status
107
+ @Info = info
108
+ @Data = data
109
+ @RequestId = requestid
110
+ end
111
+
112
+ def deserialize(params)
113
+ @Status = params['Status']
114
+ @Info = params['Info']
115
+ @Data = params['Data']
116
+ @RequestId = params['RequestId']
117
+ end
118
+ end
119
+
120
+ end
121
+ end
122
+ end
123
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-habo
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ HABO.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-habo.rb
38
+ - lib/v20181203/client.rb
39
+ - lib/v20181203/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-habo
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - HABO
66
+ test_files: []