A Pydantic model for a blob, returned by the GitHub blob endpoint.
See https://docs.github.com/en/rest/git/blobs#get-a-blob
- Parameters:
data (Any)
- Fields:
-
-
field content:
str [Required]
The blob’s encoded content. Use the decode method to decode.
-
field encoding:
str [Required]
Content encoding (typically base64).
-
field sha:
str [Required]
Git SHA of tree object.
-
field size:
int [Required]
Size of the content in bytes.
-
field url:
HttpUrl [Required]
API URL of this resource.
-
decode()
Decode the content field.
Currently supports these encodings:
- Returns:
The decoded content.
- Return type:
str