Skip to content

Latest commit

 

History

History
399 lines (216 loc) · 11.1 KB

Relationship.md

File metadata and controls

399 lines (216 loc) · 11.1 KB

Relationship

Properties

Name Type Description Notes
Id string [readonly]
Url string [readonly]
Name string Internal relationship name
Slug Pointer to string [optional]
Description Pointer to string [optional]
Type Pointer to NullableRelationshipTypeChoices Cardinality of this relationship [optional]
SourceType string
SourceLabel Pointer to string Label for related destination objects, as displayed on the source object. [optional]
SourceHidden Pointer to bool Hide this relationship on the source object. [optional]
SourceFilter Pointer to map[string]interface{} Filterset filter matching the applicable source objects of the selected type [optional]
DestinationType string
DestinationLabel Pointer to string Label for related source objects, as displayed on the destination object. [optional]
DestinationHidden Pointer to bool Hide this relationship on the destination object. [optional]
DestinationFilter Pointer to map[string]interface{} Filterset filter matching the applicable destination objects of the selected type [optional]

Methods

NewRelationship

func NewRelationship(id string, url string, name string, sourceType string, destinationType 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

GetId

func (o *Relationship) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *Relationship) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *Relationship) SetId(v string)

SetId sets Id field to given value.

GetUrl

func (o *Relationship) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

GetUrlOk

func (o *Relationship) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUrl

func (o *Relationship) SetUrl(v string)

SetUrl sets Url field to given value.

GetName

func (o *Relationship) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *Relationship) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *Relationship) SetName(v string)

SetName sets Name field to given value.

GetSlug

func (o *Relationship) GetSlug() string

GetSlug returns the Slug field if non-nil, zero value otherwise.

GetSlugOk

func (o *Relationship) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSlug

func (o *Relationship) SetSlug(v string)

SetSlug sets Slug field to given value.

HasSlug

func (o *Relationship) HasSlug() bool

HasSlug returns a boolean if a field has been set.

GetDescription

func (o *Relationship) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *Relationship) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *Relationship) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *Relationship) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetType

func (o *Relationship) GetType() RelationshipTypeChoices

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *Relationship) GetTypeOk() (*RelationshipTypeChoices, bool)

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetType

func (o *Relationship) SetType(v RelationshipTypeChoices)

SetType sets Type field to given value.

HasType

func (o *Relationship) HasType() bool

HasType returns a boolean if a field has been set.

SetTypeNil

func (o *Relationship) SetTypeNil(b bool)

SetTypeNil sets the value for Type to be an explicit nil

UnsetType

func (o *Relationship) UnsetType()

UnsetType ensures that no value is present for Type, not even an explicit nil

GetSourceType

func (o *Relationship) GetSourceType() string

GetSourceType returns the SourceType field if non-nil, zero value otherwise.

GetSourceTypeOk

func (o *Relationship) GetSourceTypeOk() (*string, bool)

GetSourceTypeOk returns a tuple with the SourceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSourceType

func (o *Relationship) SetSourceType(v string)

SetSourceType sets SourceType field to given value.

GetSourceLabel

func (o *Relationship) GetSourceLabel() string

GetSourceLabel returns the SourceLabel field if non-nil, zero value otherwise.

GetSourceLabelOk

func (o *Relationship) GetSourceLabelOk() (*string, bool)

GetSourceLabelOk returns a tuple with the SourceLabel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSourceLabel

func (o *Relationship) SetSourceLabel(v string)

SetSourceLabel sets SourceLabel field to given value.

HasSourceLabel

func (o *Relationship) HasSourceLabel() bool

HasSourceLabel returns a boolean if a field has been set.

GetSourceHidden

func (o *Relationship) GetSourceHidden() bool

GetSourceHidden returns the SourceHidden field if non-nil, zero value otherwise.

GetSourceHiddenOk

func (o *Relationship) GetSourceHiddenOk() (*bool, bool)

GetSourceHiddenOk returns a tuple with the SourceHidden field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSourceHidden

func (o *Relationship) SetSourceHidden(v bool)

SetSourceHidden sets SourceHidden field to given value.

HasSourceHidden

func (o *Relationship) HasSourceHidden() bool

HasSourceHidden returns a boolean if a field has been set.

GetSourceFilter

func (o *Relationship) GetSourceFilter() map[string]interface{}

GetSourceFilter returns the SourceFilter field if non-nil, zero value otherwise.

GetSourceFilterOk

func (o *Relationship) GetSourceFilterOk() (*map[string]interface{}, bool)

GetSourceFilterOk returns a tuple with the SourceFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSourceFilter

func (o *Relationship) SetSourceFilter(v map[string]interface{})

SetSourceFilter sets SourceFilter field to given value.

HasSourceFilter

func (o *Relationship) HasSourceFilter() bool

HasSourceFilter returns a boolean if a field has been set.

SetSourceFilterNil

func (o *Relationship) SetSourceFilterNil(b bool)

SetSourceFilterNil sets the value for SourceFilter to be an explicit nil

UnsetSourceFilter

func (o *Relationship) UnsetSourceFilter()

UnsetSourceFilter ensures that no value is present for SourceFilter, not even an explicit nil

GetDestinationType

func (o *Relationship) GetDestinationType() string

GetDestinationType returns the DestinationType field if non-nil, zero value otherwise.

GetDestinationTypeOk

func (o *Relationship) GetDestinationTypeOk() (*string, bool)

GetDestinationTypeOk returns a tuple with the DestinationType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDestinationType

func (o *Relationship) SetDestinationType(v string)

SetDestinationType sets DestinationType field to given value.

GetDestinationLabel

func (o *Relationship) GetDestinationLabel() string

GetDestinationLabel returns the DestinationLabel field if non-nil, zero value otherwise.

GetDestinationLabelOk

func (o *Relationship) GetDestinationLabelOk() (*string, bool)

GetDestinationLabelOk returns a tuple with the DestinationLabel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDestinationLabel

func (o *Relationship) SetDestinationLabel(v string)

SetDestinationLabel sets DestinationLabel field to given value.

HasDestinationLabel

func (o *Relationship) HasDestinationLabel() bool

HasDestinationLabel returns a boolean if a field has been set.

GetDestinationHidden

func (o *Relationship) GetDestinationHidden() bool

GetDestinationHidden returns the DestinationHidden field if non-nil, zero value otherwise.

GetDestinationHiddenOk

func (o *Relationship) GetDestinationHiddenOk() (*bool, bool)

GetDestinationHiddenOk returns a tuple with the DestinationHidden field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDestinationHidden

func (o *Relationship) SetDestinationHidden(v bool)

SetDestinationHidden sets DestinationHidden field to given value.

HasDestinationHidden

func (o *Relationship) HasDestinationHidden() bool

HasDestinationHidden returns a boolean if a field has been set.

GetDestinationFilter

func (o *Relationship) GetDestinationFilter() map[string]interface{}

GetDestinationFilter returns the DestinationFilter field if non-nil, zero value otherwise.

GetDestinationFilterOk

func (o *Relationship) GetDestinationFilterOk() (*map[string]interface{}, bool)

GetDestinationFilterOk returns a tuple with the DestinationFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDestinationFilter

func (o *Relationship) SetDestinationFilter(v map[string]interface{})

SetDestinationFilter sets DestinationFilter field to given value.

HasDestinationFilter

func (o *Relationship) HasDestinationFilter() bool

HasDestinationFilter returns a boolean if a field has been set.

SetDestinationFilterNil

func (o *Relationship) SetDestinationFilterNil(b bool)

SetDestinationFilterNil sets the value for DestinationFilter to be an explicit nil

UnsetDestinationFilter

func (o *Relationship) UnsetDestinationFilter()

UnsetDestinationFilter ensures that no value is present for DestinationFilter, not even an explicit nil

[Back to Model list] [Back to API list] [Back to README]