Coverage for fingerprint_pro_server_api_sdk/models/ip_info_asn.py: 92%

40 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 

16 

17 

18class IPInfoASN(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 'asn': 'str', 

32 'name': 'str', 

33 'network': 'str' 

34 } 

35 

36 nullable_map = { 

37 'asn': False, 

38 'name': False, 

39 'network': False 

40 } 

41 

42 attribute_map = { 

43 'asn': 'asn', 

44 'name': 'name', 

45 'network': 'network' 

46 } 

47 

48 def __init__(self, asn=None, name=None, network=None): # noqa: E501 

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

50 self._asn = None 

51 self._name = None 

52 self._network = None 

53 self.discriminator = None 

54 self.asn = asn 

55 self.name = name 

56 self.network = network 

57 

58 @property 

59 def asn(self) -> str: 

60 """Gets the asn of this IPInfoASN. # noqa: E501 

61 

62 

63 :return: The asn of this IPInfoASN. # noqa: E501 

64 """ 

65 return self._asn 

66 

67 @asn.setter 

68 def asn(self, asn: str): 

69 """Sets the asn of this IPInfoASN. 

70 

71 

72 :param asn: The asn of this IPInfoASN. # noqa: E501 

73 """ 

74 if asn is None: 

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

76 

77 self._asn = asn 

78 

79 @property 

80 def name(self) -> str: 

81 """Gets the name of this IPInfoASN. # noqa: E501 

82 

83 

84 :return: The name of this IPInfoASN. # noqa: E501 

85 """ 

86 return self._name 

87 

88 @name.setter 

89 def name(self, name: str): 

90 """Sets the name of this IPInfoASN. 

91 

92 

93 :param name: The name of this IPInfoASN. # noqa: E501 

94 """ 

95 if name is None: 

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

97 

98 self._name = name 

99 

100 @property 

101 def network(self) -> str: 

102 """Gets the network of this IPInfoASN. # noqa: E501 

103 

104 

105 :return: The network of this IPInfoASN. # noqa: E501 

106 """ 

107 return self._network 

108 

109 @network.setter 

110 def network(self, network: str): 

111 """Sets the network of this IPInfoASN. 

112 

113 

114 :param network: The network of this IPInfoASN. # noqa: E501 

115 """ 

116 if network is None: 

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

118 

119 self._network = network 

120