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

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.

[View source]

361
362
363
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 361

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


354
355
356
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 354

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>)

359
360
361
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 359

def response_codes
  @response_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

366
367
368
369
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 366

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