Class: Google::Apis::FirebasehostingV1beta1::Header
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::Header
- 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 header
is an object that specifies a
URL pattern that, if matched to the request URL path, triggers Hosting to
apply the specified custom response headers.
Instance Attribute Summary collapse
-
#glob ⇒ String
The user-supplied glob to match against the request URL path.
-
#headers ⇒ Hash<String,String>
Required.
-
#regex ⇒ String
The user-supplied RE2 regular expression to match against the request URL path.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Header
Returns a new instance of Header.
429 430 431 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 429 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glob ⇒ String
The user-supplied glob to
match against the request URL path.
Corresponds to the JSON property glob
417 418 419 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 417 def glob @glob end |
#headers ⇒ Hash<String,String>
Required. The additional headers to add to the response.
Corresponds to the JSON property headers
422 423 424 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 422 def headers @headers end |
#regex ⇒ String
The user-supplied RE2 regular expression to match against the request URL path.
Corresponds to the JSON property regex
427 428 429 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 427 def regex @regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
434 435 436 437 438 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 434 def update!(**args) @glob = args[:glob] if args.key?(:glob) @headers = args[:headers] if args.key?(:headers) @regex = args[:regex] if args.key?(:regex) end |