Class FilesResponse
java.lang.Object
build.cursed.genapi.forgejo.model.FilesResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class FilesResponse
extends Object
FilesResponse contains information about multiple files from a repo
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFilesItem(ContentsResponse filesItem) commit(FileCommitResponse commit) booleanfiles(List<ContentsResponse> files) static FilesResponseCreate an instance of FilesResponse given an JSON stringGet commitgetFiles()Get filesGet verificationinthashCode()voidsetCommit(FileCommitResponse commit) voidsetFiles(List<ContentsResponse> files) voidsetVerification(PayloadCommitVerification verification) toJson()Convert an instance of FilesResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundverification(PayloadCommitVerification verification)
-
Field Details
-
SERIALIZED_NAME_COMMIT
- See Also:
-
SERIALIZED_NAME_FILES
- See Also:
-
SERIALIZED_NAME_VERIFICATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FilesResponse
public FilesResponse()
-
-
Method Details
-
commit
-
getCommit
Get commit- Returns:
- commit
-
setCommit
-
files
-
addFilesItem
-
getFiles
Get files- Returns:
- files
-
setFiles
-
verification
-
getVerification
Get verification- Returns:
- verification
-
setVerification
-
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 FilesResponse
-
fromJson
Create an instance of FilesResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FilesResponse
- Throws:
IOException- if the JSON string is invalid with respect to FilesResponse
-
toJson
Convert an instance of FilesResponse to an JSON string- Returns:
- JSON string
-