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.



428
429
430
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 428

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)


416
417
418
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 416

def count
  @count
end

#data_typeString

Data type of header Corresponds to the JSON property dataType

Returns:

  • (String)


421
422
423
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 421

def data_type
  @data_type
end

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)


426
427
428
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 426

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



433
434
435
436
437
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 433

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