Class: Google::Apis::ApimV1alpha::HttpOperationHeader
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::HttpOperationHeader
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apim_v1alpha/classes.rb,
lib/google/apis/apim_v1alpha/representations.rb,
lib/google/apis/apim_v1alpha/representations.rb
Overview
An aggregation of HTTP header occurrences.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The number of occurrences of this Header across transactions.
-
#data_type ⇒ String
Data type of header Corresponds to the JSON property
dataType
. -
#name ⇒ String
Header name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpOperationHeader
constructor
A new instance of HttpOperationHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpOperationHeader
Returns a new instance of HttpOperationHeader.
381 382 383 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The number of occurrences of this Header across transactions.
Corresponds to the JSON property count
369 370 371 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 369 def count @count end |
#data_type ⇒ String
Data type of header
Corresponds to the JSON property dataType
374 375 376 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 374 def data_type @data_type end |
#name ⇒ String
Header name.
Corresponds to the JSON property name
379 380 381 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 379 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
386 387 388 389 390 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 386 def update!(**args) @count = args[:count] if args.key?(:count) @data_type = args[:data_type] if args.key?(:data_type) @name = args[:name] if args.key?(:name) end |