github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_task.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 // TaskrouterV1Task struct for TaskrouterV1Task 22 type TaskrouterV1Task struct { 23 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Task resource. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The number of seconds since the Task was created. 26 Age *int `json:"age,omitempty"` 27 AssignmentStatus *string `json:"assignment_status,omitempty"` 28 // The JSON string with custom attributes of the work. **Note** If this property has been assigned a value, it will only be displayed in FETCH action that returns a single resource. Otherwise, it will be null. 29 Attributes *string `json:"attributes,omitempty"` 30 // An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons. 31 Addons *string `json:"addons,omitempty"` 32 // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 33 DateCreated *time.Time `json:"date_created,omitempty"` 34 // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 35 DateUpdated *time.Time `json:"date_updated,omitempty"` 36 // The date and time in GMT when the Task entered the TaskQueue, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 37 TaskQueueEnteredDate *time.Time `json:"task_queue_entered_date,omitempty"` 38 // The current priority score of the Task as assigned to a Worker by the workflow. Tasks with higher priority values will be assigned before Tasks with lower values. 39 Priority *int `json:"priority,omitempty"` 40 // The reason the Task was canceled or completed, if applicable. 41 Reason *string `json:"reason,omitempty"` 42 // The unique string that we created to identify the Task resource. 43 Sid *string `json:"sid,omitempty"` 44 // The SID of the TaskQueue. 45 TaskQueueSid *string `json:"task_queue_sid,omitempty"` 46 // The friendly name of the TaskQueue. 47 TaskQueueFriendlyName *string `json:"task_queue_friendly_name,omitempty"` 48 // The SID of the TaskChannel. 49 TaskChannelSid *string `json:"task_channel_sid,omitempty"` 50 // The unique name of the TaskChannel. 51 TaskChannelUniqueName *string `json:"task_channel_unique_name,omitempty"` 52 // The amount of time in seconds that the Task can live before being assigned. 53 Timeout *int `json:"timeout,omitempty"` 54 // The SID of the Workflow that is controlling the Task. 55 WorkflowSid *string `json:"workflow_sid,omitempty"` 56 // The friendly name of the Workflow that is controlling the Task. 57 WorkflowFriendlyName *string `json:"workflow_friendly_name,omitempty"` 58 // The SID of the Workspace that contains the Task. 59 WorkspaceSid *string `json:"workspace_sid,omitempty"` 60 // The absolute URL of the Task resource. 61 Url *string `json:"url,omitempty"` 62 // The URLs of related resources. 63 Links *map[string]interface{} `json:"links,omitempty"` 64 // The date and time in GMT indicating the ordering for routing of the Task specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 65 VirtualStartTime *time.Time `json:"virtual_start_time,omitempty"` 66 }