public sealed class RegexRewrite : IMessage<RegexRewrite>, IEquatable<RegexRewrite>, IDeepCloneable<RegexRewrite>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class RegexRewrite.
The spec for modifying the path using a regular expression.
Implements
IMessageRegexRewrite, IEquatableRegexRewrite, IDeepCloneableRegexRewrite, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
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 |
|