Coverage for fingerprint_pro_server_api_sdk/models/vpn.py: 92%

62 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.vpn_confidence import VPNConfidence 

17from fingerprint_pro_server_api_sdk.models.vpn_methods import VPNMethods 

18 

19 

20class VPN(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': 'VPNConfidence', 

35 'origin_timezone': 'str', 

36 'origin_country': 'str', 

37 'methods': 'VPNMethods' 

38 } 

39 

40 nullable_map = { 

41 'result': False, 

42 'confidence': False, 

43 'origin_timezone': False, 

44 'origin_country': False, 

45 'methods': False 

46 } 

47 

48 attribute_map = { 

49 'result': 'result', 

50 'confidence': 'confidence', 

51 'origin_timezone': 'originTimezone', 

52 'origin_country': 'originCountry', 

53 'methods': 'methods' 

54 } 

55 

56 def __init__(self, result=None, confidence=None, origin_timezone=None, origin_country=None, methods=None): # noqa: E501 

57 """VPN - a model defined in Swagger""" # noqa: E501 

58 self._result = None 

59 self._confidence = None 

60 self._origin_timezone = None 

61 self._origin_country = None 

62 self._methods = None 

63 self.discriminator = None 

64 self.result = result 

65 self.confidence = confidence 

66 self.origin_timezone = origin_timezone 

67 self.origin_country = origin_country 

68 self.methods = methods 

69 

70 @property 

71 def result(self) -> bool: 

72 """Gets the result of this VPN. # noqa: E501 

73 

74 VPN or other anonymizing service has been used when sending the request. # noqa: E501 

75 

76 :return: The result of this VPN. # noqa: E501 

77 """ 

78 return self._result 

79 

80 @result.setter 

81 def result(self, result: bool): 

82 """Sets the result of this VPN. 

83 

84 VPN or other anonymizing service has been used when sending the request. # noqa: E501 

85 

86 :param result: The result of this VPN. # noqa: E501 

87 """ 

88 if result is None: 

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

90 

91 self._result = result 

92 

93 @property 

94 def confidence(self) -> VPNConfidence: 

95 """Gets the confidence of this VPN. # noqa: E501 

96 

97 

98 :return: The confidence of this VPN. # noqa: E501 

99 """ 

100 return self._confidence 

101 

102 @confidence.setter 

103 def confidence(self, confidence: VPNConfidence): 

104 """Sets the confidence of this VPN. 

105 

106 

107 :param confidence: The confidence of this VPN. # noqa: E501 

108 """ 

109 if confidence is None: 

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

111 

112 self._confidence = confidence 

113 

114 @property 

115 def origin_timezone(self) -> str: 

116 """Gets the origin_timezone of this VPN. # noqa: E501 

117 

118 Local timezone which is used in timezoneMismatch method. # noqa: E501 

119 

120 :return: The origin_timezone of this VPN. # noqa: E501 

121 """ 

122 return self._origin_timezone 

123 

124 @origin_timezone.setter 

125 def origin_timezone(self, origin_timezone: str): 

126 """Sets the origin_timezone of this VPN. 

127 

128 Local timezone which is used in timezoneMismatch method. # noqa: E501 

129 

130 :param origin_timezone: The origin_timezone of this VPN. # noqa: E501 

131 """ 

132 if origin_timezone is None: 

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

134 

135 self._origin_timezone = origin_timezone 

136 

137 @property 

138 def origin_country(self) -> str: 

139 """Gets the origin_country of this VPN. # noqa: E501 

140 

141 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501 

142 

143 :return: The origin_country of this VPN. # noqa: E501 

144 """ 

145 return self._origin_country 

146 

147 @origin_country.setter 

148 def origin_country(self, origin_country: str): 

149 """Sets the origin_country of this VPN. 

150 

151 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501 

152 

153 :param origin_country: The origin_country of this VPN. # noqa: E501 

154 """ 

155 if origin_country is None: 

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

157 

158 self._origin_country = origin_country 

159 

160 @property 

161 def methods(self) -> VPNMethods: 

162 """Gets the methods of this VPN. # noqa: E501 

163 

164 

165 :return: The methods of this VPN. # noqa: E501 

166 """ 

167 return self._methods 

168 

169 @methods.setter 

170 def methods(self, methods: VPNMethods): 

171 """Sets the methods of this VPN. 

172 

173 

174 :param methods: The methods of this VPN. # noqa: E501 

175 """ 

176 if methods is None: 

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

178 

179 self._methods = methods 

180