Class: Google::Apis::NetworkservicesV1::HttpRouteHttpDirectResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Overview

Static HTTP response object to be returned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpRouteHttpDirectResponse

Returns a new instance of HttpRouteHttpDirectResponse.



1682
1683
1684
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1682

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bytes_bodyString

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.

Returns:

  • (String)


1669
1670
1671
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1669

def bytes_body
  @bytes_body
end

#statusFixnum

Required. Status to return as part of HTTP Response. Must be a positive integer. Corresponds to the JSON property status

Returns:

  • (Fixnum)


1675
1676
1677
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1675

def status
  @status
end

#string_bodyString

Optional. Response body as a string. Maximum body length is 1024 characters. Corresponds to the JSON property stringBody

Returns:

  • (String)


1680
1681
1682
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1680

def string_body
  @string_body
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1687
1688
1689
1690
1691
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1687

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