This repository has been archived on 2020-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-sdk/model_delete_file_options.go
jolheiser fc382e2e9d
Initial generation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-01-10 20:43:26 -06:00

26 lines
1.1 KiB
Go

/*
* Gitea API.
*
* This documentation describes the Gitea API.
*
* API version: 1.1.1
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package gitea
// DeleteFileOptions options for deleting files (used for other File structs below) Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
type DeleteFileOptions struct {
Author *Identity `json:"author,omitempty"`
// branch (optional) to base this file from. if not given, the default branch is used
Branch string `json:"branch,omitempty"`
Committer *Identity `json:"committer,omitempty"`
Dates *CommitDateOptions `json:"dates,omitempty"`
// message (optional) for the commit of this file. if not supplied, a default message will be used
Message string `json:"message,omitempty"`
// new_branch (optional) will make a new branch from `branch` before creating the file
NewBranch string `json:"new_branch,omitempty"`
// sha is the SHA for the file that already exists
Sha string `json:"sha"`
}