View Source GoogleApi.FirebaseHosting.V1beta1.Model.Rewrite (google_api_firebase_hosting v0.17.1)

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.

Attributes

  • dynamicLinks (type: boolean(), default: nil) - The request will be forwarded to Firebase Dynamic Links.
  • function (type: String.t, default: nil) - The function to proxy requests to. Must match the exported function name exactly.
  • functionRegion (type: String.t, default: nil) - Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
  • glob (type: String.t, default: nil) - The user-supplied glob to match against the request URL path.
  • path (type: String.t, default: nil) - The URL path to rewrite the request to.
  • regex (type: String.t, default: nil) - The user-supplied RE2 regular expression to match against the request URL path.
  • run (type: GoogleApi.FirebaseHosting.V1beta1.Model.CloudRunRewrite.t, default: nil) - The request will be forwarded to Cloud Run.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.FirebaseHosting.V1beta1.Model.Rewrite{
  dynamicLinks: boolean() | nil,
  function: String.t() | nil,
  functionRegion: String.t() | nil,
  glob: String.t() | nil,
  path: String.t() | nil,
  regex: String.t() | nil,
  run: GoogleApi.FirebaseHosting.V1beta1.Model.CloudRunRewrite.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.