Coverage for fingerprint_pro_server_api_sdk/models/ip_info.py: 93%
29 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.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 attribute_map = {
41 'v4': 'v4',
42 'v6': 'v6'
43 }
45 def __init__(self, v4=None, v6=None): # noqa: E501
46 """IPInfo - a model defined in Swagger""" # noqa: E501
47 self._v4 = None
48 self._v6 = None
49 self.discriminator = None
50 if v4 is not None:
51 self.v4 = v4
52 if v6 is not None:
53 self.v6 = v6
55 @property
56 def v4(self) -> Optional[IPInfoV4]:
57 """Gets the v4 of this IPInfo. # noqa: E501
60 :return: The v4 of this IPInfo. # noqa: E501
61 """
62 return self._v4
64 @v4.setter
65 def v4(self, v4: Optional[IPInfoV4]):
66 """Sets the v4 of this IPInfo.
69 :param v4: The v4 of this IPInfo. # noqa: E501
70 """
72 self._v4 = v4
74 @property
75 def v6(self) -> Optional[IPInfoV6]:
76 """Gets the v6 of this IPInfo. # noqa: E501
79 :return: The v6 of this IPInfo. # noqa: E501
80 """
81 return self._v6
83 @v6.setter
84 def v6(self, v6: Optional[IPInfoV6]):
85 """Sets the v6 of this IPInfo.
88 :param v6: The v6 of this IPInfo. # noqa: E501
89 """
91 self._v6 = v6