cloudmersive-virus-scan-api-client 1.3.2 → 1.3.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca19a52c01c34e9068692a74aadeee38a482c37cadcdbad41086f9e79662a63f
|
4
|
+
data.tar.gz: 50e1f95f4b735d6b16b4b5993dbb1f1af75c470e1b21b3ee92cdde35201ba8f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db10eb7300cee67c48aae8b53518be1e5ce6e10254e27e9710c467c0b05a1b86bc181586e861d810f192a4197dc912995699989a9312975a795588921d382335
|
7
|
+
data.tar.gz: 3d8a86a049b86d2805393bf4eaf0affcf856fac21a8f30aa997fd27636d31188b8cb51429959ce2b5bbc9ed14a9f5bcf34b22ec16ee6e7f698409e34bb17b975
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The Cloudmersive Virus Scan API lets you scan files and content for viruses and
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.3.
|
10
|
+
- Package version: 1.3.3
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-virus-scan-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-virus-scan-api-client-1.3.
|
26
|
+
gem install ./cloudmersive-virus-scan-api-client-1.3.3.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-1.3.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-1.3.3.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-virus-scan-api-client', '~> 1.3.
|
34
|
+
gem 'cloudmersive-virus-scan-api-client', '~> 1.3.3'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
data/docs/WebsiteScanResult.md
CHANGED
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
**clean_result** | **BOOLEAN** | True if the scan contained no threats, false otherwise | [optional]
|
7
7
|
**website_threat_type** | **String** | Type of threat returned; can be None, Malware, ForcedDownload or Phishing | [optional]
|
8
8
|
**found_viruses** | [**Array<VirusFound>**](VirusFound.md) | Array of viruses found, if any | [optional]
|
9
|
+
**website_http_response_code** | **Integer** | The remote server URL HTTP reasponse code; useful for debugging issues with scanning; typically if the remote server returns a 200 or 300-series code this means a successful response, while a 400 or 500 series code would represent an error returned from the remote server for the provided URL. | [optional]
|
9
10
|
|
10
11
|
|
@@ -24,6 +24,9 @@ module CloudmersiveVirusScanApiClient
|
|
24
24
|
# Array of viruses found, if any
|
25
25
|
attr_accessor :found_viruses
|
26
26
|
|
27
|
+
# The remote server URL HTTP reasponse code; useful for debugging issues with scanning; typically if the remote server returns a 200 or 300-series code this means a successful response, while a 400 or 500 series code would represent an error returned from the remote server for the provided URL.
|
28
|
+
attr_accessor :website_http_response_code
|
29
|
+
|
27
30
|
class EnumAttributeValidator
|
28
31
|
attr_reader :datatype
|
29
32
|
attr_reader :allowable_values
|
@@ -51,7 +54,8 @@ module CloudmersiveVirusScanApiClient
|
|
51
54
|
{
|
52
55
|
:'clean_result' => :'CleanResult',
|
53
56
|
:'website_threat_type' => :'WebsiteThreatType',
|
54
|
-
:'found_viruses' => :'FoundViruses'
|
57
|
+
:'found_viruses' => :'FoundViruses',
|
58
|
+
:'website_http_response_code' => :'WebsiteHttpResponseCode'
|
55
59
|
}
|
56
60
|
end
|
57
61
|
|
@@ -60,7 +64,8 @@ module CloudmersiveVirusScanApiClient
|
|
60
64
|
{
|
61
65
|
:'clean_result' => :'BOOLEAN',
|
62
66
|
:'website_threat_type' => :'String',
|
63
|
-
:'found_viruses' => :'Array<VirusFound>'
|
67
|
+
:'found_viruses' => :'Array<VirusFound>',
|
68
|
+
:'website_http_response_code' => :'Integer'
|
64
69
|
}
|
65
70
|
end
|
66
71
|
|
@@ -86,6 +91,10 @@ module CloudmersiveVirusScanApiClient
|
|
86
91
|
end
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.has_key?(:'WebsiteHttpResponseCode')
|
95
|
+
self.website_http_response_code = attributes[:'WebsiteHttpResponseCode']
|
96
|
+
end
|
97
|
+
|
89
98
|
end
|
90
99
|
|
91
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -120,7 +129,8 @@ module CloudmersiveVirusScanApiClient
|
|
120
129
|
self.class == o.class &&
|
121
130
|
clean_result == o.clean_result &&
|
122
131
|
website_threat_type == o.website_threat_type &&
|
123
|
-
found_viruses == o.found_viruses
|
132
|
+
found_viruses == o.found_viruses &&
|
133
|
+
website_http_response_code == o.website_http_response_code
|
124
134
|
end
|
125
135
|
|
126
136
|
# @see the `==` method
|
@@ -132,7 +142,7 @@ module CloudmersiveVirusScanApiClient
|
|
132
142
|
# Calculates hash code according to all attributes.
|
133
143
|
# @return [Fixnum] Hash code
|
134
144
|
def hash
|
135
|
-
[clean_result, website_threat_type, found_viruses].hash
|
145
|
+
[clean_result, website_threat_type, found_viruses, website_http_response_code].hash
|
136
146
|
end
|
137
147
|
|
138
148
|
# Builds the object from hash
|
@@ -54,5 +54,11 @@ describe 'WebsiteScanResult' do
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
describe 'test attribute "website_http_response_code"' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
57
63
|
end
|
58
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-virus-scan-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|