# coding: utf-8

"""
    Mixpeek API

    This is the Mixpeek API, providing access to various endpoints for data processing and retrieval.

    The version of the OpenAPI document: 0.81.1
    Contact: info@mixpeek.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from mixpeek.models.api_key_model import APIKeyModel

class TestAPIKeyModel(unittest.TestCase):
    """APIKeyModel unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> APIKeyModel:
        """Test APIKeyModel
            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 `APIKeyModel`
        """
        model = APIKeyModel()
        if include_optional:
            return APIKeyModel(
                key_id = '',
                key_hash = '',
                key_prefix = '0123456789',
                key_type = 'standard',
                subscription_id = '',
                internal_id = '',
                organization_id = '',
                user_id = '',
                name = '',
                description = '',
                permissions = [
                    'read'
                    ],
                scopes = [
                    mixpeek.models.resource_scope.ResourceScope(
                        resource_type = 'organization', 
                        resource_id = '0', 
                        operations = [
                            'read_data'
                            ], )
                    ],
                rate_limit_override = 56,
                status = 'active',
                expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
                last_used_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
                created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
                created_by = '',
                revoked_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
                revoked_by = '',
                allowed_origins = [
                    ''
                    ]
            )
        else:
            return APIKeyModel(
                key_hash = '',
                internal_id = '',
                user_id = '',
                name = '',
        )
        """

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

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