InvokeResponse Class
Tuple class containing an HTTP Status Code and a JSON serializable object. The HTTP Status code is, in the invoke activity scenario, what will be set in the resulting POST. The Body of the resulting POST will be JSON serialized content.
The body content is defined by the producer. The caller must know what the content is and deserialize as needed.
Gets or sets the HTTP status and/or body code for the response :param status: The HTTP status code. :param body: The JSON serializable body content for the response. This object must be serializable by the core Python json routines. The caller is responsible for serializing more complex/nested objects into native classes (lists and dictionaries of strings are acceptable).
- Inheritance
-
msrest.serialization.ModelInvokeResponse
Constructor
InvokeResponse(*, status: int = None, body: object = None, **kwargs)
Keyword-Only Parameters
Name | Description |
---|---|
status
Required
|
|
body
Required
|
|
Methods
is_successful_status_code |
Gets a value indicating whether the invoke response was successful. :return: A value that indicates if the HTTP response was successful. true if status is in the Successful range (200-299); otherwise false. |
is_successful_status_code
Gets a value indicating whether the invoke response was successful. :return: A value that indicates if the HTTP response was successful. true if status is in the Successful range (200-299); otherwise false.
is_successful_status_code() -> bool