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