github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_task_queue.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 // TaskrouterV1TaskQueue struct for TaskrouterV1TaskQueue 22 type TaskrouterV1TaskQueue struct { 23 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The SID of the Activity to assign Workers when a task is assigned for them. 26 AssignmentActivitySid *string `json:"assignment_activity_sid,omitempty"` 27 // The name of the Activity to assign Workers when a task is assigned for them. 28 AssignmentActivityName *string `json:"assignment_activity_name,omitempty"` 29 // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 30 DateCreated *time.Time `json:"date_created,omitempty"` 31 // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 32 DateUpdated *time.Time `json:"date_updated,omitempty"` 33 // The string that you assigned to describe the resource. 34 FriendlyName *string `json:"friendly_name,omitempty"` 35 // The maximum number of Workers to reserve for the assignment of a task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. 36 MaxReservedWorkers *int `json:"max_reserved_workers,omitempty"` 37 // The SID of the Activity to assign Workers once a task is reserved for them. 38 ReservationActivitySid *string `json:"reservation_activity_sid,omitempty"` 39 // The name of the Activity to assign Workers once a task is reserved for them. 40 ReservationActivityName *string `json:"reservation_activity_name,omitempty"` 41 // The unique string that we created to identify the TaskQueue resource. 42 Sid *string `json:"sid,omitempty"` 43 // A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example `'\"language\" == \"spanish\"'` If no TargetWorkers parameter is provided, Tasks will wait in the TaskQueue until they are either deleted or moved to another TaskQueue. Additional examples on how to describing Worker selection criteria below. Defaults to 1==1. 44 TargetWorkers *string `json:"target_workers,omitempty"` 45 TaskOrder *string `json:"task_order,omitempty"` 46 // The absolute URL of the TaskQueue resource. 47 Url *string `json:"url,omitempty"` 48 // The SID of the Workspace that contains the TaskQueue. 49 WorkspaceSid *string `json:"workspace_sid,omitempty"` 50 // The URLs of related resources. 51 Links *map[string]interface{} `json:"links,omitempty"` 52 }