permissions

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package permissions contains auto-generated files. DO NOT MODIFY

Package permissions 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 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

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

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

type ClientProperties struct {
	ServiceSid  string
	SyncListSid string
}

ClientProperties are the properties required to manage the permissions resources

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 PageSyncListPermissionsResponse

type PageSyncListPermissionsResponse struct {
	AccountSid string `json:"account_sid"`
	Identity   string `json:"identity"`
	ListSid    string `json:"list_sid"`
	Manage     bool   `json:"manage"`
	Read       bool   `json:"read"`
	ServiceSid string `json:"service_sid"`
	URL        string `json:"url"`
	Write      bool   `json:"write"`
}

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

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

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

CurrentPage retrieves the results for the current page

func (*SyncListPermissionsPaginator) Error

Error retrieves the error returned from the page

func (*SyncListPermissionsPaginator) Next

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

Jump to

Keyboard shortcuts

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