Class: Google::Apis::NetworkservicesV1beta1::HttpRouteHttpDirectResponse
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::HttpRouteHttpDirectResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
Static HTTP response object to be returned.
Instance Attribute Summary collapse
-
#bytes_body ⇒ String
Optional.
-
#status ⇒ Fixnum
Required.
-
#string_body ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpRouteHttpDirectResponse
constructor
A new instance of HttpRouteHttpDirectResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpRouteHttpDirectResponse
Returns a new instance of HttpRouteHttpDirectResponse.
1607 1608 1609 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bytes_body ⇒ String
Optional. Response body as bytes. Maximum body size is 4096B.
Corresponds to the JSON property bytesBody
NOTE: Values are automatically base64 encoded/decoded in the client library.
1594 1595 1596 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1594 def bytes_body @bytes_body end |
#status ⇒ Fixnum
Required. Status to return as part of HTTP Response. Must be a positive
integer.
Corresponds to the JSON property status
1600 1601 1602 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1600 def status @status end |
#string_body ⇒ String
Optional. Response body as a string. Maximum body length is 1024 characters.
Corresponds to the JSON property stringBody
1605 1606 1607 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1605 def string_body @string_body end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1612 1613 1614 1615 1616 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1612 def update!(**args) @bytes_body = args[:bytes_body] if args.key?(:bytes_body) @status = args[:status] if args.key?(:status) @string_body = args[:string_body] if args.key?(:string_body) end |