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

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.botd_bot_result import BotdBotResult 

17 

18 

19class BotdBot(BaseModel): 

20 """ 

21 Stores bot detection result 

22 

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

24 

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 } 

38 

39 nullable_map = { 

40 'result': False, 

41 'type': False 

42 } 

43 

44 attribute_map = { 

45 'result': 'result', 

46 'type': 'type' 

47 } 

48 

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 

57 

58 @property 

59 def result(self) -> BotdBotResult: 

60 """Gets the result of this BotdBot. # noqa: E501 

61 

62 

63 :return: The result of this BotdBot. # noqa: E501 

64 """ 

65 return self._result 

66 

67 @result.setter 

68 def result(self, result: BotdBotResult): 

69 """Sets the result of this BotdBot. 

70 

71 

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 

76 

77 self._result = result 

78 

79 @property 

80 def type(self) -> Optional[str]: 

81 """Gets the type of this BotdBot. # noqa: E501 

82 

83 

84 :return: The type of this BotdBot. # noqa: E501 

85 """ 

86 return self._type 

87 

88 @type.setter 

89 def type(self, type: Optional[str]): 

90 """Sets the type of this BotdBot. 

91 

92 

93 :param type: The type of this BotdBot. # noqa: E501 

94 """ 

95 

96 self._type = type 

97