Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateExecution(FlowSid string, params *CreateExecutionParams) (*StudioV2Execution, error)
- func (c *ApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error)
- func (c *ApiService) DeleteExecution(FlowSid string, Sid string) error
- func (c *ApiService) DeleteFlow(Sid string) error
- func (c *ApiService) FetchExecution(FlowSid string, Sid string) (*StudioV2Execution, error)
- func (c *ApiService) FetchExecutionContext(FlowSid string, ExecutionSid string) (*StudioV2ExecutionContext, error)
- func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV2ExecutionStep, error)
- func (c *ApiService) FetchExecutionStepContext(FlowSid string, ExecutionSid string, StepSid string) (*StudioV2ExecutionStepContext, error)
- func (c *ApiService) FetchFlow(Sid string) (*StudioV2Flow, error)
- func (c *ApiService) FetchFlowRevision(Sid string, Revision string) (*StudioV2FlowRevision, error)
- func (c *ApiService) FetchTestUser(Sid string) (*StudioV2TestUser, error)
- func (c *ApiService) ListExecution(FlowSid string, params *ListExecutionParams) ([]StudioV2Execution, error)
- func (c *ApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) ([]StudioV2ExecutionStep, error)
- func (c *ApiService) ListFlow(params *ListFlowParams) ([]StudioV2Flow, error)
- func (c *ApiService) ListFlowRevision(Sid string, params *ListFlowRevisionParams) ([]StudioV2FlowRevision, error)
- func (c *ApiService) PageExecution(FlowSid string, params *ListExecutionParams, pageToken, pageNumber string) (*ListExecutionResponse, error)
- func (c *ApiService) PageExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams, ...) (*ListExecutionStepResponse, error)
- func (c *ApiService) PageFlow(params *ListFlowParams, pageToken, pageNumber string) (*ListFlowResponse, error)
- func (c *ApiService) PageFlowRevision(Sid string, params *ListFlowRevisionParams, pageToken, pageNumber string) (*ListFlowRevisionResponse, error)
- func (c *ApiService) StreamExecution(FlowSid string, params *ListExecutionParams) (chan StudioV2Execution, chan error)
- func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (chan StudioV2ExecutionStep, chan error)
- func (c *ApiService) StreamFlow(params *ListFlowParams) (chan StudioV2Flow, chan error)
- func (c *ApiService) StreamFlowRevision(Sid string, params *ListFlowRevisionParams) (chan StudioV2FlowRevision, chan error)
- func (c *ApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV2Execution, error)
- func (c *ApiService) UpdateFlow(Sid string, params *UpdateFlowParams) (*StudioV2Flow, error)
- func (c *ApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error)
- func (c *ApiService) UpdateTestUser(Sid string, params *UpdateTestUserParams) (*StudioV2TestUser, error)
- type CreateExecutionParams
- type CreateFlowParams
- func (params *CreateFlowParams) SetCommitMessage(CommitMessage string) *CreateFlowParams
- func (params *CreateFlowParams) SetDefinition(Definition interface{}) *CreateFlowParams
- func (params *CreateFlowParams) SetFriendlyName(FriendlyName string) *CreateFlowParams
- func (params *CreateFlowParams) SetStatus(Status string) *CreateFlowParams
- type ListExecutionParams
- func (params *ListExecutionParams) SetDateCreatedFrom(DateCreatedFrom time.Time) *ListExecutionParams
- func (params *ListExecutionParams) SetDateCreatedTo(DateCreatedTo time.Time) *ListExecutionParams
- func (params *ListExecutionParams) SetLimit(Limit int) *ListExecutionParams
- func (params *ListExecutionParams) SetPageSize(PageSize int) *ListExecutionParams
- type ListExecutionResponse
- type ListExecutionResponseMeta
- type ListExecutionStepParams
- type ListExecutionStepResponse
- type ListFlowParams
- type ListFlowResponse
- type ListFlowRevisionParams
- type ListFlowRevisionResponse
- type StudioV2Execution
- type StudioV2ExecutionContext
- type StudioV2ExecutionStep
- type StudioV2ExecutionStepContext
- type StudioV2Flow
- type StudioV2FlowRevision
- type StudioV2FlowValidate
- type StudioV2TestUser
- type UpdateExecutionParams
- type UpdateFlowParams
- func (params *UpdateFlowParams) SetCommitMessage(CommitMessage string) *UpdateFlowParams
- func (params *UpdateFlowParams) SetDefinition(Definition interface{}) *UpdateFlowParams
- func (params *UpdateFlowParams) SetFriendlyName(FriendlyName string) *UpdateFlowParams
- func (params *UpdateFlowParams) SetStatus(Status string) *UpdateFlowParams
- type UpdateFlowValidateParams
- func (params *UpdateFlowValidateParams) SetCommitMessage(CommitMessage string) *UpdateFlowValidateParams
- func (params *UpdateFlowValidateParams) SetDefinition(Definition interface{}) *UpdateFlowValidateParams
- func (params *UpdateFlowValidateParams) SetFriendlyName(FriendlyName string) *UpdateFlowValidateParams
- func (params *UpdateFlowValidateParams) SetStatus(Status string) *UpdateFlowValidateParams
- type UpdateTestUserParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶ added in v0.11.0
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶ added in v0.11.0
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶ added in v0.11.0
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) CreateExecution ¶ added in v0.11.0
func (c *ApiService) CreateExecution(FlowSid string, params *CreateExecutionParams) (*StudioV2Execution, error)
Triggers a new Execution for the Flow
func (*ApiService) CreateFlow ¶ added in v0.11.0
func (c *ApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error)
Create a Flow.
func (*ApiService) DeleteExecution ¶ added in v0.11.0
func (c *ApiService) DeleteExecution(FlowSid string, Sid string) error
Delete the Execution and all Steps relating to it.
func (*ApiService) DeleteFlow ¶ added in v0.11.0
func (c *ApiService) DeleteFlow(Sid string) error
Delete a specific Flow.
func (*ApiService) FetchExecution ¶ added in v0.11.0
func (c *ApiService) FetchExecution(FlowSid string, Sid string) (*StudioV2Execution, error)
Retrieve an Execution
func (*ApiService) FetchExecutionContext ¶ added in v0.11.0
func (c *ApiService) FetchExecutionContext(FlowSid string, ExecutionSid string) (*StudioV2ExecutionContext, error)
Retrieve the most recent context for an Execution.
func (*ApiService) FetchExecutionStep ¶ added in v0.11.0
func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV2ExecutionStep, error)
Retrieve a Step.
func (*ApiService) FetchExecutionStepContext ¶ added in v0.11.0
func (c *ApiService) FetchExecutionStepContext(FlowSid string, ExecutionSid string, StepSid string) (*StudioV2ExecutionStepContext, error)
Retrieve the context for an Execution Step.
func (*ApiService) FetchFlow ¶ added in v0.11.0
func (c *ApiService) FetchFlow(Sid string) (*StudioV2Flow, error)
Retrieve a specific Flow.
func (*ApiService) FetchFlowRevision ¶ added in v0.11.0
func (c *ApiService) FetchFlowRevision(Sid string, Revision string) (*StudioV2FlowRevision, error)
Retrieve a specific Flow revision.
func (*ApiService) FetchTestUser ¶ added in v0.11.0
func (c *ApiService) FetchTestUser(Sid string) (*StudioV2TestUser, error)
Fetch flow test users
func (*ApiService) ListExecution ¶ added in v0.11.0
func (c *ApiService) ListExecution(FlowSid string, params *ListExecutionParams) ([]StudioV2Execution, error)
Lists Execution records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListExecutionStep ¶ added in v0.11.0
func (c *ApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) ([]StudioV2ExecutionStep, error)
Lists ExecutionStep records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListFlow ¶ added in v0.11.0
func (c *ApiService) ListFlow(params *ListFlowParams) ([]StudioV2Flow, error)
Lists Flow records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListFlowRevision ¶ added in v0.11.0
func (c *ApiService) ListFlowRevision(Sid string, params *ListFlowRevisionParams) ([]StudioV2FlowRevision, error)
Lists FlowRevision records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageExecution ¶ added in v0.13.0
func (c *ApiService) PageExecution(FlowSid string, params *ListExecutionParams, pageToken, pageNumber string) (*ListExecutionResponse, error)
Retrieve a single page of Execution records from the API. Request is executed immediately.
func (*ApiService) PageExecutionStep ¶ added in v0.13.0
func (c *ApiService) PageExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams, pageToken, pageNumber string) (*ListExecutionStepResponse, error)
Retrieve a single page of ExecutionStep records from the API. Request is executed immediately.
func (*ApiService) PageFlow ¶ added in v0.13.0
func (c *ApiService) PageFlow(params *ListFlowParams, pageToken, pageNumber string) (*ListFlowResponse, error)
Retrieve a single page of Flow records from the API. Request is executed immediately.
func (*ApiService) PageFlowRevision ¶ added in v0.13.0
func (c *ApiService) PageFlowRevision(Sid string, params *ListFlowRevisionParams, pageToken, pageNumber string) (*ListFlowRevisionResponse, error)
Retrieve a single page of FlowRevision records from the API. Request is executed immediately.
func (*ApiService) StreamExecution ¶ added in v0.13.0
func (c *ApiService) StreamExecution(FlowSid string, params *ListExecutionParams) (chan StudioV2Execution, chan error)
Streams Execution records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamExecutionStep ¶ added in v0.13.0
func (c *ApiService) StreamExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (chan StudioV2ExecutionStep, chan error)
Streams ExecutionStep records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamFlow ¶ added in v0.13.0
func (c *ApiService) StreamFlow(params *ListFlowParams) (chan StudioV2Flow, chan error)
Streams Flow records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamFlowRevision ¶ added in v0.13.0
func (c *ApiService) StreamFlowRevision(Sid string, params *ListFlowRevisionParams) (chan StudioV2FlowRevision, chan error)
Streams FlowRevision records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateExecution ¶ added in v0.11.0
func (c *ApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV2Execution, error)
Update the status of an Execution to `ended`.
func (*ApiService) UpdateFlow ¶ added in v0.11.0
func (c *ApiService) UpdateFlow(Sid string, params *UpdateFlowParams) (*StudioV2Flow, error)
Update a Flow.
func (*ApiService) UpdateFlowValidate ¶ added in v0.11.0
func (c *ApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error)
Validate flow JSON definition
func (*ApiService) UpdateTestUser ¶ added in v0.11.0
func (c *ApiService) UpdateTestUser(Sid string, params *UpdateTestUserParams) (*StudioV2TestUser, error)
Update flow test users
type CreateExecutionParams ¶
type CreateExecutionParams struct { // The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. To *string `json:"To,omitempty"` // The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. For SMS, this can also be a Messaging Service SID. From *string `json:"From,omitempty"` // JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. Parameters *interface{} `json:"Parameters,omitempty"` }
Optional parameters for the method 'CreateExecution'
func (*CreateExecutionParams) SetFrom ¶
func (params *CreateExecutionParams) SetFrom(From string) *CreateExecutionParams
func (*CreateExecutionParams) SetParameters ¶
func (params *CreateExecutionParams) SetParameters(Parameters interface{}) *CreateExecutionParams
func (*CreateExecutionParams) SetTo ¶
func (params *CreateExecutionParams) SetTo(To string) *CreateExecutionParams
type CreateFlowParams ¶
type CreateFlowParams struct { // The string that you assigned to describe the Flow. FriendlyName *string `json:"FriendlyName,omitempty"` // Status *string `json:"Status,omitempty"` // JSON representation of flow definition. Definition *interface{} `json:"Definition,omitempty"` // Description of change made in the revision. CommitMessage *string `json:"CommitMessage,omitempty"` }
Optional parameters for the method 'CreateFlow'
func (*CreateFlowParams) SetCommitMessage ¶
func (params *CreateFlowParams) SetCommitMessage(CommitMessage string) *CreateFlowParams
func (*CreateFlowParams) SetDefinition ¶
func (params *CreateFlowParams) SetDefinition(Definition interface{}) *CreateFlowParams
func (*CreateFlowParams) SetFriendlyName ¶
func (params *CreateFlowParams) SetFriendlyName(FriendlyName string) *CreateFlowParams
func (*CreateFlowParams) SetStatus ¶
func (params *CreateFlowParams) SetStatus(Status string) *CreateFlowParams
type ListExecutionParams ¶
type ListExecutionParams struct { // Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` // Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListExecution'
func (*ListExecutionParams) SetDateCreatedFrom ¶
func (params *ListExecutionParams) SetDateCreatedFrom(DateCreatedFrom time.Time) *ListExecutionParams
func (*ListExecutionParams) SetDateCreatedTo ¶
func (params *ListExecutionParams) SetDateCreatedTo(DateCreatedTo time.Time) *ListExecutionParams
func (*ListExecutionParams) SetLimit ¶ added in v0.13.0
func (params *ListExecutionParams) SetLimit(Limit int) *ListExecutionParams
func (*ListExecutionParams) SetPageSize ¶
func (params *ListExecutionParams) SetPageSize(PageSize int) *ListExecutionParams
type ListExecutionResponse ¶
type ListExecutionResponse struct { Executions []StudioV2Execution `json:"executions,omitempty"` Meta ListExecutionResponseMeta `json:"meta,omitempty"` }
ListExecutionResponse struct for ListExecutionResponse
type ListExecutionResponseMeta ¶ added in v1.0.0
type ListExecutionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` }
ListExecutionResponseMeta struct for ListExecutionResponseMeta
type ListExecutionStepParams ¶
type ListExecutionStepParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListExecutionStep'
func (*ListExecutionStepParams) SetLimit ¶ added in v0.13.0
func (params *ListExecutionStepParams) SetLimit(Limit int) *ListExecutionStepParams
func (*ListExecutionStepParams) SetPageSize ¶
func (params *ListExecutionStepParams) SetPageSize(PageSize int) *ListExecutionStepParams
type ListExecutionStepResponse ¶
type ListExecutionStepResponse struct { Steps []StudioV2ExecutionStep `json:"steps,omitempty"` Meta ListExecutionResponseMeta `json:"meta,omitempty"` }
ListExecutionStepResponse struct for ListExecutionStepResponse
type ListFlowParams ¶
type ListFlowParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListFlow'
func (*ListFlowParams) SetLimit ¶ added in v0.13.0
func (params *ListFlowParams) SetLimit(Limit int) *ListFlowParams
func (*ListFlowParams) SetPageSize ¶
func (params *ListFlowParams) SetPageSize(PageSize int) *ListFlowParams
type ListFlowResponse ¶
type ListFlowResponse struct { Flows []StudioV2Flow `json:"flows,omitempty"` Meta ListExecutionResponseMeta `json:"meta,omitempty"` }
ListFlowResponse struct for ListFlowResponse
type ListFlowRevisionParams ¶
type ListFlowRevisionParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListFlowRevision'
func (*ListFlowRevisionParams) SetLimit ¶ added in v0.13.0
func (params *ListFlowRevisionParams) SetLimit(Limit int) *ListFlowRevisionParams
func (*ListFlowRevisionParams) SetPageSize ¶
func (params *ListFlowRevisionParams) SetPageSize(PageSize int) *ListFlowRevisionParams
type ListFlowRevisionResponse ¶
type ListFlowRevisionResponse struct { Revisions []StudioV2FlowRevision `json:"revisions,omitempty"` Meta ListExecutionResponseMeta `json:"meta,omitempty"` }
ListFlowRevisionResponse struct for ListFlowRevisionResponse
type StudioV2Execution ¶ added in v0.14.0
type StudioV2Execution struct { // The unique string that we created to identify the Execution resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Execution resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the Flow. FlowSid *string `json:"flow_sid,omitempty"` // The phone number, SIP address or Client identifier that triggered the Execution. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. ContactChannelAddress *string `json:"contact_channel_address,omitempty"` // The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. Context *interface{} `json:"context,omitempty"` Status *string `json:"status,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` // The URLs of nested resources. Links *map[string]interface{} `json:"links,omitempty"` }
StudioV2Execution struct for StudioV2Execution
type StudioV2ExecutionContext ¶ added in v0.14.0
type StudioV2ExecutionContext struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionContext resource. AccountSid *string `json:"account_sid,omitempty"` // The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. Context *interface{} `json:"context,omitempty"` // The SID of the Flow. FlowSid *string `json:"flow_sid,omitempty"` // The SID of the context's Execution resource. ExecutionSid *string `json:"execution_sid,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
StudioV2ExecutionContext struct for StudioV2ExecutionContext
type StudioV2ExecutionStep ¶ added in v0.14.0
type StudioV2ExecutionStep struct { // The unique string that we created to identify the ExecutionStep resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionStep resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the Flow. FlowSid *string `json:"flow_sid,omitempty"` // The SID of the Step's Execution resource. ExecutionSid *string `json:"execution_sid,omitempty"` // The event that caused the Flow to transition to the Step. Name *string `json:"name,omitempty"` // The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. Context *interface{} `json:"context,omitempty"` // The Widget that preceded the Widget for the Step. TransitionedFrom *string `json:"transitioned_from,omitempty"` // The Widget that will follow the Widget for the Step. TransitionedTo *string `json:"transitioned_to,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` // The URLs of related resources. Links *map[string]interface{} `json:"links,omitempty"` }
StudioV2ExecutionStep struct for StudioV2ExecutionStep
type StudioV2ExecutionStepContext ¶ added in v0.14.0
type StudioV2ExecutionStepContext struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ExecutionStepContext resource. AccountSid *string `json:"account_sid,omitempty"` // The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution. Context *interface{} `json:"context,omitempty"` // The SID of the context's Execution resource. ExecutionSid *string `json:"execution_sid,omitempty"` // The SID of the Flow. FlowSid *string `json:"flow_sid,omitempty"` // The SID of the Step that the context is associated with. StepSid *string `json:"step_sid,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
StudioV2ExecutionStepContext struct for StudioV2ExecutionStepContext
type StudioV2Flow ¶
type StudioV2Flow struct { // The unique string that we created to identify the Flow resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flow resource. AccountSid *string `json:"account_sid,omitempty"` // The string that you assigned to describe the Flow. FriendlyName *string `json:"friendly_name,omitempty"` // JSON representation of flow definition. Definition *interface{} `json:"definition,omitempty"` Status *string `json:"status,omitempty"` // The latest revision number of the Flow's definition. Revision int `json:"revision,omitempty"` // Description of change made in the revision. CommitMessage *string `json:"commit_message,omitempty"` // Boolean if the flow definition is valid. Valid *bool `json:"valid,omitempty"` // List of error in the flow definition. Errors *[]interface{} `json:"errors,omitempty"` // List of warnings in the flow definition. Warnings *[]interface{} `json:"warnings,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` WebhookUrl *string `json:"webhook_url,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` // The URLs of the Flow's nested resources. Links *map[string]interface{} `json:"links,omitempty"` }
StudioV2Flow struct for StudioV2Flow
type StudioV2FlowRevision ¶ added in v0.14.0
type StudioV2FlowRevision struct { // The unique string that we created to identify the Flow resource. Sid *string `json:"sid,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flow resource. AccountSid *string `json:"account_sid,omitempty"` // The string that you assigned to describe the Flow. FriendlyName *string `json:"friendly_name,omitempty"` // JSON representation of flow definition. Definition *interface{} `json:"definition,omitempty"` Status *string `json:"status,omitempty"` // The latest revision number of the Flow's definition. Revision int `json:"revision,omitempty"` // Description of change made in the revision. CommitMessage *string `json:"commit_message,omitempty"` // Boolean if the flow definition is valid. Valid *bool `json:"valid,omitempty"` // List of error in the flow definition. Errors *[]interface{} `json:"errors,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
StudioV2FlowRevision struct for StudioV2FlowRevision
type StudioV2FlowValidate ¶
type StudioV2FlowValidate struct { // Boolean if the flow definition is valid. Valid *bool `json:"valid,omitempty"` }
StudioV2FlowValidate struct for StudioV2FlowValidate
type StudioV2TestUser ¶ added in v0.14.0
type StudioV2TestUser struct { // Unique identifier of the flow. Sid *string `json:"sid,omitempty"` // List of test user identities that can test draft versions of the flow. TestUsers *[]string `json:"test_users,omitempty"` // The URL of this resource. Url *string `json:"url,omitempty"` }
StudioV2TestUser struct for StudioV2TestUser
type UpdateExecutionParams ¶
type UpdateExecutionParams struct { // Status *string `json:"Status,omitempty"` }
Optional parameters for the method 'UpdateExecution'
func (*UpdateExecutionParams) SetStatus ¶
func (params *UpdateExecutionParams) SetStatus(Status string) *UpdateExecutionParams
type UpdateFlowParams ¶
type UpdateFlowParams struct { // Status *string `json:"Status,omitempty"` // The string that you assigned to describe the Flow. FriendlyName *string `json:"FriendlyName,omitempty"` // JSON representation of flow definition. Definition *interface{} `json:"Definition,omitempty"` // Description of change made in the revision. CommitMessage *string `json:"CommitMessage,omitempty"` }
Optional parameters for the method 'UpdateFlow'
func (*UpdateFlowParams) SetCommitMessage ¶
func (params *UpdateFlowParams) SetCommitMessage(CommitMessage string) *UpdateFlowParams
func (*UpdateFlowParams) SetDefinition ¶
func (params *UpdateFlowParams) SetDefinition(Definition interface{}) *UpdateFlowParams
func (*UpdateFlowParams) SetFriendlyName ¶
func (params *UpdateFlowParams) SetFriendlyName(FriendlyName string) *UpdateFlowParams
func (*UpdateFlowParams) SetStatus ¶
func (params *UpdateFlowParams) SetStatus(Status string) *UpdateFlowParams
type UpdateFlowValidateParams ¶
type UpdateFlowValidateParams struct { // The string that you assigned to describe the Flow. FriendlyName *string `json:"FriendlyName,omitempty"` // Status *string `json:"Status,omitempty"` // JSON representation of flow definition. Definition *interface{} `json:"Definition,omitempty"` // Description of change made in the revision. CommitMessage *string `json:"CommitMessage,omitempty"` }
Optional parameters for the method 'UpdateFlowValidate'
func (*UpdateFlowValidateParams) SetCommitMessage ¶
func (params *UpdateFlowValidateParams) SetCommitMessage(CommitMessage string) *UpdateFlowValidateParams
func (*UpdateFlowValidateParams) SetDefinition ¶
func (params *UpdateFlowValidateParams) SetDefinition(Definition interface{}) *UpdateFlowValidateParams
func (*UpdateFlowValidateParams) SetFriendlyName ¶
func (params *UpdateFlowValidateParams) SetFriendlyName(FriendlyName string) *UpdateFlowValidateParams
func (*UpdateFlowValidateParams) SetStatus ¶
func (params *UpdateFlowValidateParams) SetStatus(Status string) *UpdateFlowValidateParams
type UpdateTestUserParams ¶
type UpdateTestUserParams struct { // List of test user identities that can test draft versions of the flow. TestUsers *[]string `json:"TestUsers,omitempty"` }
Optional parameters for the method 'UpdateTestUser'
func (*UpdateTestUserParams) SetTestUsers ¶
func (params *UpdateTestUserParams) SetTestUsers(TestUsers []string) *UpdateTestUserParams
Source Files ¶
- api_service.go
- flows.go
- flows_executions.go
- flows_executions_context.go
- flows_executions_steps.go
- flows_executions_steps_context.go
- flows_revisions.go
- flows_test_users.go
- flows_validate.go
- model_list_execution_response.go
- model_list_execution_response_meta.go
- model_list_execution_step_response.go
- model_list_flow_response.go
- model_list_flow_revision_response.go
- model_studio_v2_execution.go
- model_studio_v2_execution_context.go
- model_studio_v2_execution_step.go
- model_studio_v2_execution_step_context.go
- model_studio_v2_flow.go
- model_studio_v2_flow_revision.go
- model_studio_v2_flow_validate.go
- model_studio_v2_test_user.go