API Models UsersetTreeTupleToUserset - evansims/openfga-php GitHub Wiki
Represents a tuple-to-userset operation node in authorization evaluation trees. UsersetTreeTupleToUserset defines how to resolve users through tuple-to-userset mappings during authorization evaluation. It specifies which tuples to examine and how to compute the resulting usersets, enabling complex authorization patterns based on indirect relationships. Use this when working with authorization evaluation trees that involve tuple-to-userset relationship resolution.
Table of Contents
OpenFGA\Models
UsersetTreeTupleToUsersetInterface
JsonSerializable
ModelInterface
- UsersetTreeTupleToUsersetInterface (interface)
Name | Value | Description |
---|---|---|
OPENAPI_MODEL |
UsersetTree.TupleToUserset |
public function getComputed(): array<int, ComputedInterface>
Get the array of computed usersets for the tuple-to-userset operation. This returns a collection of computed userset references that define how to resolve the users from the tuple-to-userset mapping in the tree expansion.
array<
int, [
ComputedInterface](ComputedInterface)>
— Array of computed userset references
public function getTupleset(): string
Get the tupleset string identifying which tuples to use for computation. This string identifies the specific tupleset that should be used to resolve users through the tuple-to-userset operation during tree expansion.
string
— The tupleset identifier string
public function jsonSerialize(): array
array
Implements Models\UsersetTreeTupleToUsersetInterface
public function schema(): SchemaInterface
Get the schema definition for this model. This method returns the schema that defines the structure, validation rules, and serialization behavior for this model class. The schema is used for data validation, transformation, and ensuring consistency across API operations with the OpenFGA service. Each model's schema defines: - Required and optional properties - Data types and format constraints - Nested object relationships - Validation rules and business logic constraints The schema system enables the SDK to automatically validate incoming data, transform between different representations, and ensure compliance with the OpenFGA API specification.
SchemaInterface
— The schema definition containing validation rules and property specifications for this model