Compute Engine v1 API - Class RegexRewrite (3.31.0)

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

Reference documentation and code samples for the Compute Engine v1 API class RegexRewrite.

The spec for modifying the path using a regular expression.

Inheritance

object > RegexRewrite

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegexRewrite()

public RegexRewrite()

RegexRewrite(RegexRewrite)

public RegexRewrite(RegexRewrite other)
Parameter
Name Description
other RegexRewrite

Properties

HasPathPattern

public bool HasPathPattern { get; }

Gets whether the "path_pattern" field is set

Property Value
Type Description
bool

HasPathSubstitution

public bool HasPathSubstitution { get; }

Gets whether the "path_substitution" field is set

Property Value
Type Description
bool

PathPattern

public string PathPattern { get; set; }

Required. The regular expression used to match against the URL path. It uses RE2 syntax with the following constraints:

 - Any single character operators
 - Groups are allowed to have only submatch operator inside
 - Groups are allowed only without any char repetition, e.g.
 .*
 - Any char repetition, e.g. .*, is
 only allowed to be used in a single regex together with:

        - Empty string operators
        - Other repetitions
        - Ranges
        - Repetitions of ranges

 - Ranges are only allowed to have:

        - Character range
        - Digits range
        - Symbols listed in characters allowed for ranges
Property Value
Type Description
string

PathSubstitution

public string PathSubstitution { get; set; }

Required. Required when path pattern is specified. Used to rewrite matching parts of the path.

Property Value
Type Description
string