ContentsResponse
Import from pyfj or pyfj.models as ContentsResponse.
ContentsResponse
ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content
content
content: str | None = Field(default=None, description='`content` is populated when `type` is `file`, otherwise null')
download_url
download_url: str | None = None
encoding
encoding: str | None = Field(default=None, description='`encoding` is populated when `type` is `file`, otherwise null')
git_url
git_url: str | None = None
html_url
html_url: str | None = None
last_commit_sha
last_commit_sha: str | None = None
last_commit_when
last_commit_when: datetime | None = None
name
name: str | None = None
path
path: str | None = None
sha
sha: str | None = None
size
size: int | None = None
submodule_git_url
submodule_git_url: str | None = Field(
default=None, description="`submodule_git_url` is populated when `type` is `submodule`, otherwise null"
)
target
target: str | None = Field(default=None, description='`target` is populated when `type` is `symlink`, otherwise null')
type
type: str | None = Field(default=None, description='`type` will be `file`, `dir`, `symlink`, or `submodule`')
url
url: str | None = None
Used by
| Namespace | Operations |
|---|---|
repos.contents |
get · list |