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.



357
358
359
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 357

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)


344
345
346
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 344

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


349
350
351
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 349

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)


355
356
357
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 355

def regex
  @regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



362
363
364
365
366
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 362

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