Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.11 KB

File metadata and controls

34 lines (25 loc) · 2.11 KB

DenyRuleRecord

A complete deny rule record as returned by GET /mail/rules. Combines the rule definition fields (DenyRuleNew) with server-assigned metadata (id and created). The id value is required by DELETE /mail/rules/{ruleId}.

Properties

Name Type Description Notes
user str Optional SMTP username of the mail order to associate this rule with (e.g. `mb20682`). If omitted the first active order is used. Valid usernames are the `username` values returned by `GET /mail`. [optional]
type str The matching strategy for this rule. `email` blocks an exact sender address, `domain` blocks all senders at a domain, `destination` blocks an exact recipient address, and `startswith` blocks any sender whose local-part begins with the given prefix.
data str The value to match against, interpreted according to `type`: a full email address for `email`/`destination`, a domain name for `domain`, or an alphanumeric prefix string for `startswith`.
id str The numeric ID of the deny rule, as a string. Pass this as `ruleId` to `DELETE /mail/rules/{ruleId}` to remove the rule.
created datetime The timestamp when the rule was created.

Example

from openapi_client.models.deny_rule_record import DenyRuleRecord

# TODO update the JSON string below
json = "{}"
# create an instance of DenyRuleRecord from a JSON string
deny_rule_record_instance = DenyRuleRecord.from_json(json)
# print the JSON string representation of the object
print(DenyRuleRecord.to_json())

# convert the object into a dict
deny_rule_record_dict = deny_rule_record_instance.to_dict()
# create an instance of DenyRuleRecord from a dict
deny_rule_record_from_dict = DenyRuleRecord.from_dict(deny_rule_record_dict)

[Back to Model list] [Back to API list] [Back to README]