Orion Client Links¶
Orion Type Link¶
Record Type Link¶
-
class
orionclient.links.
RecordLink
(resource, record_id, field_name=None)¶ -
get_field
(include_meta=True)¶ Retrieves the OEField associated with the link
Returns: OEField Raises: OrionLinkError – If link does not contain a field name
-
get_orion_resource
()¶ Retrieves the Orion Resource that indicates the base Orion resource that the linked resource is stored in.
-
get_record
()¶ Retrieves the record that the link is associated with
Returns: Record Return type: OEMolRecord Raises: OrionLinkError – If unable to find the specified record
-
Shard Type Link¶
-
class
orionclient.links.
ShardLink
(resource, shard_id)¶ -
get_orion_resource
()¶ Retrieves the Orion Resource that indicates the base Orion resource that the linked resource is stored in.
-
get_shard
()¶ Retrieve the shard associated with the link.
Returns: Shard Raises: OrionLinkError – Unable to find specified shard
-