# 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** | &#x60;content&#x60; is populated when &#x60;type&#x60; is &#x60;file&#x60;, otherwise null | [optional] [default to undefined]
**download_url** | **string** |  | [optional] [default to undefined]
**encoding** | **string** | &#x60;encoding&#x60; is populated when &#x60;type&#x60; is &#x60;file&#x60;, 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** | &#x60;submodule_git_url&#x60; is populated when &#x60;type&#x60; is &#x60;submodule&#x60;, otherwise null | [optional] [default to undefined]
**target** | **string** | &#x60;target&#x60; is populated when &#x60;type&#x60; is &#x60;symlink&#x60;, otherwise null | [optional] [default to undefined]
**type** | **string** | &#x60;type&#x60; will be &#x60;file&#x60;, &#x60;dir&#x60;, &#x60;symlink&#x60;, or &#x60;submodule&#x60; | [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)
