permissions

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: 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 map permission resources See https://www.twilio.com/docs/sync/api/sync-map-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) NewSyncMapPermissionsPaginator

func (c *Client) NewSyncMapPermissionsPaginator() *SyncMapPermissionsPaginator

NewSyncMapPermissionsPaginator creates a new instance of the paginator for Page.

func (*Client) NewSyncMapPermissionsPaginatorWithOptions

func (c *Client) NewSyncMapPermissionsPaginatorWithOptions(options *SyncMapPermissionsPageOptions) *SyncMapPermissionsPaginator

NewSyncMapPermissionsPaginatorWithOptions creates a new instance of the paginator for Page with options.

func (Client) Page

Page retrieves a page of map permissions See https://www.twilio.com/docs/sync/api/sync-map-permission-resource#read-multiple-sync-map-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 map permissions See https://www.twilio.com/docs/sync/api/sync-map-permission-resource#read-multiple-sync-map-permission-resources for more details

type ClientProperties

type ClientProperties struct {
	ServiceSid string
	SyncMapSid 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 PageSyncMapPermissionsResponse

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

type SyncMapPermissionsPage

type SyncMapPermissionsPage struct {
	CurrentPage *SyncMapPermissionsPageResponse
	Error       error
	// contains filtered or unexported fields
}

SyncMapPermissionsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageSyncMapPermissionsResponse or error that is returned from the api call(s)

type SyncMapPermissionsPageOptions

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

SyncMapPermissionsPageOptions defines the query options for the api operation

type SyncMapPermissionsPageResponse

type SyncMapPermissionsPageResponse struct {
	Meta        PageMetaResponse                 `json:"meta"`
	Permissions []PageSyncMapPermissionsResponse `json:"permissions"`
}

SyncMapPermissionsPageResponse defines the response fields for the map permissions page

type SyncMapPermissionsPaginator

type SyncMapPermissionsPaginator struct {
	Page        *SyncMapPermissionsPage
	Permissions []PageSyncMapPermissionsResponse
	// contains filtered or unexported fields
}

SyncMapPermissionsPaginator 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 (*SyncMapPermissionsPaginator) CurrentPage

CurrentPage retrieves the results for the current page

func (*SyncMapPermissionsPaginator) Error

Error retrieves the error returned from the page

func (*SyncMapPermissionsPaginator) 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 (*SyncMapPermissionsPaginator) NextWithContext

func (p *SyncMapPermissionsPaginator) 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