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

41 statements  

« prev     ^ index     » next       coverage.py v7.10.4, created at 2025-08-19 14:45 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Server API 

5 

6 Fingerprint Server API allows you to search, update, and delete identification 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.proxy_confidence import ProxyConfidence 

17from fingerprint_pro_server_api_sdk.models.proxy_details import ProxyDetails 

18 

19 

20class Proxy(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 'result': 'bool', 

34 'confidence': 'ProxyConfidence', 

35 'details': 'ProxyDetails' 

36 } 

37 

38 nullable_map = { 

39 'result': False, 

40 'confidence': False, 

41 'details': False 

42 } 

43 

44 attribute_map = { 

45 'result': 'result', 

46 'confidence': 'confidence', 

47 'details': 'details' 

48 } 

49 

50 def __init__(self, result=None, confidence=None, details=None): # noqa: E501 

51 """Proxy - a model defined in Swagger""" # noqa: E501 

52 self._result = None 

53 self._confidence = None 

54 self._details = None 

55 self.discriminator = None 

56 self.result = result 

57 self.confidence = confidence 

58 if details is not None: 

59 self.details = details 

60 

61 @property 

62 def result(self) -> bool: 

63 """Gets the result of this Proxy. # noqa: E501 

64 

65 IP address was used by a public proxy provider or belonged to a known recent residential proxy # noqa: E501 

66 

67 :return: The result of this Proxy. # noqa: E501 

68 """ 

69 return self._result 

70 

71 @result.setter 

72 def result(self, result: bool): 

73 """Sets the result of this Proxy. 

74 

75 IP address was used by a public proxy provider or belonged to a known recent residential proxy # noqa: E501 

76 

77 :param result: The result of this Proxy. # noqa: E501 

78 """ 

79 if result is None: 

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

81 

82 self._result = result 

83 

84 @property 

85 def confidence(self) -> ProxyConfidence: 

86 """Gets the confidence of this Proxy. # noqa: E501 

87 

88 

89 :return: The confidence of this Proxy. # noqa: E501 

90 """ 

91 return self._confidence 

92 

93 @confidence.setter 

94 def confidence(self, confidence: ProxyConfidence): 

95 """Sets the confidence of this Proxy. 

96 

97 

98 :param confidence: The confidence of this Proxy. # noqa: E501 

99 """ 

100 if confidence is None: 

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

102 

103 self._confidence = confidence 

104 

105 @property 

106 def details(self) -> Optional[ProxyDetails]: 

107 """Gets the details of this Proxy. # noqa: E501 

108 

109 

110 :return: The details of this Proxy. # noqa: E501 

111 """ 

112 return self._details 

113 

114 @details.setter 

115 def details(self, details: Optional[ProxyDetails]): 

116 """Sets the details of this Proxy. 

117 

118 

119 :param details: The details of this Proxy. # noqa: E501 

120 """ 

121 

122 self._details = details 

123