mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 14:36:50 +00:00
92 lines
3.3 KiB
Python
92 lines
3.3 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Dashboards API
|
|
|
|
Manage ThousandEyes Dashboards.
|
|
|
|
The version of the OpenAPI document: 7.0.0
|
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
|
|
Do not edit the class manually.
|
|
""" # noqa: E501
|
|
|
|
|
|
import unittest
|
|
|
|
from dashboards.models.api_dashboard_snapshot import ApiDashboardSnapshot
|
|
|
|
class TestApiDashboardSnapshot(unittest.TestCase):
|
|
"""ApiDashboardSnapshot unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional) -> ApiDashboardSnapshot:
|
|
"""Test ApiDashboardSnapshot
|
|
include_option is a boolean, when False only required
|
|
params are included, when True both required and
|
|
optional params are included """
|
|
# uncomment below to create an instance of `ApiDashboardSnapshot`
|
|
"""
|
|
model = ApiDashboardSnapshot()
|
|
if include_optional:
|
|
return ApiDashboardSnapshot(
|
|
snapshot_id = 'd28bb71f-5a47-4783-8f12-d4b115e61b0c',
|
|
account_id = 1234,
|
|
created_date = '2023-05-16 10:14:28',
|
|
expiration_date = '2023-05-16 10:14:28',
|
|
permalink = 'https://app.thousandeyes.com/dashboard/?snapshotId=d28bb71f-5a47-4783-8f12-d4b115e61b0c',
|
|
api_links = [
|
|
{ }
|
|
],
|
|
links = dashboards.models.app_and_self_links__links.AppAndSelfLinks__links(
|
|
app_link = dashboards.models.link.Link(
|
|
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
templated = True,
|
|
type = '',
|
|
deprecation = '',
|
|
name = '',
|
|
profile = '',
|
|
title = '',
|
|
hreflang = '', ),
|
|
self = dashboards.models.link.Link(
|
|
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
templated = True,
|
|
type = '',
|
|
deprecation = '',
|
|
name = '',
|
|
profile = '',
|
|
title = '',
|
|
hreflang = '', ), ),
|
|
snapshot_name = 'HTTP Server Dashboard Snapshot',
|
|
aid = '1234',
|
|
is_shared = True,
|
|
snapshot_created_date = '2023-05-16T10:14:28Z',
|
|
dashboard = None,
|
|
widgets = [
|
|
null
|
|
],
|
|
is_scheduled = True,
|
|
time_span = dashboards.models.api_report_snapshot_time_span.ApiReportSnapshotTimeSpan(
|
|
start_date = '2023-05-16 10:14:28',
|
|
start = '2023-05-16T10:14:28Z',
|
|
duration = 60, ),
|
|
snapshot_expiration_date = '2023-05-16T10:14:28Z'
|
|
)
|
|
else:
|
|
return ApiDashboardSnapshot(
|
|
)
|
|
"""
|
|
|
|
def testApiDashboardSnapshot(self):
|
|
"""Test ApiDashboardSnapshot"""
|
|
# inst_req_only = self.make_instance(include_optional=False)
|
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|