Skip to content

Browser Test message required #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
4 changes: 2 additions & 2 deletions docs/v1/SyntheticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/SyntheticsBrowserTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
11 changes: 7 additions & 4 deletions src/datadog_api_client/v1/model/synthetics_browser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down