openapi

package
v0.0.0-...-e041b52 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 6 Imported by: 0

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.52.1
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://studio.twilio.com

Class Method HTTP request Description
FlowsApi CreateFlow Post /v2/Flows
FlowsApi DeleteFlow Delete /v2/Flows/{Sid}
FlowsApi FetchFlow Get /v2/Flows/{Sid}
FlowsApi ListFlow Get /v2/Flows
FlowsApi UpdateFlow Post /v2/Flows/{Sid}
FlowsExecutionsApi CreateExecution Post /v2/Flows/{FlowSid}/Executions
FlowsExecutionsApi DeleteExecution Delete /v2/Flows/{FlowSid}/Executions/{Sid}
FlowsExecutionsApi FetchExecution Get /v2/Flows/{FlowSid}/Executions/{Sid}
FlowsExecutionsApi ListExecution Get /v2/Flows/{FlowSid}/Executions
FlowsExecutionsApi UpdateExecution Post /v2/Flows/{FlowSid}/Executions/{Sid}
FlowsExecutionsContextApi FetchExecutionContext Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context
FlowsExecutionsStepsApi FetchExecutionStep Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}
FlowsExecutionsStepsApi ListExecutionStep Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps
FlowsExecutionsStepsContextApi FetchExecutionStepContext Get /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context
FlowsRevisionsApi FetchFlowRevision Get /v2/Flows/{Sid}/Revisions/{Revision}
FlowsRevisionsApi ListFlowRevision Get /v2/Flows/{Sid}/Revisions
FlowsTestUsersApi FetchTestUser Get /v2/Flows/{Sid}/TestUsers
FlowsTestUsersApi UpdateTestUser Post /v2/Flows/{Sid}/TestUsers
FlowsValidateApi UpdateFlowValidate Post /v2/Flows/Validate

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

type ApiService struct {
	// contains filtered or unexported fields
}

func NewApiService

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) CreateExecution

func (c *ApiService) CreateExecution(FlowSid string, params *CreateExecutionParams) (*StudioV2Execution, error)

Triggers a new Execution for the Flow

func (*ApiService) CreateFlow

func (c *ApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error)

Create a Flow.

func (*ApiService) DeleteExecution

func (c *ApiService) DeleteExecution(FlowSid string, Sid string) error

Delete the Execution and all Steps relating to it.

func (*ApiService) DeleteFlow

func (c *ApiService) DeleteFlow(Sid string) error

Delete a specific Flow.

func (*ApiService) FetchExecution

func (c *ApiService) FetchExecution(FlowSid string, Sid string) (*StudioV2Execution, error)

Retrieve an Execution

func (*ApiService) FetchExecutionContext

func (c *ApiService) FetchExecutionContext(FlowSid string, ExecutionSid string) (*StudioV2ExecutionContext, error)

Retrieve the most recent context for an Execution.

func (*ApiService) FetchExecutionStep

func (c *ApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV2ExecutionStep, error)

Retrieve a Step.

func (*ApiService) FetchExecutionStepContext

func (c *ApiService) FetchExecutionStepContext(FlowSid string, ExecutionSid string, StepSid string) (*StudioV2ExecutionStepContext, error)

Retrieve the context for an Execution Step.

func (*ApiService) FetchFlow

func (c *ApiService) FetchFlow(Sid string) (*StudioV2Flow, error)

Retrieve a specific Flow.

func (*ApiService) FetchFlowRevision

func (c *ApiService) FetchFlowRevision(Sid string, Revision string) (*StudioV2FlowRevision, error)

Retrieve a specific Flow revision.

func (*ApiService) FetchTestUser

func (c *ApiService) FetchTestUser(Sid string) (*StudioV2TestUser, error)

Fetch flow test users

func (*ApiService) ListExecution

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

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

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

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

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

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

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

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

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

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

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

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

func (c *ApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV2Execution, error)

Update the status of an Execution to `ended`.

func (*ApiService) UpdateFlow

func (c *ApiService) UpdateFlow(Sid string, params *UpdateFlowParams) (*StudioV2Flow, error)

Update a Flow.

func (*ApiService) UpdateFlowValidate

func (c *ApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error)

Validate flow JSON definition

func (*ApiService) UpdateTestUser

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

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

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

type ListExecutionResponseMeta struct {
	FirstPageUrl    string  `json:"first_page_url,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"`
	Key             string  `json:"key,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

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

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

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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