Coverage for fingerprint_pro_server_api_sdk/models/botd_bot.py: 97%
30 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_result import BotdBotResult
19class BotdBot(BaseModel):
20 """
21 Stores bot detection result
23 NOTE: This class is auto generated by the swagger code generator program.
25 Do not edit the class manually.
26 """
27 """
28 Attributes:
29 swagger_types (dict): The key is attribute name
30 and the value is attribute type.
31 attribute_map (dict): The key is attribute name
32 and the value is json key in definition.
33 """
34 swagger_types = {
35 'result': 'BotdBotResult',
36 'type': 'str'
37 }
39 nullable_map = {
40 'result': False,
41 'type': False
42 }
44 attribute_map = {
45 'result': 'result',
46 'type': 'type'
47 }
49 def __init__(self, result=None, type=None): # noqa: E501
50 """BotdBot - a model defined in Swagger""" # noqa: E501
51 self._result = None
52 self._type = None
53 self.discriminator = None
54 self.result = result
55 if type is not None:
56 self.type = type
58 @property
59 def result(self) -> BotdBotResult:
60 """Gets the result of this BotdBot. # noqa: E501
63 :return: The result of this BotdBot. # noqa: E501
64 """
65 return self._result
67 @result.setter
68 def result(self, result: BotdBotResult):
69 """Sets the result of this BotdBot.
72 :param result: The result of this BotdBot. # noqa: E501
73 """
74 if result is None:
75 raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
77 self._result = result
79 @property
80 def type(self) -> Optional[str]:
81 """Gets the type of this BotdBot. # noqa: E501
84 :return: The type of this BotdBot. # noqa: E501
85 """
86 return self._type
88 @type.setter
89 def type(self, type: Optional[str]):
90 """Sets the type of this BotdBot.
93 :param type: The type of this BotdBot. # noqa: E501
94 """
96 self._type = type