class Google::Apis::FirebasehostingV1beta1::Redirect
A [`Redirect`](firebase.google.com/docs/hosting/full-config#redirects) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
Attributes
The user-supplied [glob](firebase.google.com/docs/hosting/full-config# glob_pattern_matching) to match against the request URL path. Corresponds to the JSON property `glob` @return [String]
Required. The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a `:` prefix to identify the segment and an optional `*` to capture the rest of the URL. For example: “glob”: “/:capture*”, “statusCode”: 301, “location”: “https:// example.com/foo/:capture” Corresponds to the JSON property `location` @return [String]
The user-supplied RE2 regular expression to match against the request URL path. Corresponds to the JSON property `regex` @return [String]
Required. The status HTTP code to return in the response. It must be a valid 3xx status code. Corresponds to the JSON property `statusCode` @return [Fixnum]
Public Class Methods
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 793 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 798 def update!(**args) @glob = args[:glob] if args.key?(:glob) @location = args[:location] if args.key?(:location) @regex = args[:regex] if args.key?(:regex) @status_code = args[:status_code] if args.key?(:status_code) end