VirusScanPolicy#

class VirusScanPolicy(scan_timeout_interval_secs=None, is_scan_on_write_enabled=True, is_scan_on_read_enabled=True, max_file_size_threshold_bytes=None, is_file_access_blocked=False, is_anti_virus_enabled=True, excluded_file_extensions=None, mount_target_reference=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

Antivirus server scan policy information.

Parameters:
  • scan_timeout_interval_secs (min=0,) – (scan_timeout_interval_secs) Time interval to complete the scan. If it is not completed within the specified time, the request is timed out and the default action is taken.

  • is_scan_on_write_enabled – (is_scan_on_write_enabled) Scan file for presence of virus during write. (Default True)

  • is_scan_on_read_enabled – (is_scan_on_read_enabled) Scan file for presence of virus during read. (Default True)

  • max_file_size_threshold_bytes (min=0,) – (max_file_size_threshold_bytes) Maximum file size in bytes for which file scan is allowed.

  • is_file_access_blocked – (is_file_access_blocked) Indicates if the file access needs to be blocked for the current policy. (Default False)

  • is_anti_virus_enabled – (is_anti_virus_enabled) Indicates if the antivirus server is enabled for the current policy. (Default True)

  • excluded_file_extensions – (excluded_file_extensions) Files with extension in the listed ones will be excluded during antivirus scan.

  • mount_target_reference – (mount_target_reference) The external identifier of the mount target under which the virus scan policy is being created. This field will be set to null if it is a global policy.

property excluded_file_extensions#

Files with extension in the listed ones will be excluded during antivirus scan.

Type:

list[ str ]

property is_anti_virus_enabled#

Indicates if the antivirus server is enabled for the current policy.

Type:

bool

property is_file_access_blocked#

Indicates if the file access needs to be blocked for the current policy.

Type:

bool

property is_scan_on_read_enabled#

Scan file for presence of virus during read.

Type:

bool

property is_scan_on_write_enabled#

Scan file for presence of virus during write.

Type:

bool

property max_file_size_threshold_bytes#

Maximum file size in bytes for which file scan is allowed.

Type:

int

property mount_target_reference#

The external identifier of the mount target under which the virus scan policy is being created. This field will be set to null if it is a global policy.

Type:

str

property scan_timeout_interval_secs#

Time interval to complete the scan. If it is not completed within the specified time, the request is timed out and the default action is taken.

Type:

int

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model