cloudmersive-virus-scan-api-client 1.3.1 → 1.3.2

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: 42a6f7f3bf7adf87cc2e7e6ed8d61f442f14fb205efe9c8c9b0cde3641ec0248
4
- data.tar.gz: 9815f17f9fe44a2d68a2243b0d119d93ba7238c9b29a20e8989f203f56ff4f06
3
+ metadata.gz: ea020056eeec61abfb7bc56cd2d2d15be686dc363e60936615d868f586d29b9d
4
+ data.tar.gz: 2b2478122a1c6f4f2cf35f497c002bc5c4fc50967df961c12f5af138d59d4af5
5
5
  SHA512:
6
- metadata.gz: 86cfb74ffc0871b7d8b0dbbcd0de6630b1d54777fea18138442ab46c85eb75f11d75fcf3f3b5625e51223e982aba38c9a35ce3dbd26203ecda054bbbe5786ec8
7
- data.tar.gz: '09bac10de65353120af2135bd6744b8a1105828ed90007e98bd9cf7b5b01677b6ce9ab9934ea3aef027b67e063f7b39afe60ae35b1eb032dd4ddb1c91d1d73fe'
6
+ metadata.gz: 20243d475e07869de2ec6b4da279ff6c6f541fc58a2144b3561097b70ee57252558cc4ed2750601f3201cbe92de6a45e8314bdb0444af68e791a6ea4ea8f94dc
7
+ data.tar.gz: 16a035810d10eebad4a892f3cf3fe255f064053e7ec0d1a3ddf08bfe19d27811f492052953190ef82d9f9d993547c8f0f6ef32ea466ed4d533c6432ed0e148e3
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.1
10
+ - Package version: 1.3.2
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.1.gem
26
+ gem install ./cloudmersive-virus-scan-api-client-1.3.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-1.3.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-1.3.2.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.1'
34
+ gem 'cloudmersive-virus-scan-api-client', '~> 1.3.2'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
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
+ **found_viruses** | [**Array<VirusFound>**](VirusFound.md) | Array of viruses found, if any | [optional]
8
9
 
9
10
 
@@ -21,6 +21,9 @@ module CloudmersiveVirusScanApiClient
21
21
  # Type of threat returned; can be None, Malware, ForcedDownload or Phishing
22
22
  attr_accessor :website_threat_type
23
23
 
24
+ # Array of viruses found, if any
25
+ attr_accessor :found_viruses
26
+
24
27
  class EnumAttributeValidator
25
28
  attr_reader :datatype
26
29
  attr_reader :allowable_values
@@ -47,7 +50,8 @@ module CloudmersiveVirusScanApiClient
47
50
  def self.attribute_map
48
51
  {
49
52
  :'clean_result' => :'CleanResult',
50
- :'website_threat_type' => :'WebsiteThreatType'
53
+ :'website_threat_type' => :'WebsiteThreatType',
54
+ :'found_viruses' => :'FoundViruses'
51
55
  }
52
56
  end
53
57
 
@@ -55,7 +59,8 @@ module CloudmersiveVirusScanApiClient
55
59
  def self.swagger_types
56
60
  {
57
61
  :'clean_result' => :'BOOLEAN',
58
- :'website_threat_type' => :'String'
62
+ :'website_threat_type' => :'String',
63
+ :'found_viruses' => :'Array<VirusFound>'
59
64
  }
60
65
  end
61
66
 
@@ -75,6 +80,12 @@ module CloudmersiveVirusScanApiClient
75
80
  self.website_threat_type = attributes[:'WebsiteThreatType']
76
81
  end
77
82
 
83
+ if attributes.has_key?(:'FoundViruses')
84
+ if (value = attributes[:'FoundViruses']).is_a?(Array)
85
+ self.found_viruses = value
86
+ end
87
+ end
88
+
78
89
  end
79
90
 
80
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -108,7 +119,8 @@ module CloudmersiveVirusScanApiClient
108
119
  return true if self.equal?(o)
109
120
  self.class == o.class &&
110
121
  clean_result == o.clean_result &&
111
- website_threat_type == o.website_threat_type
122
+ website_threat_type == o.website_threat_type &&
123
+ found_viruses == o.found_viruses
112
124
  end
113
125
 
114
126
  # @see the `==` method
@@ -120,7 +132,7 @@ module CloudmersiveVirusScanApiClient
120
132
  # Calculates hash code according to all attributes.
121
133
  # @return [Fixnum] Hash code
122
134
  def hash
123
- [clean_result, website_threat_type].hash
135
+ [clean_result, website_threat_type, found_viruses].hash
124
136
  end
125
137
 
126
138
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module CloudmersiveVirusScanApiClient
14
- VERSION = "1.3.1"
14
+ VERSION = "1.3.2"
15
15
  end
@@ -48,5 +48,11 @@ describe 'WebsiteScanResult' do
48
48
  end
49
49
  end
50
50
 
51
+ describe 'test attribute "found_viruses"' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
51
57
  end
52
58
 
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.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-18 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus