Coverage for fingerprint_pro_server_api_sdk/models/error_plain_response.py: 92%
26 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
18class ErrorPlainResponse(BaseModel):
19 """NOTE: This class is auto generated by the swagger code generator program.
21 Do not edit the class manually.
22 """
23 """
24 Attributes:
25 swagger_types (dict): The key is attribute name
26 and the value is attribute type.
27 attribute_map (dict): The key is attribute name
28 and the value is json key in definition.
29 """
30 swagger_types = {
31 'error': 'str'
32 }
34 attribute_map = {
35 'error': 'error'
36 }
38 def __init__(self, error=None): # noqa: E501
39 """ErrorPlainResponse - a model defined in Swagger""" # noqa: E501
40 self._error = None
41 self.discriminator = None
42 self.error = error
43 self.retry_after = 0
45 @property
46 def error(self) -> str:
47 """Gets the error of this ErrorPlainResponse. # noqa: E501
50 :return: The error of this ErrorPlainResponse. # noqa: E501
51 """
52 return self._error
54 @error.setter
55 def error(self, error: str):
56 """Sets the error of this ErrorPlainResponse.
59 :param error: The error of this ErrorPlainResponse. # noqa: E501
60 """
61 if error is None:
62 raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
64 self._error = error
66 @property
67 def retry_after(self) -> int:
68 """Indicates how many seconds you should wait before attempting the next request for 429 error """
69 return self._retry_after
71 @retry_after.setter
72 def retry_after(self, retry_after: int):
73 self._retry_after = retry_after