mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-03-22 01:25:29 +00:00
82 lines
2.8 KiB
Python
82 lines
2.8 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Alerts API
|
|
|
|
## Overview Manage all alerts, alert rules and alert suppression windows.
|
|
|
|
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
|
|
import datetime
|
|
|
|
from alerts_api.models.create_suppression_windows201_response import CreateSuppressionWindows201Response
|
|
|
|
class TestCreateSuppressionWindows201Response(unittest.TestCase):
|
|
"""CreateSuppressionWindows201Response unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional) -> CreateSuppressionWindows201Response:
|
|
"""Test CreateSuppressionWindows201Response
|
|
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 `CreateSuppressionWindows201Response`
|
|
"""
|
|
model = CreateSuppressionWindows201Response()
|
|
if include_optional:
|
|
return CreateSuppressionWindows201Response(
|
|
alert_suppression_window_id = '2411',
|
|
name = 'Monthly maintenance',
|
|
is_enabled = False,
|
|
status = 'ended',
|
|
start_date = '2017-07-01T05:00Z',
|
|
duration = 0,
|
|
repeat = alerts_api.models.repeat.Repeat(
|
|
type = 'week',
|
|
interval_type = 'day',
|
|
interval_length = 2,
|
|
days_of_week = [
|
|
'sun'
|
|
], ),
|
|
end_repeat = alerts_api.models.end_repeat.EndRepeat(
|
|
type = 'never',
|
|
count = 3,
|
|
date = 'Sat Jul 01 01:00:00 BST 2017', ),
|
|
tests = [
|
|
null
|
|
],
|
|
links = alerts_api.models.self_links__links.SelfLinks__links(
|
|
self = alerts_api.models.link.Link(
|
|
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
templated = True,
|
|
type = '',
|
|
deprecation = '',
|
|
name = '',
|
|
profile = '',
|
|
title = '',
|
|
hreflang = '', ), )
|
|
)
|
|
else:
|
|
return CreateSuppressionWindows201Response(
|
|
)
|
|
"""
|
|
|
|
def testCreateSuppressionWindows201Response(self):
|
|
"""Test CreateSuppressionWindows201Response"""
|
|
# inst_req_only = self.make_instance(include_optional=False)
|
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|