Class: Google::Apis::FirebasehostingV1beta1::Rewrite

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

A rewrite represents an internal content rewrite on the version. If the pattern matches, the request will be handled as if it were to the destination path specified in the configuration.

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) ⇒ Rewrite

Returns a new instance of Rewrite.



791
792
793
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 791

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

The request will be forwarded to Firebase Dynamic Links. Corresponds to the JSON property dynamicLinks

Returns:

  • (Boolean)


755
756
757
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 755

def dynamic_links
  @dynamic_links
end

#functionString

The function to proxy requests to. Must match the exported function name exactly. Corresponds to the JSON property function

Returns:

  • (String)


762
763
764
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 762

def function
  @function
end

#globString

The user-supplied glob pattern to match against the request URL path. Corresponds to the JSON property glob

Returns:

  • (String)


769
770
771
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 769

def glob
  @glob
end

#pathString

The URL path to rewrite the request to. Corresponds to the JSON property path

Returns:

  • (String)


774
775
776
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 774

def path
  @path
end

#regexString

The user-supplied RE2 regular expression to match against the request URL path. Corresponds to the JSON property regex

Returns:

  • (String)


780
781
782
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 780

def regex
  @regex
end

#runGoogle::Apis::FirebasehostingV1beta1::CloudRunRewrite

A configured rewrite that directs requests to a Cloud Run service. If the Cloud Run service does not exist when setting or updating your Firebase Hosting configuration, then the request fails. Any errors from the Cloud Run service are passed to the end user (for example, if you delete a service, any requests directed to that service receive a 404 error). Corresponds to the JSON property run



789
790
791
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 789

def run
  @run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



796
797
798
799
800
801
802
803
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 796

def update!(**args)
  @dynamic_links = args[:dynamic_links] if args.key?(:dynamic_links)
  @function = args[:function] if args.key?(:function)
  @glob = args[:glob] if args.key?(:glob)
  @path = args[:path] if args.key?(:path)
  @regex = args[:regex] if args.key?(:regex)
  @run = args[:run] if args.key?(:run)
end