Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 2.05 KB

File metadata and controls

44 lines (35 loc) · 2.05 KB

ContentsResponse

ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content

Properties

Name Type Description Notes
links FileLinksResponse [optional]
content str `content` is populated when `type` is `file`, otherwise null [optional]
download_url str [optional]
encoding str `encoding` is populated when `type` is `file`, otherwise null [optional]
git_url str [optional]
html_url str [optional]
last_commit_sha str [optional]
name str [optional]
path str [optional]
sha str [optional]
size int [optional]
submodule_git_url str `submodule_git_url` is populated when `type` is `submodule`, otherwise null [optional]
target str `target` is populated when `type` is `symlink`, otherwise null [optional]
type str `type` will be `file`, `dir`, `symlink`, or `submodule` [optional]
url str [optional]

Example

from clientapi_forgejo.models.contents_response import ContentsResponse

# TODO update the JSON string below
json = "{}"
# create an instance of ContentsResponse from a JSON string
contents_response_instance = ContentsResponse.from_json(json)
# print the JSON string representation of the object
print(ContentsResponse.to_json())

# convert the object into a dict
contents_response_dict = contents_response_instance.to_dict()
# create an instance of ContentsResponse from a dict
contents_response_from_dict = ContentsResponse.from_dict(contents_response_dict)

[Back to Model list] [Back to API list] [Back to README]