Coverage for fingerprint_pro_server_api_sdk/models/ip_info_v6.py: 88%
50 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +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.geolocation import Geolocation
17from fingerprint_pro_server_api_sdk.models.ip_info_asn import IPInfoASN
18from fingerprint_pro_server_api_sdk.models.ip_info_data_center import IPInfoDataCenter
21class IPInfoV6(BaseModel):
22 """NOTE: This class is auto generated by the swagger code generator program.
24 Do not edit the class manually.
25 """
26 """
27 Attributes:
28 swagger_types (dict): The key is attribute name
29 and the value is attribute type.
30 attribute_map (dict): The key is attribute name
31 and the value is json key in definition.
32 """
33 swagger_types = {
34 'address': 'str',
35 'geolocation': 'Geolocation',
36 'asn': 'IPInfoASN',
37 'datacenter': 'IPInfoDataCenter'
38 }
40 attribute_map = {
41 'address': 'address',
42 'geolocation': 'geolocation',
43 'asn': 'asn',
44 'datacenter': 'datacenter'
45 }
47 def __init__(self, address=None, geolocation=None, asn=None, datacenter=None): # noqa: E501
48 """IPInfoV6 - a model defined in Swagger""" # noqa: E501
49 self._address = None
50 self._geolocation = None
51 self._asn = None
52 self._datacenter = None
53 self.discriminator = None
54 self.address = address
55 self.geolocation = geolocation
56 if asn is not None:
57 self.asn = asn
58 if datacenter is not None:
59 self.datacenter = datacenter
61 @property
62 def address(self) -> str:
63 """Gets the address of this IPInfoV6. # noqa: E501
66 :return: The address of this IPInfoV6. # noqa: E501
67 """
68 return self._address
70 @address.setter
71 def address(self, address: str):
72 """Sets the address of this IPInfoV6.
75 :param address: The address of this IPInfoV6. # noqa: E501
76 """
77 if address is None:
78 raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501
80 self._address = address
82 @property
83 def geolocation(self) -> Geolocation:
84 """Gets the geolocation of this IPInfoV6. # noqa: E501
87 :return: The geolocation of this IPInfoV6. # noqa: E501
88 """
89 return self._geolocation
91 @geolocation.setter
92 def geolocation(self, geolocation: Geolocation):
93 """Sets the geolocation of this IPInfoV6.
96 :param geolocation: The geolocation of this IPInfoV6. # noqa: E501
97 """
98 if geolocation is None:
99 raise ValueError("Invalid value for `geolocation`, must not be `None`") # noqa: E501
101 self._geolocation = geolocation
103 @property
104 def asn(self) -> Optional[IPInfoASN]:
105 """Gets the asn of this IPInfoV6. # noqa: E501
108 :return: The asn of this IPInfoV6. # noqa: E501
109 """
110 return self._asn
112 @asn.setter
113 def asn(self, asn: Optional[IPInfoASN]):
114 """Sets the asn of this IPInfoV6.
117 :param asn: The asn of this IPInfoV6. # noqa: E501
118 """
120 self._asn = asn
122 @property
123 def datacenter(self) -> Optional[IPInfoDataCenter]:
124 """Gets the datacenter of this IPInfoV6. # noqa: E501
127 :return: The datacenter of this IPInfoV6. # noqa: E501
128 """
129 return self._datacenter
131 @datacenter.setter
132 def datacenter(self, datacenter: Optional[IPInfoDataCenter]):
133 """Sets the datacenter of this IPInfoV6.
136 :param datacenter: The datacenter of this IPInfoV6. # noqa: E501
137 """
139 self._datacenter = datacenter