plugins

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

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

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

func New

func New(client *client.Client) *Client

New creates a new instance of the plugins client

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

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

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

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

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"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	Description  *string    `json:"description,omitempty"`
	Disabled     bool       `json:"disabled"`
	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 PageMetaResponse struct {
	FirstPageURL    string  `json:"first_page_url"`
	Key             string  `json:"key"`
	NextPageURL     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page"`
	PageSize        int     `json:"page_size"`
	PreviousPageURL *string `json:"previous_page_url,omitempty"`
	URL             string  `json:"url"`
}

type PagePluginResponse

type PagePluginResponse struct {
	AccountSid   string     `json:"account_sid"`
	DateCreated  time.Time  `json:"date_created"`
	DateUpdated  *time.Time `json:"date_updated,omitempty"`
	Description  *string    `json:"description,omitempty"`
	Disabled     bool       `json:"disabled"`
	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

type PluginsPageOptions struct {
	PageSize  *int
	Page      *int
	PageToken *string
}

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

Jump to

Keyboard shortcuts

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