Class: Google::Apis::CloudtasksV2beta3::HeaderOverride

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudtasks_v2beta3/classes.rb,
lib/google/apis/cloudtasks_v2beta3/representations.rb,
lib/google/apis/cloudtasks_v2beta3/representations.rb

Overview

Wraps the Header object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HeaderOverride

Returns a new instance of HeaderOverride.



654
655
656
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 654

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

Instance Attribute Details

#headerGoogle::Apis::CloudtasksV2beta3::Header

Defines a header message. A header can have a key and a value. Corresponds to the JSON property header



652
653
654
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 652

def header
  @header
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



659
660
661
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 659

def update!(**args)
  @header = args[:header] if args.key?(:header)
end