Coverage for fingerprint_pro_server_api_sdk/models/product_proxy.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.proxy import Proxy
17from fingerprint_pro_server_api_sdk.models.error import Error
20class ProductProxy(BaseModel):
21 """NOTE: This class is auto generated by the swagger code generator program.
23 Do not edit the class manually.
24 """
25 """
26 Attributes:
27 swagger_types (dict): The key is attribute name
28 and the value is attribute type.
29 attribute_map (dict): The key is attribute name
30 and the value is json key in definition.
31 """
32 swagger_types = {
33 'data': 'Proxy',
34 'error': 'Error'
35 }
37 attribute_map = {
38 'data': 'data',
39 'error': 'error'
40 }
42 def __init__(self, data=None, error=None): # noqa: E501
43 """ProductProxy - a model defined in Swagger""" # noqa: E501
44 self._data = None
45 self._error = None
46 self.discriminator = None
47 if data is not None:
48 self.data = data
49 if error is not None:
50 self.error = error
52 @property
53 def data(self) -> Optional[Proxy]:
54 """Gets the data of this ProductProxy. # noqa: E501
57 :return: The data of this ProductProxy. # noqa: E501
58 """
59 return self._data
61 @data.setter
62 def data(self, data: Optional[Proxy]):
63 """Sets the data of this ProductProxy.
66 :param data: The data of this ProductProxy. # noqa: E501
67 """
69 self._data = data
71 @property
72 def error(self) -> Optional[Error]:
73 """Gets the error of this ProductProxy. # noqa: E501
76 :return: The error of this ProductProxy. # noqa: E501
77 """
78 return self._error
80 @error.setter
81 def error(self, error: Optional[Error]):
82 """Sets the error of this ProductProxy.
85 :param error: The error of this ProductProxy. # noqa: E501
86 """
88 self._error = error