Documentation
¶
Overview ¶
Package ip_access_control_lists contains auto-generated files. DO NOT MODIFY
Package ip_access_control_lists contains auto-generated files. DO NOT MODIFY
Package ip_access_control_lists contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Create(input *CreateIpAccessControlListInput) (*IpAccessControlListResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreateIpAccessControlListInput) (*IpAccessControlListResponse, error)
- func (c *Client) NewIpAccessControlListsPaginator() *IpAccessControlListsPaginator
- func (c *Client) NewIpAccessControlListsPaginatorWithOptions(options *IpAccessControlListsPageOptions) *IpAccessControlListsPaginator
- func (c Client) Page(options *IpAccessControlListsPageOptions) (*IpAccessControlListsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *IpAccessControlListsPageOptions) (*IpAccessControlListsPageResponse, error)
- type ClientProperties
- type CreateIpAccessControlListInput
- type IpAccessControlListResponse
- type IpAccessControlListsPage
- type IpAccessControlListsPageOptions
- type IpAccessControlListsPageResponse
- type IpAccessControlListsPaginator
- type PageIpAccessControlListResponse
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 resources
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the ip access control lists client
func (Client) Create ¶
func (c Client) Create(input *CreateIpAccessControlListInput) (*IpAccessControlListResponse, error)
Create creates a IP access control list resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#create-a-sip-ipaccesscontrollist-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 *CreateIpAccessControlListInput) (*IpAccessControlListResponse, error)
CreateWithContext creates a IP access control list resource See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#create-a-sip-ipaccesscontrollist-resource for more details
func (*Client) NewIpAccessControlListsPaginator ¶
func (c *Client) NewIpAccessControlListsPaginator() *IpAccessControlListsPaginator
NewIpAccessControlListsPaginator creates a new instance of the paginator for Page.
func (*Client) NewIpAccessControlListsPaginatorWithOptions ¶
func (c *Client) NewIpAccessControlListsPaginatorWithOptions(options *IpAccessControlListsPageOptions) *IpAccessControlListsPaginator
NewIpAccessControlListsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *IpAccessControlListsPageOptions) (*IpAccessControlListsPageResponse, error)
Page retrieves a page of IP access control lists See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#read-multiple-sip-ipaccesscontrollist-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 *IpAccessControlListsPageOptions) (*IpAccessControlListsPageResponse, error)
PageWithContext retrieves a page of IP access control lists See https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource#read-multiple-sip-ipaccesscontrollist-resources for more details
type ClientProperties ¶
type ClientProperties struct {
AccountSid string
}
ClientProperties are the properties required to manage the ip access control lists resources
type CreateIpAccessControlListInput ¶
type CreateIpAccessControlListInput struct {
FriendlyName string `validate:"required" form:"FriendlyName"`
}
CreateIpAccessControlListInput defines input fields for creating a new IP access control list
type IpAccessControlListResponse ¶
type IpAccessControlListResponse 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"` }
IpAccessControlListResponse defines the response fields for creating a new IP access control list
type IpAccessControlListsPage ¶
type IpAccessControlListsPage struct { CurrentPage *IpAccessControlListsPageResponse Error error // contains filtered or unexported fields }
IpAccessControlListsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageIpAccessControlListResponse or error that is returned from the api call(s)
type IpAccessControlListsPageOptions ¶
IpAccessControlListsPageOptions defines the query options for the api operation
type IpAccessControlListsPageResponse ¶
type IpAccessControlListsPageResponse struct { End int `json:"end"` FirstPageURI string `json:"first_page_uri"` IpAccessControlLists []PageIpAccessControlListResponse `json:"ip_access_control_lists"` 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"` }
IpAccessControlListsPageResponse defines the response fields for the IP access control lists page
type IpAccessControlListsPaginator ¶
type IpAccessControlListsPaginator struct { Page *IpAccessControlListsPage IpAccessControlLists []PageIpAccessControlListResponse // contains filtered or unexported fields }
IpAccessControlListsPaginator defines the fields for makings paginated api calls IpAccessControlLists is an array of ipaccesscontrollists that have been returned from all of the page calls
func (*IpAccessControlListsPaginator) CurrentPage ¶
func (p *IpAccessControlListsPaginator) CurrentPage() *IpAccessControlListsPageResponse
CurrentPage retrieves the results for the current page
func (*IpAccessControlListsPaginator) Error ¶
func (p *IpAccessControlListsPaginator) Error() error
Error retrieves the error returned from the page
func (*IpAccessControlListsPaginator) Next ¶
func (p *IpAccessControlListsPaginator) 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 (*IpAccessControlListsPaginator) NextWithContext ¶
func (p *IpAccessControlListsPaginator) 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 PageIpAccessControlListResponse ¶
type PageIpAccessControlListResponse 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"` }