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
608 609 610 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 608 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
577 578 579 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 577 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
582 583 584 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 582 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
589 590 591 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 589 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
595 596 597 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 595 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
601 602 603 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 601 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
606 607 608 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 606 def trailing_slash_behavior @trailing_slash_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
613 614 615 616 617 618 619 620 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 613 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 |