# coding: utf-8

"""
    BioT Device Service

    APIs document (version: 8.9.1)

    The version of the OpenAPI document: 8.9.1
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from biotmed_device_sdk.models.search_response_device_owned_alert_response import SearchResponseDeviceOwnedAlertResponse

class TestSearchResponseDeviceOwnedAlertResponse(unittest.TestCase):
    """SearchResponseDeviceOwnedAlertResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> SearchResponseDeviceOwnedAlertResponse:
        """Test SearchResponseDeviceOwnedAlertResponse
            include_optional 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 `SearchResponseDeviceOwnedAlertResponse`
        """
        model = SearchResponseDeviceOwnedAlertResponse()
        if include_optional:
            return SearchResponseDeviceOwnedAlertResponse(
                data = [
                    biotmed_device_sdk.models.device_owned_alert_response.DeviceOwnedAlertResponse(
                        _device = biotmed_device_sdk.models.device_response.DeviceResponse(
                            _description = '', 
                            _timezone = 'Europe/Oslo', 
                            _id = '', 
                            _owner_organization = biotmed_device_sdk.models.basic_referenced_entity_data_uuidid.BasicReferencedEntityDataUUIDId(
                                id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                template_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                parent_entity_id = '', 
                                template_name = '', 
                                template = null, 
                                organization_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                name = '', ), 
                            _template = biotmed_device_sdk.models.basic_template_data.BasicTemplateData(
                                name = '', 
                                display_name = '', 
                                parent_template = null, 
                                id = '', ), 
                            _referencers = {
                                'key' : biotmed_device_sdk.models.referenced_side_attribute_information.ReferencedSideAttributeInformation(
                                    name = '', 
                                    display_name = '', 
                                    count = 56, 
                                    attribute_id = '', 
                                    template_id = '', 
                                    template = null, 
                                    referrer = null, )
                                }, 
                            _configuration = {
                                'key' : null
                                }, 
                            _status = biotmed_device_sdk.models.device_status.DeviceStatus(
                                _fw_version = '', 
                                _hw_version = '', 
                                _certificate_status = 'NOT_INSTALLED', 
                                _boot_time = '2007-12-20', 
                                _connection = biotmed_device_sdk.models.connection_status.ConnectionStatus(
                                    _connected = True, 
                                    _ip_address = '2007-12-20', 
                                    _last_connected_time = '2007-12-20', ), 
                                _operational = biotmed_device_sdk.models.device_operational_status_response.DeviceOperationalStatusResponse(
                                    _message = '', ), ), 
                            _patient = biotmed_device_sdk.models.basic_referenced_entity_data_uuidid.BasicReferencedEntityDataUUIDId(
                                id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                template_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                parent_entity_id = '', 
                                template_name = '', 
                                template = null, 
                                organization_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                name = '', ), 
                            _registration_code = , 
                            _creation_time = '2007-12-20T10:15:30Z', 
                            _last_modified_time = '2007-12-20T10:15:30Z', 
                            _caption = 'mydevice1', ), 
                        _alerts = [
                            biotmed_device_sdk.models.device_alert_response.DeviceAlertResponse(
                                _state = 'ACTIVE', 
                                _severity = 'INFO', 
                                _clear_notes = '', 
                                _name = '0', 
                                _id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                _owner_organization = , 
                                _clear_date_time = '2007-12-20T10:15:30Z', 
                                _clear_trigger = 'AUTOMATIC', 
                                _cleared_by = , 
                                _creation_time = '2007-12-20T10:15:30Z', 
                                _last_modified_time = '2007-12-20T10:15:30Z', 
                                _device = null, 
                                _set_date_time = '2007-12-20T10:15:30Z', 
                                _caption = '', )
                            ], )
                    ],
                metadata = biotmed_device_sdk.models.metadata.Metadata(
                    sort = [
                        biotmed_device_sdk.models.order.Order(
                            prop = '', 
                            order = 'ASC', )
                        ], 
                    filter = {
                        'key' : biotmed_device_sdk.models.filter_v2.FilterV2(
                            in = [
                                ''
                                ], 
                            eq = null, 
                            lt = 20, 
                            lte = 25, 
                            gt = 25, 
                            gte = 25, 
                            like = 'John', 
                            from = '2007-12-20', 
                            to = '2007-12-20', 
                            is_null = True, 
                            is_not_null = True, 
                            not = null, 
                            not_in = [
                                ''
                                ], )
                        }, 
                    page = biotmed_device_sdk.models.page_metadata.PageMetadata(
                        total_results = 145, 
                        limit = 100, ), 
                    free_text_search = 'cat dog', )
            )
        else:
            return SearchResponseDeviceOwnedAlertResponse(
                data = [
                    biotmed_device_sdk.models.device_owned_alert_response.DeviceOwnedAlertResponse(
                        _device = biotmed_device_sdk.models.device_response.DeviceResponse(
                            _description = '', 
                            _timezone = 'Europe/Oslo', 
                            _id = '', 
                            _owner_organization = biotmed_device_sdk.models.basic_referenced_entity_data_uuidid.BasicReferencedEntityDataUUIDId(
                                id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                template_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                parent_entity_id = '', 
                                template_name = '', 
                                template = null, 
                                organization_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                name = '', ), 
                            _template = biotmed_device_sdk.models.basic_template_data.BasicTemplateData(
                                name = '', 
                                display_name = '', 
                                parent_template = null, 
                                id = '', ), 
                            _referencers = {
                                'key' : biotmed_device_sdk.models.referenced_side_attribute_information.ReferencedSideAttributeInformation(
                                    name = '', 
                                    display_name = '', 
                                    count = 56, 
                                    attribute_id = '', 
                                    template_id = '', 
                                    template = null, 
                                    referrer = null, )
                                }, 
                            _configuration = {
                                'key' : null
                                }, 
                            _status = biotmed_device_sdk.models.device_status.DeviceStatus(
                                _fw_version = '', 
                                _hw_version = '', 
                                _certificate_status = 'NOT_INSTALLED', 
                                _boot_time = '2007-12-20', 
                                _connection = biotmed_device_sdk.models.connection_status.ConnectionStatus(
                                    _connected = True, 
                                    _ip_address = '2007-12-20', 
                                    _last_connected_time = '2007-12-20', ), 
                                _operational = biotmed_device_sdk.models.device_operational_status_response.DeviceOperationalStatusResponse(
                                    _message = '', ), ), 
                            _patient = biotmed_device_sdk.models.basic_referenced_entity_data_uuidid.BasicReferencedEntityDataUUIDId(
                                id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                template_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                parent_entity_id = '', 
                                template_name = '', 
                                template = null, 
                                organization_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                name = '', ), 
                            _registration_code = , 
                            _creation_time = '2007-12-20T10:15:30Z', 
                            _last_modified_time = '2007-12-20T10:15:30Z', 
                            _caption = 'mydevice1', ), 
                        _alerts = [
                            biotmed_device_sdk.models.device_alert_response.DeviceAlertResponse(
                                _state = 'ACTIVE', 
                                _severity = 'INFO', 
                                _clear_notes = '', 
                                _name = '0', 
                                _id = '3fa85f64-5717-4562-b3fc-2c963f66afa6', 
                                _owner_organization = , 
                                _clear_date_time = '2007-12-20T10:15:30Z', 
                                _clear_trigger = 'AUTOMATIC', 
                                _cleared_by = , 
                                _creation_time = '2007-12-20T10:15:30Z', 
                                _last_modified_time = '2007-12-20T10:15:30Z', 
                                _device = null, 
                                _set_date_time = '2007-12-20T10:15:30Z', 
                                _caption = '', )
                            ], )
                    ],
                metadata = biotmed_device_sdk.models.metadata.Metadata(
                    sort = [
                        biotmed_device_sdk.models.order.Order(
                            prop = '', 
                            order = 'ASC', )
                        ], 
                    filter = {
                        'key' : biotmed_device_sdk.models.filter_v2.FilterV2(
                            in = [
                                ''
                                ], 
                            eq = null, 
                            lt = 20, 
                            lte = 25, 
                            gt = 25, 
                            gte = 25, 
                            like = 'John', 
                            from = '2007-12-20', 
                            to = '2007-12-20', 
                            is_null = True, 
                            is_not_null = True, 
                            not = null, 
                            not_in = [
                                ''
                                ], )
                        }, 
                    page = biotmed_device_sdk.models.page_metadata.PageMetadata(
                        total_results = 145, 
                        limit = 100, ), 
                    free_text_search = 'cat dog', ),
        )
        """

    def testSearchResponseDeviceOwnedAlertResponse(self):
        """Test SearchResponseDeviceOwnedAlertResponse"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
    unittest.main()
