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] |
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
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
func (o *Relationship) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetId(v string)
SetId sets Id field to given value.
func (o *Relationship) GetUrl() string
GetUrl returns the Url field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetUrl(v string)
SetUrl sets Url field to given value.
func (o *Relationship) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetName(v string)
SetName sets Name field to given value.
func (o *Relationship) GetSlug() string
GetSlug returns the Slug field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetSlug(v string)
SetSlug sets Slug field to given value.
func (o *Relationship) HasSlug() bool
HasSlug returns a boolean if a field has been set.
func (o *Relationship) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *Relationship) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *Relationship) GetType() RelationshipTypeChoices
GetType returns the Type field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetType(v RelationshipTypeChoices)
SetType sets Type field to given value.
func (o *Relationship) HasType() bool
HasType returns a boolean if a field has been set.
func (o *Relationship) SetTypeNil(b bool)
SetTypeNil sets the value for Type to be an explicit nil
func (o *Relationship) UnsetType()
UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *Relationship) GetSourceType() string
GetSourceType returns the SourceType field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetSourceType(v string)
SetSourceType sets SourceType field to given value.
func (o *Relationship) GetSourceLabel() string
GetSourceLabel returns the SourceLabel field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetSourceLabel(v string)
SetSourceLabel sets SourceLabel field to given value.
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.
func (o *Relationship) GetSourceFilter() map[string]interface{}
GetSourceFilter returns the SourceFilter field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetSourceFilter(v map[string]interface{})
SetSourceFilter sets SourceFilter field to given value.
func (o *Relationship) HasSourceFilter() bool
HasSourceFilter returns a boolean if a field has been set.
func (o *Relationship) SetSourceFilterNil(b bool)
SetSourceFilterNil sets the value for SourceFilter to be an explicit nil
func (o *Relationship) UnsetSourceFilter()
UnsetSourceFilter ensures that no value is present for SourceFilter, not even an explicit nil
func (o *Relationship) GetDestinationType() string
GetDestinationType returns the DestinationType field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetDestinationType(v string)
SetDestinationType sets DestinationType field to given value.
func (o *Relationship) GetDestinationLabel() string
GetDestinationLabel returns the DestinationLabel field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetDestinationLabel(v string)
SetDestinationLabel sets DestinationLabel field to given value.
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.
func (o *Relationship) GetDestinationFilter() map[string]interface{}
GetDestinationFilter returns the DestinationFilter field if non-nil, zero value otherwise.
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.
func (o *Relationship) SetDestinationFilter(v map[string]interface{})
SetDestinationFilter sets DestinationFilter field to given value.
func (o *Relationship) HasDestinationFilter() bool
HasDestinationFilter returns a boolean if a field has been set.
func (o *Relationship) SetDestinationFilterNil(b bool)
SetDestinationFilterNil sets the value for DestinationFilter to be an explicit nil
func (o *Relationship) UnsetDestinationFilter()
UnsetDestinationFilter ensures that no value is present for DestinationFilter, not even an explicit nil