Coverage for fingerprint_pro_server_api_sdk/models/geolocation_continent.py: 93%
30 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +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 GeolocationContinent(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 'code': 'str',
32 'name': 'str'
33 }
35 nullable_map = {
36 'code': False,
37 'name': False
38 }
40 attribute_map = {
41 'code': 'code',
42 'name': 'name'
43 }
45 def __init__(self, code=None, name=None): # noqa: E501
46 """GeolocationContinent - a model defined in Swagger""" # noqa: E501
47 self._code = None
48 self._name = None
49 self.discriminator = None
50 self.code = code
51 self.name = name
53 @property
54 def code(self) -> str:
55 """Gets the code of this GeolocationContinent. # noqa: E501
58 :return: The code of this GeolocationContinent. # noqa: E501
59 """
60 return self._code
62 @code.setter
63 def code(self, code: str):
64 """Sets the code of this GeolocationContinent.
67 :param code: The code of this GeolocationContinent. # noqa: E501
68 """
69 if code is None:
70 raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501
72 self._code = code
74 @property
75 def name(self) -> str:
76 """Gets the name of this GeolocationContinent. # noqa: E501
79 :return: The name of this GeolocationContinent. # noqa: E501
80 """
81 return self._name
83 @name.setter
84 def name(self, name: str):
85 """Sets the name of this GeolocationContinent.
88 :param name: The name of this GeolocationContinent. # noqa: E501
89 """
90 if name is None:
91 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
93 self._name = name