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=None, _deleted=None, _id=None, _tag=None, addressLine1=None, addressLine2=None, addressLine3=None, available=None, city=None, count=None, countryCode=None, email=None, fax=None, hash=None, name=None, organization=None, owner=None, phone=None, type=None, zipCode=None, created=None, modified=None)

Bases : object

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

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'>}
property addressLine1: str

Gets the id of this Contact.

Renvoie:

The id of this Contact.

Type renvoyé:

str

property addressLine2: str

Gets the id of this Contact.

Renvoie:

The second address line of this Contact.

Type renvoyé:

str

property addressLine3: str

Gets the third address line of this Contact.

Renvoie:

The The third address line of this Contact.

Type renvoyé:

str

property available: bool

Gets the availibility of this Contact.

Renvoie:

The availibility of this Contact.

Type renvoyé:

str

property city: str

Gets the city of this Contact.

Renvoie:

The city of this Contact.

Type renvoyé:

str

property count: int

Gets the id of this Contact.

Renvoie:

The id of this Contact.

Type renvoyé:

str

property countryCode: str

Gets the country code of this Contact.

Renvoie:

The country code of this Contact.

Type renvoyé:

str

property email: str

Gets the email of this Contact.

Renvoie:

The email of this Contact.

Type renvoyé:

str

property fax: str

Gets the fax of this Contact.

Renvoie:

The fax of this Contact.

Type renvoyé:

str

property hash: str

Gets the hash of this Contact.

Renvoie:

The hash of this Contact.

Type renvoyé:

str

property name: str

Gets the name of this Contact.

Renvoie:

The name of this Contact.

Type renvoyé:

str

property organization: str

Gets the organization of this Contact.

Renvoie:

The organization of this Contact.

Type renvoyé:

str

property owner

Gets the owner of this Specification.

Renvoie:

The owner of this Specification.

Type renvoyé:

Workgroup

property phone: str

Gets the phone number of this Contact.

Renvoie:

The phone number of this Contact.

Type renvoyé:

str

to_dict()

Returns the model properties as a dict.

Type renvoyé:

dict

to_dict_creation()

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

Type renvoyé:

dict

to_str()

Returns the string representation of the model.

Type renvoyé:

str

property type: str

Gets the type of this Contact.

Renvoie:

The type of this Contact.

Type renvoyé:

str

property zipCode: str

Gets the zip (postal) code of this Contact.

Renvoie:

The zip (postal) code of this Contact.

Type renvoyé:

str