openapi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 6 Imported by: 1

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.37.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://voice.twilio.com

Class Method HTTP request Description
ArchivesCallsApi DeleteArchivedCall Delete /v1/Archives/{Date}/Calls/{Sid}
ByocTrunksApi CreateByocTrunk Post /v1/ByocTrunks
ByocTrunksApi DeleteByocTrunk Delete /v1/ByocTrunks/{Sid}
ByocTrunksApi FetchByocTrunk Get /v1/ByocTrunks/{Sid}
ByocTrunksApi ListByocTrunk Get /v1/ByocTrunks
ByocTrunksApi UpdateByocTrunk Post /v1/ByocTrunks/{Sid}
ConnectionPoliciesApi CreateConnectionPolicy Post /v1/ConnectionPolicies
ConnectionPoliciesApi DeleteConnectionPolicy Delete /v1/ConnectionPolicies/{Sid}
ConnectionPoliciesApi FetchConnectionPolicy Get /v1/ConnectionPolicies/{Sid}
ConnectionPoliciesApi ListConnectionPolicy Get /v1/ConnectionPolicies
ConnectionPoliciesApi UpdateConnectionPolicy Post /v1/ConnectionPolicies/{Sid}
ConnectionPoliciesTargetsApi CreateConnectionPolicyTarget Post /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets
ConnectionPoliciesTargetsApi DeleteConnectionPolicyTarget Delete /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}
ConnectionPoliciesTargetsApi FetchConnectionPolicyTarget Get /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}
ConnectionPoliciesTargetsApi ListConnectionPolicyTarget Get /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets
ConnectionPoliciesTargetsApi UpdateConnectionPolicyTarget Post /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}
DialingPermissionsBulkCountryUpdatesApi CreateDialingPermissionsCountryBulkUpdate Post /v1/DialingPermissions/BulkCountryUpdates
DialingPermissionsCountriesApi FetchDialingPermissionsCountry Get /v1/DialingPermissions/Countries/{IsoCode}
DialingPermissionsCountriesApi ListDialingPermissionsCountry Get /v1/DialingPermissions/Countries
DialingPermissionsCountriesHighRiskSpecialPrefixesApi ListDialingPermissionsHrsPrefixes Get /v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes
IpRecordsApi CreateIpRecord Post /v1/IpRecords
IpRecordsApi DeleteIpRecord Delete /v1/IpRecords/{Sid}
IpRecordsApi FetchIpRecord Get /v1/IpRecords/{Sid}
IpRecordsApi ListIpRecord Get /v1/IpRecords
IpRecordsApi UpdateIpRecord Post /v1/IpRecords/{Sid}
SettingsApi FetchDialingPermissionsSettings Get /v1/Settings
SettingsApi UpdateDialingPermissionsSettings Post /v1/Settings
SourceIpMappingsApi CreateSourceIpMapping Post /v1/SourceIpMappings
SourceIpMappingsApi DeleteSourceIpMapping Delete /v1/SourceIpMappings/{Sid}
SourceIpMappingsApi FetchSourceIpMapping Get /v1/SourceIpMappings/{Sid}
SourceIpMappingsApi ListSourceIpMapping Get /v1/SourceIpMappings
SourceIpMappingsApi UpdateSourceIpMapping Post /v1/SourceIpMappings/{Sid}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

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 (*CreateConnectionPolicyTargetParams) SetFriendlyName

func (params *CreateConnectionPolicyTargetParams) SetFriendlyName(FriendlyName string) *CreateConnectionPolicyTargetParams

func (*CreateConnectionPolicyTargetParams) SetPriority

func (*CreateConnectionPolicyTargetParams) SetTarget

func (*CreateConnectionPolicyTargetParams) SetWeight

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

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 (*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 (*ListConnectionPolicyTargetParams) SetPageSize

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 (*ListDialingPermissionsCountryParams) SetCountryCode

func (*ListDialingPermissionsCountryParams) SetHighRiskSpecialNumbersEnabled

func (params *ListDialingPermissionsCountryParams) SetHighRiskSpecialNumbersEnabled(HighRiskSpecialNumbersEnabled bool) *ListDialingPermissionsCountryParams

func (*ListDialingPermissionsCountryParams) SetHighRiskTollfraudNumbersEnabled

func (params *ListDialingPermissionsCountryParams) SetHighRiskTollfraudNumbersEnabled(HighRiskTollfraudNumbersEnabled bool) *ListDialingPermissionsCountryParams

func (*ListDialingPermissionsCountryParams) SetIsoCode

func (*ListDialingPermissionsCountryParams) SetLimit added in v0.13.0

func (*ListDialingPermissionsCountryParams) SetLowRiskNumbersEnabled

func (params *ListDialingPermissionsCountryParams) SetLowRiskNumbersEnabled(LowRiskNumbersEnabled bool) *ListDialingPermissionsCountryParams

func (*ListDialingPermissionsCountryParams) SetPageSize

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 (*ListDialingPermissionsHrsPrefixesParams) SetPageSize

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 (*UpdateConnectionPolicyTargetParams) SetFriendlyName

func (params *UpdateConnectionPolicyTargetParams) SetFriendlyName(FriendlyName string) *UpdateConnectionPolicyTargetParams

func (*UpdateConnectionPolicyTargetParams) SetPriority

func (*UpdateConnectionPolicyTargetParams) SetTarget

func (*UpdateConnectionPolicyTargetParams) SetWeight

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 {
	// date
	Date *string `json:"date,omitempty"`
	// 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 that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string that identifies the 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 when receiving a call
	VoiceUrl *string `json:"voice_url,omitempty"`
	// The HTTP method to use with voice_url
	VoiceMethod *string `json:"voice_method,omitempty"`
	// The URL we call when an error occurs while executing TwiML
	VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"`
	// The HTTP method used with voice_fallback_url
	VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"`
	// The URL that we call with status updates
	StatusCallbackUrl *string `json:"status_callback_url,omitempty"`
	// The HTTP method we use to call status_callback_url
	StatusCallbackMethod *string `json:"status_callback_method,omitempty"`
	// Whether Caller ID Name (CNAM) lookup is enabled for the trunk
	CnamLookupEnabled *bool `json:"cnam_lookup_enabled,omitempty"`
	// Origination Connection Policy (to your Carrier)
	ConnectionPolicySid *string `json:"connection_policy_sid,omitempty"`
	// The SID of the SIP Domain that should be used in the `From` header of originating calls
	FromDomainSid *string `json:"from_domain_sid,omitempty"`
	// The RFC 2822 date and time in GMT that the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT that the resource was last updated
	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 that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	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 that created the 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 identifies the 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
	Target *string `json:"target,omitempty"`
	// The relative importance of the target
	Priority *int `json:"priority,omitempty"`
	// The value that determines the relative load the Target should receive compared to others with the same priority
	Weight *int `json:"weight,omitempty"`
	// Whether the target is enabled
	Enabled *bool `json:"enabled,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT when the resource was last updated
	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
	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)
	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
	HighRiskSpecialNumbersEnabled *bool `json:"high_risk_special_numbers_enabled,omitempty"`
	// Whether dialing to high-risk toll fraud numbers is enabled, else `false`
	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 URL encoded JSON array of update objects
	UpdateRequest *string `json:"update_request,omitempty"`
}

VoiceV1DialingPermissionsCountryBulkUpdate struct for VoiceV1DialingPermissionsCountryBulkUpdate

type VoiceV1DialingPermissionsCountryInstance added in v0.14.0

type VoiceV1DialingPermissionsCountryInstance struct {
	// The ISO country code
	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)
	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
	HighRiskSpecialNumbersEnabled *bool `json:"high_risk_special_numbers_enabled,omitempty"`
	// Whether dialing to high-risk toll fraud numbers is enabled, else `false`
	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 that includes the E.164 assigned country code
	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 that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string that identifies the 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 RFC 2822 date and time in GMT that the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT that the resource was last updated
	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 identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The unique string that identifies an IP Record
	IpRecordSid *string `json:"ip_record_sid,omitempty"`
	// The unique string that identifies a SIP Domain
	SipDomainSid *string `json:"sip_domain_sid,omitempty"`
	// The RFC 2822 date and time in GMT that the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The RFC 2822 date and time in GMT that the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the resource
	Url *string `json:"url,omitempty"`
}

VoiceV1SourceIpMapping struct for VoiceV1SourceIpMapping

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL