Skip to main content

AccountLimitClient

set_account_limit

Sets an account limit for a given limit scope.

Arguments:

account: The name of the account.

rse: The rse name.

bytes_: An integer with the limit in bytes.

locality: The scope of the account limit. 'local' or 'global'.

Returns:

True if quota was created successfully else False.

delete_account_limit

Deletes an account limit for a given limit scope.

Arguments:

account: The name of the account.

rse: The rse name.

locality: The scope of the account limit. 'local' or 'global'.

Returns:

True if quota was created successfully else False.

set_local_account_limit

Sends the request to set an account limit for an account.

Arguments:

account: The name of the account.

rse: The rse name.

bytes_: An integer with the limit in bytes.

Returns:

True if quota was created successfully else False.

delete_local_account_limit

Sends the request to remove an account limit.

Arguments:

account: The name of the account.

rse: The rse name.

Raises:

AccountNotFound: if account doesn't exist.

Returns:

True if quota was removed successfully. False otherwise.

set_global_account_limit

Sends the request to set a global account limit for an account.

Arguments:

account: The name of the account.

rse_expression: The rse expression.

bytes_: An integer with the limit in bytes.

Returns:

True if quota was created successfully else False.

delete_global_account_limit

Sends the request to remove a global account limit.

Arguments:

account: The name of the account.

rse_expression: The rse expression.

Raises:

AccountNotFound: if account doesn't exist.

Returns:

True if quota was removed successfully. False otherwise.