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
610 611 612 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 610 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
579 580 581 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 579 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
584 585 586 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 584 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
591 592 593 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 591 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
597 598 599 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 597 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
603 604 605 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 603 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
608 609 610 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 608 def trailing_slash_behavior @trailing_slash_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
615 616 617 618 619 620 621 622 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 615 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 |