execution

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Context func() *context.Client
	Step    func(string) *step.Client
	Steps   *steps.Client
	// contains filtered or unexported fields
}

Client for managing a specific execution resource See https://www.twilio.com/docs/studio/rest-api/v2/execution for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the execution client

func (Client) Delete

func (c Client) Delete() error

Delete removes a execution resource from the account See https://www.twilio.com/docs/studio/rest-api/v2/execution#delete-an-execution for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) DeleteWithContext

func (c Client) DeleteWithContext(context context.Context) error

DeleteWithContext removes a execution resource from the account See https://www.twilio.com/docs/studio/rest-api/v2/execution#delete-an-execution for more details

func (Client) Fetch

func (c Client) Fetch() (*FetchExecutionResponse, error)

Fetch retrieves a execution resource See https://www.twilio.com/docs/studio/rest-api/v2/execution#fetch-a-single-execution for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) FetchWithContext

func (c Client) FetchWithContext(context context.Context) (*FetchExecutionResponse, error)

FetchWithContext retrieves a execution resource See https://www.twilio.com/docs/studio/rest-api/v2/execution#fetch-a-single-execution for more details

func (Client) Update

Update modifies a execution resource See https://www.twilio.com/docs/studio/rest-api/v2/execution#update-an-execution for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

func (c Client) UpdateWithContext(context context.Context, input *UpdateExecutionInput) (*UpdateExecutionResponse, error)

UpdateWithContext modifies a execution resource See https://www.twilio.com/docs/studio/rest-api/v2/execution#update-an-execution for more details

type ClientProperties

type ClientProperties struct {
	FlowSid string
	Sid     string
}

ClientProperties are the properties required to manage the execution resources

type FetchExecutionResponse

type FetchExecutionResponse struct {
	AccountSid            string      `json:"account_sid"`
	ContactChannelAddress string      `json:"contact_channel_address"`
	Context               interface{} `json:"context"`
	DateCreated           time.Time   `json:"date_created"`
	DateUpdated           *time.Time  `json:"date_updated,omitempty"`
	FlowSid               string      `json:"flow_sid"`
	Sid                   string      `json:"sid"`
	Status                string      `json:"status"`
	URL                   string      `json:"url"`
}

FetchExecutionResponse defines the response fields for the retrieved execution

type UpdateExecutionInput

type UpdateExecutionInput struct {
	Status string `validate:"required" form:"Status"`
}

UpdateExecutionInput defines input fields for updating a execution resource

type UpdateExecutionResponse

type UpdateExecutionResponse struct {
	AccountSid            string      `json:"account_sid"`
	ContactChannelAddress string      `json:"contact_channel_address"`
	Context               interface{} `json:"context"`
	DateCreated           time.Time   `json:"date_created"`
	DateUpdated           *time.Time  `json:"date_updated,omitempty"`
	FlowSid               string      `json:"flow_sid"`
	Sid                   string      `json:"sid"`
	Status                string      `json:"status"`
	URL                   string      `json:"url"`
}

UpdateExecutionResponse defines the response fields for the updated execution

Directories

Path Synopsis
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
context
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL