NotificationPolicy#

class NotificationPolicy(name=None, description=None, has_secured_connection=False, protocol_types=None, should_include_all_mount_targets=False, file_blocking_mode=None, operations=None, file_extensions=None, mount_target_ext_ids=None, partner_server_ext_ids=None, blocked_clients=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

A representation of a notification policy model.

Parameters:
  • name (required min=1 chars, max=80 chars) – (name) Notification policy name.

  • description (max=180 chars) – (description) A description of notification policy entity.

  • has_secured_connection – (has_secured_connection) Setting this flag ensures that a secure connection is established between AFS and the partner server. (Default False)

  • protocol_types (required) – (protocol_types) List of mount target protocol type associated to the notification policy.

  • should_include_all_mount_targets – (should_include_all_mount_targets) Setting this flag ensures that a notification policy is applicable to all the mount targets. (Default False)

  • file_blocking_mode – (file_blocking_mode)

  • operations (required) – (operations) Defines the list of operations on the files.

  • file_extensions – (file_extensions) List of file blocking extensions. For example: *.mp3.

  • mount_target_ext_ids – (mount_target_ext_ids) A list of mount target external identifiers.

  • partner_server_ext_ids – (partner_server_ext_ids) A list of partner server external identifiers.

  • blocked_clients – (blocked_clients) A list of users and client IPs, whose notifications needs to be blocked for a partner server.

property blocked_clients#

A list of users and client IPs, whose notifications needs to be blocked for a partner server.

Type:

list[ BlockedNotificationClient ]

property description#

A description of notification policy entity.

Type:

str

property file_blocking_mode#
Type:

FileBlockingMode

property file_extensions#

List of file blocking extensions. For example: *.mp3.

Type:

list[ str ]

property has_secured_connection#

Setting this flag ensures that a secure connection is established between AFS and the partner server.

Type:

bool

property mount_target_ext_ids#

A list of mount target external identifiers.

Type:

list[ str ]

property name#

Notification policy name.

Type:

str

property operations#

Defines the list of operations on the files.

Type:

list[ FileOperation ]

property partner_server_ext_ids#

A list of partner server external identifiers.

Type:

list[ str ]

property protocol_types#

List of mount target protocol type associated to the notification policy.

Type:

list[ ProtocolType ]

property should_include_all_mount_targets#

Setting this flag ensures that a notification policy is applicable to all the mount targets.

Type:

bool

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model