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
defines custom headers to
add to a response should the request URL path match the pattern.
Instance Attribute Summary collapse
-
#glob ⇒ String
Required.
-
#headers ⇒ Hash<String,String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Header
Returns a new instance of Header
282 283 284 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 282 def initialize(**args) update!(**args) end |
Instance Attribute Details
#glob ⇒ String
Required. The user-supplied
glob pattern to match
against the request URL path.
Corresponds to the JSON property glob
275 276 277 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 275 def glob @glob end |
#headers ⇒ Hash<String,String>
Required. The additional headers to add to the response.
Corresponds to the JSON property headers
280 281 282 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 280 def headers @headers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
287 288 289 290 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 287 def update!(**args) @glob = args[:glob] if args.key?(:glob) @headers = args[:headers] if args.key?(:headers) end |