QuotaPolicy#

class QuotaPolicy(principal_type=None, principal_name=None, size_in_bytes=1, enforcement_type=None, notification_recipients=None, is_notification_enabled=True, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

Quota policy model.

Parameters:
  • principal_type (required) – (principal_type)

  • principal_name (required max=256 chars) – (principal_name) Principal name is the name of the user or group, assigned to the principal type.

  • size_in_bytes – (size_in_bytes) Quota size in bytes. (Default 1)

  • enforcement_type (required) – (enforcement_type)

  • notification_recipients – (notification_recipients) List of recipient’s emails.

  • is_notification_enabled – (is_notification_enabled) Enables email notifications for the user or group specified in the principal type.A notification will only be sent if the user or group is close to the quota provided. (Default True)

property enforcement_type#
Type:

EnforcementType

property is_notification_enabled#

Enables email notifications for the user or group specified in the principal type.A notification will only be sent if the user or group is close to the quota provided.

Type:

bool

property notification_recipients#

List of recipient’s emails.

Type:

list[ str ]

property principal_name#

Principal name is the name of the user or group, assigned to the principal type.

Type:

str

property principal_type#
Type:

PrincipalType

property size_in_bytes#

Quota size in bytes.

Type:

int

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model