Creates a new Key instance.
The name of the key.
Optional
Whether the key has admin privileges.
Whether the key has access to all servers.
Adds custom server permissions for a specific server.
The ID of the server.
The permissions to set for the server.
The current Key instance for method chaining.
Removes custom server permissions for a specific server.
Sets whether the key has access to all servers.
Sets whether the key has admin privileges.
Sets the name of the key.
The new name for the key.
Converts the Key instance to a JSON object.
The JSON representation of the Key instance.
Creates a new Key instance.