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

61 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.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 attribute_map = { 

41 'result': 'result', 

42 'confidence': 'confidence', 

43 'origin_timezone': 'originTimezone', 

44 'origin_country': 'originCountry', 

45 'methods': 'methods' 

46 } 

47 

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

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

50 self._result = None 

51 self._confidence = None 

52 self._origin_timezone = None 

53 self._origin_country = None 

54 self._methods = None 

55 self.discriminator = None 

56 self.result = result 

57 self.confidence = confidence 

58 self.origin_timezone = origin_timezone 

59 self.origin_country = origin_country 

60 self.methods = methods 

61 

62 @property 

63 def result(self) -> bool: 

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

65 

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

67 

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

69 """ 

70 return self._result 

71 

72 @result.setter 

73 def result(self, result: bool): 

74 """Sets the result of this VPN. 

75 

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

77 

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

79 """ 

80 if result is None: 

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

82 

83 self._result = result 

84 

85 @property 

86 def confidence(self) -> VPNConfidence: 

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

88 

89 

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

91 """ 

92 return self._confidence 

93 

94 @confidence.setter 

95 def confidence(self, confidence: VPNConfidence): 

96 """Sets the confidence of this VPN. 

97 

98 

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

100 """ 

101 if confidence is None: 

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

103 

104 self._confidence = confidence 

105 

106 @property 

107 def origin_timezone(self) -> str: 

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

109 

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

111 

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

113 """ 

114 return self._origin_timezone 

115 

116 @origin_timezone.setter 

117 def origin_timezone(self, origin_timezone: str): 

118 """Sets the origin_timezone of this VPN. 

119 

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

121 

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

123 """ 

124 if origin_timezone is None: 

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

126 

127 self._origin_timezone = origin_timezone 

128 

129 @property 

130 def origin_country(self) -> str: 

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

132 

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

134 

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

136 """ 

137 return self._origin_country 

138 

139 @origin_country.setter 

140 def origin_country(self, origin_country: str): 

141 """Sets the origin_country of this VPN. 

142 

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

144 

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

146 """ 

147 if origin_country is None: 

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

149 

150 self._origin_country = origin_country 

151 

152 @property 

153 def methods(self) -> VPNMethods: 

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

155 

156 

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

158 """ 

159 return self._methods 

160 

161 @methods.setter 

162 def methods(self, methods: VPNMethods): 

163 """Sets the methods of this VPN. 

164 

165 

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

167 """ 

168 if methods is None: 

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

170 

171 self._methods = methods 

172