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 more...
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.
316 317 318 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 316 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
304 305 306 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 304 def count @count end |
#data_type ⇒ String
Data type of header
Corresponds to the JSON property dataType
309 310 311 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 309 def data_type @data_type end |
#name ⇒ String
Header name.
Corresponds to the JSON property name
314 315 316 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 314 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
321 322 323 324 325 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 321 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 |