thousandeyes-sdk-python/thousandeyes-sdk-tests/docs/ApiRequest.md
Miguel Pragosa cd1d84e1a4
Some checks failed
Python CI / build (push) Has been cancelled
[GitHub Bot] Generated python SDK (#106)
Co-authored-by: API Team <api-team@thousandeyes.com>
2025-06-20 12:31:19 +01:00

48 lines
2.9 KiB
Markdown

# ApiRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assertions** | [**List[ApiRequestAssertion]**](ApiRequestAssertion.md) | List of assertion objects. | [optional]
**auth_type** | [**ApiRequestAuthType**](ApiRequestAuthType.md) | | [optional]
**bearer_token** | **str** | The bearer token if &#x60;authType &#x3D; bearer-token&#x60;. | [optional]
**body** | **str** | POST/PUT request body. Must be in JSON format. | [optional]
**client_authentication** | [**ApiClientAuthentication**](ApiClientAuthentication.md) | | [optional]
**client_id** | **str** | The application ID used when &#x60;authType&#x60; is set to \&quot;oauth2\&quot;. | [optional]
**client_secret** | **str** | The private client secret used when &#x60;authType&#x60; is set to \&quot;oauth2\&quot;. | [optional]
**collect_api_response** | **bool** | Set to &#x60;true&#x60; if API response body should be collected and saved. Set to &#x60;false&#x60; if API response body should not be saved. | [optional] [default to True]
**headers** | [**List[ApiRequestHeader]**](ApiRequestHeader.md) | Array of API Request Header objects. | [optional]
**method** | [**ApiRequestMethod**](ApiRequestMethod.md) | | [optional]
**name** | **str** | API step name, must be unique. |
**password** | **str** | The password if &#x60;authType &#x3D; basic&#x60;. | [optional]
**scope** | **str** | Application-specific scope values for the access token when &#x60;authType&#x60; is \&quot;oauth2\&quot;. | [optional]
**token_url** | **str** | The endpoint used to request the access token when &#x60;authType&#x60; is \&quot;oauth2\&quot;. | [optional]
**url** | **str** | Request url. Supports variables in the format &#x60;{{variableName}}&#x60;. |
**username** | **str** | The username if &#x60;authType &#x3D; basic&#x60;. | [optional]
**variables** | [**List[ApiRequestVariable]**](ApiRequestVariable.md) | Array of API post request variable objects. | [optional]
**verify_certificate** | **bool** | Ignore or acknowledge certificate errors. Set to false to ignore certificate errors. | [optional] [default to False]
**wait_time_ms** | **int** | Post request delay before executing the next API requests, in milliseconds. | [optional]
## Example
```python
from thousandeyes_sdk.tests.models.api_request import ApiRequest
# TODO update the JSON string below
json = "{}"
# create an instance of ApiRequest from a JSON string
api_request_instance = ApiRequest.from_json(json)
# print the JSON string representation of the object
print(ApiRequest.to_json())
# convert the object into a dict
api_request_dict = api_request_instance.to_dict()
# create an instance of ApiRequest from a dict
api_request_from_dict = ApiRequest.from_dict(api_request_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)