UrlPattern(mapping=None, *, ignore_unknown_fields=False, **kwargs)Configuration for a link
preview <https://developers.google.com/workspace/chat/preview-links>__.
Attributes |
|
|---|---|
| Name | Description |
host_pattern |
str
Required. The domain to match. Match a specific subdomain, like "subdomain.example.com", or an entire domain by including an asterisk (*) as a leading wildcard character. For example, "*.example.com" matches "https://subdomain.example.com" and "https://any.number.of.subdomains.example.com". |
path_prefix |
str
Optional. Path prefix appended to the host pattern. If blank, matches all URLs in the host pattern. For example, when paired with the host pattern "subdomain.example.com", specify "path/" to match page URLs that begin with "https://subdomain.example.com/path/". |