Class: Google::Apis::CloudtasksV2::HeaderOverride

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#headerGoogle::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