flow_validation

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package flow_validation contains auto-generated files. DO NOT MODIFY

Package flow_validation contains auto-generated files. 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 {
	// contains filtered or unexported fields
}

Client for managing flow validation resources See https://www.twilio.com/docs/studio/rest-api/v2/flow-validate for more details

func New

func New(client *client.Client) *Client

New creates a new instance of the flow validation client

func (Client) Validate

func (c Client) Validate(input *ValidateFlowInput) (*ValidateFlowResponse, error)

Validate validate a flow See https://www.twilio.com/docs/studio/rest-api/v2/flow-validate#validate-flow for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) ValidateWithContext

func (c Client) ValidateWithContext(context context.Context, input *ValidateFlowInput) (*ValidateFlowResponse, error)

ValidateWithContext validate a flow See https://www.twilio.com/docs/studio/rest-api/v2/flow-validate#validate-flow for more details

type ValidateFlowInput

type ValidateFlowInput struct {
	CommitMessage *string `form:"CommitMessage,omitempty"`
	Definition    string  `validate:"required" form:"Definition"`
	FriendlyName  string  `validate:"required" form:"FriendlyName"`
	Status        string  `validate:"required" form:"Status"`
}

ValidateFlowInput defines the input fields for validating a flow

type ValidateFlowResponse

type ValidateFlowResponse struct {
	Valid bool `json:"valid"`
}

ValidateFlowResponse defines the response fields for the validating a flow

Jump to

Keyboard shortcuts

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