Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Header

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb

Overview

An aggregation of HTTP header occurrences.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1Header

Returns a new instance of GoogleCloudApihubV1Header.



2596
2597
2598
# File 'lib/google/apis/apihub_v1/classes.rb', line 2596

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)


2584
2585
2586
# File 'lib/google/apis/apihub_v1/classes.rb', line 2584

def count
  @count
end

#data_typeString

Data type of header Corresponds to the JSON property dataType

Returns:

  • (String)


2589
2590
2591
# File 'lib/google/apis/apihub_v1/classes.rb', line 2589

def data_type
  @data_type
end

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)


2594
2595
2596
# File 'lib/google/apis/apihub_v1/classes.rb', line 2594

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2601
2602
2603
2604
2605
# File 'lib/google/apis/apihub_v1/classes.rb', line 2601

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