3.9 KiB
Generated
Relationship
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Namespace | string | Namespace of the Relation Tuple | |
| Object | string | Object of the Relation Tuple | |
| Relation | string | Relation of the Relation Tuple | |
| SubjectId | Pointer to string | SubjectID of the Relation Tuple Either SubjectSet or SubjectID can be provided. | [optional] |
| SubjectSet | Pointer to SubjectSet | [optional] |
Methods
NewRelationship
func NewRelationship(namespace string, object string, relation string, ) *Relationship
NewRelationship instantiates a new Relationship object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewRelationshipWithDefaults
func NewRelationshipWithDefaults() *Relationship
NewRelationshipWithDefaults instantiates a new Relationship object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetNamespace
func (o *Relationship) GetNamespace() string
GetNamespace returns the Namespace field if non-nil, zero value otherwise.
GetNamespaceOk
func (o *Relationship) GetNamespaceOk() (*string, bool)
GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetNamespace
func (o *Relationship) SetNamespace(v string)
SetNamespace sets Namespace field to given value.
GetObject
func (o *Relationship) GetObject() string
GetObject returns the Object field if non-nil, zero value otherwise.
GetObjectOk
func (o *Relationship) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetObject
func (o *Relationship) SetObject(v string)
SetObject sets Object field to given value.
GetRelation
func (o *Relationship) GetRelation() string
GetRelation returns the Relation field if non-nil, zero value otherwise.
GetRelationOk
func (o *Relationship) GetRelationOk() (*string, bool)
GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRelation
func (o *Relationship) SetRelation(v string)
SetRelation sets Relation field to given value.
GetSubjectId
func (o *Relationship) GetSubjectId() string
GetSubjectId returns the SubjectId field if non-nil, zero value otherwise.
GetSubjectIdOk
func (o *Relationship) GetSubjectIdOk() (*string, bool)
GetSubjectIdOk returns a tuple with the SubjectId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSubjectId
func (o *Relationship) SetSubjectId(v string)
SetSubjectId sets SubjectId field to given value.
HasSubjectId
func (o *Relationship) HasSubjectId() bool
HasSubjectId returns a boolean if a field has been set.
GetSubjectSet
func (o *Relationship) GetSubjectSet() SubjectSet
GetSubjectSet returns the SubjectSet field if non-nil, zero value otherwise.
GetSubjectSetOk
func (o *Relationship) GetSubjectSetOk() (*SubjectSet, bool)
GetSubjectSetOk returns a tuple with the SubjectSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSubjectSet
func (o *Relationship) SetSubjectSet(v SubjectSet)
SetSubjectSet sets SubjectSet field to given value.
HasSubjectSet
func (o *Relationship) HasSubjectSet() bool
HasSubjectSet returns a boolean if a field has been set.