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

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.



381
382
383
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 381

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)


369
370
371
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 369

def count
  @count
end

#data_typeString

Data type of header Corresponds to the JSON property dataType

Returns:

  • (String)


374
375
376
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 374

def data_type
  @data_type
end

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)


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