Class: Google::Apis::ApimV1alpha::HttpOperationHeader

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpOperationHeader

Returns a new instance of HttpOperationHeader.

[View source]

316
317
318
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 316

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countFixnum

The number of occurrences of this Header across transactions. Corresponds to the JSON property count

Returns:

  • (Fixnum)

304
305
306
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 304

def count
  @count
end

#data_typeString

Data type of header Corresponds to the JSON property dataType

Returns:

  • (String)

309
310
311
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 309

def data_type
  @data_type
end

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)

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

[View source]

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