Documentation ¶
Overview ¶
Package permissions contains auto-generated files. DO NOT MODIFY
Package permissions contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c *Client) NewSyncListPermissionsPaginator() *SyncListPermissionsPaginator
- func (c *Client) NewSyncListPermissionsPaginatorWithOptions(options *SyncListPermissionsPageOptions) *SyncListPermissionsPaginator
- func (c Client) Page(options *SyncListPermissionsPageOptions) (*SyncListPermissionsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *SyncListPermissionsPageOptions) (*SyncListPermissionsPageResponse, error)
- type ClientProperties
- type PageMetaResponse
- type PageSyncListPermissionsResponse
- type SyncListPermissionsPage
- type SyncListPermissionsPageOptions
- type SyncListPermissionsPageResponse
- type SyncListPermissionsPaginator
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 list permission resources See https://www.twilio.com/docs/sync/api/sync-list-permission-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the permissions client
func (*Client) NewSyncListPermissionsPaginator ¶
func (c *Client) NewSyncListPermissionsPaginator() *SyncListPermissionsPaginator
NewSyncListPermissionsPaginator creates a new instance of the paginator for Page.
func (*Client) NewSyncListPermissionsPaginatorWithOptions ¶
func (c *Client) NewSyncListPermissionsPaginatorWithOptions(options *SyncListPermissionsPageOptions) *SyncListPermissionsPaginator
NewSyncListPermissionsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *SyncListPermissionsPageOptions) (*SyncListPermissionsPageResponse, error)
Page retrieves a page of list permissions See https://www.twilio.com/docs/sync/api/sync-list-permission-resource#read-multiple-sync-list-permission-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 *SyncListPermissionsPageOptions) (*SyncListPermissionsPageResponse, error)
PageWithContext retrieves a page of list permissions See https://www.twilio.com/docs/sync/api/sync-list-permission-resource#read-multiple-sync-list-permission-resources for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the permissions resources
type PageMetaResponse ¶
type SyncListPermissionsPage ¶
type SyncListPermissionsPage struct { CurrentPage *SyncListPermissionsPageResponse Error error // contains filtered or unexported fields }
SyncListPermissionsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageSyncListPermissionsResponse or error that is returned from the api call(s)
type SyncListPermissionsPageOptions ¶
SyncListPermissionsPageOptions defines the query options for the api operation
type SyncListPermissionsPageResponse ¶
type SyncListPermissionsPageResponse struct { Meta PageMetaResponse `json:"meta"` Permissions []PageSyncListPermissionsResponse `json:"permissions"` }
SyncListPermissionsPageResponse defines the response fields for the list permissions page
type SyncListPermissionsPaginator ¶
type SyncListPermissionsPaginator struct { Page *SyncListPermissionsPage Permissions []PageSyncListPermissionsResponse // contains filtered or unexported fields }
SyncListPermissionsPaginator defines the fields for makings paginated api calls Permissions is an array of permissions that have been returned from all of the page calls
func (*SyncListPermissionsPaginator) CurrentPage ¶
func (p *SyncListPermissionsPaginator) CurrentPage() *SyncListPermissionsPageResponse
CurrentPage retrieves the results for the current page
func (*SyncListPermissionsPaginator) Error ¶
func (p *SyncListPermissionsPaginator) Error() error
Error retrieves the error returned from the page
func (*SyncListPermissionsPaginator) Next ¶
func (p *SyncListPermissionsPaginator) 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 (*SyncListPermissionsPaginator) NextWithContext ¶
func (p *SyncListPermissionsPaginator) 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