sampledbapi.locationtypes module

class sampledbapi.locationtypes.LocationType(d: Dict)[source]

Bases: SampleDBObject

location_type_id: int | None = None
name: str | None = None
sampledbapi.locationtypes.get(location_type_id: int) LocationType[source]

Get the specific location type (location_type_id).

Parameters:

location_type_id (int) – ID of the location to be retrieved.

Returns:

The requested LocationType.

Return type:

Location

sampledbapi.locationtypes.get_list() List[LocationType][source]

Get a list of all location types.

Returns:

List of LocationType objects.

Return type:

List