class Google::Apis::FirebasehostingV1beta1::ServingConfig
The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific [priority order](https:// firebase.google.com/docs/hosting/full-config#hosting_priority_order).
Attributes
How to handle well known App Association files. Corresponds to the JSON property `appAssociation` @return [String]
Defines whether to drop the file extension from uploaded files. Corresponds to the JSON property `cleanUrls` @return [Boolean]
Defines whether to drop the file extension from uploaded files. Corresponds to the JSON property `cleanUrls` @return [Boolean]
An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers. Corresponds to the JSON property `headers` @return [Array<Google::Apis::FirebasehostingV1beta1::Header>]
If provided, i18n rewrites are enabled. Corresponds to the JSON property `i18n` @return [Google::Apis::FirebasehostingV1beta1::I18nConfig]
An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path. Corresponds to the JSON property `redirects` @return [Array<Google::Apis::FirebasehostingV1beta1::Redirect>]
An array of objects (called rewrite rules), where each rule 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. Corresponds to the JSON property `rewrites` @return [Array<Google::Apis::FirebasehostingV1beta1::Rewrite>]
Defines how to handle a trailing slash in the URL path. Corresponds to the JSON property `trailingSlashBehavior` @return [String]
Public Class Methods
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 972 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 977 def update!(**args) @app_association = args[:app_association] if args.key?(:app_association) @clean_urls = args[:clean_urls] if args.key?(:clean_urls) @headers = args[:headers] if args.key?(:headers) @i18n = args[:i18n] if args.key?(:i18n) @redirects = args[:redirects] if args.key?(:redirects) @rewrites = args[:rewrites] if args.key?(:rewrites) @trailing_slash_behavior = args[:trailing_slash_behavior] if args.key?(:trailing_slash_behavior) end