thousandeyes-sdk-python/thousandeyes-sdk-instant-tests/docs/ApiRequestAssertion.md
Jack Browne 92b9a0126c
CP-2126 Refactor HTTP client into shared package (#5)
* CP-2126 Refactor HTTP client into shared package

* CP-2126 Regenerate Python SDK
2024-05-23 11:57:23 +01:00

1.3 KiB

ApiRequestAssertion

Properties

Name Type Description Notes
name ApiRequestAssertionName [optional]
operator ApiRequestAssertionOperator [optional]
value str The value of the assertion. If name = `status-code`, the status code to assert. If name = `response-body`, the lookup value to assert. [optional]

Example

from thousandeyes_sdk.instant_tests.models.api_request_assertion import ApiRequestAssertion

# TODO update the JSON string below
json = "{}"
# create an instance of ApiRequestAssertion from a JSON string
api_request_assertion_instance = ApiRequestAssertion.from_json(json)
# print the JSON string representation of the object
print(ApiRequestAssertion.to_json())

# convert the object into a dict
api_request_assertion_dict = api_request_assertion_instance.to_dict()
# create an instance of ApiRequestAssertion from a dict
api_request_assertion_from_dict = ApiRequestAssertion.from_dict(api_request_assertion_dict)

[Back to Model list] [Back to API list] [Back to README]