cberg
Version:
Node.js Client for the Codeberg API
30 lines (22 loc) • 1.06 kB
Markdown
ChangeFileOperation for creating, updating or deleting a file
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **string** | new or updated file content, must be base64 encoded | [optional] [default to undefined]
**from_path** | **string** | old path of the file to move | [optional] [default to undefined]
**operation** | **string** | indicates what to do with the file | [default to undefined]
**path** | **string** | path to the existing or new file | [default to undefined]
**sha** | **string** | sha is the SHA for the file that already exists, required for update or delete | [optional] [default to undefined]
```typescript
import { ChangeFileOperation } from 'berg';
const instance: ChangeFileOperation = {
content,
from_path,
operation,
path,
sha,
};
```
[[Back to Model list]](../README.md