cloudmersive-virus-scan-api-client 2.0.8 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/AdditionalAdvancedScanInformation.md +10 -0
- data/docs/CloudStorageAdvancedVirusScanResult.md +1 -0
- data/docs/CloudStorageVirusScanResult.md +1 -0
- data/docs/ScanApi.md +7 -3
- data/docs/ScanCloudStorageApi.md +32 -16
- data/docs/VirusScanAdvancedResult.md +3 -0
- data/lib/cloudmersive-virus-scan-api-client/api/scan_api.rb +10 -4
- data/lib/cloudmersive-virus-scan-api-client/api/scan_cloud_storage_api.rb +40 -16
- data/lib/cloudmersive-virus-scan-api-client/models/additional_advanced_scan_information.rb +206 -0
- data/lib/cloudmersive-virus-scan-api-client/models/cloud_storage_advanced_virus_scan_result.rb +14 -4
- data/lib/cloudmersive-virus-scan-api-client/models/cloud_storage_virus_scan_result.rb +14 -4
- data/lib/cloudmersive-virus-scan-api-client/models/virus_scan_advanced_result.rb +34 -4
- data/lib/cloudmersive-virus-scan-api-client/version.rb +1 -1
- data/lib/cloudmersive-virus-scan-api-client.rb +1 -0
- data/spec/api/scan_api_spec.rb +4 -2
- data/spec/api/scan_cloud_storage_api_spec.rb +16 -8
- data/spec/models/additional_advanced_scan_information_spec.rb +53 -0
- data/spec/models/cloud_storage_advanced_virus_scan_result_spec.rb +6 -0
- data/spec/models/cloud_storage_virus_scan_result_spec.rb +6 -0
- data/spec/models/virus_scan_advanced_result_spec.rb +18 -0
- metadata +5 -2
@@ -39,12 +39,21 @@ module CloudmersiveVirusScanApiClient
|
|
39
39
|
# True if the uploaded file contains embedded XML External Entity threats of other embedded threats within the document, which can be a significant risk factor
|
40
40
|
attr_accessor :contains_xml_external_entities
|
41
41
|
|
42
|
+
# True if the uploaded file contains embedded Insecure Deserialization threats of other embedded threats within the document, which can be a significant risk factor
|
43
|
+
attr_accessor :contains_insecure_deserialization
|
44
|
+
|
45
|
+
# True if the uploaded file contains HTML, which can be a significant risk factor
|
46
|
+
attr_accessor :contains_html
|
47
|
+
|
42
48
|
# 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.
|
43
49
|
attr_accessor :verified_file_format
|
44
50
|
|
45
51
|
# Array of viruses found, if any
|
46
52
|
attr_accessor :found_viruses
|
47
53
|
|
54
|
+
# Contains additional non-threat content verification information
|
55
|
+
attr_accessor :content_information
|
56
|
+
|
48
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
58
|
def self.attribute_map
|
50
59
|
{
|
@@ -56,8 +65,11 @@ module CloudmersiveVirusScanApiClient
|
|
56
65
|
:'contains_restricted_file_format' => :'ContainsRestrictedFileFormat',
|
57
66
|
:'contains_macros' => :'ContainsMacros',
|
58
67
|
:'contains_xml_external_entities' => :'ContainsXmlExternalEntities',
|
68
|
+
:'contains_insecure_deserialization' => :'ContainsInsecureDeserialization',
|
69
|
+
:'contains_html' => :'ContainsHtml',
|
59
70
|
:'verified_file_format' => :'VerifiedFileFormat',
|
60
|
-
:'found_viruses' => :'FoundViruses'
|
71
|
+
:'found_viruses' => :'FoundViruses',
|
72
|
+
:'content_information' => :'ContentInformation'
|
61
73
|
}
|
62
74
|
end
|
63
75
|
|
@@ -72,8 +84,11 @@ module CloudmersiveVirusScanApiClient
|
|
72
84
|
:'contains_restricted_file_format' => :'BOOLEAN',
|
73
85
|
:'contains_macros' => :'BOOLEAN',
|
74
86
|
:'contains_xml_external_entities' => :'BOOLEAN',
|
87
|
+
:'contains_insecure_deserialization' => :'BOOLEAN',
|
88
|
+
:'contains_html' => :'BOOLEAN',
|
75
89
|
:'verified_file_format' => :'String',
|
76
|
-
:'found_viruses' => :'Array<VirusFound>'
|
90
|
+
:'found_viruses' => :'Array<VirusFound>',
|
91
|
+
:'content_information' => :'AdditionalAdvancedScanInformation'
|
77
92
|
}
|
78
93
|
end
|
79
94
|
|
@@ -117,6 +132,14 @@ module CloudmersiveVirusScanApiClient
|
|
117
132
|
self.contains_xml_external_entities = attributes[:'ContainsXmlExternalEntities']
|
118
133
|
end
|
119
134
|
|
135
|
+
if attributes.has_key?(:'ContainsInsecureDeserialization')
|
136
|
+
self.contains_insecure_deserialization = attributes[:'ContainsInsecureDeserialization']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'ContainsHtml')
|
140
|
+
self.contains_html = attributes[:'ContainsHtml']
|
141
|
+
end
|
142
|
+
|
120
143
|
if attributes.has_key?(:'VerifiedFileFormat')
|
121
144
|
self.verified_file_format = attributes[:'VerifiedFileFormat']
|
122
145
|
end
|
@@ -126,6 +149,10 @@ module CloudmersiveVirusScanApiClient
|
|
126
149
|
self.found_viruses = value
|
127
150
|
end
|
128
151
|
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'ContentInformation')
|
154
|
+
self.content_information = attributes[:'ContentInformation']
|
155
|
+
end
|
129
156
|
end
|
130
157
|
|
131
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -154,8 +181,11 @@ module CloudmersiveVirusScanApiClient
|
|
154
181
|
contains_restricted_file_format == o.contains_restricted_file_format &&
|
155
182
|
contains_macros == o.contains_macros &&
|
156
183
|
contains_xml_external_entities == o.contains_xml_external_entities &&
|
184
|
+
contains_insecure_deserialization == o.contains_insecure_deserialization &&
|
185
|
+
contains_html == o.contains_html &&
|
157
186
|
verified_file_format == o.verified_file_format &&
|
158
|
-
found_viruses == o.found_viruses
|
187
|
+
found_viruses == o.found_viruses &&
|
188
|
+
content_information == o.content_information
|
159
189
|
end
|
160
190
|
|
161
191
|
# @see the `==` method
|
@@ -167,7 +197,7 @@ module CloudmersiveVirusScanApiClient
|
|
167
197
|
# Calculates hash code according to all attributes.
|
168
198
|
# @return [Fixnum] Hash code
|
169
199
|
def hash
|
170
|
-
[clean_result, contains_executable, contains_invalid_file, contains_script, contains_password_protected_file, contains_restricted_file_format, contains_macros, contains_xml_external_entities, verified_file_format, found_viruses].hash
|
200
|
+
[clean_result, contains_executable, contains_invalid_file, contains_script, contains_password_protected_file, contains_restricted_file_format, contains_macros, contains_xml_external_entities, contains_insecure_deserialization, contains_html, verified_file_format, found_viruses, content_information].hash
|
171
201
|
end
|
172
202
|
|
173
203
|
# Builds the object from hash
|
@@ -17,6 +17,7 @@ require 'cloudmersive-virus-scan-api-client/version'
|
|
17
17
|
require 'cloudmersive-virus-scan-api-client/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
+
require 'cloudmersive-virus-scan-api-client/models/additional_advanced_scan_information'
|
20
21
|
require 'cloudmersive-virus-scan-api-client/models/cloud_storage_advanced_virus_scan_result'
|
21
22
|
require 'cloudmersive-virus-scan-api-client/models/cloud_storage_virus_found'
|
22
23
|
require 'cloudmersive-virus-scan-api-client/models/cloud_storage_virus_scan_result'
|
data/spec/api/scan_api_spec.rb
CHANGED
@@ -46,15 +46,17 @@ describe 'ScanApi' do
|
|
46
46
|
|
47
47
|
# unit tests for scan_file_advanced
|
48
48
|
# Advanced Scan a file for viruses
|
49
|
-
# 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.
|
49
|
+
# 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, MSG, and a wide range of image file formats. 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.
|
50
50
|
# @param input_file Input file to perform the operation on.
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
|
53
53
|
# @option opts [BOOLEAN] :allow_invalid_files 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).
|
54
54
|
# @option opts [BOOLEAN] :allow_scripts Set to false to block script files, such as a PHP files, Python 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).
|
55
55
|
# @option opts [BOOLEAN] :allow_password_protected_files 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).
|
56
|
-
# @option opts [BOOLEAN] :allow_macros Set to false to block macros and other threats embedded in document files, such as Word, Excel and PowerPoint embedded Macros, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
56
|
+
# @option opts [BOOLEAN] :allow_macros Set to false to block macros and other threats embedded in document files, such as Word, Excel and PowerPoint embedded Macros (including support for .DOCX, .XLSX, .PPTX, .DOC and .XLS), and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
57
57
|
# @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
58
|
+
# @option opts [BOOLEAN] :allow_insecure_deserialization Set to false to block Insecure Deserialization and other threats embedded in JSON and other object serialization files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
59
|
+
# @option opts [BOOLEAN] :allow_html Set to false to block HTML input in the top level file; HTML can contain XSS, scripts, local file accesses and other threats. Set to true to allow these file types. Default is false (recommended) [for API keys created prior to the release of this feature default is true for backward compatability]. If set to true, HTML files containing script tags will be allowed, but ContainsScript will be set to true if script tags are present.
|
58
60
|
# @option opts [String] :restrict_file_types 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.
|
59
61
|
# @return [VirusScanAdvancedResult]
|
60
62
|
describe 'scan_file_advanced test' do
|
@@ -39,7 +39,7 @@ describe 'ScanCloudStorageApi' do
|
|
39
39
|
# @param secret_key AWS S3 secret key for the S3 bucket; you can get this from My Security Credentials in the AWS console
|
40
40
|
# @param bucket_region Name of the region of the S3 bucket, such as 'US-East-1'
|
41
41
|
# @param bucket_name Name of the S3 bucket
|
42
|
-
# @param key_name Key name (also called file name) of the file in S3 that you wish to scan for viruses
|
42
|
+
# @param key_name Key name (also called file name) of the file in S3 that you wish to scan for viruses. If the key name contains Unicode characters, you must base64 encode the key name and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
43
43
|
# @param [Hash] opts the optional parameters
|
44
44
|
# @return [CloudStorageVirusScanResult]
|
45
45
|
describe 'scan_cloud_storage_scan_aws_s3_file test' do
|
@@ -55,7 +55,7 @@ describe 'ScanCloudStorageApi' do
|
|
55
55
|
# @param secret_key AWS S3 secret key for the S3 bucket; you can get this from My Security Credentials in the AWS console
|
56
56
|
# @param bucket_region Name of the region of the S3 bucket, such as 'US-East-1'
|
57
57
|
# @param bucket_name Name of the S3 bucket
|
58
|
-
# @param key_name Key name (also called file name) of the file in S3 that you wish to scan for viruses
|
58
|
+
# @param key_name Key name (also called file name) of the file in S3 that you wish to scan for viruses. If the key name contains Unicode characters, you must base64 encode the key name and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
59
59
|
# @param [Hash] opts the optional parameters
|
60
60
|
# @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
|
61
61
|
# @option opts [BOOLEAN] :allow_invalid_files 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).
|
@@ -63,6 +63,8 @@ describe 'ScanCloudStorageApi' do
|
|
63
63
|
# @option opts [BOOLEAN] :allow_password_protected_files 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).
|
64
64
|
# @option opts [BOOLEAN] :allow_macros Set to false to block macros and other threats embedded in document files, such as Word, Excel and PowerPoint embedded Macros, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
65
65
|
# @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
66
|
+
# @option opts [BOOLEAN] :allow_insecure_deserialization Set to false to block Insecure Deserialization and other threats embedded in JSON and other object serialization files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
67
|
+
# @option opts [BOOLEAN] :allow_html Set to false to block HTML input in the top level file; HTML can contain XSS, scripts, local file accesses and other threats. Set to true to allow these file types. Default is false (recommended) [for API keys created prior to the release of this feature default is true for backward compatability].
|
66
68
|
# @option opts [String] :restrict_file_types 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.
|
67
69
|
# @return [CloudStorageAdvancedVirusScanResult]
|
68
70
|
describe 'scan_cloud_storage_scan_aws_s3_file_advanced test' do
|
@@ -76,7 +78,7 @@ describe 'ScanCloudStorageApi' do
|
|
76
78
|
# Scan the contents of a single Azure Blob and its 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.
|
77
79
|
# @param connection_string Connection string for the Azure Blob Storage Account; you can get this connection string from the Access Keys tab of the Storage Account blade in the Azure Portal.
|
78
80
|
# @param container_name Name of the Blob container within the Azure Blob Storage account
|
79
|
-
# @param blob_path Path to the blob within the container, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
|
81
|
+
# @param blob_path Path to the blob within the container, such as 'hello.pdf' or '/folder/subfolder/world.pdf'. If the blob path contains Unicode characters, you must base64 encode the blob path and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
80
82
|
# @param [Hash] opts the optional parameters
|
81
83
|
# @return [CloudStorageVirusScanResult]
|
82
84
|
describe 'scan_cloud_storage_scan_azure_blob test' do
|
@@ -90,7 +92,7 @@ describe 'ScanCloudStorageApi' do
|
|
90
92
|
# Advanced Scan the contents of a single Azure Blob and its content for viruses and threats. 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.
|
91
93
|
# @param connection_string Connection string for the Azure Blob Storage Account; you can get this connection string from the Access Keys tab of the Storage Account blade in the Azure Portal.
|
92
94
|
# @param container_name Name of the Blob container within the Azure Blob Storage account
|
93
|
-
# @param blob_path Path to the blob within the container, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
|
95
|
+
# @param blob_path Path to the blob within the container, such as 'hello.pdf' or '/folder/subfolder/world.pdf'. If the blob path contains Unicode characters, you must base64 encode the blob path and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
94
96
|
# @param [Hash] opts the optional parameters
|
95
97
|
# @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
|
96
98
|
# @option opts [BOOLEAN] :allow_invalid_files 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).
|
@@ -98,6 +100,8 @@ describe 'ScanCloudStorageApi' do
|
|
98
100
|
# @option opts [BOOLEAN] :allow_password_protected_files 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).
|
99
101
|
# @option opts [BOOLEAN] :allow_macros Set to false to block macros and other threats embedded in document files, such as Word, Excel and PowerPoint embedded Macros, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
100
102
|
# @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
103
|
+
# @option opts [BOOLEAN] :allow_insecure_deserialization Set to false to block Insecure Deserialization and other threats embedded in JSON and other object serialization files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
104
|
+
# @option opts [BOOLEAN] :allow_html Set to false to block HTML input in the top level file; HTML can contain XSS, scripts, local file accesses and other threats. Set to true to allow these file types. Default is false (recommended) [for API keys created prior to the release of this feature default is true for backward compatability].
|
101
105
|
# @option opts [String] :restrict_file_types 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.
|
102
106
|
# @return [CloudStorageAdvancedVirusScanResult]
|
103
107
|
describe 'scan_cloud_storage_scan_azure_blob_advanced test' do
|
@@ -110,7 +114,7 @@ describe 'ScanCloudStorageApi' do
|
|
110
114
|
# Scan an Google Cloud Platform (GCP) Storage file for viruses
|
111
115
|
# Scan the contents of a single Google Cloud Platform (GCP) Storage file and its 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.
|
112
116
|
# @param bucket_name Name of the bucket in Google Cloud Storage
|
113
|
-
# @param object_name Name of the object or file in Google Cloud Storage
|
117
|
+
# @param object_name Name of the object or file in Google Cloud Storage. If the object name contains Unicode characters, you must base64 encode the object name and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
114
118
|
# @param json_credential_file Service Account credential for Google Cloud stored in a JSON file.
|
115
119
|
# @param [Hash] opts the optional parameters
|
116
120
|
# @return [CloudStorageVirusScanResult]
|
@@ -124,7 +128,7 @@ describe 'ScanCloudStorageApi' do
|
|
124
128
|
# Advanced Scan an Google Cloud Platform (GCP) Storage file for viruses
|
125
129
|
# Advanced Scan the contents of a single Google Cloud Platform (GCP) Storage file and its content for viruses and threats. 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.
|
126
130
|
# @param bucket_name Name of the bucket in Google Cloud Storage
|
127
|
-
# @param object_name Name of the object or file in Google Cloud Storage
|
131
|
+
# @param object_name Name of the object or file in Google Cloud Storage. If the object name contains Unicode characters, you must base64 encode the object name and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
128
132
|
# @param json_credential_file Service Account credential for Google Cloud stored in a JSON file.
|
129
133
|
# @param [Hash] opts the optional parameters
|
130
134
|
# @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
|
@@ -133,6 +137,8 @@ describe 'ScanCloudStorageApi' do
|
|
133
137
|
# @option opts [BOOLEAN] :allow_password_protected_files 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).
|
134
138
|
# @option opts [BOOLEAN] :allow_macros Set to false to block macros and other threats embedded in document files, such as Word, Excel and PowerPoint embedded Macros, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
135
139
|
# @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
140
|
+
# @option opts [BOOLEAN] :allow_insecure_deserialization Set to false to block Insecure Deserialization and other threats embedded in JSON and other object serialization files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
141
|
+
# @option opts [BOOLEAN] :allow_html Set to false to block HTML input in the top level file; HTML can contain XSS, scripts, local file accesses and other threats. Set to true to allow these file types. Default is false (recommended) [for API keys created prior to the release of this feature default is true for backward compatability].
|
136
142
|
# @option opts [String] :restrict_file_types 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.
|
137
143
|
# @return [CloudStorageAdvancedVirusScanResult]
|
138
144
|
describe 'scan_cloud_storage_scan_gcp_storage_file_advanced test' do
|
@@ -148,7 +154,7 @@ describe 'ScanCloudStorageApi' do
|
|
148
154
|
# @param client_secret Client Secret access credentials; see description above for instructions on how to get the Client Secret from the Azure Active Directory portal
|
149
155
|
# @param sharepoint_domain_name SharePoint Online domain name, such as mydomain.sharepoint.com
|
150
156
|
# @param site_id Site ID (GUID) of the SharePoint site you wish to retrieve the file from
|
151
|
-
# @param file_path Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
|
157
|
+
# @param file_path Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'. If the file path contains Unicode characters, you must base64 encode the file path and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
152
158
|
# @param [Hash] opts the optional parameters
|
153
159
|
# @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
|
154
160
|
# @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
|
@@ -168,7 +174,7 @@ describe 'ScanCloudStorageApi' do
|
|
168
174
|
# @param site_id Site ID (GUID) of the SharePoint site you wish to retrieve the file from
|
169
175
|
# @param [Hash] opts the optional parameters
|
170
176
|
# @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
|
171
|
-
# @option opts [String] :file_path Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
|
177
|
+
# @option opts [String] :file_path Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'. If the file path contains Unicode characters, you must base64 encode the file path and prepend it with 'base64:', such as: 'base64:6ZWV6ZWV6ZWV6ZWV6ZWV6ZWV'.
|
172
178
|
# @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
|
173
179
|
# @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
|
174
180
|
# @option opts [BOOLEAN] :allow_invalid_files 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).
|
@@ -176,6 +182,8 @@ describe 'ScanCloudStorageApi' do
|
|
176
182
|
# @option opts [BOOLEAN] :allow_password_protected_files 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).
|
177
183
|
# @option opts [BOOLEAN] :allow_macros Set to false to block macros and other threats embedded in document files, such as Word, Excel and PowerPoint embedded Macros, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
178
184
|
# @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
185
|
+
# @option opts [BOOLEAN] :allow_insecure_deserialization Set to false to block Insecure Deserialization and other threats embedded in JSON and other object serialization files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
|
186
|
+
# @option opts [BOOLEAN] :allow_html Set to false to block HTML input in the top level file; HTML can contain XSS, scripts, local file accesses and other threats. Set to true to allow these file types. Default is false (recommended) [for API keys created prior to the release of this feature default is true for backward compatability].
|
179
187
|
# @option opts [String] :restrict_file_types 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.
|
180
188
|
# @return [CloudStorageAdvancedVirusScanResult]
|
181
189
|
describe 'scan_cloud_storage_scan_share_point_online_file_advanced test' do
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#virusapi
|
3
|
+
|
4
|
+
#The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveVirusScanApiClient::AdditionalAdvancedScanInformation
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AdditionalAdvancedScanInformation' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveVirusScanApiClient::AdditionalAdvancedScanInformation.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AdditionalAdvancedScanInformation' do
|
31
|
+
it 'should create an instance of AdditionalAdvancedScanInformation' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveVirusScanApiClient::AdditionalAdvancedScanInformation)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "contains_json"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "contains_xml"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "contains_image"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -104,4 +104,10 @@ describe 'CloudStorageAdvancedVirusScanResult' do
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
+
describe 'test attribute "content_information"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
107
113
|
end
|
@@ -62,4 +62,10 @@ describe 'CloudStorageVirusScanResult' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
describe 'test attribute "contains_content_moderation_rejection"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
65
71
|
end
|
@@ -80,6 +80,18 @@ describe 'VirusScanAdvancedResult' do
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
describe 'test attribute "contains_insecure_deserialization"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "contains_html"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
83
95
|
describe 'test attribute "verified_file_format"' do
|
84
96
|
it 'should work' do
|
85
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -92,4 +104,10 @@ describe 'VirusScanAdvancedResult' do
|
|
92
104
|
end
|
93
105
|
end
|
94
106
|
|
107
|
+
describe 'test attribute "content_information"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
95
113
|
end
|
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: 2.
|
4
|
+
version: 2.1.1
|
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: 2022-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- "./README.md"
|
203
203
|
- "./Rakefile"
|
204
204
|
- "./cloudmersive-virus-scan-api-client.gemspec"
|
205
|
+
- "./docs/AdditionalAdvancedScanInformation.md"
|
205
206
|
- "./docs/CloudStorageAdvancedVirusScanResult.md"
|
206
207
|
- "./docs/CloudStorageVirusFound.md"
|
207
208
|
- "./docs/CloudStorageVirusScanResult.md"
|
@@ -219,6 +220,7 @@ files:
|
|
219
220
|
- "./lib/cloudmersive-virus-scan-api-client/api_client.rb"
|
220
221
|
- "./lib/cloudmersive-virus-scan-api-client/api_error.rb"
|
221
222
|
- "./lib/cloudmersive-virus-scan-api-client/configuration.rb"
|
223
|
+
- "./lib/cloudmersive-virus-scan-api-client/models/additional_advanced_scan_information.rb"
|
222
224
|
- "./lib/cloudmersive-virus-scan-api-client/models/cloud_storage_advanced_virus_scan_result.rb"
|
223
225
|
- "./lib/cloudmersive-virus-scan-api-client/models/cloud_storage_virus_found.rb"
|
224
226
|
- "./lib/cloudmersive-virus-scan-api-client/models/cloud_storage_virus_scan_result.rb"
|
@@ -232,6 +234,7 @@ files:
|
|
232
234
|
- "./spec/api/scan_cloud_storage_api_spec.rb"
|
233
235
|
- "./spec/api_client_spec.rb"
|
234
236
|
- "./spec/configuration_spec.rb"
|
237
|
+
- "./spec/models/additional_advanced_scan_information_spec.rb"
|
235
238
|
- "./spec/models/cloud_storage_advanced_virus_scan_result_spec.rb"
|
236
239
|
- "./spec/models/cloud_storage_virus_found_spec.rb"
|
237
240
|
- "./spec/models/cloud_storage_virus_scan_result_spec.rb"
|