Coverage for fingerprint_pro_server_api_sdk/models/raw_device_attribute.py: 61%

28 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.raw_device_attribute_error import RawDeviceAttributeError 

17 

18 

19class RawDeviceAttribute(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 'value': 'object', 

33 'error': 'RawDeviceAttributeError' 

34 } 

35 

36 attribute_map = { 

37 'value': 'value', 

38 'error': 'error' 

39 } 

40 

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

42 """RawDeviceAttribute - a model defined in Swagger""" # noqa: E501 

43 self._value = None 

44 self._error = None 

45 self.discriminator = None 

46 if value is not None: 

47 self.value = value 

48 if error is not None: 

49 self.error = error 

50 

51 @property 

52 def value(self) -> Optional[object]: 

53 """Gets the value of this RawDeviceAttribute. # noqa: E501 

54 

55 

56 :return: The value of this RawDeviceAttribute. # noqa: E501 

57 """ 

58 return self._value 

59 

60 @value.setter 

61 def value(self, value: Optional[object]): 

62 """Sets the value of this RawDeviceAttribute. 

63 

64 

65 :param value: The value of this RawDeviceAttribute. # noqa: E501 

66 """ 

67 

68 self._value = value 

69 

70 @property 

71 def error(self) -> Optional[RawDeviceAttributeError]: 

72 """Gets the error of this RawDeviceAttribute. # noqa: E501 

73 

74 

75 :return: The error of this RawDeviceAttribute. # noqa: E501 

76 """ 

77 return self._error 

78 

79 @error.setter 

80 def error(self, error: Optional[RawDeviceAttributeError]): 

81 """Sets the error of this RawDeviceAttribute. 

82 

83 

84 :param error: The error of this RawDeviceAttribute. # noqa: E501 

85 """ 

86 

87 self._error = error 

88