Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::HttpDirectResponse (v2.2.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::HttpDirectResponse.

Static HTTP response object to be returned.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#bytes_body

def bytes_body() -> ::String
Returns
  • (::String) — Optional. Response body as bytes. Maximum body size is 4096B.

    Note: The following fields are mutually exclusive: bytes_body, string_body. If a field in that set is populated, all other fields in the set will automatically be cleared.

#bytes_body=

def bytes_body=(value) -> ::String
Parameter
  • value (::String) — Optional. Response body as bytes. Maximum body size is 4096B.

    Note: The following fields are mutually exclusive: bytes_body, string_body. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Response body as bytes. Maximum body size is 4096B.

    Note: The following fields are mutually exclusive: bytes_body, string_body. If a field in that set is populated, all other fields in the set will automatically be cleared.

#status

def status() -> ::Integer
Returns
  • (::Integer) — Required. Status to return as part of HTTP Response. Must be a positive integer.

#status=

def status=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. Status to return as part of HTTP Response. Must be a positive integer.
Returns
  • (::Integer) — Required. Status to return as part of HTTP Response. Must be a positive integer.

#string_body

def string_body() -> ::String
Returns
  • (::String) — Optional. Response body as a string. Maximum body length is 1024 characters.

    Note: The following fields are mutually exclusive: string_body, bytes_body. If a field in that set is populated, all other fields in the set will automatically be cleared.

#string_body=

def string_body=(value) -> ::String
Parameter
  • value (::String) — Optional. Response body as a string. Maximum body length is 1024 characters.

    Note: The following fields are mutually exclusive: string_body, bytes_body. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Response body as a string. Maximum body length is 1024 characters.

    Note: The following fields are mutually exclusive: string_body, bytes_body. If a field in that set is populated, all other fields in the set will automatically be cleared.