Coverage for fingerprint_pro_server_api_sdk/models/product_emulator.py: 93%

29 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-09 17:50 +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.emulator import Emulator 

17from fingerprint_pro_server_api_sdk.models.error import Error 

18 

19 

20class ProductEmulator(BaseModel): 

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

22 

23 Do not edit the class manually. 

24 """ 

25 """ 

26 Attributes: 

27 swagger_types (dict): The key is attribute name 

28 and the value is attribute type. 

29 attribute_map (dict): The key is attribute name 

30 and the value is json key in definition. 

31 """ 

32 swagger_types = { 

33 'data': 'Emulator', 

34 'error': 'Error' 

35 } 

36 

37 attribute_map = { 

38 'data': 'data', 

39 'error': 'error' 

40 } 

41 

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

43 """ProductEmulator - a model defined in Swagger""" # noqa: E501 

44 self._data = None 

45 self._error = None 

46 self.discriminator = None 

47 if data is not None: 

48 self.data = data 

49 if error is not None: 

50 self.error = error 

51 

52 @property 

53 def data(self) -> Optional[Emulator]: 

54 """Gets the data of this ProductEmulator. # noqa: E501 

55 

56 

57 :return: The data of this ProductEmulator. # noqa: E501 

58 """ 

59 return self._data 

60 

61 @data.setter 

62 def data(self, data: Optional[Emulator]): 

63 """Sets the data of this ProductEmulator. 

64 

65 

66 :param data: The data of this ProductEmulator. # noqa: E501 

67 """ 

68 

69 self._data = data 

70 

71 @property 

72 def error(self) -> Optional[Error]: 

73 """Gets the error of this ProductEmulator. # noqa: E501 

74 

75 

76 :return: The error of this ProductEmulator. # noqa: E501 

77 """ 

78 return self._error 

79 

80 @error.setter 

81 def error(self, error: Optional[Error]): 

82 """Sets the error of this ProductEmulator. 

83 

84 

85 :param error: The error of this ProductEmulator. # noqa: E501 

86 """ 

87 

88 self._error = error 

89