github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_workflow.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  // TaskrouterV1Workflow struct for TaskrouterV1Workflow
    22  type TaskrouterV1Workflow struct {
    23  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Workflow resource.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The URL that we call when a task managed by the Workflow is assigned to a Worker. See Assignment Callback URL for more information.
    26  	AssignmentCallbackUrl *string `json:"assignment_callback_url,omitempty"`
    27  	// A JSON string that contains the Workflow's configuration. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information.
    28  	Configuration *string `json:"configuration,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 MIME type of the document.
    34  	DocumentContentType *string `json:"document_content_type,omitempty"`
    35  	// The URL that we call when a call to the `assignment_callback_url` fails.
    36  	FallbackAssignmentCallbackUrl *string `json:"fallback_assignment_callback_url,omitempty"`
    37  	// The string that you assigned to describe the Workflow resource. For example, `Customer Support` or `2014 Election Campaign`.
    38  	FriendlyName *string `json:"friendly_name,omitempty"`
    39  	// The unique string that we created to identify the Workflow resource.
    40  	Sid *string `json:"sid,omitempty"`
    41  	// How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`.
    42  	TaskReservationTimeout *int `json:"task_reservation_timeout,omitempty"`
    43  	// The SID of the Workspace that contains the Workflow.
    44  	WorkspaceSid *string `json:"workspace_sid,omitempty"`
    45  	// The absolute URL of the Workflow resource.
    46  	Url *string `json:"url,omitempty"`
    47  	// The URLs of related resources.
    48  	Links *map[string]interface{} `json:"links,omitempty"`
    49  }