UNPKG

cberg

Version:

Node.js Client for the Codeberg API

52 lines (44 loc) 2.3 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**](FileLinksResponse.md) | | [optional] [default to undefined] **content** | **string** | `content` is populated when `type` is `file`, otherwise null | [optional] [default to undefined] **download_url** | **string** | | [optional] [default to undefined] **encoding** | **string** | `encoding` is populated when `type` is `file`, otherwise null | [optional] [default to undefined] **git_url** | **string** | | [optional] [default to undefined] **html_url** | **string** | | [optional] [default to undefined] **last_commit_sha** | **string** | | [optional] [default to undefined] **last_commit_when** | **string** | | [optional] [default to undefined] **name** | **string** | | [optional] [default to undefined] **path** | **string** | | [optional] [default to undefined] **sha** | **string** | | [optional] [default to undefined] **size** | **number** | | [optional] [default to undefined] **submodule_git_url** | **string** | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional] [default to undefined] **target** | **string** | `target` is populated when `type` is `symlink`, otherwise null | [optional] [default to undefined] **type** | **string** | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional] [default to undefined] **url** | **string** | | [optional] [default to undefined] ## Example ```typescript import { ContentsResponse } from 'berg'; const instance: ContentsResponse = { _links, content, download_url, encoding, git_url, html_url, last_commit_sha, last_commit_when, name, path, sha, size, submodule_git_url, target, type, url, }; ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)