/
model_taskrouter_v1_worker_channel.go
49 lines (46 loc) · 2.6 KB
/
model_taskrouter_v1_worker_channel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Taskrouter
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package openapi
import (
"time"
)
// TaskrouterV1WorkerChannel struct for TaskrouterV1WorkerChannel
type TaskrouterV1WorkerChannel struct {
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Worker resource.
AccountSid *string `json:"account_sid,omitempty"`
// The total number of Tasks assigned to Worker for the TaskChannel type.
AssignedTasks *int `json:"assigned_tasks,omitempty"`
// Whether the Worker should receive Tasks of the TaskChannel type.
Available *bool `json:"available,omitempty"`
// 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.
AvailableCapacityPercentage *int `json:"available_capacity_percentage,omitempty"`
// The current configured capacity for the WorkerChannel. TaskRouter will not create any reservations after the assigned Tasks for the Worker reaches the value.
ConfiguredCapacity *int `json:"configured_capacity,omitempty"`
// The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
DateCreated *time.Time `json:"date_created,omitempty"`
// The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
DateUpdated *time.Time `json:"date_updated,omitempty"`
// The unique string that we created to identify the WorkerChannel resource.
Sid *string `json:"sid,omitempty"`
// The SID of the TaskChannel.
TaskChannelSid *string `json:"task_channel_sid,omitempty"`
// The unique name of the TaskChannel, such as `voice` or `sms`.
TaskChannelUniqueName *string `json:"task_channel_unique_name,omitempty"`
// The SID of the Worker that contains the WorkerChannel.
WorkerSid *string `json:"worker_sid,omitempty"`
// The SID of the Workspace that contains the WorkerChannel.
WorkspaceSid *string `json:"workspace_sid,omitempty"`
// The absolute URL of the WorkerChannel resource.
Url *string `json:"url,omitempty"`
}