models.antivirus_scan_config module

class models.antivirus_scan_config.AntivirusScanConfig(block_access_on_scan_failure=None, is_enabled=None, maximum_scan_file_size=None, scan_filter=None, scan_on_access=None, scan_on_close=None, scan_timeout_usecs=None)[source]

Bases: object

Implementation of the ‘AntivirusScanConfig’ model.

Specifies the antivirus scan config settings for this View.

Attributes:
block_access_on_scan_failure (bool): Specifies whether block access to

the file when antivirus scan fails.

is_enabled (bool): Specifies whether the antivirus service is enabled

or not.

maximum_scan_file_size (long|int): Specifies maximum file size that

will be sent to antivirus server for scanning. if greater than zero, the file size that exceeds this size would be skipped from virus scan.

scan_filter (FileExtensionFilter): TODO: type description here. scan_on_access (bool): Specifies whether to scan a file when it is

opened.

scan_on_close (bool): Specifies whether to scan a file when it is

closed after modify.

scan_timeout_usecs (int): Specifies the maximum amount of time that a

scan can take before timing out.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.