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

39 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 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 attribute_map = { 

37 'asn': 'asn', 

38 'name': 'name', 

39 'network': 'network' 

40 } 

41 

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

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

44 self._asn = None 

45 self._name = None 

46 self._network = None 

47 self.discriminator = None 

48 self.asn = asn 

49 self.name = name 

50 self.network = network 

51 

52 @property 

53 def asn(self) -> str: 

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

55 

56 

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

58 """ 

59 return self._asn 

60 

61 @asn.setter 

62 def asn(self, asn: str): 

63 """Sets the asn of this IPInfoASN. 

64 

65 

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

67 """ 

68 if asn is None: 

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

70 

71 self._asn = asn 

72 

73 @property 

74 def name(self) -> str: 

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

76 

77 

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

79 """ 

80 return self._name 

81 

82 @name.setter 

83 def name(self, name: str): 

84 """Sets the name of this IPInfoASN. 

85 

86 

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

88 """ 

89 if name is None: 

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

91 

92 self._name = name 

93 

94 @property 

95 def network(self) -> str: 

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

97 

98 

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

100 """ 

101 return self._network 

102 

103 @network.setter 

104 def network(self, network: str): 

105 """Sets the network of this IPInfoASN. 

106 

107 

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

109 """ 

110 if network is None: 

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

112 

113 self._network = network 

114