isogeo_pysdk.enums.bulk_ignore_reasons module

Isogeo API v1 - Enums for bulk ignore reasons

class isogeo_pysdk.enums.bulk_ignore_reasons.BulkIgnoreReasons(value)

Bases: enum.Enum

Closed list of accepted Application (metadata subresource) kinds in Isogeo API.

Example
>>> # parse members and values
>>> print("{0:<30} {1:>20}".format("Enum", "Value"))
>>> for md_kind in BulkIgnoreReasons:
>>>     print("{0:<30} {1:>20}".format(md_kind, md_kind.value))
Enum                                          Value
BulkIgnoreReasons.AlreadyPresent                  1
BulkIgnoreReasons.Forbidden                       2
BulkIgnoreReasons.Invalid                         3
BulkIgnoreReasons.NotApplicable                   4
BulkIgnoreReasons.NotFound                        5
>>> # check if a var is an accepted value
>>> print("alreadyPresent" in BulkIgnoreReasons.__members__)
True
>>> print("NotValid" in BulkIgnoreReasons.__members__)  # case sensitive
False
>>> print("NotExists" in BulkIgnoreReasons.__members__)
False

See: https://docs.python.org/3/library/enum.html

alreadyPresent = 1
forbidden = 2
invalid = 3
notApplicable = 4
notFound = 5