AccessPolicy🔗
Definition🔗
class AccessPolicy implements \JsonSerializable
{
/**
* The scope where these policies should apply
*/
public \Grafana\Foundation\Accesspolicy\ResourceRef $scope;
/**
* The role that must apply this policy
*/
public \Grafana\Foundation\Accesspolicy\RoleRef $role;
/**
* The set of rules to apply. Note that * is required to modify
* access policy rules, and that "none" will reject all actions
* @var array<\Grafana\Foundation\Accesspolicy\AccessRule>
*/
public array $rules;
}
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()
.