Coverage for fingerprint_pro_server_api_sdk/models/ip_info_asn.py: 94%
49 statements
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-22 14:27 +0000
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-22 14:27 +0000
1# coding: utf-8
3"""
4 Server API v3 (deprecated)
6 > 🚧 Deprecation Notice > > This version of Server API is marked as deprecated starting on **Jan 7th 2026** and will be fully defunct on **Jan 7th 2027** according to our [API Deprecation Policy](https://dev.fingerprint.com/reference/api-deprecation-policy). If you still use this version, please follow our [migration guide](https://dev.fingerprint.com/reference/migrating-from-server-api-v3-to-v4) to migrate from this deprecated version to the new one. Fingerprint Server API allows you to search, update, and delete identification 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
18class IPInfoASN(BaseModel):
19 """NOTE: This class is auto generated by the swagger code generator program.
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 'type': 'str'
35 }
37 nullable_map = {
38 'asn': False,
39 'name': False,
40 'network': False,
41 'type': False
42 }
44 attribute_map = {
45 'asn': 'asn',
46 'name': 'name',
47 'network': 'network',
48 'type': 'type'
49 }
51 def __init__(self, asn=None, name=None, network=None, type=None): # noqa: E501
52 """IPInfoASN - a model defined in Swagger""" # noqa: E501
53 self._asn = None
54 self._name = None
55 self._network = None
56 self._type = None
57 self.discriminator = None
58 self.asn = asn
59 self.name = name
60 self.network = network
61 if type is not None:
62 self.type = type
64 @property
65 def asn(self) -> str:
66 """Gets the asn of this IPInfoASN. # noqa: E501
69 :return: The asn of this IPInfoASN. # noqa: E501
70 """
71 return self._asn
73 @asn.setter
74 def asn(self, asn: str):
75 """Sets the asn of this IPInfoASN.
78 :param asn: The asn of this IPInfoASN. # noqa: E501
79 """
80 if asn is None:
81 raise ValueError("Invalid value for `asn`, must not be `None`") # noqa: E501
83 self._asn = asn
85 @property
86 def name(self) -> str:
87 """Gets the name of this IPInfoASN. # noqa: E501
90 :return: The name of this IPInfoASN. # noqa: E501
91 """
92 return self._name
94 @name.setter
95 def name(self, name: str):
96 """Sets the name of this IPInfoASN.
99 :param name: The name of this IPInfoASN. # noqa: E501
100 """
101 if name is None:
102 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
104 self._name = name
106 @property
107 def network(self) -> str:
108 """Gets the network of this IPInfoASN. # noqa: E501
111 :return: The network of this IPInfoASN. # noqa: E501
112 """
113 return self._network
115 @network.setter
116 def network(self, network: str):
117 """Sets the network of this IPInfoASN.
120 :param network: The network of this IPInfoASN. # noqa: E501
121 """
122 if network is None:
123 raise ValueError("Invalid value for `network`, must not be `None`") # noqa: E501
125 self._network = network
127 @property
128 def type(self) -> Optional[str]:
129 """Gets the type of this IPInfoASN. # noqa: E501
132 :return: The type of this IPInfoASN. # noqa: E501
133 """
134 return self._type
136 @type.setter
137 def type(self, type: Optional[str]):
138 """Sets the type of this IPInfoASN.
141 :param type: The type of this IPInfoASN. # noqa: E501
142 """
144 self._type = type