diff --git a/.apigentools-info b/.apigentools-info index 0229da83f6..d28740bc1a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-03-23 09:33:16.470820", - "spec_repo_commit": "c679afc" + "regenerated": "2021-03-23 10:52:34.560111", + "spec_repo_commit": "34cf37f" }, "v2": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-03-23 09:33:59.579846", - "spec_repo_commit": "c679afc" + "regenerated": "2021-03-23 10:53:14.043922", + "spec_repo_commit": "34cf37f" } } } \ No newline at end of file diff --git a/docs/v1/SyntheticsApi.md b/docs/v1/SyntheticsApi.md index fa1660c1ae..720cc1854a 100644 --- a/docs/v1/SyntheticsApi.md +++ b/docs/v1/SyntheticsApi.md @@ -483,7 +483,7 @@ with ApiClient(configuration) as api_client: locations=[ "locations_example", ], - message="message_example", + message="", monitor_id=1, name="name_example", options=SyntheticsTestOptions( @@ -2198,7 +2198,7 @@ with ApiClient(configuration) as api_client: locations=[ "locations_example", ], - message="message_example", + message="", monitor_id=1, name="name_example", options=SyntheticsTestOptions( diff --git a/docs/v1/SyntheticsBrowserTest.md b/docs/v1/SyntheticsBrowserTest.md index 0d31daa8ed..8756cb5d58 100644 --- a/docs/v1/SyntheticsBrowserTest.md +++ b/docs/v1/SyntheticsBrowserTest.md @@ -4,9 +4,9 @@ Object containing details about a Synthetic browser test. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**message** | **str** | Notification message associated with the test. Message can either be text or an empty string. | **config** | [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional] **locations** | **[str]** | Array of locations used to run the test. | [optional] -**message** | **str** | Notification message associated with the test. | [optional] **monitor_id** | **int** | The associated monitor ID. | [optional] **name** | **str** | Name of the test. | [optional] **options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional] diff --git a/src/datadog_api_client/v1/model/synthetics_browser_test.py b/src/datadog_api_client/v1/model/synthetics_browser_test.py index 82b8a40dba..e221aae957 100644 --- a/src/datadog_api_client/v1/model/synthetics_browser_test.py +++ b/src/datadog_api_client/v1/model/synthetics_browser_test.py @@ -80,9 +80,9 @@ def openapi_types(): """ lazy_import() return { + "message": (str,), # noqa: E501 "config": (SyntheticsBrowserTestConfig,), # noqa: E501 "locations": ([str],), # noqa: E501 - "message": (str,), # noqa: E501 "monitor_id": (int,), # noqa: E501 "name": (str,), # noqa: E501 "options": (SyntheticsTestOptions,), # noqa: E501 @@ -98,9 +98,9 @@ def discriminator(): return None attribute_map = { + "message": "message", # noqa: E501 "config": "config", # noqa: E501 "locations": "locations", # noqa: E501 - "message": "message", # noqa: E501 "monitor_id": "monitor_id", # noqa: E501 "name": "name", # noqa: E501 "options": "options", # noqa: E501 @@ -125,9 +125,12 @@ def discriminator(): ) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, message, *args, **kwargs): # noqa: E501 """SyntheticsBrowserTest - a model defined in OpenAPI + Args: + message (str): Notification message associated with the test. Message can either be text or an empty string. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -161,7 +164,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) config (SyntheticsBrowserTestConfig): [optional] # noqa: E501 locations ([str]): Array of locations used to run the test.. [optional] # noqa: E501 - message (str): Notification message associated with the test.. [optional] # noqa: E501 monitor_id (int): The associated monitor ID.. [optional] # noqa: E501 name (str): Name of the test.. [optional] # noqa: E501 options (SyntheticsTestOptions): [optional] # noqa: E501 @@ -196,6 +198,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.message = message for var_name, var_value in kwargs.items(): if ( var_name not in self.attribute_map diff --git a/src/datadog_api_client/v1/openapi.yaml b/src/datadog_api_client/v1/openapi.yaml index 608077d09c..4f5abbb13f 100644 --- a/src/datadog_api_client/v1/openapi.yaml +++ b/src/datadog_api_client/v1/openapi.yaml @@ -6747,7 +6747,9 @@ components: type: string type: array message: - description: Notification message associated with the test. + description: Notification message associated with the test. Message can + either be text or an empty string. + example: '' type: string monitor_id: description: The associated monitor ID. @@ -6776,6 +6778,8 @@ components: type: array type: $ref: '#/components/schemas/SyntheticsBrowserTestType' + required: + - message type: object SyntheticsBrowserTestConfig: description: Configuration object for a Synthetic browser test.