Class: Google::Cloud::NetworkServices::V1::HttpRoute::HttpDirectResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkservices/v1/http_route.rb

Overview

Static HTTP response object to be returned.

Instance Attribute Summary collapse

Instance Attribute Details

#bytes_body::String

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



575
576
577
578
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 575

class HttpDirectResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#status::Integer

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



575
576
577
578
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 575

class HttpDirectResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#string_body::String

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



575
576
577
578
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 575

class HttpDirectResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end