Class ChangeFilesOptions
java.lang.Object
build.cursed.genapi.forgejo.model.ChangeFilesOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class ChangeFilesOptions
extends Object
ChangeFilesOptions options for creating, updating or deleting multiple files 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)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFilesItem(ChangeFileOperation filesItem) dates(CommitDateOptions dates) booleanfiles(List<ChangeFileOperation> files) static ChangeFilesOptionsCreate an instance of ChangeFilesOptions given an JSON stringGet authorbranch (optional) to base this file from.Get committergetDates()Get datesgetFiles()list of file operationsmessage (optional) for the commit of this file.new_branch (optional) will make a new branch from `branch` before creating the fileAdd a Signed-off-by trailer by the committer at the end of the commit log message.inthashCode()voidvoidvoidsetCommitter(Identity committer) voidsetDates(CommitDateOptions dates) voidsetFiles(List<ChangeFileOperation> files) voidsetMessage(String message) voidsetNewBranch(String newBranch) voidsetSignoff(Boolean signoff) toJson()Convert an instance of ChangeFilesOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUTHOR
- See Also:
-
SERIALIZED_NAME_BRANCH
- See Also:
-
SERIALIZED_NAME_COMMITTER
- See Also:
-
SERIALIZED_NAME_DATES
- See Also:
-
SERIALIZED_NAME_FILES
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_NEW_BRANCH
- See Also:
-
SERIALIZED_NAME_SIGNOFF
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ChangeFilesOptions
public ChangeFilesOptions()
-
-
Method Details
-
author
-
getAuthor
Get author- Returns:
- author
-
setAuthor
-
branch
-
getBranch
branch (optional) to base this file from. if not given, the default branch is used- Returns:
- branch
-
setBranch
-
committer
-
getCommitter
Get committer- Returns:
- committer
-
setCommitter
-
dates
-
getDates
Get dates- Returns:
- dates
-
setDates
-
files
-
addFilesItem
-
getFiles
list of file operations- Returns:
- files
-
setFiles
-
message
-
getMessage
message (optional) for the commit of this file. if not supplied, a default message will be used- Returns:
- message
-
setMessage
-
newBranch
-
getNewBranch
new_branch (optional) will make a new branch from `branch` before creating the file- Returns:
- newBranch
-
setNewBranch
-
signoff
-
getSignoff
Add a Signed-off-by trailer by the committer at the end of the commit log message.- Returns:
- signoff
-
setSignoff
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ChangeFilesOptions
-
fromJson
Create an instance of ChangeFilesOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ChangeFilesOptions
- Throws:
IOException- if the JSON string is invalid with respect to ChangeFilesOptions
-
toJson
Convert an instance of ChangeFilesOptions to an JSON string- Returns:
- JSON string
-