isogeo_pysdk.models.contact module

Isogeo API v1 - Model of Contact entity

See: http://help.isogeo.com/api/complete/index.html#definition-contact

class isogeo_pysdk.models.contact.Contact(_abilities: list = None, _deleted: bool = None, _id: str = None, _tag: str = None, addressLine1: str = None, addressLine2: str = None, addressLine3: str = None, available: bool = None, city: str = None, count: int = None, countryCode: str = None, email: str = None, fax: str = None, hash: str = None, name: str = None, organization: str = None, owner: dict = None, phone: str = None, type: str = None, zipCode: str = None, created=None, modified=None)[source]

Bases: object

Contacts are entities used into Isogeo adress book that can be associated to metadata.

addressLine1

Gets the id of this Contact.

Returns:The id of this Contact.
Return type:str
addressLine2

Gets the id of this Contact.

Returns:The second address line of this Contact.
Return type:str
addressLine3

Gets the third address line of this Contact.

Returns:The The third address line of this Contact.
Return type:str
attr_crea = {'addressLine1': 'str', 'addressLine2': 'str', 'addressLine3': 'str', 'city': 'str', 'countryCode': 'str', 'email': 'str', 'fax': 'str', 'name': 'str', 'organization': 'str', 'phone': 'str', 'zipCode': 'str'}
attr_map = {'fax': 'faxNumber', 'organization': 'organizationName', 'phone': 'phoneNumber'}
attr_types = {'_abilities': <class 'str'>, '_id': <class 'str'>, '_tag': <class 'str'>, 'addressLine1': <class 'str'>, 'addressLine2': <class 'str'>, 'addressLine3': <class 'str'>, 'city': <class 'str'>, 'count': <class 'int'>, 'countryCode': <class 'str'>, 'email': <class 'str'>, 'fax': <class 'str'>, 'hash': <class 'str'>, 'name': <class 'str'>, 'organization': <class 'str'>, 'owner': <class 'dict'>, 'phone': <class 'str'>, 'type': <class 'str'>, 'zipCode': <class 'str'>}
available

Gets the availibility of this Contact.

Returns:The availibility of this Contact.
Return type:str
city

Gets the city of this Contact.

Returns:The city of this Contact.
Return type:str
count

Gets the id of this Contact.

Returns:The id of this Contact.
Return type:str
countryCode

Gets the country code of this Contact.

Returns:The country code of this Contact.
Return type:str
email

Gets the email of this Contact.

Returns:The email of this Contact.
Return type:str
fax

Gets the fax of this Contact.

Returns:The fax of this Contact.
Return type:str
hash

Gets the hash of this Contact.

Returns:The hash of this Contact.
Return type:str
name

Gets the name of this Contact.

Returns:The name of this Contact.
Return type:str
organization

Gets the organization of this Contact.

Returns:The organization of this Contact.
Return type:str
owner

Gets the owner of this Specification.

Returns:The owner of this Specification.
Return type:Workgroup
phone

Gets the phone number of this Contact.

Returns:The phone number of this Contact.
Return type:str
to_dict() → dict[source]

Returns the model properties as a dict.

to_dict_creation() → dict[source]

Returns the model properties as a dict structured for creation purpose (POST)

to_str() → str[source]

Returns the string representation of the model.

type

Gets the type of this Contact.

Returns:The type of this Contact.
Return type:str
zipCode

Gets the zip (postal) code of this Contact.

Returns:The zip (postal) code of this Contact.
Return type:str