Coverage for fingerprint_pro_server_api_sdk/models/error_code.py: 95%

22 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-09 17:50 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

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 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

13import re # noqa: F401 

14from typing import Dict, List, Optional # noqa: F401 

15from fingerprint_pro_server_api_sdk.base_model import BaseModel 

16 

17 

18class ErrorCode(BaseModel): 

19 """ 

20 Error code: * `RequestCannotBeParsed` - the query parameters or JSON payload contains some errors that prevented us from parsing it (wrong type/surpassed limits). * `TokenRequired` - `Auth-API-Key` header is missing or empty. * `TokenNotFound` - no Fingerprint application found for specified secret key. * `SubscriptionNotActive` - Fingerprint application is not active. * `WrongRegion` - server and application region differ. * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application. * `RequestNotFound` - the specified request ID was not found. It never existed, expired, or it has been deleted. * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. * `TooManyRequests` - the limit on secret API key requests per second has been exceeded. * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded. * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. * `Failed` - internal server error.  

21 

22 NOTE: This class is auto generated by the swagger code generator program. 

23 

24 Do not edit the class manually. 

25 """ 

26 

27 """ 

28 allowed enum values 

29 """ 

30 REQUESTCANNOTBEPARSED = "RequestCannotBeParsed" 

31 TOKENREQUIRED = "TokenRequired" 

32 TOKENNOTFOUND = "TokenNotFound" 

33 SUBSCRIPTIONNOTACTIVE = "SubscriptionNotActive" 

34 WRONGREGION = "WrongRegion" 

35 FEATURENOTENABLED = "FeatureNotEnabled" 

36 REQUESTNOTFOUND = "RequestNotFound" 

37 VISITORNOTFOUND = "VisitorNotFound" 

38 TOOMANYREQUESTS = "TooManyRequests" 

39 _429_TOO_MANY_REQUESTS = "429 Too Many Requests" 

40 STATENOTREADY = "StateNotReady" 

41 FAILED = "Failed" 

42 """ 

43 Attributes: 

44 swagger_types (dict): The key is attribute name 

45 and the value is attribute type. 

46 attribute_map (dict): The key is attribute name 

47 and the value is json key in definition. 

48 """ 

49 swagger_types = { 

50 } 

51 

52 attribute_map = { 

53 } 

54 

55 def __init__(self): # noqa: E501 

56 """ErrorCode - a model defined in Swagger""" # noqa: E501 

57 self.discriminator = None 

58