github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_worker_channel.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 // TaskrouterV1WorkerChannel struct for TaskrouterV1WorkerChannel 22 type TaskrouterV1WorkerChannel struct { 23 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Worker resource. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The total number of Tasks assigned to Worker for the TaskChannel type. 26 AssignedTasks *int `json:"assigned_tasks,omitempty"` 27 // Whether the Worker should receive Tasks of the TaskChannel type. 28 Available *bool `json:"available,omitempty"` 29 // The current percentage of capacity the TaskChannel has available. Can be a number between `0` and `100`. A value of `0` indicates that TaskChannel has no capacity available and a value of `100` means the Worker is available to receive any Tasks of this TaskChannel type. 30 AvailableCapacityPercentage *int `json:"available_capacity_percentage,omitempty"` 31 // The current configured capacity for the WorkerChannel. TaskRouter will not create any reservations after the assigned Tasks for the Worker reaches the value. 32 ConfiguredCapacity *int `json:"configured_capacity,omitempty"` 33 // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 34 DateCreated *time.Time `json:"date_created,omitempty"` 35 // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 36 DateUpdated *time.Time `json:"date_updated,omitempty"` 37 // The unique string that we created to identify the WorkerChannel resource. 38 Sid *string `json:"sid,omitempty"` 39 // The SID of the TaskChannel. 40 TaskChannelSid *string `json:"task_channel_sid,omitempty"` 41 // The unique name of the TaskChannel, such as `voice` or `sms`. 42 TaskChannelUniqueName *string `json:"task_channel_unique_name,omitempty"` 43 // The SID of the Worker that contains the WorkerChannel. 44 WorkerSid *string `json:"worker_sid,omitempty"` 45 // The SID of the Workspace that contains the WorkerChannel. 46 WorkspaceSid *string `json:"workspace_sid,omitempty"` 47 // The absolute URL of the WorkerChannel resource. 48 Url *string `json:"url,omitempty"` 49 }