Skip to content
Closed
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
2 changes: 1 addition & 1 deletion thousandeyes-sdk-administrative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.75
- API version: 7.0.79
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def test_create_account_group_models_validation(self) -> None:
{
"accountGroupName" : "My testing account group",
"agents" : [ "105", "719" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.administrative.models.AccountGroupRequest.from_json(request_body_json)
Expand Down Expand Up @@ -505,7 +506,8 @@ def test_update_account_group_models_validation(self) -> None:
{
"accountGroupName" : "My testing account group",
"agents" : [ "105", "719" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.administrative.models.AccountGroupRequest.from_json(request_body_json)
Expand Down
6 changes: 4 additions & 2 deletions thousandeyes-sdk-administrative/test/test_roles_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def test_create_role_models_validation(self) -> None:
{
"permissions" : [ "56", "315" ],
"name" : "Organization Admin"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.administrative.models.RoleRequestBody.from_json(request_body_json)
Expand Down Expand Up @@ -155,7 +156,8 @@ def test_update_role_models_validation(self) -> None:
{
"permissions" : [ "56", "315" ],
"name" : "Organization Admin"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.administrative.models.RoleRequestBody.from_json(request_body_json)
Expand Down
6 changes: 4 additions & 2 deletions thousandeyes-sdk-administrative/test/test_users_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def test_create_user_models_validation(self) -> None:
"name" : "User X",
"allAccountGroupRoleIds" : [ "57", "1140" ],
"email" : "userx@thousandeyes.com"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.administrative.models.UserRequest.from_json(request_body_json)
Expand Down Expand Up @@ -336,7 +337,8 @@ def test_update_user_models_validation(self) -> None:
"name" : "User X",
"allAccountGroupRoleIds" : [ "57", "1140" ],
"email" : "userx@thousandeyes.com"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.administrative.models.UserRequest.from_json(request_body_json)
Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.75
- API version: 7.0.79
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def test_update_agent_models_validation(self) -> None:
"agentName" : "thousandeyes-stg-va-254",
"enabled" : true,
"accountGroups" : [ "1234", "1" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.agents.models.AgentRequest.from_json(request_body_json)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def test_assign_agent_to_cluster_models_validation(self) -> None:
request_body_json = """
{
"agents" : [ "281474976710706" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.agents.models.AgentClusterAssignRequest.from_json(request_body_json)
Expand Down Expand Up @@ -149,7 +150,8 @@ def test_unassign_agent_from_cluster_models_validation(self) -> None:
request_body_json = """
{
"members" : [ "281474976710706" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.agents.models.AgentClusterUnassignRequest.from_json(request_body_json)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def test_assign_tests_models_validation(self) -> None:
request_body_json = """
{
"testIds" : [ "281474976710706" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.agents.models.AgentTestsAssignRequest.from_json(request_body_json)
Expand Down Expand Up @@ -149,7 +150,8 @@ def test_overwrite_tests_models_validation(self) -> None:
request_body_json = """
{
"testIds" : [ "281474976710706" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.agents.models.AgentTestsAssignRequest.from_json(request_body_json)
Expand Down Expand Up @@ -265,7 +267,8 @@ def test_unassign_tests_models_validation(self) -> None:
request_body_json = """
{
"testIds" : [ "281474976710706" ]
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.agents.models.AgentTestsAssignRequest.from_json(request_body_json)
Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.75
- API version: 7.0.79
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
1 change: 1 addition & 0 deletions thousandeyes-sdk-alerts/docs/RuleDetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Name | Type | Description | Notes
**visited_sites_filter** | **List[str]** | A list of website domains visited during the session. This is applicable when `alertGroupType` is `browser-session`. | [optional]
**notifications** | [**AlertNotification**](AlertNotification.md) | | [optional]
**tests** | [**List[AlertSimpleTest]**](AlertSimpleTest.md) | | [optional] [readonly]
**test_ids** | **List[str]** | Array of test IDs to link to alert rule (get `testId` from `/tests` endpoint). | [optional] [readonly]
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ class RuleDetail(BaseModel):
visited_sites_filter: Optional[List[StrictStr]] = Field(default=None, description="A list of website domains visited during the session. This is applicable when `alertGroupType` is `browser-session`.", alias="visitedSitesFilter")
notifications: Optional[AlertNotification] = None
tests: Optional[List[AlertSimpleTest]] = None
test_ids: Optional[List[StrictStr]] = Field(default=None, description="Array of test IDs to link to alert rule (get `testId` from `/tests` endpoint).", alias="testIds")
links: Optional[SelfLinks] = Field(default=None, alias="_links")
__properties: ClassVar[List[str]] = ["ruleId", "ruleName", "expression", "description", "direction", "notifyOnClear", "isDefault", "alertType", "alertGroupType", "minimumSources", "minimumSourcesPct", "roundsViolatingMode", "roundsViolatingOutOf", "roundsViolatingRequired", "includeCoveredPrefixes", "sensitivityLevel", "severity", "endpointAgentIds", "endpointLabelIds", "visitedSitesFilter", "notifications", "tests", "_links"]
__properties: ClassVar[List[str]] = ["ruleId", "ruleName", "expression", "description", "direction", "notifyOnClear", "isDefault", "alertType", "alertGroupType", "minimumSources", "minimumSourcesPct", "roundsViolatingMode", "roundsViolatingOutOf", "roundsViolatingRequired", "includeCoveredPrefixes", "sensitivityLevel", "severity", "endpointAgentIds", "endpointLabelIds", "visitedSitesFilter", "notifications", "tests", "testIds", "_links"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -92,10 +93,12 @@ def to_dict(self) -> Dict[str, Any]:
are ignored.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
"""
excluded_fields: Set[str] = set([
"rule_id",
"tests",
"test_ids",
])

_dict = self.model_dump(
Expand Down Expand Up @@ -150,6 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"visitedSitesFilter": obj.get("visitedSitesFilter"),
"notifications": AlertNotification.from_dict(obj["notifications"]) if obj.get("notifications") is not None else None,
"tests": [AlertSimpleTest.from_dict(_item) for _item in obj["tests"]] if obj.get("tests") is not None else None,
"testIds": obj.get("testIds"),
"_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None
})
return _obj
Expand Down
7 changes: 5 additions & 2 deletions thousandeyes-sdk-alerts/test/test_alert_rules_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def test_create_alert_rule_models_validation(self) -> None:
} ]
},
"direction" : "to-target"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.alerts.models.RuleDetailUpdate.from_json(request_body_json)
Expand Down Expand Up @@ -201,6 +202,7 @@ def test_get_alert_rule_models_validation(self) -> None:
"sensitivityLevel" : "medium",
"alertGroupType" : "endpoint",
"notifyOnClear" : true,
"testIds" : [ "281474976710706", "271659" ],
"roundsViolatingOutOf" : 5,
"roundsViolatingRequired" : 2,
"isDefault" : true,
Expand Down Expand Up @@ -441,7 +443,8 @@ def test_update_alert_rule_models_validation(self) -> None:
} ]
},
"direction" : "to-target"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.alerts.models.RuleDetailUpdate.from_json(request_body_json)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def test_create_alert_suppression_window_models_validation(self) -> None:
"name" : "Monthly maintenance",
"startDate" : "2017-07-01T05:00:00Z",
"status" : "ended"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.alerts.models.AlertSuppressionWindowRequest.from_json(request_body_json)
Expand Down Expand Up @@ -369,7 +370,8 @@ def test_update_alert_suppression_window_models_validation(self) -> None:
"name" : "Monthly maintenance",
"startDate" : "2017-07-01T05:00:00Z",
"status" : "ended"
}"""
}
"""

request_loaded_json = json.loads(request_body_json)
request_from_json = thousandeyes_sdk.alerts.models.AlertSuppressionWindowRequest.from_json(request_body_json)
Expand Down
2 changes: 1 addition & 1 deletion thousandeyes-sdk-bgp-monitors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.75
- API version: 7.0.79
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

Expand Down
23 changes: 23 additions & 0 deletions thousandeyes-sdk-connectors/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
66 changes: 66 additions & 0 deletions thousandeyes-sdk-connectors/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.openapi-generator-ignore
MANIFEST.in
README.md
docs/Assignments.md
docs/AuthenticationType.md
docs/BasicAuthentication.md
docs/BearerTokenAuthentication.md
docs/ConnectorType.md
docs/Error.md
docs/GenericConnector.md
docs/GenericConnectorAuth.md
docs/GenericConnectors.md
docs/GenericConnectorsApi.md
docs/Header.md
docs/Link.md
docs/OauthClientCredentialsAuthentication.md
docs/OauthCodeAuthentication.md
docs/OperationCategory.md
docs/OperationConnectorsApi.md
docs/OperationStatus.md
docs/OperationType.md
docs/OtherTokenAuthentication.md
docs/SelfLinks.md
docs/UnauthorizedError.md
docs/ValidationError.md
docs/ValidationErrorItem.md
docs/WebhookOperation.md
docs/WebhookOperations.md
docs/WebhookOperationsApi.md
pyproject.toml
setup.cfg
src/thousandeyes_sdk/connectors/__init__.py
src/thousandeyes_sdk/connectors/api/__init__.py
src/thousandeyes_sdk/connectors/api/generic_connectors_api.py
src/thousandeyes_sdk/connectors/api/operation_connectors_api.py
src/thousandeyes_sdk/connectors/api/webhook_operations_api.py
src/thousandeyes_sdk/connectors/models/__init__.py
src/thousandeyes_sdk/connectors/models/assignments.py
src/thousandeyes_sdk/connectors/models/authentication_type.py
src/thousandeyes_sdk/connectors/models/basic_authentication.py
src/thousandeyes_sdk/connectors/models/bearer_token_authentication.py
src/thousandeyes_sdk/connectors/models/connector_type.py
src/thousandeyes_sdk/connectors/models/error.py
src/thousandeyes_sdk/connectors/models/generic_connector.py
src/thousandeyes_sdk/connectors/models/generic_connector_auth.py
src/thousandeyes_sdk/connectors/models/generic_connectors.py
src/thousandeyes_sdk/connectors/models/header.py
src/thousandeyes_sdk/connectors/models/link.py
src/thousandeyes_sdk/connectors/models/oauth_client_credentials_authentication.py
src/thousandeyes_sdk/connectors/models/oauth_code_authentication.py
src/thousandeyes_sdk/connectors/models/operation_category.py
src/thousandeyes_sdk/connectors/models/operation_status.py
src/thousandeyes_sdk/connectors/models/operation_type.py
src/thousandeyes_sdk/connectors/models/other_token_authentication.py
src/thousandeyes_sdk/connectors/models/self_links.py
src/thousandeyes_sdk/connectors/models/unauthorized_error.py
src/thousandeyes_sdk/connectors/models/validation_error.py
src/thousandeyes_sdk/connectors/models/validation_error_item.py
src/thousandeyes_sdk/connectors/models/webhook_operation.py
src/thousandeyes_sdk/connectors/models/webhook_operations.py
src/thousandeyes_sdk/connectors/py.typed
test/__init__.py
test/test_generic_connectors_api.py
test/test_operation_connectors_api.py
test/test_utils.py
test/test_webhook_operations_api.py
1 change: 1 addition & 0 deletions thousandeyes-sdk-connectors/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.6.0
1 change: 1 addition & 0 deletions thousandeyes-sdk-connectors/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include docs/*
Loading
Loading