Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error)
- func (c *ApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error)
- func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error)
- func (c *ApiService) CreateDialingPermissionsCountryBulkUpdate(params *CreateDialingPermissionsCountryBulkUpdateParams) (*VoiceV1DialingPermissionsCountryBulkUpdate, error)
- func (c *ApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error)
- func (c *ApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error)
- func (c *ApiService) DeleteArchivedCall(Date string, Sid string) error
- func (c *ApiService) DeleteByocTrunk(Sid string) error
- func (c *ApiService) DeleteConnectionPolicy(Sid string) error
- func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Sid string) error
- func (c *ApiService) DeleteIpRecord(Sid string) error
- func (c *ApiService) DeleteSourceIpMapping(Sid string) error
- func (c *ApiService) FetchByocTrunk(Sid string) (*VoiceV1ByocTrunk, error)
- func (c *ApiService) FetchConnectionPolicy(Sid string) (*VoiceV1ConnectionPolicy, error)
- func (c *ApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (*VoiceV1ConnectionPolicyTarget, error)
- func (c *ApiService) FetchDialingPermissionsCountry(IsoCode string) (*VoiceV1DialingPermissionsCountryInstance, error)
- func (c *ApiService) FetchDialingPermissionsSettings() (*VoiceV1DialingPermissionsSettings, error)
- func (c *ApiService) FetchIpRecord(Sid string) (*VoiceV1IpRecord, error)
- func (c *ApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMapping, error)
- func (c *ApiService) ListByocTrunk(params *ListByocTrunkParams) ([]VoiceV1ByocTrunk, error)
- func (c *ApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) ([]VoiceV1ConnectionPolicy, error)
- func (c *ApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) ([]VoiceV1ConnectionPolicyTarget, error)
- func (c *ApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) ([]VoiceV1DialingPermissionsCountry, error)
- func (c *ApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) ([]VoiceV1DialingPermissionsHrsPrefixes, error)
- func (c *ApiService) ListIpRecord(params *ListIpRecordParams) ([]VoiceV1IpRecord, error)
- func (c *ApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) ([]VoiceV1SourceIpMapping, error)
- func (c *ApiService) PageByocTrunk(params *ListByocTrunkParams, pageToken, pageNumber string) (*ListByocTrunkResponse, error)
- func (c *ApiService) PageConnectionPolicy(params *ListConnectionPolicyParams, pageToken, pageNumber string) (*ListConnectionPolicyResponse, error)
- func (c *ApiService) PageConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams, ...) (*ListConnectionPolicyTargetResponse, error)
- func (c *ApiService) PageDialingPermissionsCountry(params *ListDialingPermissionsCountryParams, pageToken, pageNumber string) (*ListDialingPermissionsCountryResponse, error)
- func (c *ApiService) PageDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams, ...) (*ListDialingPermissionsHrsPrefixesResponse, error)
- func (c *ApiService) PageIpRecord(params *ListIpRecordParams, pageToken, pageNumber string) (*ListIpRecordResponse, error)
- func (c *ApiService) PageSourceIpMapping(params *ListSourceIpMappingParams, pageToken, pageNumber string) (*ListSourceIpMappingResponse, error)
- func (c *ApiService) StreamByocTrunk(params *ListByocTrunkParams) (chan VoiceV1ByocTrunk, chan error)
- func (c *ApiService) StreamConnectionPolicy(params *ListConnectionPolicyParams) (chan VoiceV1ConnectionPolicy, chan error)
- func (c *ApiService) StreamConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) (chan VoiceV1ConnectionPolicyTarget, chan error)
- func (c *ApiService) StreamDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (chan VoiceV1DialingPermissionsCountry, chan error)
- func (c *ApiService) StreamDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) (chan VoiceV1DialingPermissionsHrsPrefixes, chan error)
- func (c *ApiService) StreamIpRecord(params *ListIpRecordParams) (chan VoiceV1IpRecord, chan error)
- func (c *ApiService) StreamSourceIpMapping(params *ListSourceIpMappingParams) (chan VoiceV1SourceIpMapping, chan error)
- func (c *ApiService) UpdateByocTrunk(Sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error)
- func (c *ApiService) UpdateConnectionPolicy(Sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error)
- func (c *ApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid string, Sid string, ...) (*VoiceV1ConnectionPolicyTarget, error)
- func (c *ApiService) UpdateDialingPermissionsSettings(params *UpdateDialingPermissionsSettingsParams) (*VoiceV1DialingPermissionsSettings, error)
- func (c *ApiService) UpdateIpRecord(Sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error)
- func (c *ApiService) UpdateSourceIpMapping(Sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error)
- type CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetConnectionPolicySid(ConnectionPolicySid string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetFriendlyName(FriendlyName string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetStatusCallbackMethod(StatusCallbackMethod string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetStatusCallbackUrl(StatusCallbackUrl string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetVoiceFallbackMethod(VoiceFallbackMethod string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetVoiceFallbackUrl(VoiceFallbackUrl string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetVoiceMethod(VoiceMethod string) *CreateByocTrunkParams
- func (params *CreateByocTrunkParams) SetVoiceUrl(VoiceUrl string) *CreateByocTrunkParams
- type CreateConnectionPolicyParams
- type CreateConnectionPolicyTargetParams
- func (params *CreateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *CreateConnectionPolicyTargetParams
- func (params *CreateConnectionPolicyTargetParams) SetFriendlyName(FriendlyName string) *CreateConnectionPolicyTargetParams
- func (params *CreateConnectionPolicyTargetParams) SetPriority(Priority int) *CreateConnectionPolicyTargetParams
- func (params *CreateConnectionPolicyTargetParams) SetTarget(Target string) *CreateConnectionPolicyTargetParams
- func (params *CreateConnectionPolicyTargetParams) SetWeight(Weight int) *CreateConnectionPolicyTargetParams
- type CreateDialingPermissionsCountryBulkUpdateParams
- type CreateIpRecordParams
- type CreateSourceIpMappingParams
- type ListByocTrunkParams
- type ListByocTrunkResponse
- type ListByocTrunkResponseMeta
- type ListConnectionPolicyParams
- type ListConnectionPolicyResponse
- type ListConnectionPolicyTargetParams
- type ListConnectionPolicyTargetResponse
- type ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetContinent(Continent string) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetCountryCode(CountryCode string) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetHighRiskSpecialNumbersEnabled(HighRiskSpecialNumbersEnabled bool) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetHighRiskTollfraudNumbersEnabled(HighRiskTollfraudNumbersEnabled bool) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetIsoCode(IsoCode string) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetLimit(Limit int) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetLowRiskNumbersEnabled(LowRiskNumbersEnabled bool) *ListDialingPermissionsCountryParams
- func (params *ListDialingPermissionsCountryParams) SetPageSize(PageSize int) *ListDialingPermissionsCountryParams
- type ListDialingPermissionsCountryResponse
- type ListDialingPermissionsHrsPrefixesParams
- type ListDialingPermissionsHrsPrefixesResponse
- type ListIpRecordParams
- type ListIpRecordResponse
- type ListSourceIpMappingParams
- type ListSourceIpMappingResponse
- type UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetConnectionPolicySid(ConnectionPolicySid string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetFriendlyName(FriendlyName string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetStatusCallbackMethod(StatusCallbackMethod string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetStatusCallbackUrl(StatusCallbackUrl string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetVoiceFallbackMethod(VoiceFallbackMethod string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetVoiceFallbackUrl(VoiceFallbackUrl string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetVoiceMethod(VoiceMethod string) *UpdateByocTrunkParams
- func (params *UpdateByocTrunkParams) SetVoiceUrl(VoiceUrl string) *UpdateByocTrunkParams
- type UpdateConnectionPolicyParams
- type UpdateConnectionPolicyTargetParams
- func (params *UpdateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *UpdateConnectionPolicyTargetParams
- func (params *UpdateConnectionPolicyTargetParams) SetFriendlyName(FriendlyName string) *UpdateConnectionPolicyTargetParams
- func (params *UpdateConnectionPolicyTargetParams) SetPriority(Priority int) *UpdateConnectionPolicyTargetParams
- func (params *UpdateConnectionPolicyTargetParams) SetTarget(Target string) *UpdateConnectionPolicyTargetParams
- func (params *UpdateConnectionPolicyTargetParams) SetWeight(Weight int) *UpdateConnectionPolicyTargetParams
- type UpdateDialingPermissionsSettingsParams
- type UpdateIpRecordParams
- type UpdateSourceIpMappingParams
- type VoiceV1ArchivedCall
- type VoiceV1ByocTrunk
- type VoiceV1ConnectionPolicy
- type VoiceV1ConnectionPolicyTarget
- type VoiceV1DialingPermissionsCountry
- type VoiceV1DialingPermissionsCountryBulkUpdate
- type VoiceV1DialingPermissionsCountryInstance
- type VoiceV1DialingPermissionsHrsPrefixes
- type VoiceV1DialingPermissionsSettings
- type VoiceV1IpRecord
- type VoiceV1SourceIpMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶ added in v0.11.0
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶ added in v0.11.0
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶ added in v0.11.0
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) CreateByocTrunk ¶ added in v0.11.0
func (c *ApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error)
func (*ApiService) CreateConnectionPolicy ¶ added in v0.11.0
func (c *ApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error)
func (*ApiService) CreateConnectionPolicyTarget ¶ added in v0.11.0
func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error)
func (*ApiService) CreateDialingPermissionsCountryBulkUpdate ¶ added in v0.11.0
func (c *ApiService) CreateDialingPermissionsCountryBulkUpdate(params *CreateDialingPermissionsCountryBulkUpdateParams) (*VoiceV1DialingPermissionsCountryBulkUpdate, error)
Create a bulk update request to change voice dialing country permissions of one or more countries identified by the corresponding [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
func (*ApiService) CreateIpRecord ¶ added in v0.11.0
func (c *ApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error)
func (*ApiService) CreateSourceIpMapping ¶ added in v0.11.0
func (c *ApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error)
func (*ApiService) DeleteArchivedCall ¶ added in v0.19.0
func (c *ApiService) DeleteArchivedCall(Date string, Sid string) error
Delete an archived call record from Bulk Export. Note: this does not also delete the record from the Voice API.
func (*ApiService) DeleteByocTrunk ¶ added in v0.11.0
func (c *ApiService) DeleteByocTrunk(Sid string) error
func (*ApiService) DeleteConnectionPolicy ¶ added in v0.11.0
func (c *ApiService) DeleteConnectionPolicy(Sid string) error
func (*ApiService) DeleteConnectionPolicyTarget ¶ added in v0.11.0
func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Sid string) error
func (*ApiService) DeleteIpRecord ¶ added in v0.11.0
func (c *ApiService) DeleteIpRecord(Sid string) error
func (*ApiService) DeleteSourceIpMapping ¶ added in v0.11.0
func (c *ApiService) DeleteSourceIpMapping(Sid string) error
func (*ApiService) FetchByocTrunk ¶ added in v0.11.0
func (c *ApiService) FetchByocTrunk(Sid string) (*VoiceV1ByocTrunk, error)
func (*ApiService) FetchConnectionPolicy ¶ added in v0.11.0
func (c *ApiService) FetchConnectionPolicy(Sid string) (*VoiceV1ConnectionPolicy, error)
func (*ApiService) FetchConnectionPolicyTarget ¶ added in v0.11.0
func (c *ApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (*VoiceV1ConnectionPolicyTarget, error)
func (*ApiService) FetchDialingPermissionsCountry ¶ added in v0.11.0
func (c *ApiService) FetchDialingPermissionsCountry(IsoCode string) (*VoiceV1DialingPermissionsCountryInstance, error)
Retrieve voice dialing country permissions identified by the given ISO country code
func (*ApiService) FetchDialingPermissionsSettings ¶ added in v0.11.0
func (c *ApiService) FetchDialingPermissionsSettings() (*VoiceV1DialingPermissionsSettings, error)
Retrieve voice dialing permissions inheritance for the sub-account
func (*ApiService) FetchIpRecord ¶ added in v0.11.0
func (c *ApiService) FetchIpRecord(Sid string) (*VoiceV1IpRecord, error)
func (*ApiService) FetchSourceIpMapping ¶ added in v0.11.0
func (c *ApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMapping, error)
func (*ApiService) ListByocTrunk ¶ added in v0.11.0
func (c *ApiService) ListByocTrunk(params *ListByocTrunkParams) ([]VoiceV1ByocTrunk, error)
Lists ByocTrunk records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListConnectionPolicy ¶ added in v0.11.0
func (c *ApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) ([]VoiceV1ConnectionPolicy, error)
Lists ConnectionPolicy records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListConnectionPolicyTarget ¶ added in v0.11.0
func (c *ApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) ([]VoiceV1ConnectionPolicyTarget, error)
Lists ConnectionPolicyTarget records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListDialingPermissionsCountry ¶ added in v0.11.0
func (c *ApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) ([]VoiceV1DialingPermissionsCountry, error)
Lists DialingPermissionsCountry records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListDialingPermissionsHrsPrefixes ¶ added in v0.11.0
func (c *ApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) ([]VoiceV1DialingPermissionsHrsPrefixes, error)
Lists DialingPermissionsHrsPrefixes records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListIpRecord ¶ added in v0.11.0
func (c *ApiService) ListIpRecord(params *ListIpRecordParams) ([]VoiceV1IpRecord, error)
Lists IpRecord records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSourceIpMapping ¶ added in v0.11.0
func (c *ApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) ([]VoiceV1SourceIpMapping, error)
Lists SourceIpMapping records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageByocTrunk ¶ added in v0.13.0
func (c *ApiService) PageByocTrunk(params *ListByocTrunkParams, pageToken, pageNumber string) (*ListByocTrunkResponse, error)
Retrieve a single page of ByocTrunk records from the API. Request is executed immediately.
func (*ApiService) PageConnectionPolicy ¶ added in v0.13.0
func (c *ApiService) PageConnectionPolicy(params *ListConnectionPolicyParams, pageToken, pageNumber string) (*ListConnectionPolicyResponse, error)
Retrieve a single page of ConnectionPolicy records from the API. Request is executed immediately.
func (*ApiService) PageConnectionPolicyTarget ¶ added in v0.13.0
func (c *ApiService) PageConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams, pageToken, pageNumber string) (*ListConnectionPolicyTargetResponse, error)
Retrieve a single page of ConnectionPolicyTarget records from the API. Request is executed immediately.
func (*ApiService) PageDialingPermissionsCountry ¶ added in v0.13.0
func (c *ApiService) PageDialingPermissionsCountry(params *ListDialingPermissionsCountryParams, pageToken, pageNumber string) (*ListDialingPermissionsCountryResponse, error)
Retrieve a single page of DialingPermissionsCountry records from the API. Request is executed immediately.
func (*ApiService) PageDialingPermissionsHrsPrefixes ¶ added in v0.13.0
func (c *ApiService) PageDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams, pageToken, pageNumber string) (*ListDialingPermissionsHrsPrefixesResponse, error)
Retrieve a single page of DialingPermissionsHrsPrefixes records from the API. Request is executed immediately.
func (*ApiService) PageIpRecord ¶ added in v0.13.0
func (c *ApiService) PageIpRecord(params *ListIpRecordParams, pageToken, pageNumber string) (*ListIpRecordResponse, error)
Retrieve a single page of IpRecord records from the API. Request is executed immediately.
func (*ApiService) PageSourceIpMapping ¶ added in v0.13.0
func (c *ApiService) PageSourceIpMapping(params *ListSourceIpMappingParams, pageToken, pageNumber string) (*ListSourceIpMappingResponse, error)
Retrieve a single page of SourceIpMapping records from the API. Request is executed immediately.
func (*ApiService) StreamByocTrunk ¶ added in v0.13.0
func (c *ApiService) StreamByocTrunk(params *ListByocTrunkParams) (chan VoiceV1ByocTrunk, chan error)
Streams ByocTrunk records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamConnectionPolicy ¶ added in v0.13.0
func (c *ApiService) StreamConnectionPolicy(params *ListConnectionPolicyParams) (chan VoiceV1ConnectionPolicy, chan error)
Streams ConnectionPolicy records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamConnectionPolicyTarget ¶ added in v0.13.0
func (c *ApiService) StreamConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) (chan VoiceV1ConnectionPolicyTarget, chan error)
Streams ConnectionPolicyTarget records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamDialingPermissionsCountry ¶ added in v0.13.0
func (c *ApiService) StreamDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (chan VoiceV1DialingPermissionsCountry, chan error)
Streams DialingPermissionsCountry records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamDialingPermissionsHrsPrefixes ¶ added in v0.13.0
func (c *ApiService) StreamDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) (chan VoiceV1DialingPermissionsHrsPrefixes, chan error)
Streams DialingPermissionsHrsPrefixes records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamIpRecord ¶ added in v0.13.0
func (c *ApiService) StreamIpRecord(params *ListIpRecordParams) (chan VoiceV1IpRecord, chan error)
Streams IpRecord records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSourceIpMapping ¶ added in v0.13.0
func (c *ApiService) StreamSourceIpMapping(params *ListSourceIpMappingParams) (chan VoiceV1SourceIpMapping, chan error)
Streams SourceIpMapping records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateByocTrunk ¶ added in v0.11.0
func (c *ApiService) UpdateByocTrunk(Sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error)
func (*ApiService) UpdateConnectionPolicy ¶ added in v0.11.0
func (c *ApiService) UpdateConnectionPolicy(Sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error)
func (*ApiService) UpdateConnectionPolicyTarget ¶ added in v0.11.0
func (c *ApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid string, Sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error)
func (*ApiService) UpdateDialingPermissionsSettings ¶ added in v0.11.0
func (c *ApiService) UpdateDialingPermissionsSettings(params *UpdateDialingPermissionsSettingsParams) (*VoiceV1DialingPermissionsSettings, error)
Update voice dialing permissions inheritance for the sub-account
func (*ApiService) UpdateIpRecord ¶ added in v0.11.0
func (c *ApiService) UpdateIpRecord(Sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error)
func (*ApiService) UpdateSourceIpMapping ¶ added in v0.11.0
func (c *ApiService) UpdateSourceIpMapping(Sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error)
type CreateByocTrunkParams ¶
type CreateByocTrunkParams struct { // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // The URL we should call when the BYOC Trunk receives a call. VoiceUrl *string `json:"VoiceUrl,omitempty"` // The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. VoiceMethod *string `json:"VoiceMethod,omitempty"` // The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` // The URL that we should call to pass status parameters (such as call ended) to your application. StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` // The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` // Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` // The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` // The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". FromDomainSid *string `json:"FromDomainSid,omitempty"` }
Optional parameters for the method 'CreateByocTrunk'
func (*CreateByocTrunkParams) SetCnamLookupEnabled ¶
func (params *CreateByocTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetConnectionPolicySid ¶
func (params *CreateByocTrunkParams) SetConnectionPolicySid(ConnectionPolicySid string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetFriendlyName ¶
func (params *CreateByocTrunkParams) SetFriendlyName(FriendlyName string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetFromDomainSid ¶
func (params *CreateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetStatusCallbackMethod ¶
func (params *CreateByocTrunkParams) SetStatusCallbackMethod(StatusCallbackMethod string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetStatusCallbackUrl ¶
func (params *CreateByocTrunkParams) SetStatusCallbackUrl(StatusCallbackUrl string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetVoiceFallbackMethod ¶
func (params *CreateByocTrunkParams) SetVoiceFallbackMethod(VoiceFallbackMethod string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetVoiceFallbackUrl ¶
func (params *CreateByocTrunkParams) SetVoiceFallbackUrl(VoiceFallbackUrl string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetVoiceMethod ¶
func (params *CreateByocTrunkParams) SetVoiceMethod(VoiceMethod string) *CreateByocTrunkParams
func (*CreateByocTrunkParams) SetVoiceUrl ¶
func (params *CreateByocTrunkParams) SetVoiceUrl(VoiceUrl string) *CreateByocTrunkParams
type CreateConnectionPolicyParams ¶
type CreateConnectionPolicyParams struct { // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` }
Optional parameters for the method 'CreateConnectionPolicy'
func (*CreateConnectionPolicyParams) SetFriendlyName ¶
func (params *CreateConnectionPolicyParams) SetFriendlyName(FriendlyName string) *CreateConnectionPolicyParams
type CreateConnectionPolicyTargetParams ¶
type CreateConnectionPolicyTargetParams struct { // The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. Target *string `json:"Target,omitempty"` // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. Priority *int `json:"Priority,omitempty"` // The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. Weight *int `json:"Weight,omitempty"` // Whether the Target is enabled. The default is `true`. Enabled *bool `json:"Enabled,omitempty"` }
Optional parameters for the method 'CreateConnectionPolicyTarget'
func (*CreateConnectionPolicyTargetParams) SetEnabled ¶
func (params *CreateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *CreateConnectionPolicyTargetParams
func (*CreateConnectionPolicyTargetParams) SetFriendlyName ¶
func (params *CreateConnectionPolicyTargetParams) SetFriendlyName(FriendlyName string) *CreateConnectionPolicyTargetParams
func (*CreateConnectionPolicyTargetParams) SetPriority ¶
func (params *CreateConnectionPolicyTargetParams) SetPriority(Priority int) *CreateConnectionPolicyTargetParams
func (*CreateConnectionPolicyTargetParams) SetTarget ¶
func (params *CreateConnectionPolicyTargetParams) SetTarget(Target string) *CreateConnectionPolicyTargetParams
func (*CreateConnectionPolicyTargetParams) SetWeight ¶
func (params *CreateConnectionPolicyTargetParams) SetWeight(Weight int) *CreateConnectionPolicyTargetParams
type CreateDialingPermissionsCountryBulkUpdateParams ¶
type CreateDialingPermissionsCountryBulkUpdateParams struct { // URL encoded JSON array of update objects. example : `[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers_enabled\\\": \\\"true\\\", \\\"high_risk_special_numbers_enabled\\\":\\\"true\\\", \\\"high_risk_tollfraud_numbers_enabled\\\": \\\"false\\\" } ]` UpdateRequest *string `json:"UpdateRequest,omitempty"` }
Optional parameters for the method 'CreateDialingPermissionsCountryBulkUpdate'
func (*CreateDialingPermissionsCountryBulkUpdateParams) SetUpdateRequest ¶
func (params *CreateDialingPermissionsCountryBulkUpdateParams) SetUpdateRequest(UpdateRequest string) *CreateDialingPermissionsCountryBulkUpdateParams
type CreateIpRecordParams ¶
type CreateIpRecordParams struct { // An IP address in dotted decimal notation, IPv4 only. IpAddress *string `json:"IpAddress,omitempty"` // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. CidrPrefixLength *int `json:"CidrPrefixLength,omitempty"` }
Optional parameters for the method 'CreateIpRecord'
func (*CreateIpRecordParams) SetCidrPrefixLength ¶
func (params *CreateIpRecordParams) SetCidrPrefixLength(CidrPrefixLength int) *CreateIpRecordParams
func (*CreateIpRecordParams) SetFriendlyName ¶
func (params *CreateIpRecordParams) SetFriendlyName(FriendlyName string) *CreateIpRecordParams
func (*CreateIpRecordParams) SetIpAddress ¶
func (params *CreateIpRecordParams) SetIpAddress(IpAddress string) *CreateIpRecordParams
type CreateSourceIpMappingParams ¶
type CreateSourceIpMappingParams struct { // The Twilio-provided string that uniquely identifies the IP Record resource to map from. IpRecordSid *string `json:"IpRecordSid,omitempty"` // The SID of the SIP Domain that the IP Record should be mapped to. SipDomainSid *string `json:"SipDomainSid,omitempty"` }
Optional parameters for the method 'CreateSourceIpMapping'
func (*CreateSourceIpMappingParams) SetIpRecordSid ¶
func (params *CreateSourceIpMappingParams) SetIpRecordSid(IpRecordSid string) *CreateSourceIpMappingParams
func (*CreateSourceIpMappingParams) SetSipDomainSid ¶
func (params *CreateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) *CreateSourceIpMappingParams
type ListByocTrunkParams ¶
type ListByocTrunkParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListByocTrunk'
func (*ListByocTrunkParams) SetLimit ¶ added in v0.13.0
func (params *ListByocTrunkParams) SetLimit(Limit int) *ListByocTrunkParams
func (*ListByocTrunkParams) SetPageSize ¶
func (params *ListByocTrunkParams) SetPageSize(PageSize int) *ListByocTrunkParams
type ListByocTrunkResponse ¶
type ListByocTrunkResponse struct { ByocTrunks []VoiceV1ByocTrunk `json:"byoc_trunks,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListByocTrunkResponse struct for ListByocTrunkResponse
type ListByocTrunkResponseMeta ¶
type ListByocTrunkResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` Key string `json:"key,omitempty"` }
ListByocTrunkResponseMeta struct for ListByocTrunkResponseMeta
type ListConnectionPolicyParams ¶
type ListConnectionPolicyParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListConnectionPolicy'
func (*ListConnectionPolicyParams) SetLimit ¶ added in v0.13.0
func (params *ListConnectionPolicyParams) SetLimit(Limit int) *ListConnectionPolicyParams
func (*ListConnectionPolicyParams) SetPageSize ¶
func (params *ListConnectionPolicyParams) SetPageSize(PageSize int) *ListConnectionPolicyParams
type ListConnectionPolicyResponse ¶
type ListConnectionPolicyResponse struct { ConnectionPolicies []VoiceV1ConnectionPolicy `json:"connection_policies,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListConnectionPolicyResponse struct for ListConnectionPolicyResponse
type ListConnectionPolicyTargetParams ¶
type ListConnectionPolicyTargetParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListConnectionPolicyTarget'
func (*ListConnectionPolicyTargetParams) SetLimit ¶ added in v0.13.0
func (params *ListConnectionPolicyTargetParams) SetLimit(Limit int) *ListConnectionPolicyTargetParams
func (*ListConnectionPolicyTargetParams) SetPageSize ¶
func (params *ListConnectionPolicyTargetParams) SetPageSize(PageSize int) *ListConnectionPolicyTargetParams
type ListConnectionPolicyTargetResponse ¶
type ListConnectionPolicyTargetResponse struct { Targets []VoiceV1ConnectionPolicyTarget `json:"targets,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListConnectionPolicyTargetResponse struct for ListConnectionPolicyTargetResponse
type ListDialingPermissionsCountryParams ¶
type ListDialingPermissionsCountryParams struct { // Filter to retrieve the country permissions by specifying the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) IsoCode *string `json:"IsoCode,omitempty"` // Filter to retrieve the country permissions by specifying the continent Continent *string `json:"Continent,omitempty"` // Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) CountryCode *string `json:"CountryCode,omitempty"` // Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. LowRiskNumbersEnabled *bool `json:"LowRiskNumbersEnabled,omitempty"` // Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` HighRiskSpecialNumbersEnabled *bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` // Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled. Can be: `true` or `false`. HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListDialingPermissionsCountry'
func (*ListDialingPermissionsCountryParams) SetContinent ¶
func (params *ListDialingPermissionsCountryParams) SetContinent(Continent string) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetCountryCode ¶
func (params *ListDialingPermissionsCountryParams) SetCountryCode(CountryCode string) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetHighRiskSpecialNumbersEnabled ¶
func (params *ListDialingPermissionsCountryParams) SetHighRiskSpecialNumbersEnabled(HighRiskSpecialNumbersEnabled bool) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetHighRiskTollfraudNumbersEnabled ¶
func (params *ListDialingPermissionsCountryParams) SetHighRiskTollfraudNumbersEnabled(HighRiskTollfraudNumbersEnabled bool) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetIsoCode ¶
func (params *ListDialingPermissionsCountryParams) SetIsoCode(IsoCode string) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetLimit ¶ added in v0.13.0
func (params *ListDialingPermissionsCountryParams) SetLimit(Limit int) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetLowRiskNumbersEnabled ¶
func (params *ListDialingPermissionsCountryParams) SetLowRiskNumbersEnabled(LowRiskNumbersEnabled bool) *ListDialingPermissionsCountryParams
func (*ListDialingPermissionsCountryParams) SetPageSize ¶
func (params *ListDialingPermissionsCountryParams) SetPageSize(PageSize int) *ListDialingPermissionsCountryParams
type ListDialingPermissionsCountryResponse ¶
type ListDialingPermissionsCountryResponse struct { Content []VoiceV1DialingPermissionsCountry `json:"content,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListDialingPermissionsCountryResponse struct for ListDialingPermissionsCountryResponse
type ListDialingPermissionsHrsPrefixesParams ¶
type ListDialingPermissionsHrsPrefixesParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListDialingPermissionsHrsPrefixes'
func (*ListDialingPermissionsHrsPrefixesParams) SetLimit ¶ added in v0.13.0
func (params *ListDialingPermissionsHrsPrefixesParams) SetLimit(Limit int) *ListDialingPermissionsHrsPrefixesParams
func (*ListDialingPermissionsHrsPrefixesParams) SetPageSize ¶
func (params *ListDialingPermissionsHrsPrefixesParams) SetPageSize(PageSize int) *ListDialingPermissionsHrsPrefixesParams
type ListDialingPermissionsHrsPrefixesResponse ¶
type ListDialingPermissionsHrsPrefixesResponse struct { Content []VoiceV1DialingPermissionsHrsPrefixes `json:"content,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListDialingPermissionsHrsPrefixesResponse struct for ListDialingPermissionsHrsPrefixesResponse
type ListIpRecordParams ¶
type ListIpRecordParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListIpRecord'
func (*ListIpRecordParams) SetLimit ¶ added in v0.13.0
func (params *ListIpRecordParams) SetLimit(Limit int) *ListIpRecordParams
func (*ListIpRecordParams) SetPageSize ¶
func (params *ListIpRecordParams) SetPageSize(PageSize int) *ListIpRecordParams
type ListIpRecordResponse ¶
type ListIpRecordResponse struct { IpRecords []VoiceV1IpRecord `json:"ip_records,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListIpRecordResponse struct for ListIpRecordResponse
type ListSourceIpMappingParams ¶
type ListSourceIpMappingParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListSourceIpMapping'
func (*ListSourceIpMappingParams) SetLimit ¶ added in v0.13.0
func (params *ListSourceIpMappingParams) SetLimit(Limit int) *ListSourceIpMappingParams
func (*ListSourceIpMappingParams) SetPageSize ¶
func (params *ListSourceIpMappingParams) SetPageSize(PageSize int) *ListSourceIpMappingParams
type ListSourceIpMappingResponse ¶
type ListSourceIpMappingResponse struct { SourceIpMappings []VoiceV1SourceIpMapping `json:"source_ip_mappings,omitempty"` Meta ListByocTrunkResponseMeta `json:"meta,omitempty"` }
ListSourceIpMappingResponse struct for ListSourceIpMappingResponse
type UpdateByocTrunkParams ¶
type UpdateByocTrunkParams struct { // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // The URL we should call when the BYOC Trunk receives a call. VoiceUrl *string `json:"VoiceUrl,omitempty"` // The HTTP method we should use to call `voice_url` VoiceMethod *string `json:"VoiceMethod,omitempty"` // The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` // The URL that we should call to pass status parameters (such as call ended) to your application. StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` // The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` // Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` // The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` // The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". FromDomainSid *string `json:"FromDomainSid,omitempty"` }
Optional parameters for the method 'UpdateByocTrunk'
func (*UpdateByocTrunkParams) SetCnamLookupEnabled ¶
func (params *UpdateByocTrunkParams) SetCnamLookupEnabled(CnamLookupEnabled bool) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetConnectionPolicySid ¶
func (params *UpdateByocTrunkParams) SetConnectionPolicySid(ConnectionPolicySid string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetFriendlyName ¶
func (params *UpdateByocTrunkParams) SetFriendlyName(FriendlyName string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetFromDomainSid ¶
func (params *UpdateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetStatusCallbackMethod ¶
func (params *UpdateByocTrunkParams) SetStatusCallbackMethod(StatusCallbackMethod string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetStatusCallbackUrl ¶
func (params *UpdateByocTrunkParams) SetStatusCallbackUrl(StatusCallbackUrl string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetVoiceFallbackMethod ¶
func (params *UpdateByocTrunkParams) SetVoiceFallbackMethod(VoiceFallbackMethod string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetVoiceFallbackUrl ¶
func (params *UpdateByocTrunkParams) SetVoiceFallbackUrl(VoiceFallbackUrl string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetVoiceMethod ¶
func (params *UpdateByocTrunkParams) SetVoiceMethod(VoiceMethod string) *UpdateByocTrunkParams
func (*UpdateByocTrunkParams) SetVoiceUrl ¶
func (params *UpdateByocTrunkParams) SetVoiceUrl(VoiceUrl string) *UpdateByocTrunkParams
type UpdateConnectionPolicyParams ¶
type UpdateConnectionPolicyParams struct { // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` }
Optional parameters for the method 'UpdateConnectionPolicy'
func (*UpdateConnectionPolicyParams) SetFriendlyName ¶
func (params *UpdateConnectionPolicyParams) SetFriendlyName(FriendlyName string) *UpdateConnectionPolicyParams
type UpdateConnectionPolicyTargetParams ¶
type UpdateConnectionPolicyTargetParams struct { // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` // The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. Target *string `json:"Target,omitempty"` // The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. Priority *int `json:"Priority,omitempty"` // The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. Weight *int `json:"Weight,omitempty"` // Whether the Target is enabled. Enabled *bool `json:"Enabled,omitempty"` }
Optional parameters for the method 'UpdateConnectionPolicyTarget'
func (*UpdateConnectionPolicyTargetParams) SetEnabled ¶
func (params *UpdateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *UpdateConnectionPolicyTargetParams
func (*UpdateConnectionPolicyTargetParams) SetFriendlyName ¶
func (params *UpdateConnectionPolicyTargetParams) SetFriendlyName(FriendlyName string) *UpdateConnectionPolicyTargetParams
func (*UpdateConnectionPolicyTargetParams) SetPriority ¶
func (params *UpdateConnectionPolicyTargetParams) SetPriority(Priority int) *UpdateConnectionPolicyTargetParams
func (*UpdateConnectionPolicyTargetParams) SetTarget ¶
func (params *UpdateConnectionPolicyTargetParams) SetTarget(Target string) *UpdateConnectionPolicyTargetParams
func (*UpdateConnectionPolicyTargetParams) SetWeight ¶
func (params *UpdateConnectionPolicyTargetParams) SetWeight(Weight int) *UpdateConnectionPolicyTargetParams
type UpdateDialingPermissionsSettingsParams ¶
type UpdateDialingPermissionsSettingsParams struct { // `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`. DialingPermissionsInheritance *bool `json:"DialingPermissionsInheritance,omitempty"` }
Optional parameters for the method 'UpdateDialingPermissionsSettings'
func (*UpdateDialingPermissionsSettingsParams) SetDialingPermissionsInheritance ¶
func (params *UpdateDialingPermissionsSettingsParams) SetDialingPermissionsInheritance(DialingPermissionsInheritance bool) *UpdateDialingPermissionsSettingsParams
type UpdateIpRecordParams ¶
type UpdateIpRecordParams struct { // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. FriendlyName *string `json:"FriendlyName,omitempty"` }
Optional parameters for the method 'UpdateIpRecord'
func (*UpdateIpRecordParams) SetFriendlyName ¶
func (params *UpdateIpRecordParams) SetFriendlyName(FriendlyName string) *UpdateIpRecordParams
type UpdateSourceIpMappingParams ¶
type UpdateSourceIpMappingParams struct { // The SID of the SIP Domain that the IP Record should be mapped to. SipDomainSid *string `json:"SipDomainSid,omitempty"` }
Optional parameters for the method 'UpdateSourceIpMapping'
func (*UpdateSourceIpMappingParams) SetSipDomainSid ¶
func (params *UpdateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) *UpdateSourceIpMappingParams
type VoiceV1ArchivedCall ¶ added in v0.19.0
type VoiceV1ArchivedCall struct { // The date Date *string `json:"date,omitempty"` // The call sid Sid *string `json:"sid,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
VoiceV1ArchivedCall struct for VoiceV1ArchivedCall
type VoiceV1ByocTrunk ¶
type VoiceV1ByocTrunk struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the BYOC Trunk resource. AccountSid *string `json:"account_sid,omitempty"` // The unique string that that we created to identify the BYOC Trunk resource. Sid *string `json:"sid,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"friendly_name,omitempty"` // The URL we call using the `voice_method` when the BYOC Trunk receives a call. VoiceUrl *string `json:"voice_url,omitempty"` // The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. VoiceMethod *string `json:"voice_method,omitempty"` // The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`. VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"` // The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"` // The URL that we call to pass status parameters (such as call ended) to your application. StatusCallbackUrl *string `json:"status_callback_url,omitempty"` // The HTTP method we use to call `status_callback_url`. Either `GET` or `POST`. StatusCallbackMethod *string `json:"status_callback_method,omitempty"` // Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. CnamLookupEnabled *bool `json:"cnam_lookup_enabled,omitempty"` // The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. ConnectionPolicySid *string `json:"connection_policy_sid,omitempty"` // The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\". FromDomainSid *string `json:"from_domain_sid,omitempty"` // The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
VoiceV1ByocTrunk struct for VoiceV1ByocTrunk
type VoiceV1ConnectionPolicy ¶
type VoiceV1ConnectionPolicy struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Connection Policy resource. AccountSid *string `json:"account_sid,omitempty"` // The unique string that we created to identify the Connection Policy resource. Sid *string `json:"sid,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"friendly_name,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` // The URLs of related resources. Links *map[string]interface{} `json:"links,omitempty"` }
VoiceV1ConnectionPolicy struct for VoiceV1ConnectionPolicy
type VoiceV1ConnectionPolicyTarget ¶ added in v0.14.0
type VoiceV1ConnectionPolicyTarget struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Target resource. AccountSid *string `json:"account_sid,omitempty"` // The SID of the Connection Policy that owns the Target. ConnectionPolicySid *string `json:"connection_policy_sid,omitempty"` // The unique string that we created to identify the Target resource. Sid *string `json:"sid,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"friendly_name,omitempty"` // The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. Target *string `json:"target,omitempty"` // The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. Priority *int `json:"priority,omitempty"` // The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. Weight *int `json:"weight,omitempty"` // Whether the target is enabled. The default is `true`. Enabled *bool `json:"enabled,omitempty"` // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
VoiceV1ConnectionPolicyTarget struct for VoiceV1ConnectionPolicyTarget
type VoiceV1DialingPermissionsCountry ¶ added in v0.14.0
type VoiceV1DialingPermissionsCountry struct { // The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). IsoCode *string `json:"iso_code,omitempty"` // The name of the country. Name *string `json:"name,omitempty"` // The name of the continent in which the country is located. Continent *string `json:"continent,omitempty"` // The E.164 assigned [country codes(s)](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) CountryCodes *[]string `json:"country_codes,omitempty"` // Whether dialing to low-risk numbers is enabled. LowRiskNumbersEnabled *bool `json:"low_risk_numbers_enabled,omitempty"` // Whether dialing to high-risk special services numbers is enabled. These prefixes include number ranges allocated by the country and include premium numbers, special services, shared cost, and others HighRiskSpecialNumbersEnabled *bool `json:"high_risk_special_numbers_enabled,omitempty"` // Whether dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers is enabled. These prefixes include narrow number ranges that have a high-risk of international revenue sharing fraud (IRSF) attacks, also known as [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud). These prefixes are collected from anti-fraud databases and verified by analyzing calls on our network. These prefixes are not available for download and are updated frequently HighRiskTollfraudNumbersEnabled *bool `json:"high_risk_tollfraud_numbers_enabled,omitempty"` // The absolute URL of this resource. Url *string `json:"url,omitempty"` // A list of URLs related to this resource. Links *map[string]interface{} `json:"links,omitempty"` }
VoiceV1DialingPermissionsCountry struct for VoiceV1DialingPermissionsCountry
type VoiceV1DialingPermissionsCountryBulkUpdate ¶ added in v0.14.0
type VoiceV1DialingPermissionsCountryBulkUpdate struct { // The number of countries updated UpdateCount *int `json:"update_count,omitempty"` // A bulk update request to change voice dialing country permissions stored as a URL-encoded, JSON array of update objects. For example : `[ { \"iso_code\": \"GB\", \"low_risk_numbers_enabled\": \"true\", \"high_risk_special_numbers_enabled\":\"true\", \"high_risk_tollfraud_numbers_enabled\": \"false\" } ]` UpdateRequest *string `json:"update_request,omitempty"` }
VoiceV1DialingPermissionsCountryBulkUpdate struct for VoiceV1DialingPermissionsCountryBulkUpdate
type VoiceV1DialingPermissionsCountryInstance ¶ added in v0.14.0
type VoiceV1DialingPermissionsCountryInstance struct { // The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). IsoCode *string `json:"iso_code,omitempty"` // The name of the country. Name *string `json:"name,omitempty"` // The name of the continent in which the country is located. Continent *string `json:"continent,omitempty"` // The E.164 assigned [country codes(s)](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) CountryCodes *[]string `json:"country_codes,omitempty"` // Whether dialing to low-risk numbers is enabled. LowRiskNumbersEnabled *bool `json:"low_risk_numbers_enabled,omitempty"` // Whether dialing to high-risk special services numbers is enabled. These prefixes include number ranges allocated by the country and include premium numbers, special services, shared cost, and others HighRiskSpecialNumbersEnabled *bool `json:"high_risk_special_numbers_enabled,omitempty"` // Whether dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers is enabled. These prefixes include narrow number ranges that have a high-risk of international revenue sharing fraud (IRSF) attacks, also known as [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud). These prefixes are collected from anti-fraud databases and verified by analyzing calls on our network. These prefixes are not available for download and are updated frequently HighRiskTollfraudNumbersEnabled *bool `json:"high_risk_tollfraud_numbers_enabled,omitempty"` // The absolute URL of this resource. Url *string `json:"url,omitempty"` // A list of URLs related to this resource. Links *map[string]interface{} `json:"links,omitempty"` }
VoiceV1DialingPermissionsCountryInstance struct for VoiceV1DialingPermissionsCountryInstance
type VoiceV1DialingPermissionsHrsPrefixes ¶ added in v0.14.0
type VoiceV1DialingPermissionsHrsPrefixes struct { // A prefix is a contiguous number range for a block of E.164 numbers that includes the E.164 assigned country code. For example, a North American Numbering Plan prefix like `+1510720` written like `+1(510) 720` matches all numbers inclusive from `+1(510) 720-0000` to `+1(510) 720-9999`. Prefix *string `json:"prefix,omitempty"` }
VoiceV1DialingPermissionsHrsPrefixes struct for VoiceV1DialingPermissionsHrsPrefixes
type VoiceV1DialingPermissionsSettings ¶ added in v0.14.0
type VoiceV1DialingPermissionsSettings struct { // `true` if the sub-account will inherit voice dialing permissions from the Master Project; otherwise `false`. DialingPermissionsInheritance *bool `json:"dialing_permissions_inheritance,omitempty"` // The absolute URL of this resource. Url *string `json:"url,omitempty"` }
VoiceV1DialingPermissionsSettings struct for VoiceV1DialingPermissionsSettings
type VoiceV1IpRecord ¶
type VoiceV1IpRecord struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IP Record resource. AccountSid *string `json:"account_sid,omitempty"` // The unique string that we created to identify the IP Record resource. Sid *string `json:"sid,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"friendly_name,omitempty"` // An IP address in dotted decimal notation, IPv4 only. IpAddress *string `json:"ip_address,omitempty"` // An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. CidrPrefixLength *int `json:"cidr_prefix_length,omitempty"` // The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
VoiceV1IpRecord struct for VoiceV1IpRecord
type VoiceV1SourceIpMapping ¶
type VoiceV1SourceIpMapping struct { // The unique string that we created to identify the IP Record resource. Sid *string `json:"sid,omitempty"` // The Twilio-provided string that uniquely identifies the IP Record resource to map from. IpRecordSid *string `json:"ip_record_sid,omitempty"` // The SID of the SIP Domain that the IP Record is mapped to. SipDomainSid *string `json:"sip_domain_sid,omitempty"` // The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *time.Time `json:"date_updated,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` }
VoiceV1SourceIpMapping struct for VoiceV1SourceIpMapping
Source Files ¶
- api_service.go
- archives_calls.go
- byoc_trunks.go
- connection_policies.go
- connection_policies_targets.go
- dialing_permissions_bulk_country_updates.go
- dialing_permissions_countries.go
- dialing_permissions_countries_high_risk_special_prefixes.go
- ip_records.go
- model_list_byoc_trunk_response.go
- model_list_byoc_trunk_response_meta.go
- model_list_connection_policy_response.go
- model_list_connection_policy_target_response.go
- model_list_dialing_permissions_country_response.go
- model_list_dialing_permissions_hrs_prefixes_response.go
- model_list_ip_record_response.go
- model_list_source_ip_mapping_response.go
- model_voice_v1_archived_call.go
- model_voice_v1_byoc_trunk.go
- model_voice_v1_connection_policy.go
- model_voice_v1_connection_policy_target.go
- model_voice_v1_dialing_permissions_country.go
- model_voice_v1_dialing_permissions_country_bulk_update.go
- model_voice_v1_dialing_permissions_country_instance.go
- model_voice_v1_dialing_permissions_hrs_prefixes.go
- model_voice_v1_dialing_permissions_settings.go
- model_voice_v1_ip_record.go
- model_voice_v1_source_ip_mapping.go
- settings.go
- source_ip_mappings.go