mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-02-04 02:05:30 +00:00
[GitHub Bot] Generated python SDK
This commit is contained in:
parent
c5916a3b66
commit
2500bd8515
@ -12,7 +12,7 @@ This API provides the following operations to manage your organization:
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ Manage Cloud and Enterprise Agents available to your account in ThousandEyes.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ For more information about the alerts, see [Alerts](https://docs.thousandeyes.co
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
Create alert rule
|
||||
|
||||
Creates a new alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Creates a new alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
### Example
|
||||
|
||||
@ -103,7 +103,7 @@ Name | Type | Description | Notes
|
||||
|
||||
Delete alert rule
|
||||
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs.
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
### Example
|
||||
|
||||
@ -186,7 +186,7 @@ void (empty response body)
|
||||
|
||||
Retrieve alert rule
|
||||
|
||||
Returns detailed information about an alert rule using the `ruleId`. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
Returns detailed information about an alert rule using the `ruleId`. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
|
||||
### Example
|
||||
|
||||
@ -271,7 +271,7 @@ Name | Type | Description | Notes
|
||||
|
||||
List alert rules
|
||||
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types.
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
### Example
|
||||
|
||||
@ -354,7 +354,7 @@ Name | Type | Description | Notes
|
||||
|
||||
Update alert rule
|
||||
|
||||
Modifies an existing alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Modifies an existing alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@ -65,7 +65,7 @@ class AlertRulesApi:
|
||||
) -> Rule:
|
||||
"""Create alert rule
|
||||
|
||||
Creates a new alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Creates a new alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
:param rule_detail_update: (required)
|
||||
:type rule_detail_update: RuleDetailUpdate
|
||||
@ -143,7 +143,7 @@ class AlertRulesApi:
|
||||
) -> ApiResponse[Rule]:
|
||||
"""Create alert rule
|
||||
|
||||
Creates a new alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Creates a new alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
:param rule_detail_update: (required)
|
||||
:type rule_detail_update: RuleDetailUpdate
|
||||
@ -221,7 +221,7 @@ class AlertRulesApi:
|
||||
) -> RESTResponseType:
|
||||
"""Create alert rule
|
||||
|
||||
Creates a new alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Creates a new alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to create an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
:param rule_detail_update: (required)
|
||||
:type rule_detail_update: RuleDetailUpdate
|
||||
@ -375,7 +375,7 @@ class AlertRulesApi:
|
||||
) -> None:
|
||||
"""Delete alert rule
|
||||
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs.
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -453,7 +453,7 @@ class AlertRulesApi:
|
||||
) -> ApiResponse[None]:
|
||||
"""Delete alert rule
|
||||
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs.
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -531,7 +531,7 @@ class AlertRulesApi:
|
||||
) -> RESTResponseType:
|
||||
"""Delete alert rule
|
||||
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs.
|
||||
Deletes an alert rule from your account. Users must have both `Edit alert rules` and `Edit tests` permissions, especially if the rule is linked to any tests. Without these permissions, an error occurs. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -671,7 +671,7 @@ class AlertRulesApi:
|
||||
) -> RuleDetail:
|
||||
"""Retrieve alert rule
|
||||
|
||||
Returns detailed information about an alert rule using the `ruleId`. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
Returns detailed information about an alert rule using the `ruleId`. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -748,7 +748,7 @@ class AlertRulesApi:
|
||||
) -> ApiResponse[RuleDetail]:
|
||||
"""Retrieve alert rule
|
||||
|
||||
Returns detailed information about an alert rule using the `ruleId`. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
Returns detailed information about an alert rule using the `ruleId`. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -825,7 +825,7 @@ class AlertRulesApi:
|
||||
) -> RESTResponseType:
|
||||
"""Retrieve alert rule
|
||||
|
||||
Returns detailed information about an alert rule using the `ruleId`. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
Returns detailed information about an alert rule using the `ruleId`. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. If the `ruleId` doesn’t exist or is inaccessible by your account, an empty response is returned.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -964,7 +964,7 @@ class AlertRulesApi:
|
||||
) -> Rules:
|
||||
"""List alert rules
|
||||
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types.
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
:param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
|
||||
:type aid: str
|
||||
@ -1037,7 +1037,7 @@ class AlertRulesApi:
|
||||
) -> ApiResponse[Rules]:
|
||||
"""List alert rules
|
||||
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types.
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
:param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
|
||||
:type aid: str
|
||||
@ -1110,7 +1110,7 @@ class AlertRulesApi:
|
||||
) -> RESTResponseType:
|
||||
"""List alert rules
|
||||
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types.
|
||||
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests.
|
||||
|
||||
:param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
|
||||
:type aid: str
|
||||
@ -1245,7 +1245,7 @@ class AlertRulesApi:
|
||||
) -> Rule:
|
||||
"""Update alert rule
|
||||
|
||||
Modifies an existing alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Modifies an existing alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -1327,7 +1327,7 @@ class AlertRulesApi:
|
||||
) -> ApiResponse[Rule]:
|
||||
"""Update alert rule
|
||||
|
||||
Modifies an existing alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Modifies an existing alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
@ -1409,7 +1409,7 @@ class AlertRulesApi:
|
||||
) -> RESTResponseType:
|
||||
"""Update alert rule
|
||||
|
||||
Modifies an existing alert rule in your account, using the provided POST data. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
Modifies an existing alert rule in your account, using the provided POST data. This endpoint is limited to alert rules for Network & App Synthetics tests and Routing tests. The `Edit alert rules` permission is required to modify an alert rule. Note: Assigning an alert rule to a test during creation requires the `Edit tests` permission.
|
||||
|
||||
:param rule_id: Unique alert rule ID. (required)
|
||||
:type rule_id: str
|
||||
|
||||
@ -9,7 +9,7 @@ For more information about monitors, see [Inside-Out BGP Visibility](https://doc
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ For more information about credentials, see [Working With Secure Credentials](ht
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ Manage ThousandEyes Dashboards.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ To access Emulation API operations, the following permissions are required:
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ For more information about Endpoint Agents, see [Endpoint Agents](https://docs.t
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ The URLs for these API test data endpoints are provided within the test definiti
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ Manage labels applied to endpoint agents using this API.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ Retrieve results for scheduled and dynamic tests on endpoint agents.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ With the Events API, you can perform the following tasks on the ThousandEyes pla
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -123,6 +123,11 @@ class AgentLocalEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -123,6 +123,11 @@ class DnsEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -107,6 +107,11 @@ class Event(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of links
|
||||
if self.links:
|
||||
_dict['_links'] = self.links.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -109,6 +109,11 @@ class EventDetailBase(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of links
|
||||
if self.links:
|
||||
_dict['_links'] = self.links.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -123,6 +123,11 @@ class NetworkEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -123,6 +123,11 @@ class NetworkPopEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -123,6 +123,11 @@ class ProxyEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -84,6 +84,11 @@ class SimpleEventDetail(BaseModel):
|
||||
exclude=excluded_fields,
|
||||
exclude_none=True,
|
||||
)
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -123,6 +123,11 @@ class TargetEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -123,6 +123,11 @@ class TargetNetworkEventDetail(BaseModel):
|
||||
# override the default output from pydantic by calling `to_dict()` of grouping
|
||||
if self.grouping:
|
||||
_dict['grouping'] = self.grouping.to_dict()
|
||||
# set to None if end_date (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.end_date is None and "end_date" in self.model_fields_set:
|
||||
_dict['endDate'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -6,7 +6,7 @@ The response does not include the immediate test results. Use the Test Results e
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ For more information about Internet Insights, see the [Internet Insights](https:
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ Creates a new test snapshot in ThousandEyes.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ For more information about ThousandEyes for OpenTelemetry, see the [product docu
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ Things to note with the ThousandEyes Tags API:
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ Get test result metrics for Network and Application Synthetics tests.
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ This API allows you to list, create, edit, and delete Network and Application Sy
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ Refer to the Usage API operations for detailed usage instructions and optional p
|
||||
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 7.0.71
|
||||
- API version: 7.0.72
|
||||
- Generator version: 7.6.0
|
||||
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user