github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_workspace.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Taskrouter 8 * This is the public Twilio REST API. 9 * 10 * NOTE: This class is auto generated by OpenAPI Generator. 11 * https://openapi-generator.tech 12 * Do not edit the class manually. 13 */ 14 15 package openapi 16 17 import ( 18 "time" 19 ) 20 21 // TaskrouterV1Workspace struct for TaskrouterV1Workspace 22 type TaskrouterV1Workspace struct { 23 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Workspace resource. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 26 DateCreated *time.Time `json:"date_created,omitempty"` 27 // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 28 DateUpdated *time.Time `json:"date_updated,omitempty"` 29 // The name of the default activity. 30 DefaultActivityName *string `json:"default_activity_name,omitempty"` 31 // The SID of the Activity that will be used when new Workers are created in the Workspace. 32 DefaultActivitySid *string `json:"default_activity_sid,omitempty"` 33 // The URL we call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. This parameter supports Twilio's [Webhooks (HTTP callbacks) Connection Overrides](https://www.twilio.com/docs/usage/webhooks/webhooks-connection-overrides). 34 EventCallbackUrl *string `json:"event_callback_url,omitempty"` 35 // The list of Workspace events for which to call `event_callback_url`. For example, if `EventsFilter=task.created, task.canceled, worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. 36 EventsFilter *string `json:"events_filter,omitempty"` 37 // The string that you assigned to describe the Workspace resource. For example `Customer Support` or `2014 Election Campaign`. 38 FriendlyName *string `json:"friendly_name,omitempty"` 39 // Whether multi-tasking is enabled. The default is `true`, which enables multi-tasking. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. In single-tasking each Worker would only receive a new reservation when the previous task is completed. Learn more at [Multitasking](https://www.twilio.com/docs/taskrouter/multitasking). 40 MultiTaskEnabled *bool `json:"multi_task_enabled,omitempty"` 41 // The unique string that we created to identify the Workspace resource. 42 Sid *string `json:"sid,omitempty"` 43 // The name of the timeout activity. 44 TimeoutActivityName *string `json:"timeout_activity_name,omitempty"` 45 // The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. 46 TimeoutActivitySid *string `json:"timeout_activity_sid,omitempty"` 47 PrioritizeQueueOrder *string `json:"prioritize_queue_order,omitempty"` 48 // The absolute URL of the Workspace resource. 49 Url *string `json:"url,omitempty"` 50 // The URLs of related resources. 51 Links *map[string]interface{} `json:"links,omitempty"` 52 }