Class Permission
java.lang.Object
build.cursed.genapi.forgejo.model.Permission
@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 Permission
extends Object
Permission represents a set of permissions
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PermissionCreate an instance of Permission given an JSON stringgetAdmin()Get admingetPull()Get pullgetPush()Get pushinthashCode()voidvoidvoidtoJson()Convert an instance of Permission 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_ADMIN
- See Also:
-
SERIALIZED_NAME_PULL
- See Also:
-
SERIALIZED_NAME_PUSH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Permission
public Permission()
-
-
Method Details
-
admin
-
getAdmin
Get admin- Returns:
- admin
-
setAdmin
-
pull
-
getPull
Get pull- Returns:
- pull
-
setPull
-
push
-
getPush
Get push- Returns:
- push
-
setPush
-
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 Permission
-
fromJson
Create an instance of Permission given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Permission
- Throws:
IOException- if the JSON string is invalid with respect to Permission
-
toJson
Convert an instance of Permission to an JSON string- Returns:
- JSON string
-