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



610
611
612
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 610

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)


579
580
581
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 579

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)


584
585
586
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 584

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



591
592
593
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 591

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



597
598
599
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 597

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



603
604
605
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 603

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)


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