Class: Google::Apis::FirebasehostingV1beta1::Header

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 header defines custom headers to add to a response should the request URL path match the pattern.

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

Returns a new instance of Header



318
319
320
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 318

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

Instance Attribute Details

#globString

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

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 305

def glob
  @glob
end

#headersHash<String,String>

Required. The additional headers to add to the response. Corresponds to the JSON property headers

Returns:

  • (Hash<String,String>)


310
311
312
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 310

def headers
  @headers
end

#regexString

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

Returns:

  • (String)


316
317
318
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 316

def regex
  @regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



323
324
325
326
327
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 323

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