blob_ref
References to blobs stored on a PDS.
- class atproto_client.models.blob_ref.IpldLink
Bases:
BaseModelCID representation in JSON.
- field link: str [Required]
CID.
- class atproto_client.models.blob_ref.BlobRef
Bases:
BaseModelBlob reference.
- field mime_type: str [Required]
Mime type.
- field size: int [Required]
Size in bytes.
- to_bytes_representation() BlobRef
Get bytes representation.
Note
Used in Firehose, CAR, etc. where bytes are possible.
Warning
It returns new instance.
- Returns:
BlobRef in bytes representation.
- to_json_representation() BlobRef
Get JSON representation.
Note
Used in XRPC, etc. where JSON is used.
Warning
It returns new instance.
- Returns:
BlobRef in JSON representation.
- property cid: CID
Get CID.
- property is_bytes_representation: bool
Check if it is bytes representation.
- Returns:
True if it is bytes representation.
- property is_json_representation: bool
Check if it is JSON representation.
- Returns:
True if it is JSON representation.