Coverage for fingerprint_pro_server_api_sdk/models/ip_info.py: 100%
30 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +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.ip_info_v4 import IPInfoV4
17from fingerprint_pro_server_api_sdk.models.ip_info_v6 import IPInfoV6
20class IPInfo(BaseModel):
21 """
22 Details about the request IP address. Has separate fields for v4 and v6 IP address versions.
24 NOTE: This class is auto generated by the swagger code generator program.
26 Do not edit the class manually.
27 """
28 """
29 Attributes:
30 swagger_types (dict): The key is attribute name
31 and the value is attribute type.
32 attribute_map (dict): The key is attribute name
33 and the value is json key in definition.
34 """
35 swagger_types = {
36 'v4': 'IPInfoV4',
37 'v6': 'IPInfoV6'
38 }
40 nullable_map = {
41 'v4': False,
42 'v6': False
43 }
45 attribute_map = {
46 'v4': 'v4',
47 'v6': 'v6'
48 }
50 def __init__(self, v4=None, v6=None): # noqa: E501
51 """IPInfo - a model defined in Swagger""" # noqa: E501
52 self._v4 = None
53 self._v6 = None
54 self.discriminator = None
55 if v4 is not None:
56 self.v4 = v4
57 if v6 is not None:
58 self.v6 = v6
60 @property
61 def v4(self) -> Optional[IPInfoV4]:
62 """Gets the v4 of this IPInfo. # noqa: E501
65 :return: The v4 of this IPInfo. # noqa: E501
66 """
67 return self._v4
69 @v4.setter
70 def v4(self, v4: Optional[IPInfoV4]):
71 """Sets the v4 of this IPInfo.
74 :param v4: The v4 of this IPInfo. # noqa: E501
75 """
77 self._v4 = v4
79 @property
80 def v6(self) -> Optional[IPInfoV6]:
81 """Gets the v6 of this IPInfo. # noqa: E501
84 :return: The v6 of this IPInfo. # noqa: E501
85 """
86 return self._v6
88 @v6.setter
89 def v6(self, v6: Optional[IPInfoV6]):
90 """Sets the v6 of this IPInfo.
93 :param v6: The v6 of this IPInfo. # noqa: E501
94 """
96 self._v6 = v6