credential_lists

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

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

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

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

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

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

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

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"`
}

Jump to

Keyboard shortcuts

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