Skip to content

Latest commit

 

History

History
455 lines (244 loc) · 13.8 KB

Attribute.md

File metadata and controls

455 lines (244 loc) · 13.8 KB

Attribute

Properties

Name Type Description Notes
Id Pointer to int32 Internal ID of this entity.
Created Pointer to time.Time The time this entity was created.
AccountId Pointer to int32 The ID of the account that owns this entity.
Entity Pointer to string The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type.
EventType Pointer to string [optional]
Name Pointer to string The attribute name that will be used in API requests and Talang. E.g. if `name == "region"` then you would set the region attribute by including an `attributes.region` property in your request payload.
Title Pointer to string The human-readable name for the attribute that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.
Type Pointer to string The data type of the attribute, a `time` attribute must be sent as a string that conforms to the RFC3339 timestamp format.
Description Pointer to string A description of this attribute.
Suggestions Pointer to []string A list of suggestions for the attribute.
HasAllowedList Pointer to bool Whether or not this attribute has an allowed list of values associated with it. [optional] [default to false]
RestrictedBySuggestions Pointer to bool Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). [optional] [default to false]
Editable Pointer to bool Whether or not this attribute can be edited.
SubscribedApplicationsIds Pointer to []int32 A list of the IDs of the applications where this attribute is available. [optional]
SubscribedCatalogsIds Pointer to []int32 A list of the IDs of the catalogs where this attribute is available. [optional]
AllowedSubscriptions Pointer to []string A list of allowed subscription types for this attribute. Note: This only applies to attributes associated with the `CartItem` entity. [optional]
EventTypeId Pointer to int32 [optional]

Methods

GetId

func (o *Attribute) GetId() int32

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

GetIdOk

func (o *Attribute) GetIdOk() (int32, 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.

HasId

func (o *Attribute) HasId() bool

HasId returns a boolean if a field has been set.

SetId

func (o *Attribute) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

GetCreated

func (o *Attribute) GetCreated() time.Time

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

func (o *Attribute) GetCreatedOk() (time.Time, bool)

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

HasCreated

func (o *Attribute) HasCreated() bool

HasCreated returns a boolean if a field has been set.

SetCreated

func (o *Attribute) SetCreated(v time.Time)

SetCreated gets a reference to the given time.Time and assigns it to the Created field.

GetAccountId

func (o *Attribute) GetAccountId() int32

GetAccountId returns the AccountId field if non-nil, zero value otherwise.

GetAccountIdOk

func (o *Attribute) GetAccountIdOk() (int32, bool)

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

HasAccountId

func (o *Attribute) HasAccountId() bool

HasAccountId returns a boolean if a field has been set.

SetAccountId

func (o *Attribute) SetAccountId(v int32)

SetAccountId gets a reference to the given int32 and assigns it to the AccountId field.

GetEntity

func (o *Attribute) GetEntity() string

GetEntity returns the Entity field if non-nil, zero value otherwise.

GetEntityOk

func (o *Attribute) GetEntityOk() (string, bool)

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

HasEntity

func (o *Attribute) HasEntity() bool

HasEntity returns a boolean if a field has been set.

SetEntity

func (o *Attribute) SetEntity(v string)

SetEntity gets a reference to the given string and assigns it to the Entity field.

GetEventType

func (o *Attribute) GetEventType() string

GetEventType returns the EventType field if non-nil, zero value otherwise.

GetEventTypeOk

func (o *Attribute) GetEventTypeOk() (string, bool)

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

HasEventType

func (o *Attribute) HasEventType() bool

HasEventType returns a boolean if a field has been set.

SetEventType

func (o *Attribute) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

GetName

func (o *Attribute) GetName() string

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

GetNameOk

func (o *Attribute) 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.

HasName

func (o *Attribute) HasName() bool

HasName returns a boolean if a field has been set.

SetName

func (o *Attribute) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

GetTitle

func (o *Attribute) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

func (o *Attribute) GetTitleOk() (string, bool)

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

HasTitle

func (o *Attribute) HasTitle() bool

HasTitle returns a boolean if a field has been set.

SetTitle

func (o *Attribute) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

GetType

func (o *Attribute) GetType() string

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

GetTypeOk

func (o *Attribute) GetTypeOk() (string, 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.

HasType

func (o *Attribute) HasType() bool

HasType returns a boolean if a field has been set.

SetType

func (o *Attribute) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

GetDescription

func (o *Attribute) GetDescription() string

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

GetDescriptionOk

func (o *Attribute) 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.

HasDescription

func (o *Attribute) HasDescription() bool

HasDescription returns a boolean if a field has been set.

SetDescription

func (o *Attribute) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

GetSuggestions

func (o *Attribute) GetSuggestions() []string

GetSuggestions returns the Suggestions field if non-nil, zero value otherwise.

GetSuggestionsOk

func (o *Attribute) GetSuggestionsOk() ([]string, bool)

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

HasSuggestions

func (o *Attribute) HasSuggestions() bool

HasSuggestions returns a boolean if a field has been set.

SetSuggestions

func (o *Attribute) SetSuggestions(v []string)

SetSuggestions gets a reference to the given []string and assigns it to the Suggestions field.

GetHasAllowedList

func (o *Attribute) GetHasAllowedList() bool

GetHasAllowedList returns the HasAllowedList field if non-nil, zero value otherwise.

GetHasAllowedListOk

func (o *Attribute) GetHasAllowedListOk() (bool, bool)

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

HasHasAllowedList

func (o *Attribute) HasHasAllowedList() bool

HasHasAllowedList returns a boolean if a field has been set.

SetHasAllowedList

func (o *Attribute) SetHasAllowedList(v bool)

SetHasAllowedList gets a reference to the given bool and assigns it to the HasAllowedList field.

GetRestrictedBySuggestions

func (o *Attribute) GetRestrictedBySuggestions() bool

GetRestrictedBySuggestions returns the RestrictedBySuggestions field if non-nil, zero value otherwise.

GetRestrictedBySuggestionsOk

func (o *Attribute) GetRestrictedBySuggestionsOk() (bool, bool)

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

HasRestrictedBySuggestions

func (o *Attribute) HasRestrictedBySuggestions() bool

HasRestrictedBySuggestions returns a boolean if a field has been set.

SetRestrictedBySuggestions

func (o *Attribute) SetRestrictedBySuggestions(v bool)

SetRestrictedBySuggestions gets a reference to the given bool and assigns it to the RestrictedBySuggestions field.

GetEditable

func (o *Attribute) GetEditable() bool

GetEditable returns the Editable field if non-nil, zero value otherwise.

GetEditableOk

func (o *Attribute) GetEditableOk() (bool, bool)

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

HasEditable

func (o *Attribute) HasEditable() bool

HasEditable returns a boolean if a field has been set.

SetEditable

func (o *Attribute) SetEditable(v bool)

SetEditable gets a reference to the given bool and assigns it to the Editable field.

GetSubscribedApplicationsIds

func (o *Attribute) GetSubscribedApplicationsIds() []int32

GetSubscribedApplicationsIds returns the SubscribedApplicationsIds field if non-nil, zero value otherwise.

GetSubscribedApplicationsIdsOk

func (o *Attribute) GetSubscribedApplicationsIdsOk() ([]int32, bool)

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

HasSubscribedApplicationsIds

func (o *Attribute) HasSubscribedApplicationsIds() bool

HasSubscribedApplicationsIds returns a boolean if a field has been set.

SetSubscribedApplicationsIds

func (o *Attribute) SetSubscribedApplicationsIds(v []int32)

SetSubscribedApplicationsIds gets a reference to the given []int32 and assigns it to the SubscribedApplicationsIds field.

GetSubscribedCatalogsIds

func (o *Attribute) GetSubscribedCatalogsIds() []int32

GetSubscribedCatalogsIds returns the SubscribedCatalogsIds field if non-nil, zero value otherwise.

GetSubscribedCatalogsIdsOk

func (o *Attribute) GetSubscribedCatalogsIdsOk() ([]int32, bool)

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

HasSubscribedCatalogsIds

func (o *Attribute) HasSubscribedCatalogsIds() bool

HasSubscribedCatalogsIds returns a boolean if a field has been set.

SetSubscribedCatalogsIds

func (o *Attribute) SetSubscribedCatalogsIds(v []int32)

SetSubscribedCatalogsIds gets a reference to the given []int32 and assigns it to the SubscribedCatalogsIds field.

GetAllowedSubscriptions

func (o *Attribute) GetAllowedSubscriptions() []string

GetAllowedSubscriptions returns the AllowedSubscriptions field if non-nil, zero value otherwise.

GetAllowedSubscriptionsOk

func (o *Attribute) GetAllowedSubscriptionsOk() ([]string, bool)

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

HasAllowedSubscriptions

func (o *Attribute) HasAllowedSubscriptions() bool

HasAllowedSubscriptions returns a boolean if a field has been set.

SetAllowedSubscriptions

func (o *Attribute) SetAllowedSubscriptions(v []string)

SetAllowedSubscriptions gets a reference to the given []string and assigns it to the AllowedSubscriptions field.

GetEventTypeId

func (o *Attribute) GetEventTypeId() int32

GetEventTypeId returns the EventTypeId field if non-nil, zero value otherwise.

GetEventTypeIdOk

func (o *Attribute) GetEventTypeIdOk() (int32, bool)

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

HasEventTypeId

func (o *Attribute) HasEventTypeId() bool

HasEventTypeId returns a boolean if a field has been set.

SetEventTypeId

func (o *Attribute) SetEventTypeId(v int32)

SetEventTypeId gets a reference to the given int32 and assigns it to the EventTypeId field.

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