RoleRef🔗
Definition🔗
class RoleRef implements \JsonSerializable
{
/**
* Policies can apply to roles, teams, or users
* Applying policies to individual users is supported, but discouraged
*/
public \Grafana\Foundation\Accesspolicy\RoleRefKind $kind;
public string $name;
public string $xname;
}
Methods🔗
fromArray🔗
Builds this object from an array.
This function is meant to be used with the return value of json_decode($json, true)
.
jsonSerialize🔗
Returns the data representing this object, preparing it for JSON serialization with json_encode()
.