Show / Hide Table of Contents

Class StringMatcher

Specifies the way to match a string. [#next-free-field: 7]

Inheritance
System.Object
StringMatcher
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.TrafficDirectorService.v2.Data
Assembly: Google.Apis.TrafficDirectorService.v2.dll
Syntax
public class StringMatcher : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Exact

The input string must match exactly the string specified here. Examples: * abc only matches the value abc.

Declaration
[JsonProperty("exact")]
public virtual string Exact { get; set; }
Property Value
Type Description
System.String

IgnoreCase

If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no effect for the safe_regex match. For example, the matcher data will match both input string Data and data if set to true.

Declaration
[JsonProperty("ignoreCase")]
public virtual bool? IgnoreCase { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Prefix

The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * abc matches the value abc.xyz

Declaration
[JsonProperty("prefix")]
public virtual string Prefix { get; set; }
Property Value
Type Description
System.String

Regex

The input string must match the regular expression specified here. The regex grammar is defined here_. Examples: * The regex \d{3} matches the value 123 * The regex \d{3} does not match the value 1234 * The regex \d{3} does not match the value 123.456 .. attention:: This field has been deprecated in favor of safe_regex as it is not safe for use with untrusted input in all cases.

Declaration
[JsonProperty("regex")]
public virtual string Regex { get; set; }
Property Value
Type Description
System.String

SafeRegex

The input string must match the regular expression specified here.

Declaration
[JsonProperty("safeRegex")]
public virtual RegexMatcher SafeRegex { get; set; }
Property Value
Type Description
RegexMatcher

Suffix

The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * abc matches the value xyz.abc

Declaration
[JsonProperty("suffix")]
public virtual string Suffix { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
In This Article
Back to top