Class: Google::Apis::WebsecurityscannerV1alpha::Header
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1alpha::Header
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/websecurityscanner_v1alpha/classes.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb
Overview
Describes a HTTP Header.
Instance Attribute Summary collapse
-
#name ⇒ String
Header name.
-
#value ⇒ String
Header value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Header
Returns a new instance of Header
336 337 338 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Header name.
Corresponds to the JSON property name
329 330 331 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 329 def name @name end |
#value ⇒ String
Header value.
Corresponds to the JSON property value
334 335 336 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 334 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
341 342 343 344 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 341 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |