OpenFga::TypeDefinition
February 16, 2026 ยท View on GitHub
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| type | String | ||
| relations | Hash<String, Userset> | [optional] | |
| metadata | Metadata | [optional] |
Example
require 'openfga'
instance = OpenFga::TypeDefinition.new(
type: document,
relations: {"reader":{"union":{"child":[{"this":{}},{"computedUserset":{"object":"","relation":"writer"}}]}},"writer":{"this":{}}},
metadata: null
)