zen_ex v0.3.2 ZenEx.Model.DynamicContent.Variant

Provides functions to operate variants of Zendesk Dynamic content.

Summary

Functions

Create variant of the dynamic_content

Create multiple variants of the dynamic_content

Delete variant of the dynamic_content specified by id

List variants of the dynamic_content

Show variant of the dynamic_content specified by id

Update variant of the dynamic_content specified by id

Update multiple variants of the dynamic_content specified by id

Functions

create(dynamic_content_id, variant)
create(integer, %ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}) :: %ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}

Create variant of the dynamic_content.

Examples

iex> ZenEx.Model.DynamicContent.Variant.create(%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...})
%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...}
create_many(dynamic_content_id, variants)
create_many(integer, [%ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}]) :: %ZenEx.Entity.JobStatus{id: term, message: term, progress: term, results: term, status: term, total: term, url: term}

Create multiple variants of the dynamic_content.

Examples

iex> ZenEx.Model.DynamicContent.Variant.create_many([%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...}, ...])
%ZenEx.Entity.JobStatus{id: "xxx"}
destroy(dynamic_content_id, variant_id)
destroy(integer, integer) :: :ok | :error

Delete variant of the dynamic_content specified by id.

Examples

iex> ZenEx.Model.DynamicContent.Variant.destroy(xxx, xxx)
:ok
list(dynamic_content_id, opts \\ [])

List variants of the dynamic_content.

Examples

iex> ZenEx.Model.DynamicContent.Variant.list(xxx)
%ZenEx.Collection{}
show(dynamic_content_id, variant_id)
show(integer, integer) :: %ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}

Show variant of the dynamic_content specified by id.

Examples

iex> ZenEx.Model.DynamicContent.Variant.show(xxx)
%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...}
update(dynamic_content_id, variant)
update(integer, %ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}) :: %ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}

Update variant of the dynamic_content specified by id.

Examples

iex> ZenEx.Model.DynamicContent.Variant.update(%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...})
%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...}
update_many(dynamic_content_id, variants)
update_many(integer, [%ZenEx.Entity.DynamicContent.Variant{active: term, content: term, created_at: term, default: term, id: term, locale_id: term, outdated: term, updated_at: term, url: term}]) :: %ZenEx.Entity.JobStatus{id: term, message: term, progress: term, results: term, status: term, total: term, url: term}

Update multiple variants of the dynamic_content specified by id.

Examples

iex> ZenEx.Model.DynamicContent.Variant.update_many([%ZenEx.Entity.DynamicContent.Variant{id: xxx, default: xxx, content: "xxx", ...}, ...])
%ZenEx.Entity.JobStatus{id: "xxx"}