ip_access_control_list_mappings

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package ip_access_control_list_mappings contains auto-generated files. DO NOT MODIFY

Package ip_access_control_list_mappings contains auto-generated files. DO NOT MODIFY

Package ip_access_control_list_mappings 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 IP access control list mapping resources

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the ip access control list mappings client

func (Client) Create

Create creates a IP access control list mapping resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollistmapping-resource#create-a-sip-ipaccesscontrollistmapping-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (*Client) NewIpAccessControlListMappingsPaginator

func (c *Client) NewIpAccessControlListMappingsPaginator() *IpAccessControlListMappingsPaginator

NewIpAccessControlListMappingsPaginator creates a new instance of the paginator for Page.

func (*Client) NewIpAccessControlListMappingsPaginatorWithOptions

func (c *Client) NewIpAccessControlListMappingsPaginatorWithOptions(options *IpAccessControlListMappingsPageOptions) *IpAccessControlListMappingsPaginator

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

func (Client) Page

Page retrieves a page of IP access control list mappings See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollistmapping-resource#read-multiple-sip-ipaccesscontrollistmapping-resources for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

type ClientProperties

type ClientProperties struct {
	AccountSid string
	DomainSid  string
}

ClientProperties are the properties required to manage the ip access control list mappings resources

type CreateIpAccessControlListMappingInput

type CreateIpAccessControlListMappingInput struct {
	IpAccessControlListSid string `validate:"required" form:"IpAccessControlListSid"`
}

CreateIpAccessControlListMappingInput defines input fields for creating a new IP access control list mapping

type IpAccessControlListMappingResponse

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

IpAccessControlListMappingResponse defines the response fields for creating a new IP access control list mapping

type IpAccessControlListMappingsPage

type IpAccessControlListMappingsPage struct {
	CurrentPage *IpAccessControlListMappingsPageResponse
	Error       error
	// contains filtered or unexported fields
}

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

type IpAccessControlListMappingsPageOptions

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

IpAccessControlListMappingsPageOptions defines the query options for the api operation

type IpAccessControlListMappingsPageResponse

type IpAccessControlListMappingsPageResponse struct {
	End                         int                                      `json:"end"`
	FirstPageURI                string                                   `json:"first_page_uri"`
	IpAccessControlListMappings []PageIpAccessControlListMappingResponse `json:"contents"`
	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"`
}

IpAccessControlListMappingsPageResponse defines the response fields for the IP access control list mappings page

type IpAccessControlListMappingsPaginator

type IpAccessControlListMappingsPaginator struct {
	Page                        *IpAccessControlListMappingsPage
	IpAccessControlListMappings []PageIpAccessControlListMappingResponse
	// contains filtered or unexported fields
}

IpAccessControlListMappingsPaginator defines the fields for makings paginated api calls IpAccessControlListMappings is an array of ipaccesscontrollistmappings that have been returned from all of the page calls

func (*IpAccessControlListMappingsPaginator) CurrentPage

CurrentPage retrieves the results for the current page

func (*IpAccessControlListMappingsPaginator) Error

Error retrieves the error returned from the page

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

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

type PageIpAccessControlListMappingResponse 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