Coverage for fingerprint_pro_server_api_sdk/models/geolocation_country.py: 93%

29 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 GeolocationCountry(BaseModel): 

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

20 

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 'code': 'str', 

32 'name': 'str' 

33 } 

34 

35 attribute_map = { 

36 'code': 'code', 

37 'name': 'name' 

38 } 

39 

40 def __init__(self, code=None, name=None): # noqa: E501 

41 """GeolocationCountry - a model defined in Swagger""" # noqa: E501 

42 self._code = None 

43 self._name = None 

44 self.discriminator = None 

45 self.code = code 

46 self.name = name 

47 

48 @property 

49 def code(self) -> str: 

50 """Gets the code of this GeolocationCountry. # noqa: E501 

51 

52 

53 :return: The code of this GeolocationCountry. # noqa: E501 

54 """ 

55 return self._code 

56 

57 @code.setter 

58 def code(self, code: str): 

59 """Sets the code of this GeolocationCountry. 

60 

61 

62 :param code: The code of this GeolocationCountry. # noqa: E501 

63 """ 

64 if code is None: 

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

66 

67 self._code = code 

68 

69 @property 

70 def name(self) -> str: 

71 """Gets the name of this GeolocationCountry. # noqa: E501 

72 

73 

74 :return: The name of this GeolocationCountry. # noqa: E501 

75 """ 

76 return self._name 

77 

78 @name.setter 

79 def name(self, name: str): 

80 """Sets the name of this GeolocationCountry. 

81 

82 

83 :param name: The name of this GeolocationCountry. # noqa: E501 

84 """ 

85 if name is None: 

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

87 

88 self._name = name 

89