Class: Google::Apis::FirebasehostingV1beta1::ServingConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_associationString

How to handle well known App Association files. Corresponds to the JSON property appAssociation

Returns:

  • (String)


816
817
818
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 816

def app_association
  @app_association
end

#clean_urlsBoolean Also known as: clean_urls?

Defines whether to drop the file extension from uploaded files. Corresponds to the JSON property cleanUrls

Returns:

  • (Boolean)


821
822
823
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 821

def clean_urls
  @clean_urls
end

#headersArray<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

#redirectsArray<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

#rewritesArray<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_behaviorString

Defines how to handle a trailing slash in the URL path. Corresponds to the JSON property trailingSlashBehavior

Returns:

  • (String)


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