What POST /user/keys needs to register an SSH key.
'''Derived from spec/swagger.v1.json's CreateKeyOption''', which declares title and key required and read_only optional. No golden capture exists — the path needs a token.
Built through CreateSshKey.of and refined with readOnly, so a value of this type is always a request the instance can act on. The constructor, apply and copy are private for that reason.
==read_only is about pushing, not about reading this object==
A read-only key may fetch but not push. It is sent only when the caller asked for it: omitting the key leaves the decision to Forgejo's default, which is a read/write key, and sending read_only: false explicitly says the same thing. The two spellings are indistinguishable to the instance, so this model carries a plain Boolean and always emits it — the alternative, an Option[Boolean] with two spellings for one meaning, buys nothing.
Value parameters
- isReadOnly
-
whether the key may only fetch
- key
-
the key material as
gitreads it, for examplessh-ed25519 AAAA… comment - title
-
the label the key is listed under, which the account holder chooses
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any