Class: Google::Apis::CloudtasksV2::HeaderOverride
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2::HeaderOverride
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudtasks_v2/classes.rb,
lib/google/apis/cloudtasks_v2/representations.rb,
lib/google/apis/cloudtasks_v2/representations.rb
Overview
Wraps the Header object.
Instance Attribute Summary collapse
-
#header ⇒ Google::Apis::CloudtasksV2::Header
Defines a header message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HeaderOverride
constructor
A new instance of HeaderOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HeaderOverride
Returns a new instance of HeaderOverride.
627 628 629 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 627 def initialize(**args) update!(**args) end |
Instance Attribute Details
#header ⇒ Google::Apis::CloudtasksV2::Header
Defines a header message. A header can have a key and a value.
Corresponds to the JSON property header
625 626 627 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 625 def header @header end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
632 633 634 |
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 632 def update!(**args) @header = args[:header] if args.key?(:header) end |