Class: Google::Apis::FirebasehostingV1beta1::ServingConfig
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::ServingConfig
- 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
The configuration for how incoming requests to a site should be routed and processed before serving content. The patterns are matched and applied according to a specific priority order.
Instance Attribute Summary collapse
-
#app_association ⇒ String
How to handle well known App Association files.
-
#clean_urls ⇒ Boolean
(also: #clean_urls?)
Defines whether to drop the file extension from uploaded files.
-
#headers ⇒ Array<Google::Apis::FirebasehostingV1beta1::Header>
A list of custom response headers that are added to the content if the request URL path matches the glob.
-
#redirects ⇒ Array<Google::Apis::FirebasehostingV1beta1::Redirect>
A list of globs that will cause the response to redirect to another location.
-
#rewrites ⇒ Array<Google::Apis::FirebasehostingV1beta1::Rewrite>
A list of rewrites that will act as if the service were given the destination URL.
-
#trailing_slash_behavior ⇒ String
Defines how to handle a trailing slash in the URL path.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServingConfig
constructor
A new instance of ServingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServingConfig
Returns a new instance of ServingConfig.
847 848 849 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_association ⇒ String
How to handle well known App Association files.
Corresponds to the JSON property appAssociation
816 817 818 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 816 def app_association @app_association end |
#clean_urls ⇒ Boolean Also known as: clean_urls?
Defines whether to drop the file extension from uploaded files.
Corresponds to the JSON property cleanUrls
821 822 823 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 821 def clean_urls @clean_urls end |
#headers ⇒ Array<Google::Apis::FirebasehostingV1beta1::Header>
A list of custom response headers that are added to the content if the
request URL path matches the glob.
Corresponds to the JSON property headers
828 829 830 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 828 def headers @headers end |
#redirects ⇒ Array<Google::Apis::FirebasehostingV1beta1::Redirect>
A list of globs that will cause the response to redirect to another
location.
Corresponds to the JSON property redirects
834 835 836 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 834 def redirects @redirects end |
#rewrites ⇒ Array<Google::Apis::FirebasehostingV1beta1::Rewrite>
A list of rewrites that will act as if the service were given the
destination URL.
Corresponds to the JSON property rewrites
840 841 842 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 840 def rewrites @rewrites end |
#trailing_slash_behavior ⇒ String
Defines how to handle a trailing slash in the URL path.
Corresponds to the JSON property trailingSlashBehavior
845 846 847 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 845 def trailing_slash_behavior @trailing_slash_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
852 853 854 855 856 857 858 859 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 852 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) @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 |