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



556
557
558
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 556

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)


535
536
537
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 535

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)


542
543
544
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 542

def function
  @function
end

#globString

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

Returns:

  • (String)


549
550
551
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 549

def glob
  @glob
end

#pathString

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

Returns:

  • (String)


554
555
556
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 554

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



561
562
563
564
565
566
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 561

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)
end