OpenFga::AuthorizationModel
February 16, 2026 ยท View on GitHub
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| schema_version | String | ||
| type_definitions | Array<TypeDefinition> | ||
| conditions | Hash<String, Condition> | [optional] |
Example
require 'openfga'
instance = OpenFga::AuthorizationModel.new(
id: 01G5JAVJ41T49E9TT3SKVS7X1J,
schema_version: null,
type_definitions: [{type=user}, {type=document, relations={reader={union={child=[{this={}}, {computedUserset={object=, relation=writer}}]}}, writer={this={}}}, metadata={relations={reader={directly_related_user_types=[{type=user}]}, writer={directly_related_user_types=[{type=user}]}}}}],
conditions: null
)