ExTwilio v0.7.0 ExTwilio.TaskRouter.Workspace View Source
A Workspace is a container for your Tasks, Workers, TaskQueues, Workflows and Activities. Each of these items exists within a single Workspace and will not be shared across Workspaces.
Link to this section Summary
Functions
Children represent path segments that come after the current resource. For example,
in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/Active
"Active" is
a child. Children may or may not have a key in the next segment
Parents represent path segments that precede the current resource. For example,
in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users
"Services" is
a parent. Parents will always have a key in the next segment. If your parent is under a
submodule of ExTwilio
, specify your parent using the ExTwilio.Parent
struct
Underscored and lowercased collection name for a given resource.
Delegates the real work to ExTwilio.Api.resource_collection_name/1
by
default
CamelCase resource name as it would be used in Twilio's API. Delegates
the real work to ExTwilio.Api.resource_name/1
by default
Link to this section Functions
all(options \\ []) View Source
children()
View Source
children() :: list()
children() :: list()
Children represent path segments that come after the current resource. For example,
in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/Active
"Active" is
a child. Children may or may not have a key in the next segment.
Override this method in your resource to specify children in the order that they will appear in the path.
create(data, options \\ [])
View Source
create(ExTwilio.Api.data(), list()) :: ExTwilio.Parser.parsed_response()
create(ExTwilio.Api.data(), list()) :: ExTwilio.Parser.parsed_response()
do_new(struct, list)
View Source
do_new(
%ExTwilio.TaskRouter.Workspace{
account_sid: term(),
date_created: term(),
date_updated: term(),
default_activity_name: term(),
default_activity_sid: term(),
event_callback_url: term(),
friendly_name: term(),
links: term(),
sid: term(),
timeout_activity_name: term(),
timeout_activity_sid: term(),
url: term()
},
list()
) :: %ExTwilio.TaskRouter.Workspace{
account_sid: term(),
date_created: term(),
date_updated: term(),
default_activity_name: term(),
default_activity_sid: term(),
event_callback_url: term(),
friendly_name: term(),
links: term(),
sid: term(),
timeout_activity_name: term(),
timeout_activity_sid: term(),
url: term()
}
do_new( %ExTwilio.TaskRouter.Workspace{ account_sid: term(), date_created: term(), date_updated: term(), default_activity_name: term(), default_activity_sid: term(), event_callback_url: term(), friendly_name: term(), links: term(), sid: term(), timeout_activity_name: term(), timeout_activity_sid: term(), url: term() }, list() ) :: %ExTwilio.TaskRouter.Workspace{ account_sid: term(), date_created: term(), date_updated: term(), default_activity_name: term(), default_activity_sid: term(), event_callback_url: term(), friendly_name: term(), links: term(), sid: term(), timeout_activity_name: term(), timeout_activity_sid: term(), url: term() }
find(sid, options \\ [])
View Source
find(String.t() | nil, list()) :: ExTwilio.Parser.parsed_list_response()
find(String.t() | nil, list()) :: ExTwilio.Parser.parsed_list_response()
new()
View Source
new() :: %ExTwilio.TaskRouter.Workspace{
account_sid: term(),
date_created: term(),
date_updated: term(),
default_activity_name: term(),
default_activity_sid: term(),
event_callback_url: term(),
friendly_name: term(),
links: term(),
sid: term(),
timeout_activity_name: term(),
timeout_activity_sid: term(),
url: term()
}
new() :: %ExTwilio.TaskRouter.Workspace{ account_sid: term(), date_created: term(), date_updated: term(), default_activity_name: term(), default_activity_sid: term(), event_callback_url: term(), friendly_name: term(), links: term(), sid: term(), timeout_activity_name: term(), timeout_activity_sid: term(), url: term() }
new(attrs)
View Source
new(list()) :: %ExTwilio.TaskRouter.Workspace{
account_sid: term(),
date_created: term(),
date_updated: term(),
default_activity_name: term(),
default_activity_sid: term(),
event_callback_url: term(),
friendly_name: term(),
links: term(),
sid: term(),
timeout_activity_name: term(),
timeout_activity_sid: term(),
url: term()
}
new(list()) :: %ExTwilio.TaskRouter.Workspace{ account_sid: term(), date_created: term(), date_updated: term(), default_activity_name: term(), default_activity_sid: term(), event_callback_url: term(), friendly_name: term(), links: term(), sid: term(), timeout_activity_name: term(), timeout_activity_sid: term(), url: term() }
parents()
View Source
parents() :: list()
parents() :: list()
Parents represent path segments that precede the current resource. For example,
in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users
"Services" is
a parent. Parents will always have a key in the next segment. If your parent is under a
submodule of ExTwilio
, specify your parent using the ExTwilio.Parent
struct.
Override this method in your resource to specify parents in the order that they will appear in the path.
resource_collection_name() View Source
Underscored and lowercased collection name for a given resource.
Delegates the real work to ExTwilio.Api.resource_collection_name/1
by
default.
Override in your module after use ExTwilio.Resource
if you need
something different.
resource_name() View Source
CamelCase resource name as it would be used in Twilio's API. Delegates
the real work to ExTwilio.Api.resource_name/1
by default.
Override in your module after use ExTwilio.Resource
if you need
something different.
stream(options \\ []) View Source
update(sid, data, options \\ [])
View Source
update(String.t(), ExTwilio.Api.data(), list()) ::
ExTwilio.Parser.parsed_response()
update(String.t(), ExTwilio.Api.data(), list()) :: ExTwilio.Parser.parsed_response()