Documentation
¶
Overview ¶
Package plugins contains auto-generated files. DO NOT MODIFY
Package plugins contains auto-generated files. DO NOT MODIFY
Package plugins contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Create(input *CreatePluginInput) (*CreatePluginResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreatePluginInput) (*CreatePluginResponse, error)
- func (c *Client) NewPluginsPaginator() *PluginsPaginator
- func (c *Client) NewPluginsPaginatorWithOptions(options *PluginsPageOptions) *PluginsPaginator
- func (c Client) Page(options *PluginsPageOptions) (*PluginsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *PluginsPageOptions) (*PluginsPageResponse, error)
- type CreatePluginInput
- type CreatePluginResponse
- type PageMetaResponse
- type PagePluginResponse
- type PluginsPage
- type PluginsPageOptions
- type PluginsPageResponse
- type PluginsPaginator
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 plugin resources See https://www.twilio.com/docs/flex/developer/plugins/api/plugin for more details This client is currently in beta and subject to change. Please use with caution
func (Client) Create ¶
func (c Client) Create(input *CreatePluginInput) (*CreatePluginResponse, error)
Create creates a new plugin resource See https://www.twilio.com/docs/flex/developer/plugins/api/plugin#create-a-plugin-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information This resource is currently in beta and subject to change. Please use with caution
func (Client) CreateWithContext ¶
func (c Client) CreateWithContext(context context.Context, input *CreatePluginInput) (*CreatePluginResponse, error)
CreateWithContext creates a new plugin resource See https://www.twilio.com/docs/flex/developer/plugins/api/plugin#create-a-plugin-resource for more details This resource is currently in beta and subject to change. Please use with caution
func (*Client) NewPluginsPaginator ¶
func (c *Client) NewPluginsPaginator() *PluginsPaginator
NewPluginsPaginator creates a new instance of the paginator for Page.
func (*Client) NewPluginsPaginatorWithOptions ¶
func (c *Client) NewPluginsPaginatorWithOptions(options *PluginsPageOptions) *PluginsPaginator
NewPluginsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *PluginsPageOptions) (*PluginsPageResponse, error)
Page retrieves a page of plugins See https://www.twilio.com/docs/flex/developer/plugins/api/plugin#read-multiple-plugin-resources for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information This resource is currently in beta and subject to change. Please use with caution
func (Client) PageWithContext ¶
func (c Client) PageWithContext(context context.Context, options *PluginsPageOptions) (*PluginsPageResponse, error)
PageWithContext retrieves a page of plugins See https://www.twilio.com/docs/flex/developer/plugins/api/plugin#read-multiple-plugin-resources for more details This resource is currently in beta and subject to change. Please use with caution
type CreatePluginInput ¶
type CreatePluginInput struct { Description *string `form:"Description,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` UniqueName string `validate:"required" form:"UniqueName"` }
CreatePluginInput defines the input fields for creating a new plugin resource
type CreatePluginResponse ¶
type CreatePluginResponse struct { AccountSid string `json:"account_sid"` Archived bool `json:"archived"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Description *string `json:"description,omitempty"` FriendlyName string `json:"friendly_name"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
CreatePluginResponse defines the response fields for the created plugin
type PageMetaResponse ¶
type PagePluginResponse ¶
type PagePluginResponse struct { AccountSid string `json:"account_sid"` Archived bool `json:"archived"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Description *string `json:"description,omitempty"` FriendlyName string `json:"friendly_name"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
type PluginsPage ¶
type PluginsPage struct { CurrentPage *PluginsPageResponse Error error // contains filtered or unexported fields }
PluginsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PagePluginResponse or error that is returned from the api call(s)
type PluginsPageOptions ¶
PluginsPageOptions defines the query options for the api operation
type PluginsPageResponse ¶
type PluginsPageResponse struct { Meta PageMetaResponse `json:"meta"` Plugins []PagePluginResponse `json:"plugins"` }
PluginsPageResponse defines the response fields for the plugins page
type PluginsPaginator ¶
type PluginsPaginator struct { Page *PluginsPage Plugins []PagePluginResponse // contains filtered or unexported fields }
PluginsPaginator defines the fields for makings paginated api calls Plugins is an array of plugins that have been returned from all of the page calls
func (*PluginsPaginator) CurrentPage ¶
func (p *PluginsPaginator) CurrentPage() *PluginsPageResponse
CurrentPage retrieves the results for the current page
func (*PluginsPaginator) Error ¶
func (p *PluginsPaginator) Error() error
Error retrieves the error returned from the page
func (*PluginsPaginator) Next ¶
func (p *PluginsPaginator) Next() bool
Next retrieves the next page of results. Next will return false when either an error occurs or there are no more pages to iterate Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (*PluginsPaginator) NextWithContext ¶
func (p *PluginsPaginator) NextWithContext(context context.Context) bool
NextWithContext retrieves the next page of results. NextWithContext will return false when either an error occurs or there are no more pages to iterate