Coverage for fingerprint_pro_server_api_sdk/models/browser_details.py: 91%

79 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 

16 

17 

18class BrowserDetails(BaseModel): 

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

20 

21 Do not edit the class manually. 

22 """ 

23 """ 

24 Attributes: 

25 swagger_types (dict): The key is attribute name 

26 and the value is attribute type. 

27 attribute_map (dict): The key is attribute name 

28 and the value is json key in definition. 

29 """ 

30 swagger_types = { 

31 'browser_name': 'str', 

32 'browser_major_version': 'str', 

33 'browser_full_version': 'str', 

34 'os': 'str', 

35 'os_version': 'str', 

36 'device': 'str', 

37 'user_agent': 'str' 

38 } 

39 

40 attribute_map = { 

41 'browser_name': 'browserName', 

42 'browser_major_version': 'browserMajorVersion', 

43 'browser_full_version': 'browserFullVersion', 

44 'os': 'os', 

45 'os_version': 'osVersion', 

46 'device': 'device', 

47 'user_agent': 'userAgent' 

48 } 

49 

50 def __init__(self, browser_name=None, browser_major_version=None, browser_full_version=None, os=None, os_version=None, device=None, user_agent=None): # noqa: E501 

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

52 self._browser_name = None 

53 self._browser_major_version = None 

54 self._browser_full_version = None 

55 self._os = None 

56 self._os_version = None 

57 self._device = None 

58 self._user_agent = None 

59 self.discriminator = None 

60 self.browser_name = browser_name 

61 self.browser_major_version = browser_major_version 

62 self.browser_full_version = browser_full_version 

63 self.os = os 

64 self.os_version = os_version 

65 self.device = device 

66 self.user_agent = user_agent 

67 

68 @property 

69 def browser_name(self) -> str: 

70 """Gets the browser_name of this BrowserDetails. # noqa: E501 

71 

72 

73 :return: The browser_name of this BrowserDetails. # noqa: E501 

74 """ 

75 return self._browser_name 

76 

77 @browser_name.setter 

78 def browser_name(self, browser_name: str): 

79 """Sets the browser_name of this BrowserDetails. 

80 

81 

82 :param browser_name: The browser_name of this BrowserDetails. # noqa: E501 

83 """ 

84 if browser_name is None: 

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

86 

87 self._browser_name = browser_name 

88 

89 @property 

90 def browser_major_version(self) -> str: 

91 """Gets the browser_major_version of this BrowserDetails. # noqa: E501 

92 

93 

94 :return: The browser_major_version of this BrowserDetails. # noqa: E501 

95 """ 

96 return self._browser_major_version 

97 

98 @browser_major_version.setter 

99 def browser_major_version(self, browser_major_version: str): 

100 """Sets the browser_major_version of this BrowserDetails. 

101 

102 

103 :param browser_major_version: The browser_major_version of this BrowserDetails. # noqa: E501 

104 """ 

105 if browser_major_version is None: 

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

107 

108 self._browser_major_version = browser_major_version 

109 

110 @property 

111 def browser_full_version(self) -> str: 

112 """Gets the browser_full_version of this BrowserDetails. # noqa: E501 

113 

114 

115 :return: The browser_full_version of this BrowserDetails. # noqa: E501 

116 """ 

117 return self._browser_full_version 

118 

119 @browser_full_version.setter 

120 def browser_full_version(self, browser_full_version: str): 

121 """Sets the browser_full_version of this BrowserDetails. 

122 

123 

124 :param browser_full_version: The browser_full_version of this BrowserDetails. # noqa: E501 

125 """ 

126 if browser_full_version is None: 

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

128 

129 self._browser_full_version = browser_full_version 

130 

131 @property 

132 def os(self) -> str: 

133 """Gets the os of this BrowserDetails. # noqa: E501 

134 

135 

136 :return: The os of this BrowserDetails. # noqa: E501 

137 """ 

138 return self._os 

139 

140 @os.setter 

141 def os(self, os: str): 

142 """Sets the os of this BrowserDetails. 

143 

144 

145 :param os: The os of this BrowserDetails. # noqa: E501 

146 """ 

147 if os is None: 

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

149 

150 self._os = os 

151 

152 @property 

153 def os_version(self) -> str: 

154 """Gets the os_version of this BrowserDetails. # noqa: E501 

155 

156 

157 :return: The os_version of this BrowserDetails. # noqa: E501 

158 """ 

159 return self._os_version 

160 

161 @os_version.setter 

162 def os_version(self, os_version: str): 

163 """Sets the os_version of this BrowserDetails. 

164 

165 

166 :param os_version: The os_version of this BrowserDetails. # noqa: E501 

167 """ 

168 if os_version is None: 

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

170 

171 self._os_version = os_version 

172 

173 @property 

174 def device(self) -> str: 

175 """Gets the device of this BrowserDetails. # noqa: E501 

176 

177 

178 :return: The device of this BrowserDetails. # noqa: E501 

179 """ 

180 return self._device 

181 

182 @device.setter 

183 def device(self, device: str): 

184 """Sets the device of this BrowserDetails. 

185 

186 

187 :param device: The device of this BrowserDetails. # noqa: E501 

188 """ 

189 if device is None: 

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

191 

192 self._device = device 

193 

194 @property 

195 def user_agent(self) -> str: 

196 """Gets the user_agent of this BrowserDetails. # noqa: E501 

197 

198 

199 :return: The user_agent of this BrowserDetails. # noqa: E501 

200 """ 

201 return self._user_agent 

202 

203 @user_agent.setter 

204 def user_agent(self, user_agent: str): 

205 """Sets the user_agent of this BrowserDetails. 

206 

207 

208 :param user_agent: The user_agent of this BrowserDetails. # noqa: E501 

209 """ 

210 if user_agent is None: 

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

212 

213 self._user_agent = user_agent 

214