Coverage for fingerprint_pro_server_api_sdk/models/botd.py: 91%
91 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
1# coding: utf-8
3"""
4 Fingerprint Pro Server API
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
8 OpenAPI spec version: 3
9 Contact: support@fingerprint.com
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
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.botd_bot import BotdBot
17from fingerprint_pro_server_api_sdk.models.tag import Tag
18from datetime import datetime
21class Botd(BaseModel):
22 """
23 Contains all the information from Bot Detection product
25 NOTE: This class is auto generated by the swagger code generator program.
27 Do not edit the class manually.
28 """
29 """
30 Attributes:
31 swagger_types (dict): The key is attribute name
32 and the value is attribute type.
33 attribute_map (dict): The key is attribute name
34 and the value is json key in definition.
35 """
36 swagger_types = {
37 'bot': 'BotdBot',
38 'meta': 'Tag',
39 'linked_id': 'str',
40 'url': 'str',
41 'ip': 'str',
42 'time': 'datetime',
43 'user_agent': 'str',
44 'request_id': 'str'
45 }
47 nullable_map = {
48 'bot': False,
49 'meta': False,
50 'linked_id': False,
51 'url': False,
52 'ip': False,
53 'time': False,
54 'user_agent': False,
55 'request_id': False
56 }
58 attribute_map = {
59 'bot': 'bot',
60 'meta': 'meta',
61 'linked_id': 'linkedId',
62 'url': 'url',
63 'ip': 'ip',
64 'time': 'time',
65 'user_agent': 'userAgent',
66 'request_id': 'requestId'
67 }
69 def __init__(self, bot=None, meta=None, linked_id=None, url=None, ip=None, time=None, user_agent=None, request_id=None): # noqa: E501
70 """Botd - a model defined in Swagger""" # noqa: E501
71 self._bot = None
72 self._meta = None
73 self._linked_id = None
74 self._url = None
75 self._ip = None
76 self._time = None
77 self._user_agent = None
78 self._request_id = None
79 self.discriminator = None
80 self.bot = bot
81 if meta is not None:
82 self.meta = meta
83 if linked_id is not None:
84 self.linked_id = linked_id
85 self.url = url
86 self.ip = ip
87 self.time = time
88 self.user_agent = user_agent
89 self.request_id = request_id
91 @property
92 def bot(self) -> BotdBot:
93 """Gets the bot of this Botd. # noqa: E501
96 :return: The bot of this Botd. # noqa: E501
97 """
98 return self._bot
100 @bot.setter
101 def bot(self, bot: BotdBot):
102 """Sets the bot of this Botd.
105 :param bot: The bot of this Botd. # noqa: E501
106 """
107 if bot is None:
108 raise ValueError("Invalid value for `bot`, must not be `None`") # noqa: E501
110 self._bot = bot
112 @property
113 def meta(self) -> Optional[Tag]:
114 """Gets the meta of this Botd. # noqa: E501
117 :return: The meta of this Botd. # noqa: E501
118 """
119 return self._meta
121 @meta.setter
122 def meta(self, meta: Optional[Tag]):
123 """Sets the meta of this Botd.
126 :param meta: The meta of this Botd. # noqa: E501
127 """
129 self._meta = meta
131 @property
132 def linked_id(self) -> Optional[str]:
133 """Gets the linked_id of this Botd. # noqa: E501
135 A customer-provided id that was sent with the request. # noqa: E501
137 :return: The linked_id of this Botd. # noqa: E501
138 """
139 return self._linked_id
141 @linked_id.setter
142 def linked_id(self, linked_id: Optional[str]):
143 """Sets the linked_id of this Botd.
145 A customer-provided id that was sent with the request. # noqa: E501
147 :param linked_id: The linked_id of this Botd. # noqa: E501
148 """
150 self._linked_id = linked_id
152 @property
153 def url(self) -> str:
154 """Gets the url of this Botd. # noqa: E501
156 Page URL from which the request was sent. # noqa: E501
158 :return: The url of this Botd. # noqa: E501
159 """
160 return self._url
162 @url.setter
163 def url(self, url: str):
164 """Sets the url of this Botd.
166 Page URL from which the request was sent. # noqa: E501
168 :param url: The url of this Botd. # noqa: E501
169 """
170 if url is None:
171 raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
173 self._url = url
175 @property
176 def ip(self) -> str:
177 """Gets the ip of this Botd. # noqa: E501
179 IP address of the requesting browser or bot. # noqa: E501
181 :return: The ip of this Botd. # noqa: E501
182 """
183 return self._ip
185 @ip.setter
186 def ip(self, ip: str):
187 """Sets the ip of this Botd.
189 IP address of the requesting browser or bot. # noqa: E501
191 :param ip: The ip of this Botd. # noqa: E501
192 """
193 if ip is None:
194 raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
196 self._ip = ip
198 @property
199 def time(self) -> datetime:
200 """Gets the time of this Botd. # noqa: E501
202 Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. # noqa: E501
204 :return: The time of this Botd. # noqa: E501
205 """
206 return self._time
208 @time.setter
209 def time(self, time: datetime):
210 """Sets the time of this Botd.
212 Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. # noqa: E501
214 :param time: The time of this Botd. # noqa: E501
215 """
216 if time is None:
217 raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501
219 self._time = time
221 @property
222 def user_agent(self) -> str:
223 """Gets the user_agent of this Botd. # noqa: E501
226 :return: The user_agent of this Botd. # noqa: E501
227 """
228 return self._user_agent
230 @user_agent.setter
231 def user_agent(self, user_agent: str):
232 """Sets the user_agent of this Botd.
235 :param user_agent: The user_agent of this Botd. # noqa: E501
236 """
237 if user_agent is None:
238 raise ValueError("Invalid value for `user_agent`, must not be `None`") # noqa: E501
240 self._user_agent = user_agent
242 @property
243 def request_id(self) -> str:
244 """Gets the request_id of this Botd. # noqa: E501
246 Unique identifier of the user's request. # noqa: E501
248 :return: The request_id of this Botd. # noqa: E501
249 """
250 return self._request_id
252 @request_id.setter
253 def request_id(self, request_id: str):
254 """Sets the request_id of this Botd.
256 Unique identifier of the user's request. # noqa: E501
258 :param request_id: The request_id of this Botd. # noqa: E501
259 """
260 if request_id is None:
261 raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501
263 self._request_id = request_id