Skip to content

Commit ebbdbcb

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

File tree

47 files changed

+62
-47
lines changed

Some content is hidden

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

47 files changed

+62
-47
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.65
15+
- API version: 7.0.66
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.65
8+
- API version: 7.0.66
99
- Generator version: 7.6.0
1010
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1111

thousandeyes-sdk-alerts/README.md

Lines changed: 1 addition & 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.65
15+
- API version: 7.0.66
1616
- Generator version: 7.6.0
1717
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1818

thousandeyes-sdk-bgp-monitors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For more information about monitors, see [Inside-Out BGP Visibility](https://doc
99

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

12-
- API version: 7.0.65
12+
- API version: 7.0.66
1313
- Generator version: 7.6.0
1414
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1515

thousandeyes-sdk-credentials/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For more information about credentials, see [Working With Secure Credentials](ht
1313

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

16-
- API version: 7.0.65
16+
- API version: 7.0.66
1717
- Generator version: 7.6.0
1818
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
1919

thousandeyes-sdk-dashboards/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Manage ThousandEyes Dashboards.
33

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

6-
- API version: 7.0.65
6+
- API version: 7.0.66
77
- Generator version: 7.6.0
88
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
99

thousandeyes-sdk-dashboards/docs/ApiMultiMetricColumn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**metric** | [**DashboardMetric**](DashboardMetric.md) | | [optional]
1414
**filters** | **Dict[str, List[object]]** | (Optional) Specifies the filters applied to the widget. When present, the &#x60;filters&#x60; property displays. Each filter object has two properties: &#x60;filterProperty&#x60; and &#x60;filterValue&#x60;. The &#x60;filterProperty&#x60; can be values like &#x60;AGENT&#x60;, &#x60;ENDPOINT_MACHINE_ID&#x60;, &#x60;TEST&#x60;, &#x60;MONITOR&#x60;, etc. The &#x60;filterValue&#x60; represents an identifier array of the selected property. | [optional]
1515
**measure** | [**ApiWidgetMeasure**](ApiWidgetMeasure.md) | | [optional]
16+
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]
1617

1718
## Example
1819

thousandeyes-sdk-dashboards/docs/ApiNumbersCard.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**direction** | [**DashboardMetricDirection**](DashboardMetricDirection.md) | | [optional]
2121
**metric** | [**DashboardMetric**](DashboardMetric.md) | | [optional]
2222
**filters** | **Dict[str, List[object]]** | (Optional) Specifies the filters applied to the widget. When present, the &#x60;filters&#x60; property displays. Each filter object has two properties: &#x60;filterProperty&#x60; and &#x60;filterValue&#x60;. The &#x60;filterProperty&#x60; can be values like &#x60;AGENT&#x60;, &#x60;ENDPOINT_MACHINE_ID&#x60;, &#x60;TEST&#x60;, &#x60;MONITOR&#x60;, etc. The &#x60;filterValue&#x60; represents an identifier array of the selected property. | [optional]
23+
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]
2324

2425
## Example
2526

thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/models/api_multi_metric_column.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from thousandeyes_sdk.dashboards.models.dashboard_metric_direction import DashboardMetricDirection
2424
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
2525
from thousandeyes_sdk.dashboards.models.multi_metrics_table_datasource import MultiMetricsTableDatasource
26+
from thousandeyes_sdk.dashboards.models.self_links import SelfLinks
2627
from typing import Optional, Set
2728
from typing_extensions import Self
2829

@@ -37,7 +38,8 @@ class ApiMultiMetricColumn(BaseModel):
3738
metric: Optional[DashboardMetric] = None
3839
filters: Optional[Dict[str, List[Any]]] = Field(default=None, description="(Optional) Specifies the filters applied to the widget. When present, the `filters` property displays. Each filter object has two properties: `filterProperty` and `filterValue`. The `filterProperty` can be values like `AGENT`, `ENDPOINT_MACHINE_ID`, `TEST`, `MONITOR`, etc. The `filterValue` represents an identifier array of the selected property.")
3940
measure: Optional[ApiWidgetMeasure] = None
40-
__properties: ClassVar[List[str]] = ["id", "dataSource", "metricGroup", "direction", "metric", "filters", "measure"]
41+
links: Optional[SelfLinks] = Field(default=None, alias="_links")
42+
__properties: ClassVar[List[str]] = ["id", "dataSource", "metricGroup", "direction", "metric", "filters", "measure", "_links"]
4143

4244
model_config = ConfigDict(
4345
populate_by_name=True,
@@ -82,6 +84,9 @@ def to_dict(self) -> Dict[str, Any]:
8284
# override the default output from pydantic by calling `to_dict()` of measure
8385
if self.measure:
8486
_dict['measure'] = self.measure.to_dict()
87+
# override the default output from pydantic by calling `to_dict()` of links
88+
if self.links:
89+
_dict['_links'] = self.links.to_dict()
8590
return _dict
8691

8792
@classmethod
@@ -100,7 +105,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
100105
"direction": obj.get("direction"),
101106
"metric": obj.get("metric"),
102107
"filters": obj.get("filters"),
103-
"measure": ApiWidgetMeasure.from_dict(obj["measure"]) if obj.get("measure") is not None else None
108+
"measure": ApiWidgetMeasure.from_dict(obj["measure"]) if obj.get("measure") is not None else None,
109+
"_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None
104110
})
105111
return _obj
106112

thousandeyes-sdk-dashboards/src/thousandeyes_sdk/dashboards/models/api_numbers_card.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from thousandeyes_sdk.dashboards.models.dashboard_metric_direction import DashboardMetricDirection
2626
from thousandeyes_sdk.dashboards.models.metric_group import MetricGroup
2727
from thousandeyes_sdk.dashboards.models.numbers_card_datasource import NumbersCardDatasource
28+
from thousandeyes_sdk.dashboards.models.self_links import SelfLinks
2829
from typing import Optional, Set
2930
from typing_extensions import Self
3031

@@ -46,7 +47,8 @@ class ApiNumbersCard(BaseModel):
4647
direction: Optional[DashboardMetricDirection] = None
4748
metric: Optional[DashboardMetric] = None
4849
filters: Optional[Dict[str, List[Any]]] = Field(default=None, description="(Optional) Specifies the filters applied to the widget. When present, the `filters` property displays. Each filter object has two properties: `filterProperty` and `filterValue`. The `filterProperty` can be values like `AGENT`, `ENDPOINT_MACHINE_ID`, `TEST`, `MONITOR`, etc. The `filterValue` represents an identifier array of the selected property.")
49-
__properties: ClassVar[List[str]] = ["minScale", "maxScale", "unit", "id", "description", "measure", "compareToPreviousValue", "fixedTimespan", "shouldExcludeAlertSuppressionWindows", "dataSource", "metricGroup", "direction", "metric", "filters"]
50+
links: Optional[SelfLinks] = Field(default=None, alias="_links")
51+
__properties: ClassVar[List[str]] = ["minScale", "maxScale", "unit", "id", "description", "measure", "compareToPreviousValue", "fixedTimespan", "shouldExcludeAlertSuppressionWindows", "dataSource", "metricGroup", "direction", "metric", "filters", "_links"]
5052

5153
model_config = ConfigDict(
5254
populate_by_name=True,
@@ -94,6 +96,9 @@ def to_dict(self) -> Dict[str, Any]:
9496
# override the default output from pydantic by calling `to_dict()` of fixed_timespan
9597
if self.fixed_timespan:
9698
_dict['fixedTimespan'] = self.fixed_timespan.to_dict()
99+
# override the default output from pydantic by calling `to_dict()` of links
100+
if self.links:
101+
_dict['_links'] = self.links.to_dict()
97102
return _dict
98103

99104
@classmethod
@@ -119,7 +124,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
119124
"metricGroup": obj.get("metricGroup"),
120125
"direction": obj.get("direction"),
121126
"metric": obj.get("metric"),
122-
"filters": obj.get("filters")
127+
"filters": obj.get("filters"),
128+
"_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None
123129
})
124130
return _obj
125131

0 commit comments

Comments
 (0)