Documentation
¶
Overview ¶
Package defaults contains auto-generated files. DO NOT MODIFY
Package defaults contains auto-generated files. DO NOT MODIFY
Package defaults contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Fetch() (*FetchDefaultResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchDefaultResponse, error)
- func (c Client) Update(input *UpdateDefaultInput) (*UpdateDefaultResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateDefaultInput) (*UpdateDefaultResponse, error)
- type ClientProperties
- type FetchDefaultResponse
- type UpdateDefaultInput
- type UpdateDefaultResponse
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 default resources See https://www.twilio.com/docs/autopilot/api/assistant/defaults for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the defaults client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchDefaultResponse, error)
Fetch retrieves a defaults resource See https://www.twilio.com/docs/autopilot/api/assistant/defaults#fetch-a-defaults-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) (*FetchDefaultResponse, error)
FetchWithContext retrieves a defaults resource See https://www.twilio.com/docs/autopilot/api/assistant/defaults#fetch-a-defaults-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateDefaultInput) (*UpdateDefaultResponse, error)
Update modifies a defaults resource See https://www.twilio.com/docs/autopilot/api/assistant/defaults#update-a-defaults-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 *UpdateDefaultInput) (*UpdateDefaultResponse, error)
UpdateWithContext modifies a defaults resource See https://www.twilio.com/docs/autopilot/api/assistant/defaults#update-a-defaults-resource for more details
type ClientProperties ¶
type ClientProperties struct {
AssistantSid string
}
ClientProperties are the properties required to manage the defaults resources
type FetchDefaultResponse ¶
type FetchDefaultResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` Data map[string]interface{} `json:"data"` URL string `json:"url"` }
FetchDefaultResponse defines the response fields for the retrieved defaults
type UpdateDefaultInput ¶
type UpdateDefaultInput struct {
Defaults *string `form:"Defaults,omitempty"`
}
UpdateDefaultInput defines the input fields for updating defaults