Class GPGKey
java.lang.Object
build.cursed.genapi.forgejo.model.GPGKey
@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 GPGKey
extends Object
GPGKey a user GPG key to sign commit and tag in repository
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEmailsItem(GPGKeyEmail emailsItem) addSubkeysItem(GPGKey subkeysItem) canCertify(Boolean canCertify) canEncryptComms(Boolean canEncryptComms) canEncryptStorage(Boolean canEncryptStorage) createdAt(OffsetDateTime createdAt) emails(List<GPGKeyEmail> emails) booleanexpiresAt(OffsetDateTime expiresAt) static GPGKeyCreate an instance of GPGKey given an JSON stringGet canCertifyGet canEncryptCommsGet canEncryptStorageGet canSignGet createdAtGet emailsGet expiresAtgetId()Get idgetKeyId()Get keyIdGet primaryKeyIdGet publicKeyGet subkeysGet verifiedinthashCode()primaryKeyId(String primaryKeyId) voidsetCanCertify(Boolean canCertify) voidsetCanEncryptComms(Boolean canEncryptComms) voidsetCanEncryptStorage(Boolean canEncryptStorage) voidsetCanSign(Boolean canSign) voidsetCreatedAt(OffsetDateTime createdAt) voidsetEmails(List<GPGKeyEmail> emails) voidsetExpiresAt(OffsetDateTime expiresAt) voidvoidvoidsetPrimaryKeyId(String primaryKeyId) voidsetPublicKey(String publicKey) voidsetSubkeys(List<GPGKey> subkeys) voidsetVerified(Boolean verified) toJson()Convert an instance of GPGKey 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_CAN_CERTIFY
- See Also:
-
SERIALIZED_NAME_CAN_ENCRYPT_COMMS
- See Also:
-
SERIALIZED_NAME_CAN_ENCRYPT_STORAGE
- See Also:
-
SERIALIZED_NAME_CAN_SIGN
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EMAILS
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_KEY_ID
- See Also:
-
SERIALIZED_NAME_PRIMARY_KEY_ID
- See Also:
-
SERIALIZED_NAME_PUBLIC_KEY
- See Also:
-
SERIALIZED_NAME_SUBKEYS
- See Also:
-
SERIALIZED_NAME_VERIFIED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GPGKey
public GPGKey()
-
-
Method Details
-
canCertify
-
getCanCertify
Get canCertify- Returns:
- canCertify
-
setCanCertify
-
canEncryptComms
-
getCanEncryptComms
Get canEncryptComms- Returns:
- canEncryptComms
-
setCanEncryptComms
-
canEncryptStorage
-
getCanEncryptStorage
Get canEncryptStorage- Returns:
- canEncryptStorage
-
setCanEncryptStorage
-
canSign
-
getCanSign
Get canSign- Returns:
- canSign
-
setCanSign
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
emails
-
addEmailsItem
-
getEmails
Get emails- Returns:
- emails
-
setEmails
-
expiresAt
-
getExpiresAt
Get expiresAt- Returns:
- expiresAt
-
setExpiresAt
-
id
-
getId
Get id- Returns:
- id
-
setId
-
keyId
-
getKeyId
Get keyId- Returns:
- keyId
-
setKeyId
-
-
getPrimaryKeyId
Get primaryKeyId- Returns:
- primaryKeyId
-
setPrimaryKeyId
-
publicKey
-
getPublicKey
Get publicKey- Returns:
- publicKey
-
setPublicKey
-
subkeys
-
addSubkeysItem
-
getSubkeys
Get subkeys- Returns:
- subkeys
-
setSubkeys
-
verified
-
getVerified
Get verified- Returns:
- verified
-
setVerified
-
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 GPGKey
-
fromJson
Create an instance of GPGKey given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GPGKey
- Throws:
IOException- if the JSON string is invalid with respect to GPGKey
-
toJson
Convert an instance of GPGKey to an JSON string- Returns:
- JSON string
-