Relationship swagger:model relationship
| 33 | // |
| 34 | // swagger:model relationship |
| 35 | type RelationTuple struct { |
| 36 | // Namespace of the Relation Tuple |
| 37 | // |
| 38 | // required: true |
| 39 | Namespace string `json:"namespace"` |
| 40 | |
| 41 | // Object of the Relation Tuple |
| 42 | // |
| 43 | // required: true |
| 44 | Object string `json:"object"` |
| 45 | |
| 46 | // Relation of the Relation Tuple |
| 47 | // |
| 48 | // required: true |
| 49 | Relation string `json:"relation"` |
| 50 | |
| 51 | // SubjectID of the Relation Tuple |
| 52 | // |
| 53 | // Either SubjectSet or SubjectID can be provided. |
| 54 | SubjectID *string `json:"subject_id,omitempty"` |
| 55 | |
| 56 | // SubjectSet of the Relation Tuple |
| 57 | // |
| 58 | // Either SubjectSet or SubjectID can be provided. |
| 59 | // |
| 60 | // swagger:allOf |
| 61 | SubjectSet *SubjectSet `json:"subject_set,omitempty"` |
| 62 | } |
| 63 | |
| 64 | // swagger:model subjectSet |
| 65 | type SubjectSet struct { |
nothing calls this directly
no outgoing calls
no test coverage detected