isogeo_pysdk.enums.link_types module
Isogeo API v1 - Enums for Links types
See: http://help.isogeo.com/api/complete/index.html#definition-resourceLink
- class isogeo_pysdk.enums.link_types.LinkTypes(value)
Bases:
Enum
Closed list of accepted Link types in Isogeo API.
- Example
>>> # parse members and values >>> print("{0:<30} {1:>20}".format("Enum", "Value")) >>> for i in LinkTypes: >>> print("{0:<30} {1:>20}".format(i, i.value)) Enum Value LinkTypes.hosted 1 LinkTypes.link 2 LinkTypes.url 3
>>> # check if a var is an accepted value >>> print("hosted" in LinkTypes.__members__) True >>> print("Link" in LinkTypes.__members__) # case sensitive False >>> print("external" in LinkTypes.__members__) False
See: https://docs.python.org/3/library/enum.html
- hosted = 1
- link = 2
- url = 3