Google Workspace Add-ons v1 API - Class UrlPattern (2.6.0)

public sealed class UrlPattern : IMessage<UrlPattern>, IEquatable<UrlPattern>, IDeepCloneable<UrlPattern>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Workspace Add-ons v1 API class UrlPattern.

Configuration for a link preview.

Inheritance

object > UrlPattern

Namespace

Google.Cloud.GSuiteAddOns.V1

Assembly

Google.Cloud.GSuiteAddOns.V1.dll

Constructors

UrlPattern()

public UrlPattern()

UrlPattern(UrlPattern)

public UrlPattern(UrlPattern other)
Parameter
Name Description
other UrlPattern

Properties

HostPattern

public string HostPattern { get; set; }

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".

Property Value
Type Description
string

PathPrefix

public string PathPrefix { get; set; }

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/".

Property Value
Type Description
string