Class: Google::Apis::ApimV1alpha::HttpOperationHttpResponse
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::HttpOperationHttpResponse
- 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
-
#headers ⇒ Hash<String,Google::Apis::ApimV1alpha::HttpOperationHeader>
Unordered map from header name to header metadata Corresponds to the JSON property
headers
. -
#response_codes ⇒ Hash<String,Fixnum>
Map of status code to observed count Corresponds to the JSON property
responseCodes
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpOperationHttpResponse
constructor
A new instance of HttpOperationHttpResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpOperationHttpResponse
Returns a new instance of HttpOperationHttpResponse.
361 362 363 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 361 def initialize(**args) update!(**args) end |
Instance Attribute Details
#headers ⇒ Hash<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_codes ⇒ Hash<String,Fixnum>
Map of status code to observed count
Corresponds to the JSON property responseCodes
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
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 |