Skip to content

Make various fixes to synthetics models #437

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
May 14, 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-05-14 07:18:03.233995",
"spec_repo_commit": "cc429de"
"regenerated": "2021-05-14 12:55:54.385081",
"spec_repo_commit": "8dce4be"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-05-14 07:18:30.721525",
"spec_repo_commit": "cc429de"
"regenerated": "2021-05-14 12:56:19.479126",
"spec_repo_commit": "8dce4be"
}
}
}
4 changes: 2 additions & 2 deletions docs/v1/SyntheticsAPITest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Name | Type | Description | Notes
**config** | [**SyntheticsAPITestConfig**](SyntheticsAPITestConfig.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]
**monitor_id** | **int** | The associated monitor ID. | [optional] [readonly]
**name** | **str** | Name of the test. | [optional]
**options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
**public_id** | **str** | The public ID for the test. | [optional]
**public_id** | **str** | The public ID for the test. | [optional] [readonly]
**status** | [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
**subtype** | [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional]
**tags** | **[str]** | Array of tags attached to the test. | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/v1/SyntheticsBrowserTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ 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]
**monitor_id** | **int** | The associated monitor ID. | [optional]
**monitor_id** | **int** | The associated monitor ID. | [optional] [readonly]
**name** | **str** | Name of the test. | [optional]
**options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
**public_id** | **str** | The public ID of the test. | [optional]
**public_id** | **str** | The public ID of the test. | [optional] [readonly]
**status** | [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
**steps** | [**[SyntheticsStep]**](SyntheticsStep.md) | The steps of the test. | [optional]
**tags** | **[str]** | Array of tags attached to the test. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/SyntheticsGlobalVariableValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Value of the global variable.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **str** | Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. |
**secure** | **bool** | Determines if the variable is secure. | [optional]
**value** | **str** | Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. | [optional]

[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

Expand Down
4 changes: 2 additions & 2 deletions docs/v1/SyntheticsTestDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Name | Type | Description | Notes
**config** | [**SyntheticsTestConfig**](SyntheticsTestConfig.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]
**monitor_id** | **int** | The associated monitor ID. | [optional] [readonly]
**name** | **str** | Name of the test. | [optional]
**options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
**public_id** | **str** | The test public ID. | [optional]
**public_id** | **str** | The test public ID. | [optional] [readonly]
**status** | [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
**steps** | [**[SyntheticsStep]**](SyntheticsStep.md) | For browser test, the steps of the test. | [optional]
**subtype** | [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ def openapi_types():
and the value is attribute type.
"""
return {
"value": (str,), # noqa: E501
"secure": (bool,), # noqa: E501
"value": (str,), # noqa: E501
}

@cached_property
def discriminator():
return None

attribute_map = {
"value": "value", # noqa: E501
"secure": "secure", # noqa: E501
"value": "value", # noqa: E501
}

_composed_schemas = {}
Expand All @@ -92,12 +92,9 @@ def discriminator():
)

@convert_js_args_to_python_args
def __init__(self, value, *args, **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""SyntheticsGlobalVariableValue - a model defined in OpenAPI

Args:
value (str): Value of the global variable. When reading a global variable, the value will not be present if the variable is secure.

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 @@ -130,6 +127,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
secure (bool): Determines if the variable is secure.. [optional] # noqa: E501
value (str): Value of the global variable. When reading a global variable, the value will not be present if the variable is secure.. [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand All @@ -156,7 +154,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.value = value
for var_name, var_value in kwargs.items():
if (
var_name not in self.attribute_map
Expand Down
8 changes: 6 additions & 2 deletions src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7945,6 +7945,7 @@ components:
monitor_id:
description: The associated monitor ID.
format: int64
readOnly: true
type: integer
name:
description: Name of the test.
Expand All @@ -7953,6 +7954,7 @@ components:
$ref: '#/components/schemas/SyntheticsTestOptions'
public_id:
description: The public ID for the test.
readOnly: true
type: string
status:
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
Expand Down Expand Up @@ -8283,6 +8285,7 @@ components:
monitor_id:
description: The associated monitor ID.
format: int64
readOnly: true
type: integer
name:
description: Name of the test.
Expand All @@ -8291,6 +8294,7 @@ components:
$ref: '#/components/schemas/SyntheticsTestOptions'
public_id:
description: The public ID of the test.
readOnly: true
type: string
status:
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
Expand Down Expand Up @@ -8882,8 +8886,6 @@ components:
the value will not be present if the variable is secure.'
example: example-value
type: string
required:
- value
type: object
SyntheticsListTestsResponse:
description: Object containing an array of Synthetic tests configuration.
Expand Down Expand Up @@ -9304,6 +9306,7 @@ components:
monitor_id:
description: The associated monitor ID.
format: int64
readOnly: true
type: integer
name:
description: Name of the test.
Expand All @@ -9312,6 +9315,7 @@ components:
$ref: '#/components/schemas/SyntheticsTestOptions'
public_id:
description: The test public ID.
readOnly: true
type: string
status:
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
Expand Down
Loading