cloudmersive-virus-scan-api-client 1.3.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -34
- data/Gemfile +0 -7
- data/README.md +0 -108
- data/Rakefile +0 -8
- data/cloudmersive-virus-scan-api-client.gemspec +0 -45
- data/docs/ScanApi.md +0 -185
- data/docs/VirusFound.md +0 -9
- data/docs/VirusScanAdvancedResult.md +0 -15
- data/docs/VirusScanResult.md +0 -9
- data/docs/WebsiteScanRequest.md +0 -8
- data/docs/WebsiteScanResult.md +0 -11
- data/git_push.sh +0 -55
- data/lib/cloudmersive-virus-scan-api-client.rb +0 -45
- data/lib/cloudmersive-virus-scan-api-client/api/scan_api.rb +0 -205
- data/lib/cloudmersive-virus-scan-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-virus-scan-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-virus-scan-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-virus-scan-api-client/models/virus_found.rb +0 -199
- data/lib/cloudmersive-virus-scan-api-client/models/virus_scan_advanced_result.rb +0 -261
- data/lib/cloudmersive-virus-scan-api-client/models/virus_scan_result.rb +0 -201
- data/lib/cloudmersive-virus-scan-api-client/models/website_scan_request.rb +0 -189
- data/lib/cloudmersive-virus-scan-api-client/models/website_scan_result.rb +0 -254
- data/lib/cloudmersive-virus-scan-api-client/version.rb +0 -15
- data/spec/api/scan_api_spec.rb +0 -76
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/virus_found_spec.rb +0 -48
- data/spec/models/virus_scan_advanced_result_spec.rb +0 -84
- data/spec/models/virus_scan_result_spec.rb +0 -48
- data/spec/models/website_scan_request_spec.rb +0 -42
- data/spec/models/website_scan_result_spec.rb +0 -64
- data/spec/spec_helper.rb +0 -111
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aa02987ee26da7bbc8e6831cf6824ae09f3abc394833dc57c9ae6a020738608
|
4
|
+
data.tar.gz: 928a25bf55c648df04cd5e0a3579a13e26db98e28724e9ccdfa03f90118b1936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9022aec24f8c7551c8a2a3daaf71c3557d1d766ce40484c8464c8daa033e09d4191e3b94d95be3be1a1806d222890451f5f2b8a7ea2b73483f1f48c55f23f49
|
7
|
+
data.tar.gz: bd13d85b2d4440bd96724a0e23e4659f07d6cd43f987bbc32e7db822b149e9c5888f9069f4db0e78558e33b98873d2a841ab3eb305253ba537899318db56847a
|
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:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -197,38 +197,7 @@ email:
|
|
197
197
|
executables: []
|
198
198
|
extensions: []
|
199
199
|
extra_rdoc_files: []
|
200
|
-
files:
|
201
|
-
- "./Gemfile"
|
202
|
-
- "./README.md"
|
203
|
-
- "./Rakefile"
|
204
|
-
- "./cloudmersive-virus-scan-api-client.gemspec"
|
205
|
-
- "./docs/ScanApi.md"
|
206
|
-
- "./docs/VirusFound.md"
|
207
|
-
- "./docs/VirusScanAdvancedResult.md"
|
208
|
-
- "./docs/VirusScanResult.md"
|
209
|
-
- "./docs/WebsiteScanRequest.md"
|
210
|
-
- "./docs/WebsiteScanResult.md"
|
211
|
-
- "./git_push.sh"
|
212
|
-
- "./lib/cloudmersive-virus-scan-api-client.rb"
|
213
|
-
- "./lib/cloudmersive-virus-scan-api-client/api/scan_api.rb"
|
214
|
-
- "./lib/cloudmersive-virus-scan-api-client/api_client.rb"
|
215
|
-
- "./lib/cloudmersive-virus-scan-api-client/api_error.rb"
|
216
|
-
- "./lib/cloudmersive-virus-scan-api-client/configuration.rb"
|
217
|
-
- "./lib/cloudmersive-virus-scan-api-client/models/virus_found.rb"
|
218
|
-
- "./lib/cloudmersive-virus-scan-api-client/models/virus_scan_advanced_result.rb"
|
219
|
-
- "./lib/cloudmersive-virus-scan-api-client/models/virus_scan_result.rb"
|
220
|
-
- "./lib/cloudmersive-virus-scan-api-client/models/website_scan_request.rb"
|
221
|
-
- "./lib/cloudmersive-virus-scan-api-client/models/website_scan_result.rb"
|
222
|
-
- "./lib/cloudmersive-virus-scan-api-client/version.rb"
|
223
|
-
- "./spec/api/scan_api_spec.rb"
|
224
|
-
- "./spec/api_client_spec.rb"
|
225
|
-
- "./spec/configuration_spec.rb"
|
226
|
-
- "./spec/models/virus_found_spec.rb"
|
227
|
-
- "./spec/models/virus_scan_advanced_result_spec.rb"
|
228
|
-
- "./spec/models/virus_scan_result_spec.rb"
|
229
|
-
- "./spec/models/website_scan_request_spec.rb"
|
230
|
-
- "./spec/models/website_scan_result_spec.rb"
|
231
|
-
- "./spec/spec_helper.rb"
|
200
|
+
files: []
|
232
201
|
homepage: https://www.cloudmersive.com/virus-api
|
233
202
|
licenses:
|
234
203
|
- Apache 2.0
|
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
# cloudmersive-virus-scan-api-client
|
2
|
-
|
3
|
-
CloudmersiveVirusScanApiClient - the Ruby gem for the virusapi
|
4
|
-
|
5
|
-
The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.
|
6
|
-
|
7
|
-
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
-
|
9
|
-
- API version: v1
|
10
|
-
- Package version: 1.3.4
|
11
|
-
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
|
-
|
13
|
-
## Installation
|
14
|
-
|
15
|
-
### Build a gem
|
16
|
-
|
17
|
-
To build the Ruby code into a gem:
|
18
|
-
|
19
|
-
```shell
|
20
|
-
gem build cloudmersive-virus-scan-api-client.gemspec
|
21
|
-
```
|
22
|
-
|
23
|
-
Then either install the gem locally:
|
24
|
-
|
25
|
-
```shell
|
26
|
-
gem install ./cloudmersive-virus-scan-api-client-1.3.4.gem
|
27
|
-
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-1.3.4.gem` to install the development dependencies)
|
29
|
-
|
30
|
-
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
-
|
32
|
-
Finally add this to the Gemfile:
|
33
|
-
|
34
|
-
gem 'cloudmersive-virus-scan-api-client', '~> 1.3.4'
|
35
|
-
|
36
|
-
### Install from Git
|
37
|
-
|
38
|
-
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
39
|
-
|
40
|
-
gem 'cloudmersive-virus-scan-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
-
|
42
|
-
### Include the Ruby code directly
|
43
|
-
|
44
|
-
Include the Ruby code directly using `-I` as follows:
|
45
|
-
|
46
|
-
```shell
|
47
|
-
ruby -Ilib script.rb
|
48
|
-
```
|
49
|
-
|
50
|
-
## Getting Started
|
51
|
-
|
52
|
-
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
-
```ruby
|
54
|
-
# Load the gem
|
55
|
-
require 'cloudmersive-virus-scan-api-client'
|
56
|
-
|
57
|
-
# Setup authorization
|
58
|
-
CloudmersiveVirusScanApiClient.configure do |config|
|
59
|
-
# Configure API key authorization: Apikey
|
60
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
61
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
62
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
63
|
-
end
|
64
|
-
|
65
|
-
api_instance = CloudmersiveVirusScanApiClient::ScanApi.new
|
66
|
-
|
67
|
-
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
68
|
-
|
69
|
-
|
70
|
-
begin
|
71
|
-
#Scan a file for viruses
|
72
|
-
result = api_instance.scan_file(input_file)
|
73
|
-
p result
|
74
|
-
rescue CloudmersiveVirusScanApiClient::ApiError => e
|
75
|
-
puts "Exception when calling ScanApi->scan_file: #{e}"
|
76
|
-
end
|
77
|
-
|
78
|
-
```
|
79
|
-
|
80
|
-
## Documentation for API Endpoints
|
81
|
-
|
82
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
83
|
-
|
84
|
-
Class | Method | HTTP request | Description
|
85
|
-
------------ | ------------- | ------------- | -------------
|
86
|
-
*CloudmersiveVirusScanApiClient::ScanApi* | [**scan_file**](docs/ScanApi.md#scan_file) | **POST** /virus/scan/file | Scan a file for viruses
|
87
|
-
*CloudmersiveVirusScanApiClient::ScanApi* | [**scan_file_advanced**](docs/ScanApi.md#scan_file_advanced) | **POST** /virus/scan/file/advanced | Advanced Scan a file for viruses
|
88
|
-
*CloudmersiveVirusScanApiClient::ScanApi* | [**scan_website**](docs/ScanApi.md#scan_website) | **POST** /virus/scan/website | Scan a website for malicious content and threats
|
89
|
-
|
90
|
-
|
91
|
-
## Documentation for Models
|
92
|
-
|
93
|
-
- [CloudmersiveVirusScanApiClient::VirusFound](docs/VirusFound.md)
|
94
|
-
- [CloudmersiveVirusScanApiClient::VirusScanAdvancedResult](docs/VirusScanAdvancedResult.md)
|
95
|
-
- [CloudmersiveVirusScanApiClient::VirusScanResult](docs/VirusScanResult.md)
|
96
|
-
- [CloudmersiveVirusScanApiClient::WebsiteScanRequest](docs/WebsiteScanRequest.md)
|
97
|
-
- [CloudmersiveVirusScanApiClient::WebsiteScanResult](docs/WebsiteScanResult.md)
|
98
|
-
|
99
|
-
|
100
|
-
## Documentation for Authorization
|
101
|
-
|
102
|
-
|
103
|
-
### Apikey
|
104
|
-
|
105
|
-
- **Type**: API key
|
106
|
-
- **API key parameter name**: Apikey
|
107
|
-
- **Location**: HTTP header
|
108
|
-
|
data/Rakefile
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
#
|
3
|
-
=begin
|
4
|
-
#virusapi
|
5
|
-
|
6
|
-
#The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.
|
7
|
-
|
8
|
-
OpenAPI spec version: v1
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.3.1
|
12
|
-
|
13
|
-
=end
|
14
|
-
|
15
|
-
$:.push File.expand_path("../lib", __FILE__)
|
16
|
-
require "cloudmersive-virus-scan-api-client/version"
|
17
|
-
|
18
|
-
Gem::Specification.new do |s|
|
19
|
-
s.name = "cloudmersive-virus-scan-api-client"
|
20
|
-
s.version = CloudmersiveVirusScanApiClient::VERSION
|
21
|
-
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = ["Cloudmersive"]
|
23
|
-
s.email = [""]
|
24
|
-
s.homepage = "https://www.cloudmersive.com/virus-api"
|
25
|
-
s.summary = "Scan files and content for viruses."
|
26
|
-
s.description = "Virus API lets you scan files and content for viruses and identify security issues with content."
|
27
|
-
s.license = "Apache 2.0"
|
28
|
-
s.required_ruby_version = ">= 1.9"
|
29
|
-
|
30
|
-
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
-
|
33
|
-
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
-
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
-
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
-
|
41
|
-
s.files = Dir['./**/*']
|
42
|
-
s.test_files = `find spec/*`.split("\n")
|
43
|
-
s.executables = []
|
44
|
-
s.require_paths = ["lib"]
|
45
|
-
end
|
data/docs/ScanApi.md
DELETED
@@ -1,185 +0,0 @@
|
|
1
|
-
# CloudmersiveVirusScanApiClient::ScanApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**scan_file**](ScanApi.md#scan_file) | **POST** /virus/scan/file | Scan a file for viruses
|
8
|
-
[**scan_file_advanced**](ScanApi.md#scan_file_advanced) | **POST** /virus/scan/file/advanced | Advanced Scan a file for viruses
|
9
|
-
[**scan_website**](ScanApi.md#scan_website) | **POST** /virus/scan/website | Scan a website for malicious content and threats
|
10
|
-
|
11
|
-
|
12
|
-
# **scan_file**
|
13
|
-
> VirusScanResult scan_file(input_file)
|
14
|
-
|
15
|
-
Scan a file for viruses
|
16
|
-
|
17
|
-
Scan files and content for viruses. Leverage continuously updated signatures for millions of threats, and advanced high-performance scanning capabilities. Over 17 million virus and malware signatures. Continuous cloud-based updates. Wide file format support including Office, PDF, HTML, Flash. Zip support including .Zip, .Rar, .DMG, .Tar, and other archive formats. Multi-threat scanning across viruses, malware, trojans, ransomware, and spyware. High-speed in-memory scanning delivers subsecond typical response time.
|
18
|
-
|
19
|
-
### Example
|
20
|
-
```ruby
|
21
|
-
# load the gem
|
22
|
-
require 'cloudmersive-virus-scan-api-client'
|
23
|
-
# setup authorization
|
24
|
-
CloudmersiveVirusScanApiClient.configure do |config|
|
25
|
-
# Configure API key authorization: Apikey
|
26
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
27
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
29
|
-
end
|
30
|
-
|
31
|
-
api_instance = CloudmersiveVirusScanApiClient::ScanApi.new
|
32
|
-
|
33
|
-
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
34
|
-
|
35
|
-
|
36
|
-
begin
|
37
|
-
#Scan a file for viruses
|
38
|
-
result = api_instance.scan_file(input_file)
|
39
|
-
p result
|
40
|
-
rescue CloudmersiveVirusScanApiClient::ApiError => e
|
41
|
-
puts "Exception when calling ScanApi->scan_file: #{e}"
|
42
|
-
end
|
43
|
-
```
|
44
|
-
|
45
|
-
### Parameters
|
46
|
-
|
47
|
-
Name | Type | Description | Notes
|
48
|
-
------------- | ------------- | ------------- | -------------
|
49
|
-
**input_file** | **File**| Input file to perform the operation on. |
|
50
|
-
|
51
|
-
### Return type
|
52
|
-
|
53
|
-
[**VirusScanResult**](VirusScanResult.md)
|
54
|
-
|
55
|
-
### Authorization
|
56
|
-
|
57
|
-
[Apikey](../README.md#Apikey)
|
58
|
-
|
59
|
-
### HTTP request headers
|
60
|
-
|
61
|
-
- **Content-Type**: multipart/form-data
|
62
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
# **scan_file_advanced**
|
67
|
-
> VirusScanAdvancedResult scan_file_advanced(input_file, opts)
|
68
|
-
|
69
|
-
Advanced Scan a file for viruses
|
70
|
-
|
71
|
-
Advanced Scan files with 360-degree Content Protection across Viruses and Malware, executables, invalid files, scripts, and even restrictions on accepted file types with complete content verification. Customize threat rules to your needs. Leverage continuously updated signatures for millions of threats, and advanced high-performance scanning capabilities. Over 17 million virus and malware signatures. Continuous cloud-based updates. Block threats beyond viruses including executables, scripts, invalid files, and more. Optionally limit input files to a specific set of file types (e.g. PDF and Word Documents only). Wide file format support including Office, PDF, HTML, Flash. Zip support including .Zip, .Rar, .DMG, .Tar, and other archive formats. Multi-threat scanning across viruses, malware, trojans, ransomware, and spyware. High-speed in-memory scanning delivers subsecond typical response time.
|
72
|
-
|
73
|
-
### Example
|
74
|
-
```ruby
|
75
|
-
# load the gem
|
76
|
-
require 'cloudmersive-virus-scan-api-client'
|
77
|
-
# setup authorization
|
78
|
-
CloudmersiveVirusScanApiClient.configure do |config|
|
79
|
-
# Configure API key authorization: Apikey
|
80
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
81
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
82
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
83
|
-
end
|
84
|
-
|
85
|
-
api_instance = CloudmersiveVirusScanApiClient::ScanApi.new
|
86
|
-
|
87
|
-
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
88
|
-
|
89
|
-
opts = {
|
90
|
-
allow_executables: true, # BOOLEAN | Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
|
91
|
-
allow_invalid_files: true, # BOOLEAN | Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended).
|
92
|
-
allow_scripts: true, # BOOLEAN | Set to false to block script files, such as a PHP files, Pythong scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended).
|
93
|
-
allow_password_protected_files: true, # BOOLEAN | Set to false to block password protected and encrypted files, such as encrypted zip and rar files, and other files that seek to circumvent scanning through passwords. Set to true to allow these file types. Default is false (recommended).
|
94
|
-
restrict_file_types: "restrict_file_types_example" # String | Specify a restricted set of file formats to allow as clean as a comma-separated list of file formats, such as .pdf,.docx,.png would allow only PDF, PNG and Word document files. All files must pass content verification against this list of file formats, if they do not, then the result will be returned as CleanResult=false. Set restrictFileTypes parameter to null or empty string to disable; default is disabled.
|
95
|
-
}
|
96
|
-
|
97
|
-
begin
|
98
|
-
#Advanced Scan a file for viruses
|
99
|
-
result = api_instance.scan_file_advanced(input_file, opts)
|
100
|
-
p result
|
101
|
-
rescue CloudmersiveVirusScanApiClient::ApiError => e
|
102
|
-
puts "Exception when calling ScanApi->scan_file_advanced: #{e}"
|
103
|
-
end
|
104
|
-
```
|
105
|
-
|
106
|
-
### Parameters
|
107
|
-
|
108
|
-
Name | Type | Description | Notes
|
109
|
-
------------- | ------------- | ------------- | -------------
|
110
|
-
**input_file** | **File**| Input file to perform the operation on. |
|
111
|
-
**allow_executables** | **BOOLEAN**| Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended). | [optional]
|
112
|
-
**allow_invalid_files** | **BOOLEAN**| Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended). | [optional]
|
113
|
-
**allow_scripts** | **BOOLEAN**| Set to false to block script files, such as a PHP files, Pythong scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended). | [optional]
|
114
|
-
**allow_password_protected_files** | **BOOLEAN**| Set to false to block password protected and encrypted files, such as encrypted zip and rar files, and other files that seek to circumvent scanning through passwords. Set to true to allow these file types. Default is false (recommended). | [optional]
|
115
|
-
**restrict_file_types** | **String**| Specify a restricted set of file formats to allow as clean as a comma-separated list of file formats, such as .pdf,.docx,.png would allow only PDF, PNG and Word document files. All files must pass content verification against this list of file formats, if they do not, then the result will be returned as CleanResult=false. Set restrictFileTypes parameter to null or empty string to disable; default is disabled. | [optional]
|
116
|
-
|
117
|
-
### Return type
|
118
|
-
|
119
|
-
[**VirusScanAdvancedResult**](VirusScanAdvancedResult.md)
|
120
|
-
|
121
|
-
### Authorization
|
122
|
-
|
123
|
-
[Apikey](../README.md#Apikey)
|
124
|
-
|
125
|
-
### HTTP request headers
|
126
|
-
|
127
|
-
- **Content-Type**: multipart/form-data
|
128
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
# **scan_website**
|
133
|
-
> WebsiteScanResult scan_website(input)
|
134
|
-
|
135
|
-
Scan a website for malicious content and threats
|
136
|
-
|
137
|
-
Operation includes scanning the content of the URL for various types of malicious content and threats, including viruses and threats (including Phishing).
|
138
|
-
|
139
|
-
### Example
|
140
|
-
```ruby
|
141
|
-
# load the gem
|
142
|
-
require 'cloudmersive-virus-scan-api-client'
|
143
|
-
# setup authorization
|
144
|
-
CloudmersiveVirusScanApiClient.configure do |config|
|
145
|
-
# Configure API key authorization: Apikey
|
146
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
147
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
148
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
149
|
-
end
|
150
|
-
|
151
|
-
api_instance = CloudmersiveVirusScanApiClient::ScanApi.new
|
152
|
-
|
153
|
-
input = CloudmersiveVirusScanApiClient::WebsiteScanRequest.new # WebsiteScanRequest |
|
154
|
-
|
155
|
-
|
156
|
-
begin
|
157
|
-
#Scan a website for malicious content and threats
|
158
|
-
result = api_instance.scan_website(input)
|
159
|
-
p result
|
160
|
-
rescue CloudmersiveVirusScanApiClient::ApiError => e
|
161
|
-
puts "Exception when calling ScanApi->scan_website: #{e}"
|
162
|
-
end
|
163
|
-
```
|
164
|
-
|
165
|
-
### Parameters
|
166
|
-
|
167
|
-
Name | Type | Description | Notes
|
168
|
-
------------- | ------------- | ------------- | -------------
|
169
|
-
**input** | [**WebsiteScanRequest**](WebsiteScanRequest.md)| |
|
170
|
-
|
171
|
-
### Return type
|
172
|
-
|
173
|
-
[**WebsiteScanResult**](WebsiteScanResult.md)
|
174
|
-
|
175
|
-
### Authorization
|
176
|
-
|
177
|
-
[Apikey](../README.md#Apikey)
|
178
|
-
|
179
|
-
### HTTP request headers
|
180
|
-
|
181
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
182
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
183
|
-
|
184
|
-
|
185
|
-
|
data/docs/VirusFound.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersiveVirusScanApiClient::VirusFound
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**file_name** | **String** | Name of the file containing the virus | [optional]
|
7
|
-
**virus_name** | **String** | Name of the virus that was found | [optional]
|
8
|
-
|
9
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# CloudmersiveVirusScanApiClient::VirusScanAdvancedResult
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**clean_result** | **BOOLEAN** | True if the scan contained no viruses, false otherwise | [optional]
|
7
|
-
**contains_executable** | **BOOLEAN** | True if the scan contained an executable (application code), which can be a significant risk factor | [optional]
|
8
|
-
**contains_invalid_file** | **BOOLEAN** | True if the scan contained an invalid file (such as a PDF that is not a valid PDF, Word Document that is not a valid Word Document, etc.), which can be a significant risk factor | [optional]
|
9
|
-
**contains_script** | **BOOLEAN** | True if the scan contained a script (such as a PHP script, Python script, etc.) which can be a significant risk factor | [optional]
|
10
|
-
**contains_password_protected_file** | **BOOLEAN** | True if the scan contained a password protected or encrypted file, which can be a significant risk factor | [optional]
|
11
|
-
**contains_restricted_file_format** | **BOOLEAN** | True if the uploaded file is of a type that is not allowed based on the optional restrictFileTypes parameter, false otherwise; if restrictFileTypes is not set, this will always be false | [optional]
|
12
|
-
**verified_file_format** | **String** | For file format verification-supported file formats, the contents-verified file format of the file. Null indicates that the file format is not supported for contents verification. If a Virus or Malware is found, this field will always be set to Null. | [optional]
|
13
|
-
**found_viruses** | [**Array<VirusFound>**](VirusFound.md) | Array of viruses found, if any | [optional]
|
14
|
-
|
15
|
-
|