Class: Google::Apis::ApimV1alpha::HttpOperationHttpResponse

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 responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpOperationHttpResponse

Returns a new instance of HttpOperationHttpResponse.



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

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

Instance Attribute Details

#headersHash<String,Google::Apis::ApimV1alpha::HttpOperationHeader>

Unordered map from header name to header metadata Corresponds to the JSON property headers



419
420
421
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 419

def headers
  @headers
end

#response_codesHash<String,Fixnum>

Map of status code to observed count Corresponds to the JSON property responseCodes

Returns:

  • (Hash<String,Fixnum>)


424
425
426
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 424

def response_codes
  @response_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



431
432
433
434
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 431

def update!(**args)
  @headers = args[:headers] if args.key?(:headers)
  @response_codes = args[:response_codes] if args.key?(:response_codes)
end