Coverage for fingerprint_pro_server_api_sdk/models/proxy.py: 94%
31 statements
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-04 13:05 +0000
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-04 13:05 +0000
1# coding: utf-8
3"""
4 Fingerprint Server API
6 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
16from fingerprint_pro_server_api_sdk.models.proxy_confidence import ProxyConfidence
19class Proxy(BaseModel):
20 """NOTE: This class is auto generated by the swagger code generator program.
22 Do not edit the class manually.
23 """
24 """
25 Attributes:
26 swagger_types (dict): The key is attribute name
27 and the value is attribute type.
28 attribute_map (dict): The key is attribute name
29 and the value is json key in definition.
30 """
31 swagger_types = {
32 'result': 'bool',
33 'confidence': 'ProxyConfidence'
34 }
36 nullable_map = {
37 'result': False,
38 'confidence': False
39 }
41 attribute_map = {
42 'result': 'result',
43 'confidence': 'confidence'
44 }
46 def __init__(self, result=None, confidence=None): # noqa: E501
47 """Proxy - a model defined in Swagger""" # noqa: E501
48 self._result = None
49 self._confidence = None
50 self.discriminator = None
51 self.result = result
52 self.confidence = confidence
54 @property
55 def result(self) -> bool:
56 """Gets the result of this Proxy. # noqa: E501
58 IP address was used by a public proxy provider or belonged to a known recent residential proxy # noqa: E501
60 :return: The result of this Proxy. # noqa: E501
61 """
62 return self._result
64 @result.setter
65 def result(self, result: bool):
66 """Sets the result of this Proxy.
68 IP address was used by a public proxy provider or belonged to a known recent residential proxy # noqa: E501
70 :param result: The result of this Proxy. # noqa: E501
71 """
72 if result is None:
73 raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
75 self._result = result
77 @property
78 def confidence(self) -> ProxyConfidence:
79 """Gets the confidence of this Proxy. # noqa: E501
82 :return: The confidence of this Proxy. # noqa: E501
83 """
84 return self._confidence
86 @confidence.setter
87 def confidence(self, confidence: ProxyConfidence):
88 """Sets the confidence of this Proxy.
91 :param confidence: The confidence of this Proxy. # noqa: E501
92 """
93 if confidence is None:
94 raise ValueError("Invalid value for `confidence`, must not be `None`") # noqa: E501
96 self._confidence = confidence