sym.sdk.request_destination.SlackUserGroup¶
- class sym.sdk.request_destination.SlackUserGroup(*, allow_self: bool = False, timeout: Optional[int] = None, users: types.ConstrainedListValue[sym.sdk.request_destination.SlackUser])¶
Bases:
sym.sdk.request_destination.SlackRequestDestination
A Request to be sent in a Slack Group DM including the given Slack Users, with a maximum of 7 Users.
- classmethod parse_obj(obj)¶
Without this method override, Pydantic will not call our custom validator when parsing a RequestDestination directly (e.g. RequestDestination.parse_obj(…)). It will only be called when parsing fields that contain a RequestDestination object (e.g. SlackUserGroup.parse_obj(…), where the users field contains SlackUsers which are subclasses of RequestDestination).
- field users: List[sym.sdk.request_destination.SlackUser] [Required]¶
A list of
SlackUser
objects to include in the group DM. Note: While each SlackUser object supports an allow_self attribute, this attribute will ignored in favor of the allow_self attribute set on the SlackUserGroup object.- Constraints
minItems = 1
maxItems = 7