github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_worker.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 // TaskrouterV1Worker struct for TaskrouterV1Worker 22 type TaskrouterV1Worker 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 `friendly_name` of the Worker's current Activity. 26 ActivityName *string `json:"activity_name,omitempty"` 27 // The SID of the Worker's current Activity. 28 ActivitySid *string `json:"activity_sid,omitempty"` 29 // The JSON string that describes the Worker. For example: `{ \"email\": \"Bob@example.com\", \"phone\": \"+5095551234\" }`. **Note** If this property has been assigned a value, it will only be displayed in FETCH actions that return a single resource. Otherwise, this property will be null, even if it has a value. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. 30 Attributes *string `json:"attributes,omitempty"` 31 // Whether the Worker is available to perform tasks. 32 Available *bool `json:"available,omitempty"` 33 // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 34 DateCreated *time.Time `json:"date_created,omitempty"` 35 // The date and time in GMT of the last change to the Worker's activity specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Used to calculate Workflow statistics. 36 DateStatusChanged *time.Time `json:"date_status_changed,omitempty"` 37 // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 38 DateUpdated *time.Time `json:"date_updated,omitempty"` 39 // The string that you assigned to describe the resource. Friendly names are case insensitive, and unique within the TaskRouter Workspace. 40 FriendlyName *string `json:"friendly_name,omitempty"` 41 // The unique string that we created to identify the Worker resource. 42 Sid *string `json:"sid,omitempty"` 43 // The SID of the Workspace that contains the Worker. 44 WorkspaceSid *string `json:"workspace_sid,omitempty"` 45 // The absolute URL of the Worker resource. 46 Url *string `json:"url,omitempty"` 47 // The URLs of related resources. 48 Links *map[string]interface{} `json:"links,omitempty"` 49 }