Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Jan 2, 2022
1 parent dc7158e commit 8c5d194
Show file tree
Hide file tree
Showing 22 changed files with 260 additions and 23 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Cloudmersive Virus Scan API lets you scan files and content for viruses and
[Cloudmersive Virus Scan API](https://www.cloudmersive.com/virus-api) provides advanced virus scanning capabilities.

- API version: v1
- Package version: 1.2.4
- Package version: 1.2.5


## Installation
Expand Down Expand Up @@ -140,6 +140,7 @@ Class | Method | HTTP request | Description

## Documentation for Models

- [CloudmersiveVirusApiClient.AdditionalAdvancedScanInformation](docs/AdditionalAdvancedScanInformation.md)
- [CloudmersiveVirusApiClient.CloudStorageAdvancedVirusScanResult](docs/CloudStorageAdvancedVirusScanResult.md)
- [CloudmersiveVirusApiClient.CloudStorageVirusFound](docs/CloudStorageVirusFound.md)
- [CloudmersiveVirusApiClient.CloudStorageVirusScanResult](docs/CloudStorageVirusScanResult.md)
Expand Down
3 changes: 2 additions & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Cloudmersive Virus Scan API lets you scan files and content for viruses and
[Cloudmersive Virus Scan API](https://www.cloudmersive.com/virus-api) provides advanced virus scanning capabilities.

- API version: v1
- Package version: 1.2.4
- Package version: 1.2.5


## Installation
Expand Down Expand Up @@ -140,6 +140,7 @@ Class | Method | HTTP request | Description

## Documentation for Models

- [CloudmersiveVirusApiClient.AdditionalAdvancedScanInformation](docs/AdditionalAdvancedScanInformation.md)
- [CloudmersiveVirusApiClient.CloudStorageAdvancedVirusScanResult](docs/CloudStorageAdvancedVirusScanResult.md)
- [CloudmersiveVirusApiClient.CloudStorageVirusFound](docs/CloudStorageVirusFound.md)
- [CloudmersiveVirusApiClient.CloudStorageVirusScanResult](docs/CloudStorageVirusScanResult.md)
Expand Down
9 changes: 9 additions & 0 deletions client/docs/AdditionalAdvancedScanInformation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CloudmersiveVirusApiClient.AdditionalAdvancedScanInformation

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**containsJSON** | **Boolean** | True if the input file contains JSON data, false otherwise; this is not a threat signal | [optional]
**containsXML** | **Boolean** | True if the input file contains XML data, false otherwise; this is not a threat signal | [optional]


4 changes: 4 additions & 0 deletions client/docs/ScanApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ var opts = {
'allowPasswordProtectedFiles': 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).
'allowMacros': true, // Boolean | 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).
'allowXmlExternalEntities': true, // Boolean | 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).
'allowInsecureDeserialization': true, // Boolean | 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).
'allowHtml': true, // Boolean | 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].
'restrictFileTypes': "restrictFileTypes_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.
};

Expand All @@ -116,6 +118,8 @@ Name | Type | Description | Notes
**allowPasswordProtectedFiles** | **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]
**allowMacros** | **Boolean**| 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). | [optional]
**allowXmlExternalEntities** | **Boolean**| 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). | [optional]
**allowInsecureDeserialization** | **Boolean**| 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). | [optional]
**allowHtml** | **Boolean**| 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]. | [optional]
**restrictFileTypes** | **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]

### Return type
Expand Down
3 changes: 3 additions & 0 deletions client/docs/VirusScanAdvancedResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ Name | Type | Description | Notes
**containsRestrictedFileFormat** | **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]
**containsMacros** | **Boolean** | True if the uploaded file contains embedded Macros of other embedded threats within the document, which can be a significant risk factor | [optional]
**containsXmlExternalEntities** | **Boolean** | 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 | [optional]
**containsInsecureDeserialization** | **Boolean** | True if the uploaded file contains embedded Insecure Deserialization threats of other embedded threats within the document, which can be a significant risk factor | [optional]
**containsHtml** | **Boolean** | True if the uploaded file contains HTML, which can be a significant risk factor | [optional]
**verifiedFileFormat** | **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]
**foundViruses** | [**[VirusFound]**](VirusFound.md) | Array of viruses found, if any | [optional]
**contentInformation** | [**AdditionalAdvancedScanInformation**](AdditionalAdvancedScanInformation.md) | Contains additional non-threat content verification information | [optional]


2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive-virus-api-client",
"version": "1.2.4",
"version": "1.2.5",
"description": "The_Cloudmersive_Virus_Scan_API_lets_you_scan_files_and_content_for_viruses_and_identify_security_issues_with_content_",
"license": "Apache-2.0",
"main": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion client/src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

/**
* @module ApiClient
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down
6 changes: 5 additions & 1 deletion client/src/api/ScanApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* Scan service.
* @module api/ScanApi
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down Expand Up @@ -114,6 +114,8 @@
* @param {Boolean} opts.allowPasswordProtectedFiles 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).
* @param {Boolean} opts.allowMacros 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).
* @param {Boolean} opts.allowXmlExternalEntities 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).
* @param {Boolean} opts.allowInsecureDeserialization 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).
* @param {Boolean} opts.allowHtml 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].
* @param {String} opts.restrictFileTypes 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.
* @param {module:api/ScanApi~scanFileAdvancedCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/VirusScanAdvancedResult}
Expand Down Expand Up @@ -141,6 +143,8 @@
'allowPasswordProtectedFiles': opts['allowPasswordProtectedFiles'],
'allowMacros': opts['allowMacros'],
'allowXmlExternalEntities': opts['allowXmlExternalEntities'],
'allowInsecureDeserialization': opts['allowInsecureDeserialization'],
'allowHtml': opts['allowHtml'],
'restrictFileTypes': opts['restrictFileTypes']
};
var formParams = {
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ScanCloudStorageApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ScanCloudStorage service.
* @module api/ScanCloudStorageApi
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down
13 changes: 9 additions & 4 deletions client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/CloudStorageAdvancedVirusScanResult', 'model/CloudStorageVirusFound', 'model/CloudStorageVirusScanResult', 'model/VirusFound', 'model/VirusScanAdvancedResult', 'model/VirusScanResult', 'model/WebsiteScanRequest', 'model/WebsiteScanResult', 'api/ScanApi', 'api/ScanCloudStorageApi'], factory);
define(['ApiClient', 'model/AdditionalAdvancedScanInformation', 'model/CloudStorageAdvancedVirusScanResult', 'model/CloudStorageVirusFound', 'model/CloudStorageVirusScanResult', 'model/VirusFound', 'model/VirusScanAdvancedResult', 'model/VirusScanResult', 'model/WebsiteScanRequest', 'model/WebsiteScanResult', 'api/ScanApi', 'api/ScanCloudStorageApi'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('./ApiClient'), require('./model/CloudStorageAdvancedVirusScanResult'), require('./model/CloudStorageVirusFound'), require('./model/CloudStorageVirusScanResult'), require('./model/VirusFound'), require('./model/VirusScanAdvancedResult'), require('./model/VirusScanResult'), require('./model/WebsiteScanRequest'), require('./model/WebsiteScanResult'), require('./api/ScanApi'), require('./api/ScanCloudStorageApi'));
module.exports = factory(require('./ApiClient'), require('./model/AdditionalAdvancedScanInformation'), require('./model/CloudStorageAdvancedVirusScanResult'), require('./model/CloudStorageVirusFound'), require('./model/CloudStorageVirusScanResult'), require('./model/VirusFound'), require('./model/VirusScanAdvancedResult'), require('./model/VirusScanResult'), require('./model/WebsiteScanRequest'), require('./model/WebsiteScanResult'), require('./api/ScanApi'), require('./api/ScanCloudStorageApi'));
}
}(function(ApiClient, CloudStorageAdvancedVirusScanResult, CloudStorageVirusFound, CloudStorageVirusScanResult, VirusFound, VirusScanAdvancedResult, VirusScanResult, WebsiteScanRequest, WebsiteScanResult, ScanApi, ScanCloudStorageApi) {
}(function(ApiClient, AdditionalAdvancedScanInformation, CloudStorageAdvancedVirusScanResult, CloudStorageVirusFound, CloudStorageVirusScanResult, VirusFound, VirusScanAdvancedResult, VirusScanResult, WebsiteScanRequest, WebsiteScanResult, ScanApi, ScanCloudStorageApi) {
'use strict';

/**
Expand Down Expand Up @@ -53,14 +53,19 @@
* </pre>
* </p>
* @module index
* @version 1.2.4
* @version 1.2.5
*/
var exports = {
/**
* The ApiClient constructor.
* @property {module:ApiClient}
*/
ApiClient: ApiClient,
/**
* The AdditionalAdvancedScanInformation model constructor.
* @property {module:model/AdditionalAdvancedScanInformation}
*/
AdditionalAdvancedScanInformation: AdditionalAdvancedScanInformation,
/**
* The CloudStorageAdvancedVirusScanResult model constructor.
* @property {module:model/CloudStorageAdvancedVirusScanResult}
Expand Down
92 changes: 92 additions & 0 deletions client/src/model/AdditionalAdvancedScanInformation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/**
* virusapi
* The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.
*
* OpenAPI spec version: v1
*
* NOTE: This class is auto generated by the swagger code generator program.
* /~https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.1
*
* Do not edit the class manually.
*
*/

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.CloudmersiveVirusApiClient) {
root.CloudmersiveVirusApiClient = {};
}
root.CloudmersiveVirusApiClient.AdditionalAdvancedScanInformation = factory(root.CloudmersiveVirusApiClient.ApiClient);
}
}(this, function(ApiClient) {
'use strict';




/**
* The AdditionalAdvancedScanInformation model module.
* @module model/AdditionalAdvancedScanInformation
* @version 1.2.5
*/

/**
* Constructs a new <code>AdditionalAdvancedScanInformation</code>.
* Additional non-threat content verification information
* @alias module:model/AdditionalAdvancedScanInformation
* @class
*/
var exports = function() {
var _this = this;



};

/**
* Constructs a <code>AdditionalAdvancedScanInformation</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/AdditionalAdvancedScanInformation} obj Optional instance to populate.
* @return {module:model/AdditionalAdvancedScanInformation} The populated <code>AdditionalAdvancedScanInformation</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();

if (data.hasOwnProperty('ContainsJSON')) {
obj['ContainsJSON'] = ApiClient.convertToType(data['ContainsJSON'], 'Boolean');
}
if (data.hasOwnProperty('ContainsXML')) {
obj['ContainsXML'] = ApiClient.convertToType(data['ContainsXML'], 'Boolean');
}
}
return obj;
}

/**
* True if the input file contains JSON data, false otherwise; this is not a threat signal
* @member {Boolean} ContainsJSON
*/
exports.prototype['ContainsJSON'] = undefined;
/**
* True if the input file contains XML data, false otherwise; this is not a threat signal
* @member {Boolean} ContainsXML
*/
exports.prototype['ContainsXML'] = undefined;



return exports;
}));


2 changes: 1 addition & 1 deletion client/src/model/CloudStorageAdvancedVirusScanResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* The CloudStorageAdvancedVirusScanResult model module.
* @module model/CloudStorageAdvancedVirusScanResult
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/model/CloudStorageVirusFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* The CloudStorageVirusFound model module.
* @module model/CloudStorageVirusFound
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/model/CloudStorageVirusScanResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* The CloudStorageVirusScanResult model module.
* @module model/CloudStorageVirusScanResult
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/model/VirusFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* The VirusFound model module.
* @module model/VirusFound
* @version 1.2.4
* @version 1.2.5
*/

/**
Expand Down
Loading

0 comments on commit 8c5d194

Please sign in to comment.