Documentation
¶
Overview ¶
Package credential_lists contains auto-generated files. DO NOT MODIFY
Package credential_lists contains auto-generated files. DO NOT MODIFY
Package credential_lists contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Create(input *CreateCredentialListInput) (*CreateCredentialListResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreateCredentialListInput) (*CreateCredentialListResponse, error)
- func (c *Client) NewCredentialListsPaginator() *CredentialListsPaginator
- func (c *Client) NewCredentialListsPaginatorWithOptions(options *CredentialListsPageOptions) *CredentialListsPaginator
- func (c Client) Page(options *CredentialListsPageOptions) (*CredentialListsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *CredentialListsPageOptions) (*CredentialListsPageResponse, error)
- type ClientProperties
- type CreateCredentialListInput
- type CreateCredentialListResponse
- type CredentialListsPage
- type CredentialListsPageOptions
- type CredentialListsPageResponse
- type CredentialListsPaginator
- type PageCredentialListResponse
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 credential list resources
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the credential lists client
func (Client) Create ¶
func (c Client) Create(input *CreateCredentialListInput) (*CreateCredentialListResponse, error)
Create creates a credential list resource See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#create-a-sip-credentiallist-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 *CreateCredentialListInput) (*CreateCredentialListResponse, error)
CreateWithContext creates a credential list resource See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#create-a-sip-credentiallist-resource for more details
func (*Client) NewCredentialListsPaginator ¶
func (c *Client) NewCredentialListsPaginator() *CredentialListsPaginator
NewCredentialListsPaginator creates a new instance of the paginator for Page.
func (*Client) NewCredentialListsPaginatorWithOptions ¶
func (c *Client) NewCredentialListsPaginatorWithOptions(options *CredentialListsPageOptions) *CredentialListsPaginator
NewCredentialListsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *CredentialListsPageOptions) (*CredentialListsPageResponse, error)
Page retrieves a page of credential lists See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#read-multiple-sip-credentiallist-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 *CredentialListsPageOptions) (*CredentialListsPageResponse, error)
PageWithContext retrieves a page of credential lists See https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource#read-multiple-sip-credentiallist-resources for more details
type ClientProperties ¶
type ClientProperties struct {
AccountSid string
}
ClientProperties are the properties required to manage the credential lists resources
type CreateCredentialListInput ¶
type CreateCredentialListInput struct {
FriendlyName string `validate:"required" form:"FriendlyName"`
}
CreateCredentialListInput defines input fields for creating a new credential list
type CreateCredentialListResponse ¶
type CreateCredentialListResponse struct { AccountSid string `json:"account_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` Sid string `json:"sid"` }
CreateCredentialListResponse defines the response fields for creating a new credential list
type CredentialListsPage ¶
type CredentialListsPage struct { CurrentPage *CredentialListsPageResponse Error error // contains filtered or unexported fields }
CredentialListsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageCredentialListResponse or error that is returned from the api call(s)
type CredentialListsPageOptions ¶
CredentialListsPageOptions defines the query options for the api operation
type CredentialListsPageResponse ¶
type CredentialListsPageResponse struct { CredentialLists []PageCredentialListResponse `json:"credential_lists"` End int `json:"end"` FirstPageURI string `json:"first_page_uri"` NextPageURI *string `json:"next_page_uri,omitempty"` Page int `json:"page"` PageSize int `json:"page_size"` PreviousPageURI *string `json:"previous_page_uri,omitempty"` Start int `json:"start"` URI string `json:"uri"` }
CredentialListsPageResponse defines the response fields for the credential list page
type CredentialListsPaginator ¶
type CredentialListsPaginator struct { Page *CredentialListsPage CredentialLists []PageCredentialListResponse // contains filtered or unexported fields }
CredentialListsPaginator defines the fields for makings paginated api calls CredentialLists is an array of credentiallists that have been returned from all of the page calls
func (*CredentialListsPaginator) CurrentPage ¶
func (p *CredentialListsPaginator) CurrentPage() *CredentialListsPageResponse
CurrentPage retrieves the results for the current page
func (*CredentialListsPaginator) Error ¶
func (p *CredentialListsPaginator) Error() error
Error retrieves the error returned from the page
func (*CredentialListsPaginator) Next ¶
func (p *CredentialListsPaginator) 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 (*CredentialListsPaginator) NextWithContext ¶
func (p *CredentialListsPaginator) 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
type PageCredentialListResponse ¶
type PageCredentialListResponse struct { AccountSid string `json:"account_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` Sid string `json:"sid"` }