Skip to content

Commit cd1d84e

Browse files
mpragosa-teAPI Team
andauthored
[GitHub Bot] Generated python SDK (#106)
Co-authored-by: API Team <[email protected]>
1 parent 601dbe3 commit cd1d84e

File tree

227 files changed

+3506
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+3506
-184
lines changed

thousandeyes-sdk-administrative/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This API provides the following operations to manage your organization:
1212

1313
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1414

15-
- API version: 7.0.44
15+
- API version: 7.0.52
1616
- Generator version: 7.6.0
1717
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1818

thousandeyes-sdk-agents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Manage Cloud and Enterprise Agents available to your account in ThousandEyes.
55

66
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
77

8-
- API version: 7.0.44
8+
- API version: 7.0.52
99
- Generator version: 7.6.0
1010
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1111

thousandeyes-sdk-alerts/.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ docs/Error.md
3434
docs/ExpandAlertTestOptions.md
3535
docs/IntervalType.md
3636
docs/LegacyAlert.md
37+
docs/LegacyAlertDetail.md
3738
docs/Link.md
3839
docs/NotificationCustomWebhook.md
3940
docs/NotificationEmail.md
@@ -99,6 +100,7 @@ src/thousandeyes_sdk/alerts/models/error.py
99100
src/thousandeyes_sdk/alerts/models/expand_alert_test_options.py
100101
src/thousandeyes_sdk/alerts/models/interval_type.py
101102
src/thousandeyes_sdk/alerts/models/legacy_alert.py
103+
src/thousandeyes_sdk/alerts/models/legacy_alert_detail.py
102104
src/thousandeyes_sdk/alerts/models/link.py
103105
src/thousandeyes_sdk/alerts/models/notification_custom_webhook.py
104106
src/thousandeyes_sdk/alerts/models/notification_email.py

thousandeyes-sdk-alerts/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For more information about the alerts, see [Alerts](https://docs.thousandeyes.co
1212

1313
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1414

15-
- API version: 7.0.44
15+
- API version: 7.0.52
1616
- Generator version: 7.6.0
1717
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1818

@@ -150,6 +150,7 @@ Class | Method | HTTP request | Description
150150
- [ExpandAlertTestOptions](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/ExpandAlertTestOptions.md)
151151
- [IntervalType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/IntervalType.md)
152152
- [LegacyAlert](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/LegacyAlert.md)
153+
- [LegacyAlertDetail](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/LegacyAlertDetail.md)
153154
- [Link](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/Link.md)
154155
- [NotificationCustomWebhook](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/NotificationCustomWebhook.md)
155156
- [NotificationEmail](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/NotificationEmail.md)

thousandeyes-sdk-alerts/docs/AlertDetail.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
1616
**links** | [**AlertLinks**](AlertLinks.md) | | [optional]
1717
**state** | [**State**](State.md) | | [optional]
1818
**severity** | [**Severity**](Severity.md) | | [optional]
19+
**alert_state** | [**State**](State.md) | | [optional]
20+
**alert_severity** | [**Severity**](Severity.md) | | [optional]
1921
**details** | [**List[AlertMetricDetail]**](AlertMetricDetail.md) | | [optional]
2022

2123
## Example

thousandeyes-sdk-alerts/docs/AlertSuppressionWindowRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
**duration** | **int** | Duration in seconds the suppression window is active. | [optional]
1414
**repeat** | [**Repeat**](Repeat.md) | | [optional]
1515
**end_repeat** | [**EndRepeat**](EndRepeat.md) | | [optional]
16-
**tests** | **List[str]** | List of tests to assign to the alert suppression window. | [optional]
16+
**test_ids** | **List[str]** | List of test IDs to assign to the alert suppression window. | [optional]
1717

1818
## Example
1919

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# LegacyAlertDetail
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**state** | [**State**](State.md) | | [optional]
9+
**severity** | [**Severity**](Severity.md) | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from thousandeyes_sdk.alerts.models.legacy_alert_detail import LegacyAlertDetail
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of LegacyAlertDetail from a JSON string
19+
legacy_alert_detail_instance = LegacyAlertDetail.from_json(json)
20+
# print the JSON string representation of the object
21+
print(LegacyAlertDetail.to_json())
22+
23+
# convert the object into a dict
24+
legacy_alert_detail_dict = legacy_alert_detail_instance.to_dict()
25+
# create an instance of LegacyAlertDetail from a dict
26+
legacy_alert_detail_from_dict = LegacyAlertDetail.from_dict(legacy_alert_detail_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
from thousandeyes_sdk.alerts.models.expand_alert_test_options import ExpandAlertTestOptions
5151
from thousandeyes_sdk.alerts.models.interval_type import IntervalType
5252
from thousandeyes_sdk.alerts.models.legacy_alert import LegacyAlert
53+
from thousandeyes_sdk.alerts.models.legacy_alert_detail import LegacyAlertDetail
5354
from thousandeyes_sdk.alerts.models.link import Link
5455
from thousandeyes_sdk.alerts.models.notification_custom_webhook import NotificationCustomWebhook
5556
from thousandeyes_sdk.alerts.models.notification_email import NotificationEmail

thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from thousandeyes_sdk.alerts.models.expand_alert_test_options import ExpandAlertTestOptions
4444
from thousandeyes_sdk.alerts.models.interval_type import IntervalType
4545
from thousandeyes_sdk.alerts.models.legacy_alert import LegacyAlert
46+
from thousandeyes_sdk.alerts.models.legacy_alert_detail import LegacyAlertDetail
4647
from thousandeyes_sdk.alerts.models.link import Link
4748
from thousandeyes_sdk.alerts.models.notification_custom_webhook import NotificationCustomWebhook
4849
from thousandeyes_sdk.alerts.models.notification_email import NotificationEmail

thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_detail.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ class AlertDetail(BaseModel):
4343
links: Optional[AlertLinks] = Field(default=None, alias="_links")
4444
state: Optional[State] = None
4545
severity: Optional[Severity] = None
46+
alert_state: Optional[State] = Field(default=None, alias="alertState")
47+
alert_severity: Optional[Severity] = Field(default=None, alias="alertSeverity")
4648
details: Optional[List[AlertMetricDetail]] = None
47-
__properties: ClassVar[List[str]] = ["id", "alertType", "startDate", "endDate", "violationCount", "duration", "suppressed", "meta", "_links", "state", "severity", "details"]
49+
__properties: ClassVar[List[str]] = ["id", "alertType", "startDate", "endDate", "violationCount", "duration", "suppressed", "meta", "_links", "state", "severity", "alertState", "alertSeverity", "details"]
4850

4951
model_config = ConfigDict(
5052
populate_by_name=True,
@@ -128,6 +130,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
128130
"_links": AlertLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
129131
"state": obj.get("state"),
130132
"severity": obj.get("severity"),
133+
"alertState": obj.get("alertState"),
134+
"alertSeverity": obj.get("alertSeverity"),
131135
"details": [AlertMetricDetail.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None
132136
})
133137
return _obj

0 commit comments

Comments
 (0)