Class Rewrite
A Rewrite
specifies a URL pattern that, if
matched to the request URL path, triggers Hosting to respond as if the service were given the specified
destination URL.
Implements
Inherited Members
Namespace: Google.Apis.FirebaseHosting.v1beta1.Data
Assembly: Google.Apis.FirebaseHosting.v1beta1.dll
Syntax
public class Rewrite : IDirectResponseSchema
Properties
DynamicLinks
The request will be forwarded to Firebase Dynamic Links.
Declaration
[JsonProperty("dynamicLinks")]
public virtual bool? DynamicLinks { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Function
The function to proxy requests to. Must match the exported function name exactly.
Declaration
[JsonProperty("function")]
public virtual string Function { get; set; }
Property Value
Type | Description |
---|---|
string |
FunctionRegion
Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
Declaration
[JsonProperty("functionRegion")]
public virtual string FunctionRegion { get; set; }
Property Value
Type | Description |
---|---|
string |
Glob
The user-supplied glob to match against the request URL path.
Declaration
[JsonProperty("glob")]
public virtual string Glob { get; set; }
Property Value
Type | Description |
---|---|
string |
Path
The URL path to rewrite the request to.
Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
Regex
The user-supplied RE2 regular expression to match against the request URL path.
Declaration
[JsonProperty("regex")]
public virtual string Regex { get; set; }
Property Value
Type | Description |
---|---|
string |
Run
The request will be forwarded to Cloud Run.
Declaration
[JsonProperty("run")]
public virtual CloudRunRewrite Run { get; set; }
Property Value
Type | Description |
---|---|
CloudRunRewrite |