mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 14:36:50 +00:00
32 lines
1.3 KiB
Markdown
32 lines
1.3 KiB
Markdown
# ApiRequestAssertion
|
|
|
|
|
|
## Properties
|
|
|
|
Name | Type | Description | Notes
|
|
------------ | ------------- | ------------- | -------------
|
|
**name** | [**ApiRequestAssertionName**](ApiRequestAssertionName.md) | | [optional]
|
|
**operator** | [**ApiRequestAssertionOperator**](ApiRequestAssertionOperator.md) | | [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
|
|
|
|
```python
|
|
from thousandeyes_sdk.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]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
|
|
|