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 ¶
- type Client
- func (c Client) Create(input *CreateIpAccessControlListMappingInput) (*IpAccessControlListMappingResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreateIpAccessControlListMappingInput) (*IpAccessControlListMappingResponse, error)
- func (c *Client) NewIpAccessControlListMappingsPaginator() *IpAccessControlListMappingsPaginator
- func (c *Client) NewIpAccessControlListMappingsPaginatorWithOptions(options *IpAccessControlListMappingsPageOptions) *IpAccessControlListMappingsPaginator
- func (c Client) Page(options *IpAccessControlListMappingsPageOptions) (*IpAccessControlListMappingsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *IpAccessControlListMappingsPageOptions) (*IpAccessControlListMappingsPageResponse, error)
- type ClientProperties
- type CreateIpAccessControlListMappingInput
- type IpAccessControlListMappingResponse
- type IpAccessControlListMappingsPage
- type IpAccessControlListMappingsPageOptions
- type IpAccessControlListMappingsPageResponse
- type IpAccessControlListMappingsPaginator
- func (p *IpAccessControlListMappingsPaginator) CurrentPage() *IpAccessControlListMappingsPageResponse
- func (p *IpAccessControlListMappingsPaginator) Error() error
- func (p *IpAccessControlListMappingsPaginator) Next() bool
- func (p *IpAccessControlListMappingsPaginator) NextWithContext(context context.Context) bool
- type PageIpAccessControlListMappingResponse
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 ¶
func (c Client) Create(input *CreateIpAccessControlListMappingInput) (*IpAccessControlListMappingResponse, error)
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) CreateWithContext ¶
func (c Client) CreateWithContext(context context.Context, input *CreateIpAccessControlListMappingInput) (*IpAccessControlListMappingResponse, error)
CreateWithContext 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
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 ¶
func (c Client) Page(options *IpAccessControlListMappingsPageOptions) (*IpAccessControlListMappingsPageResponse, error)
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
func (Client) PageWithContext ¶
func (c Client) PageWithContext(context context.Context, options *IpAccessControlListMappingsPageOptions) (*IpAccessControlListMappingsPageResponse, error)
PageWithContext 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
type ClientProperties ¶
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 ¶
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 ¶
func (p *IpAccessControlListMappingsPaginator) CurrentPage() *IpAccessControlListMappingsPageResponse
CurrentPage retrieves the results for the current page
func (*IpAccessControlListMappingsPaginator) Error ¶
func (p *IpAccessControlListMappingsPaginator) Error() error
Error retrieves the error returned from the page
func (*IpAccessControlListMappingsPaginator) Next ¶
func (p *IpAccessControlListMappingsPaginator) 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 (*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"` }