Class: Google::Apis::FirebasehostingV1beta1::Rewrite
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::Rewrite
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firebasehosting_v1beta1/classes.rb,
generated/google/apis/firebasehosting_v1beta1/representations.rb,
generated/google/apis/firebasehosting_v1beta1/representations.rb
Overview
A rewrite
represents an internal
content rewrite on the version. If the pattern matches, the request will be
handled as if it were to the destination path specified in the
configuration.
Instance Attribute Summary collapse
-
#dynamic_links ⇒ Boolean
(also: #dynamic_links?)
The request will be forwarded to Firebase Dynamic Links.
-
#function ⇒ String
The function to proxy requests to.
-
#glob ⇒ String
Required.
-
#path ⇒ String
The URL path to rewrite the request to.
-
#run ⇒ Google::Apis::FirebasehostingV1beta1::CloudRunRewrite
A configured rewrite that will direct any requests to a Cloud Run service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rewrite
constructor
A new instance of Rewrite.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rewrite
Returns a new instance of Rewrite
595 596 597 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 595 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dynamic_links ⇒ Boolean Also known as: dynamic_links?
The request will be forwarded to Firebase Dynamic Links.
Corresponds to the JSON property dynamicLinks
565 566 567 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 565 def dynamic_links @dynamic_links end |
#function ⇒ String
The function to proxy requests to. Must match the exported function
name exactly.
Corresponds to the JSON property function
572 573 574 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 572 def function @function end |
#glob ⇒ String
Required. The user-supplied
glob pattern to match
against the request URL path.
Corresponds to the JSON property glob
579 580 581 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 579 def glob @glob end |
#path ⇒ String
The URL path to rewrite the request to.
Corresponds to the JSON property path
584 585 586 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 584 def path @path end |
#run ⇒ Google::Apis::FirebasehostingV1beta1::CloudRunRewrite
A configured rewrite that will direct any requests to a Cloud Run service. If
the Cloud Run service does not exist when setting or updating your Firebase
Hosting configuration then the request will fail. Any errors from the Cloud
Run service (including when the service has been deleted) will be passed back
down to the end user.
Corresponds to the JSON property run
593 594 595 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 593 def run @run end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
600 601 602 603 604 605 606 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 600 def update!(**args) @dynamic_links = args[:dynamic_links] if args.key?(:dynamic_links) @function = args[:function] if args.key?(:function) @glob = args[:glob] if args.key?(:glob) @path = args[:path] if args.key?(:path) @run = args[:run] if args.key?(:run) end |