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

40 statements  

« prev     ^ index     » next       coverage.py v7.14.2, created at 2026-06-22 14:27 +0000

1# coding: utf-8 

2 

3""" 

4 Server API v3 (deprecated) 

5 

6 > 🚧 Deprecation Notice > > This version of Server API is marked as deprecated starting on **Jan 7th 2026** and will be fully defunct on **Jan 7th 2027** according to our [API Deprecation Policy](https://dev.fingerprint.com/reference/api-deprecation-policy). If you still use this version, please follow our [migration guide](https://dev.fingerprint.com/reference/migrating-from-server-api-v3-to-v4) to migrate from this deprecated version to the new one. 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 

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 

16from fingerprint_pro_server_api_sdk.models.integration import Integration 

17 

18 

19class SDK(BaseModel): 

20 """ 

21 Contains information about the SDK used to perform the request. 

22 

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

24 

25 Do not edit the class manually. 

26 """ 

27 """ 

28 Attributes: 

29 swagger_types (dict): The key is attribute name 

30 and the value is attribute type. 

31 attribute_map (dict): The key is attribute name 

32 and the value is json key in definition. 

33 """ 

34 swagger_types = { 

35 'platform': 'str', 

36 'version': 'str', 

37 'integrations': 'list[Integration]' 

38 } 

39 

40 nullable_map = { 

41 'platform': False, 

42 'version': False, 

43 'integrations': False 

44 } 

45 

46 attribute_map = { 

47 'platform': 'platform', 

48 'version': 'version', 

49 'integrations': 'integrations' 

50 } 

51 

52 def __init__(self, platform=None, version=None, integrations=None): # noqa: E501 

53 """SDK - a model defined in Swagger""" # noqa: E501 

54 self._platform = None 

55 self._version = None 

56 self._integrations = None 

57 self.discriminator = None 

58 self.platform = platform 

59 self.version = version 

60 if integrations is not None: 

61 self.integrations = integrations 

62 

63 @property 

64 def platform(self) -> str: 

65 """Gets the platform of this SDK. # noqa: E501 

66 

67 Platform of the SDK. # noqa: E501 

68 

69 :return: The platform of this SDK. # noqa: E501 

70 """ 

71 return self._platform 

72 

73 @platform.setter 

74 def platform(self, platform: str): 

75 """Sets the platform of this SDK. 

76 

77 Platform of the SDK. # noqa: E501 

78 

79 :param platform: The platform of this SDK. # noqa: E501 

80 """ 

81 if platform is None: 

82 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 

83 

84 self._platform = platform 

85 

86 @property 

87 def version(self) -> str: 

88 """Gets the version of this SDK. # noqa: E501 

89 

90 SDK version string. # noqa: E501 

91 

92 :return: The version of this SDK. # noqa: E501 

93 """ 

94 return self._version 

95 

96 @version.setter 

97 def version(self, version: str): 

98 """Sets the version of this SDK. 

99 

100 SDK version string. # noqa: E501 

101 

102 :param version: The version of this SDK. # noqa: E501 

103 """ 

104 if version is None: 

105 raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 

106 

107 self._version = version 

108 

109 @property 

110 def integrations(self) -> Optional[List[Integration]]: 

111 """Gets the integrations of this SDK. # noqa: E501 

112 

113 

114 :return: The integrations of this SDK. # noqa: E501 

115 """ 

116 return self._integrations 

117 

118 @integrations.setter 

119 def integrations(self, integrations: Optional[List[Integration]]): 

120 """Sets the integrations of this SDK. 

121 

122 

123 :param integrations: The integrations of this SDK. # noqa: E501 

124 """ 

125 

126 self._integrations = integrations 

127