Documentation
¶
Overview ¶
Package query contains auto-generated files. DO NOT MODIFY
Package query contains auto-generated files. DO NOT MODIFY
Package query contains auto-generated files. DO NOT MODIFY
Package query contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchQueryResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchQueryResponse, error)
- func (c Client) Update(input *UpdateQueryInput) (*UpdateQueryResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateQueryInput) (*UpdateQueryResponse, error)
- type ClientProperties
- type FetchQueryResponse
- type FetchQueryResponseField
- type FetchQueryResponseResult
- type UpdateQueryInput
- type UpdateQueryResponse
- type UpdateQueryResponseField
- type UpdateQueryResponseResult
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 a specific query resource See https://www.twilio.com/docs/autopilot/api/query for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the query client
func (Client) Delete ¶
Delete removes a query resource from the account See https://www.twilio.com/docs/autopilot/api/query#delete-a-query-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a query resource from the account See https://www.twilio.com/docs/autopilot/api/query#delete-a-query-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchQueryResponse, error)
Fetch retrieves a query resource See https://www.twilio.com/docs/autopilot/api/query#fetch-a-query-resource 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) (*FetchQueryResponse, error)
FetchWithContext retrieves a query resource See https://www.twilio.com/docs/autopilot/api/query#fetch-a-query-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateQueryInput) (*UpdateQueryResponse, error)
Update modifies a query resource See https://www.twilio.com/docs/autopilot/api/query#update-a-query-resource 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 *UpdateQueryInput) (*UpdateQueryResponse, error)
UpdateWithContext modifies a query resource See https://www.twilio.com/docs/autopilot/api/query#update-a-query-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the query resources
type FetchQueryResponse ¶
type FetchQueryResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DialogueSid *string `json:"dialogue_sid,omitempty"` Language string `json:"language"` ModelBuildSid string `json:"model_build_sid"` Query string `json:"query"` Results FetchQueryResponseResult `json:"results"` SampleSid string `json:"sample_sid"` Sid string `json:"sid"` SourceChannel string `json:"source_channel"` Status string `json:"status"` URL string `json:"url"` }
FetchQueryResponse defines the response fields for the retrieved query
type FetchQueryResponseField ¶
type FetchQueryResponseResult ¶
type FetchQueryResponseResult struct { Fields []FetchQueryResponseField `json:"fields"` Task string `json:"task"` }
type UpdateQueryInput ¶
type UpdateQueryInput struct { SampleSid *string `form:"SampleSid,omitempty"` Status *string `form:"Status,omitempty"` }
UpdateQueryInput defines the input fields for updating a query
type UpdateQueryResponse ¶
type UpdateQueryResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DialogueSid *string `json:"dialogue_sid,omitempty"` Language string `json:"language"` ModelBuildSid string `json:"model_build_sid"` Query string `json:"query"` Results UpdateQueryResponseResult `json:"results"` SampleSid string `json:"sample_sid"` Sid string `json:"sid"` SourceChannel string `json:"source_channel"` Status string `json:"status"` URL string `json:"url"` }
UpdateQueryResponse defines the response fields for the updated query
type UpdateQueryResponseResult ¶
type UpdateQueryResponseResult struct { Fields []UpdateQueryResponseField `json:"fields"` Task string `json:"task"` }