Coverage for fingerprint_pro_server_api_sdk/models/error_response.py: 95%

21 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 15:03 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

6 Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. # noqa: E501 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

13import re # noqa: F401 

14from typing import Dict, List, Optional # noqa: F401 

15from fingerprint_pro_server_api_sdk.base_model import BaseModel 

16from fingerprint_pro_server_api_sdk.models.error import Error 

17 

18 

19class ErrorResponse(BaseModel): 

20 """NOTE: This class is auto generated by the swagger code generator program. 

21 

22 Do not edit the class manually. 

23 """ 

24 """ 

25 Attributes: 

26 swagger_types (dict): The key is attribute name 

27 and the value is attribute type. 

28 attribute_map (dict): The key is attribute name 

29 and the value is json key in definition. 

30 """ 

31 swagger_types = { 

32 'error': 'Error' 

33 } 

34 

35 nullable_map = { 

36 'error': False 

37 } 

38 

39 attribute_map = { 

40 'error': 'error' 

41 } 

42 

43 def __init__(self, error=None): # noqa: E501 

44 """ErrorResponse - a model defined in Swagger""" # noqa: E501 

45 self._error = None 

46 self.discriminator = None 

47 self.error = error 

48 

49 @property 

50 def error(self) -> Error: 

51 """Gets the error of this ErrorResponse. # noqa: E501 

52 

53 

54 :return: The error of this ErrorResponse. # noqa: E501 

55 """ 

56 return self._error 

57 

58 @error.setter 

59 def error(self, error: Error): 

60 """Sets the error of this ErrorResponse. 

61 

62 

63 :param error: The error of this ErrorResponse. # noqa: E501 

64 """ 

65 if error is None: 

66 raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501 

67 

68 self._error = error 

69