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
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.
426 427 428 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 426 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
419 420 421 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 419 def headers @headers end |
#response_codes ⇒ Hash<String,Fixnum>
Map of status code to observed count
Corresponds to the JSON property responseCodes
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 |