diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index fb567e650..b130decda 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -229,97 +229,127 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [ListAvailablePhoneNumberCountry200Response](docs/ListAvailablePhoneNumberCountry200Response.md) + - [ListQueueResponse](docs/ListQueueResponse.md) - [ApiV2010UsageRecordAllTime](docs/ApiV2010UsageRecordAllTime.md) - - [ListAvailablePhoneNumberVoip200Response](docs/ListAvailablePhoneNumberVoip200Response.md) + - [ApiV2010AccountIncomingPhoneNumberCapabilities](docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md) + - [ApiV2010CallRecording](docs/ApiV2010CallRecording.md) - [ListConferenceRecordingResponse](docs/ListConferenceRecordingResponse.md) - [ListApplicationResponse](docs/ListApplicationResponse.md) - - [ListUsageRecordDaily200Response](docs/ListUsageRecordDaily200Response.md) + - [ApiV2010AvailablePhoneNumberSharedCost](docs/ApiV2010AvailablePhoneNumberSharedCost.md) - [ApiV2010UsageRecord](docs/ApiV2010UsageRecord.md) - - [ListAvailablePhoneNumberTollFree200Response](docs/ListAvailablePhoneNumberTollFree200Response.md) - [ListIncomingPhoneNumberLocalResponse](docs/ListIncomingPhoneNumberLocalResponse.md) - [ApiV2010UserDefinedMessage](docs/ApiV2010UserDefinedMessage.md) - [ApiV2010RecordingAddOnResultPayload](docs/ApiV2010RecordingAddOnResultPayload.md) - [ListMessageResponse](docs/ListMessageResponse.md) - - [ListSipDomain200Response](docs/ListSipDomain200Response.md) - - [ListSipAuthCallsIpAccessControlListMapping200Response](docs/ListSipAuthCallsIpAccessControlListMapping200Response.md) + - [ApiV2010Transcription](docs/ApiV2010Transcription.md) + - [ApiV2010OutgoingCallerId](docs/ApiV2010OutgoingCallerId.md) + - [ListParticipantResponse](docs/ListParticipantResponse.md) - [ListRecordingAddOnResultPayloadResponse](docs/ListRecordingAddOnResultPayloadResponse.md) - [ListConnectAppResponse](docs/ListConnectAppResponse.md) + - [ApiV2010Siprec](docs/ApiV2010Siprec.md) + - [ListUsageRecordYearlyResponse](docs/ListUsageRecordYearlyResponse.md) + - [ListUsageRecordThisMonthResponse](docs/ListUsageRecordThisMonthResponse.md) - [ApiV2010UsageRecordMonthly](docs/ApiV2010UsageRecordMonthly.md) - - [ListAccount200Response](docs/ListAccount200Response.md) + - [ApiV2010Conference](docs/ApiV2010Conference.md) + - [ListAvailablePhoneNumberMobileResponse](docs/ListAvailablePhoneNumberMobileResponse.md) + - [ListAvailablePhoneNumberTollFreeResponse](docs/ListAvailablePhoneNumberTollFreeResponse.md) + - [ListSipCredentialListMappingResponse](docs/ListSipCredentialListMappingResponse.md) - [ApiV2010CallNotificationInstance](docs/ApiV2010CallNotificationInstance.md) - [ListUsageRecordMonthlyResponse](docs/ListUsageRecordMonthlyResponse.md) - - [ListSigningKey200Response](docs/ListSigningKey200Response.md) - [ListUsageRecordLastMonthResponse](docs/ListUsageRecordLastMonthResponse.md) - [ApiV2010RecordingTranscription](docs/ApiV2010RecordingTranscription.md) - - [ListRecordingTranscription200Response](docs/ListRecordingTranscription200Response.md) - [ListSigningKeyResponse](docs/ListSigningKeyResponse.md) - - [ListUsageTrigger200Response](docs/ListUsageTrigger200Response.md) - [ApiV2010Token](docs/ApiV2010Token.md) + - [ApiV2010Queue](docs/ApiV2010Queue.md) + - [ListDependentPhoneNumberResponse](docs/ListDependentPhoneNumberResponse.md) + - [ListAvailablePhoneNumberNationalResponse](docs/ListAvailablePhoneNumberNationalResponse.md) - [ApiV2010UsageRecordYesterday](docs/ApiV2010UsageRecordYesterday.md) + - [ListAvailablePhoneNumberSharedCostResponse](docs/ListAvailablePhoneNumberSharedCostResponse.md) + - [ApiV2010AvailablePhoneNumberVoip](docs/ApiV2010AvailablePhoneNumberVoip.md) - [ApiV2010IncomingPhoneNumberMobile](docs/ApiV2010IncomingPhoneNumberMobile.md) - [ApiV2010SipIpAccessControlList](docs/ApiV2010SipIpAccessControlList.md) + - [ListCallNotificationResponse](docs/ListCallNotificationResponse.md) - [ApiV2010AvailablePhoneNumberCountry](docs/ApiV2010AvailablePhoneNumberCountry.md) + - [ApiV2010AccountTokenIceServers](docs/ApiV2010AccountTokenIceServers.md) - [ApiV2010UsageRecordThisMonth](docs/ApiV2010UsageRecordThisMonth.md) - [ListAvailablePhoneNumberVoipResponse](docs/ListAvailablePhoneNumberVoipResponse.md) - [ListShortCodeResponse](docs/ListShortCodeResponse.md) - [ApiV2010Call](docs/ApiV2010Call.md) + - [ListCallResponse](docs/ListCallResponse.md) - [ApiV2010ShortCode](docs/ApiV2010ShortCode.md) - [ApiV2010Member](docs/ApiV2010Member.md) - [ApiV2010SipAuthRegistrationsCredentialListMapping](docs/ApiV2010SipAuthRegistrationsCredentialListMapping.md) - [ListAddressResponse](docs/ListAddressResponse.md) - - [ListMessage200Response](docs/ListMessage200Response.md) - - [ListMedia200Response](docs/ListMedia200Response.md) - - [ListApplication200Response](docs/ListApplication200Response.md) - [ApiV2010SipCredential](docs/ApiV2010SipCredential.md) - - [ListUsageRecordThisMonth200Response](docs/ListUsageRecordThisMonth200Response.md) + - [ListOutgoingCallerIdResponse](docs/ListOutgoingCallerIdResponse.md) + - [ListSipIpAccessControlListResponse](docs/ListSipIpAccessControlListResponse.md) + - [ListAccountResponse](docs/ListAccountResponse.md) + - [ListIncomingPhoneNumberResponse](docs/ListIncomingPhoneNumberResponse.md) - [ListUsageRecordTodayResponse](docs/ListUsageRecordTodayResponse.md) - - [ListUsageRecordYesterday200Response](docs/ListUsageRecordYesterday200Response.md) - [ApiV2010Key](docs/ApiV2010Key.md) + - [ApiV2010CallNotification](docs/ApiV2010CallNotification.md) - [ListAvailablePhoneNumberMachineToMachineResponse](docs/ListAvailablePhoneNumberMachineToMachineResponse.md) - - [ListIncomingPhoneNumber200Response](docs/ListIncomingPhoneNumber200Response.md) - - [ListUsageRecordYearly200Response](docs/ListUsageRecordYearly200Response.md) + - [ApiV2010IncomingPhoneNumberLocal](docs/ApiV2010IncomingPhoneNumberLocal.md) - [ApiV2010Media](docs/ApiV2010Media.md) - [ApiV2010UsageRecordYearly](docs/ApiV2010UsageRecordYearly.md) - - [ListAuthorizedConnectApp200Response](docs/ListAuthorizedConnectApp200Response.md) - [ListKeyResponse](docs/ListKeyResponse.md) + - [ApiV2010SipIpAccessControlListMapping](docs/ApiV2010SipIpAccessControlListMapping.md) + - [ApiV2010AvailablePhoneNumberMachineToMachine](docs/ApiV2010AvailablePhoneNumberMachineToMachine.md) + - [ApiV2010Notification](docs/ApiV2010Notification.md) + - [ApiV2010Recording](docs/ApiV2010Recording.md) + - [ListRecordingTranscriptionResponse](docs/ListRecordingTranscriptionResponse.md) + - [ApiV2010IncomingPhoneNumberTollFree](docs/ApiV2010IncomingPhoneNumberTollFree.md) + - [ApiV2010ValidationRequest](docs/ApiV2010ValidationRequest.md) - [ApiV2010NotificationInstance](docs/ApiV2010NotificationInstance.md) - [ApiV2010MessageFeedback](docs/ApiV2010MessageFeedback.md) - [ApiV2010DependentPhoneNumber](docs/ApiV2010DependentPhoneNumber.md) - [ApiV2010IncomingPhoneNumberAssignedAddOn](docs/ApiV2010IncomingPhoneNumberAssignedAddOn.md) - [ApiV2010UsageRecordDaily](docs/ApiV2010UsageRecordDaily.md) + - [ApiV2010Application](docs/ApiV2010Application.md) - [ListSipAuthCallsCredentialListMappingResponse](docs/ListSipAuthCallsCredentialListMappingResponse.md) - - [ListSipAuthCallsCredentialListMapping200Response](docs/ListSipAuthCallsCredentialListMapping200Response.md) - - [ListIncomingPhoneNumberMobile200Response](docs/ListIncomingPhoneNumberMobile200Response.md) + - [ListIncomingPhoneNumberTollFreeResponse](docs/ListIncomingPhoneNumberTollFreeResponse.md) + - [ApiV2010Payments](docs/ApiV2010Payments.md) - [ApiV2010Account](docs/ApiV2010Account.md) - - [ListUsageRecordMonthly200Response](docs/ListUsageRecordMonthly200Response.md) + - [ListSipIpAccessControlListMappingResponse](docs/ListSipIpAccessControlListMappingResponse.md) + - [ApiV2010Participant](docs/ApiV2010Participant.md) - [ApiV2010CallEvent](docs/ApiV2010CallEvent.md) - - [ListSipCredentialList200Response](docs/ListSipCredentialList200Response.md) + - [ApiV2010SipAuthCallsCredentialListMapping](docs/ApiV2010SipAuthCallsCredentialListMapping.md) + - [ListSipIpAddressResponse](docs/ListSipIpAddressResponse.md) - [ApiV2010NewKey](docs/ApiV2010NewKey.md) - [ApiV2010UserDefinedMessageSubscription](docs/ApiV2010UserDefinedMessageSubscription.md) - [ApiV2010NewSigningKey](docs/ApiV2010NewSigningKey.md) - - [ListSipIpAccessControlListMapping200Response](docs/ListSipIpAccessControlListMapping200Response.md) - - [ListShortCode200Response](docs/ListShortCode200Response.md) + - [ListAvailablePhoneNumberLocalResponse](docs/ListAvailablePhoneNumberLocalResponse.md) + - [ListUsageRecordYesterdayResponse](docs/ListUsageRecordYesterdayResponse.md) - [ListConferenceResponse](docs/ListConferenceResponse.md) - [ApiV2010AvailablePhoneNumberLocal](docs/ApiV2010AvailablePhoneNumberLocal.md) - - [ListTranscription200Response](docs/ListTranscription200Response.md) + - [ApiV2010SipCredentialList](docs/ApiV2010SipCredentialList.md) - [ListRecordingResponse](docs/ListRecordingResponse.md) + - [ApiV2010Message](docs/ApiV2010Message.md) - [ListUsageTriggerResponse](docs/ListUsageTriggerResponse.md) + - [ApiV2010UsageRecordLastMonth](docs/ApiV2010UsageRecordLastMonth.md) - [ApiV2010RecordingAddOnResult](docs/ApiV2010RecordingAddOnResult.md) - [ListSipCredentialListResponse](docs/ListSipCredentialListResponse.md) + - [ListAvailablePhoneNumberCountryResponse](docs/ListAvailablePhoneNumberCountryResponse.md) + - [ListCallRecordingResponse](docs/ListCallRecordingResponse.md) - [ListIncomingPhoneNumberMobileResponse](docs/ListIncomingPhoneNumberMobileResponse.md) - [ApiV2010AvailablePhoneNumberMobile](docs/ApiV2010AvailablePhoneNumberMobile.md) - [ApiV2010Stream](docs/ApiV2010Stream.md) + - [ApiV2010SipCredentialListMapping](docs/ApiV2010SipCredentialListMapping.md) + - [ApiV2010AvailablePhoneNumberTollFree](docs/ApiV2010AvailablePhoneNumberTollFree.md) + - [ApiV2010SipDomain](docs/ApiV2010SipDomain.md) - [ListUsageRecordDailyResponse](docs/ListUsageRecordDailyResponse.md) - [ListIncomingPhoneNumberAssignedAddOnResponse](docs/ListIncomingPhoneNumberAssignedAddOnResponse.md) - [ListSipCredentialResponse](docs/ListSipCredentialResponse.md) - [ListCallEventResponse](docs/ListCallEventResponse.md) - - [ListIncomingPhoneNumberTollFree200Response](docs/ListIncomingPhoneNumberTollFree200Response.md) - [ApiV2010SipIpAddress](docs/ApiV2010SipIpAddress.md) - - [ListUsageRecordToday200Response](docs/ListUsageRecordToday200Response.md) + - [ListAuthorizedConnectAppResponse](docs/ListAuthorizedConnectAppResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md) - [ListMemberResponse](docs/ListMemberResponse.md) + - [ApiV2010IncomingPhoneNumber](docs/ApiV2010IncomingPhoneNumber.md) + - [ApiV2010ConnectApp](docs/ApiV2010ConnectApp.md) + - [ApiV2010SipAuthCallsIpAccessControlListMapping](docs/ApiV2010SipAuthCallsIpAccessControlListMapping.md) - [ApiV2010UsageRecordToday](docs/ApiV2010UsageRecordToday.md) + - [ApiV2010ConferenceRecording](docs/ApiV2010ConferenceRecording.md) - [ApiV2010AvailablePhoneNumberNational](docs/ApiV2010AvailablePhoneNumberNational.md) - [ApiV2010SigningKey](docs/ApiV2010SigningKey.md) - [ApiV2010Address](docs/ApiV2010Address.md) @@ -327,108 +357,16 @@ Class | Method | HTTP request | Description - [ListNotificationResponse](docs/ListNotificationResponse.md) - [ListMediaResponse](docs/ListMediaResponse.md) - [ListUsageRecordResponse](docs/ListUsageRecordResponse.md) - - [ListMember200Response](docs/ListMember200Response.md) - - [ListIncomingPhoneNumberAssignedAddOnExtensionResponse](docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) - - [ListSipAuthCallsIpAccessControlListMappingResponse](docs/ListSipAuthCallsIpAccessControlListMappingResponse.md) - - [ListAccount200ResponseAllOf](docs/ListAccount200ResponseAllOf.md) - - [ListSipAuthRegistrationsCredentialListMappingResponse](docs/ListSipAuthRegistrationsCredentialListMappingResponse.md) - - [ListUsageRecord200Response](docs/ListUsageRecord200Response.md) - - [ListUsageRecordLastMonth200Response](docs/ListUsageRecordLastMonth200Response.md) - - [ListRecording200Response](docs/ListRecording200Response.md) - - [ListTranscriptionResponse](docs/ListTranscriptionResponse.md) - - [ListSipAuthRegistrationsCredentialListMapping200Response](docs/ListSipAuthRegistrationsCredentialListMapping200Response.md) - - [ListQueueResponse](docs/ListQueueResponse.md) - - [ApiV2010AccountIncomingPhoneNumberCapabilities](docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md) - - [ApiV2010CallRecording](docs/ApiV2010CallRecording.md) - - [ApiV2010AvailablePhoneNumberSharedCost](docs/ApiV2010AvailablePhoneNumberSharedCost.md) - - [ListSipCredential200Response](docs/ListSipCredential200Response.md) - - [ApiV2010Transcription](docs/ApiV2010Transcription.md) - - [ListCallNotification200Response](docs/ListCallNotification200Response.md) - - [ApiV2010OutgoingCallerId](docs/ApiV2010OutgoingCallerId.md) - - [ListCall200Response](docs/ListCall200Response.md) - - [ListParticipantResponse](docs/ListParticipantResponse.md) - - [ApiV2010Siprec](docs/ApiV2010Siprec.md) - - [ListUsageRecordAllTime200Response](docs/ListUsageRecordAllTime200Response.md) - - [ListUsageRecordYearlyResponse](docs/ListUsageRecordYearlyResponse.md) - - [ListParticipant200Response](docs/ListParticipant200Response.md) - - [ListUsageRecordThisMonthResponse](docs/ListUsageRecordThisMonthResponse.md) - - [ApiV2010Conference](docs/ApiV2010Conference.md) - - [ListAvailablePhoneNumberMobileResponse](docs/ListAvailablePhoneNumberMobileResponse.md) - - [ListOutgoingCallerId200Response](docs/ListOutgoingCallerId200Response.md) - - [ListAvailablePhoneNumberTollFreeResponse](docs/ListAvailablePhoneNumberTollFreeResponse.md) - - [ListSipCredentialListMappingResponse](docs/ListSipCredentialListMappingResponse.md) - - [ListConferenceRecording200Response](docs/ListConferenceRecording200Response.md) - - [ApiV2010Queue](docs/ApiV2010Queue.md) - - [ListDependentPhoneNumberResponse](docs/ListDependentPhoneNumberResponse.md) - - [ListAvailablePhoneNumberNationalResponse](docs/ListAvailablePhoneNumberNationalResponse.md) - - [ListAvailablePhoneNumberSharedCostResponse](docs/ListAvailablePhoneNumberSharedCostResponse.md) - - [ApiV2010AvailablePhoneNumberVoip](docs/ApiV2010AvailablePhoneNumberVoip.md) - - [ListNotification200Response](docs/ListNotification200Response.md) - - [ListCallNotificationResponse](docs/ListCallNotificationResponse.md) - - [ApiV2010AccountTokenIceServers](docs/ApiV2010AccountTokenIceServers.md) - - [ListAddress200Response](docs/ListAddress200Response.md) - - [ListCallResponse](docs/ListCallResponse.md) - - [ListRecordingAddOnResultPayload200Response](docs/ListRecordingAddOnResultPayload200Response.md) - - [ListKey200Response](docs/ListKey200Response.md) - - [ListAvailablePhoneNumberMachineToMachine200Response](docs/ListAvailablePhoneNumberMachineToMachine200Response.md) - - [ListOutgoingCallerIdResponse](docs/ListOutgoingCallerIdResponse.md) - - [ListSipIpAccessControlListResponse](docs/ListSipIpAccessControlListResponse.md) - - [ListAvailablePhoneNumberSharedCost200Response](docs/ListAvailablePhoneNumberSharedCost200Response.md) - - [ListRecordingAddOnResult200Response](docs/ListRecordingAddOnResult200Response.md) - - [ListAccountResponse](docs/ListAccountResponse.md) - - [ListIncomingPhoneNumberResponse](docs/ListIncomingPhoneNumberResponse.md) - - [ApiV2010CallNotification](docs/ApiV2010CallNotification.md) - - [ApiV2010IncomingPhoneNumberLocal](docs/ApiV2010IncomingPhoneNumberLocal.md) - - [ListConnectApp200Response](docs/ListConnectApp200Response.md) - - [ListQueue200Response](docs/ListQueue200Response.md) - - [ApiV2010SipIpAccessControlListMapping](docs/ApiV2010SipIpAccessControlListMapping.md) - - [ApiV2010AvailablePhoneNumberMachineToMachine](docs/ApiV2010AvailablePhoneNumberMachineToMachine.md) - - [ApiV2010Notification](docs/ApiV2010Notification.md) - - [ApiV2010Recording](docs/ApiV2010Recording.md) - - [ListRecordingTranscriptionResponse](docs/ListRecordingTranscriptionResponse.md) - - [ListDependentPhoneNumber200Response](docs/ListDependentPhoneNumber200Response.md) - - [ApiV2010IncomingPhoneNumberTollFree](docs/ApiV2010IncomingPhoneNumberTollFree.md) - - [ApiV2010ValidationRequest](docs/ApiV2010ValidationRequest.md) - - [ListAvailablePhoneNumberMobile200Response](docs/ListAvailablePhoneNumberMobile200Response.md) - - [ApiV2010Application](docs/ApiV2010Application.md) - - [ListIncomingPhoneNumberTollFreeResponse](docs/ListIncomingPhoneNumberTollFreeResponse.md) - - [ApiV2010Payments](docs/ApiV2010Payments.md) - - [ListSipIpAccessControlListMappingResponse](docs/ListSipIpAccessControlListMappingResponse.md) - - [ApiV2010Participant](docs/ApiV2010Participant.md) - - [ApiV2010SipAuthCallsCredentialListMapping](docs/ApiV2010SipAuthCallsCredentialListMapping.md) - - [ListSipIpAddressResponse](docs/ListSipIpAddressResponse.md) - - [ListIncomingPhoneNumberAssignedAddOn200Response](docs/ListIncomingPhoneNumberAssignedAddOn200Response.md) - - [ListAvailablePhoneNumberLocalResponse](docs/ListAvailablePhoneNumberLocalResponse.md) - - [ListUsageRecordYesterdayResponse](docs/ListUsageRecordYesterdayResponse.md) - - [ApiV2010SipCredentialList](docs/ApiV2010SipCredentialList.md) - - [ListCallEvent200Response](docs/ListCallEvent200Response.md) - - [ApiV2010Message](docs/ApiV2010Message.md) - - [ApiV2010UsageRecordLastMonth](docs/ApiV2010UsageRecordLastMonth.md) - - [ListAvailablePhoneNumberCountryResponse](docs/ListAvailablePhoneNumberCountryResponse.md) - - [ListCallRecordingResponse](docs/ListCallRecordingResponse.md) - - [ApiV2010SipCredentialListMapping](docs/ApiV2010SipCredentialListMapping.md) - - [ApiV2010AvailablePhoneNumberTollFree](docs/ApiV2010AvailablePhoneNumberTollFree.md) - - [ApiV2010SipDomain](docs/ApiV2010SipDomain.md) - - [ListSipIpAddress200Response](docs/ListSipIpAddress200Response.md) - - [ListConference200Response](docs/ListConference200Response.md) - - [ListSipCredentialListMapping200Response](docs/ListSipCredentialListMapping200Response.md) - - [ListSipIpAccessControlList200Response](docs/ListSipIpAccessControlList200Response.md) - - [ListAuthorizedConnectAppResponse](docs/ListAuthorizedConnectAppResponse.md) - - [ApiV2010IncomingPhoneNumber](docs/ApiV2010IncomingPhoneNumber.md) - - [ApiV2010ConnectApp](docs/ApiV2010ConnectApp.md) - - [ListAvailablePhoneNumberNational200Response](docs/ListAvailablePhoneNumberNational200Response.md) - - [ApiV2010SipAuthCallsIpAccessControlListMapping](docs/ApiV2010SipAuthCallsIpAccessControlListMapping.md) - - [ListCallRecording200Response](docs/ListCallRecording200Response.md) - - [ApiV2010ConferenceRecording](docs/ApiV2010ConferenceRecording.md) - - [ListIncomingPhoneNumberLocal200Response](docs/ListIncomingPhoneNumberLocal200Response.md) - [ApiV2010IncomingPhoneNumberAssignedAddOnExtension](docs/ApiV2010IncomingPhoneNumberAssignedAddOnExtension.md) - - [ListIncomingPhoneNumberAssignedAddOnExtension200Response](docs/ListIncomingPhoneNumberAssignedAddOnExtension200Response.md) - [ListRecordingAddOnResultResponse](docs/ListRecordingAddOnResultResponse.md) + - [ListIncomingPhoneNumberAssignedAddOnExtensionResponse](docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) + - [ListSipAuthCallsIpAccessControlListMappingResponse](docs/ListSipAuthCallsIpAccessControlListMappingResponse.md) - [ApiV2010AuthorizedConnectApp](docs/ApiV2010AuthorizedConnectApp.md) - [ListUsageRecordAllTimeResponse](docs/ListUsageRecordAllTimeResponse.md) - - [ListAvailablePhoneNumberLocal200Response](docs/ListAvailablePhoneNumberLocal200Response.md) - [ListSipDomainResponse](docs/ListSipDomainResponse.md) + - [ListSipAuthRegistrationsCredentialListMappingResponse](docs/ListSipAuthRegistrationsCredentialListMappingResponse.md) - [ApiV2010Balance](docs/ApiV2010Balance.md) + - [ListTranscriptionResponse](docs/ListTranscriptionResponse.md) ## Documentation For Authorization diff --git a/rest/api/v2010/accounts.go b/rest/api/v2010/accounts.go index 6e5b6c076..9d72732d9 100644 --- a/rest/api/v2010/accounts.go +++ b/rest/api/v2010/accounts.go @@ -113,7 +113,7 @@ func (params *ListAccountParams) SetLimit(Limit int) *ListAccountParams { } // Retrieve a single page of Account records from the API. Request is executed immediately. -func (c *ApiService) PageAccount(params *ListAccountParams, pageToken, pageNumber string) (*ListAccount200Response, error) { +func (c *ApiService) PageAccount(params *ListAccountParams, pageToken, pageNumber string) (*ListAccountResponse, error) { path := "/2010-04-01/Accounts.json" data := url.Values{} @@ -143,7 +143,7 @@ func (c *ApiService) PageAccount(params *ListAccountParams, pageToken, pageNumbe defer resp.Body.Close() - ps := &ListAccount200Response{} + ps := &ListAccountResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -189,7 +189,7 @@ func (c *ApiService) StreamAccount(params *ListAccountParams) (chan ApiV2010Acco return recordChannel, errorChannel } -func (c *ApiService) streamAccount(response *ListAccount200Response, params *ListAccountParams, recordChannel chan ApiV2010Account, errorChannel chan error) { +func (c *ApiService) streamAccount(response *ListAccountResponse, params *ListAccountParams, recordChannel chan ApiV2010Account, errorChannel chan error) { curRecord := 1 for response != nil { @@ -204,7 +204,7 @@ func (c *ApiService) streamAccount(response *ListAccount200Response, params *Lis } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAccount200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAccountResponse) if err != nil { errorChannel <- err break @@ -212,14 +212,14 @@ func (c *ApiService) streamAccount(response *ListAccount200Response, params *Lis break } - response = record.(*ListAccount200Response) + response = record.(*ListAccountResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAccount200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAccountResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -230,7 +230,7 @@ func (c *ApiService) getNextListAccount200Response(nextPageUrl string) (interfac defer resp.Body.Close() - ps := &ListAccount200Response{} + ps := &ListAccountResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_addresses.go b/rest/api/v2010/accounts_addresses.go index fe00dad35..eba5b6671 100644 --- a/rest/api/v2010/accounts_addresses.go +++ b/rest/api/v2010/accounts_addresses.go @@ -264,7 +264,7 @@ func (params *ListAddressParams) SetLimit(Limit int) *ListAddressParams { } // Retrieve a single page of Address records from the API. Request is executed immediately. -func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumber string) (*ListAddress200Response, error) { +func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumber string) (*ListAddressResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" if params != nil && params.PathAccountSid != nil { @@ -303,7 +303,7 @@ func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumbe defer resp.Body.Close() - ps := &ListAddress200Response{} + ps := &ListAddressResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -349,7 +349,7 @@ func (c *ApiService) StreamAddress(params *ListAddressParams) (chan ApiV2010Addr return recordChannel, errorChannel } -func (c *ApiService) streamAddress(response *ListAddress200Response, params *ListAddressParams, recordChannel chan ApiV2010Address, errorChannel chan error) { +func (c *ApiService) streamAddress(response *ListAddressResponse, params *ListAddressParams, recordChannel chan ApiV2010Address, errorChannel chan error) { curRecord := 1 for response != nil { @@ -364,7 +364,7 @@ func (c *ApiService) streamAddress(response *ListAddress200Response, params *Lis } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAddress200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAddressResponse) if err != nil { errorChannel <- err break @@ -372,14 +372,14 @@ func (c *ApiService) streamAddress(response *ListAddress200Response, params *Lis break } - response = record.(*ListAddress200Response) + response = record.(*ListAddressResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAddress200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAddressResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -390,7 +390,7 @@ func (c *ApiService) getNextListAddress200Response(nextPageUrl string) (interfac defer resp.Body.Close() - ps := &ListAddress200Response{} + ps := &ListAddressResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go index 6a2190650..f1cf03f13 100644 --- a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go +++ b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go @@ -47,7 +47,7 @@ func (params *ListDependentPhoneNumberParams) SetLimit(Limit int) *ListDependent } // Retrieve a single page of DependentPhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDependentPhoneNumberParams, pageToken, pageNumber string) (*ListDependentPhoneNumber200Response, error) { +func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDependentPhoneNumberParams, pageToken, pageNumber string) (*ListDependentPhoneNumberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -78,7 +78,7 @@ func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDep defer resp.Body.Close() - ps := &ListDependentPhoneNumber200Response{} + ps := &ListDependentPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -124,7 +124,7 @@ func (c *ApiService) StreamDependentPhoneNumber(AddressSid string, params *ListD return recordChannel, errorChannel } -func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumber200Response, params *ListDependentPhoneNumberParams, recordChannel chan ApiV2010DependentPhoneNumber, errorChannel chan error) { +func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumberResponse, params *ListDependentPhoneNumberParams, recordChannel chan ApiV2010DependentPhoneNumber, errorChannel chan error) { curRecord := 1 for response != nil { @@ -139,7 +139,7 @@ func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumb } } - record, err := client.GetNext(c.baseURL, response, c.getNextListDependentPhoneNumber200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListDependentPhoneNumberResponse) if err != nil { errorChannel <- err break @@ -147,14 +147,14 @@ func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumb break } - response = record.(*ListDependentPhoneNumber200Response) + response = record.(*ListDependentPhoneNumberResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListDependentPhoneNumber200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListDependentPhoneNumberResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -165,7 +165,7 @@ func (c *ApiService) getNextListDependentPhoneNumber200Response(nextPageUrl stri defer resp.Body.Close() - ps := &ListDependentPhoneNumber200Response{} + ps := &ListDependentPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_applications.go b/rest/api/v2010/accounts_applications.go index e833fd90d..1a2d7f678 100644 --- a/rest/api/v2010/accounts_applications.go +++ b/rest/api/v2010/accounts_applications.go @@ -309,7 +309,7 @@ func (params *ListApplicationParams) SetLimit(Limit int) *ListApplicationParams } // Retrieve a single page of Application records from the API. Request is executed immediately. -func (c *ApiService) PageApplication(params *ListApplicationParams, pageToken, pageNumber string) (*ListApplication200Response, error) { +func (c *ApiService) PageApplication(params *ListApplicationParams, pageToken, pageNumber string) (*ListApplicationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" if params != nil && params.PathAccountSid != nil { @@ -342,7 +342,7 @@ func (c *ApiService) PageApplication(params *ListApplicationParams, pageToken, p defer resp.Body.Close() - ps := &ListApplication200Response{} + ps := &ListApplicationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -388,7 +388,7 @@ func (c *ApiService) StreamApplication(params *ListApplicationParams) (chan ApiV return recordChannel, errorChannel } -func (c *ApiService) streamApplication(response *ListApplication200Response, params *ListApplicationParams, recordChannel chan ApiV2010Application, errorChannel chan error) { +func (c *ApiService) streamApplication(response *ListApplicationResponse, params *ListApplicationParams, recordChannel chan ApiV2010Application, errorChannel chan error) { curRecord := 1 for response != nil { @@ -403,7 +403,7 @@ func (c *ApiService) streamApplication(response *ListApplication200Response, par } } - record, err := client.GetNext(c.baseURL, response, c.getNextListApplication200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListApplicationResponse) if err != nil { errorChannel <- err break @@ -411,14 +411,14 @@ func (c *ApiService) streamApplication(response *ListApplication200Response, par break } - response = record.(*ListApplication200Response) + response = record.(*ListApplicationResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListApplication200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListApplicationResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -429,7 +429,7 @@ func (c *ApiService) getNextListApplication200Response(nextPageUrl string) (inte defer resp.Body.Close() - ps := &ListApplication200Response{} + ps := &ListApplicationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_authorized_connect_apps.go b/rest/api/v2010/accounts_authorized_connect_apps.go index f77e3ee62..c6c0b4e0b 100644 --- a/rest/api/v2010/accounts_authorized_connect_apps.go +++ b/rest/api/v2010/accounts_authorized_connect_apps.go @@ -86,7 +86,7 @@ func (params *ListAuthorizedConnectAppParams) SetLimit(Limit int) *ListAuthorize } // Retrieve a single page of AuthorizedConnectApp records from the API. Request is executed immediately. -func (c *ApiService) PageAuthorizedConnectApp(params *ListAuthorizedConnectAppParams, pageToken, pageNumber string) (*ListAuthorizedConnectApp200Response, error) { +func (c *ApiService) PageAuthorizedConnectApp(params *ListAuthorizedConnectAppParams, pageToken, pageNumber string) (*ListAuthorizedConnectAppResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" if params != nil && params.PathAccountSid != nil { @@ -116,7 +116,7 @@ func (c *ApiService) PageAuthorizedConnectApp(params *ListAuthorizedConnectAppPa defer resp.Body.Close() - ps := &ListAuthorizedConnectApp200Response{} + ps := &ListAuthorizedConnectAppResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -162,7 +162,7 @@ func (c *ApiService) StreamAuthorizedConnectApp(params *ListAuthorizedConnectApp return recordChannel, errorChannel } -func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectApp200Response, params *ListAuthorizedConnectAppParams, recordChannel chan ApiV2010AuthorizedConnectApp, errorChannel chan error) { +func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectAppResponse, params *ListAuthorizedConnectAppParams, recordChannel chan ApiV2010AuthorizedConnectApp, errorChannel chan error) { curRecord := 1 for response != nil { @@ -177,7 +177,7 @@ func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectA } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAuthorizedConnectApp200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAuthorizedConnectAppResponse) if err != nil { errorChannel <- err break @@ -185,14 +185,14 @@ func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectA break } - response = record.(*ListAuthorizedConnectApp200Response) + response = record.(*ListAuthorizedConnectAppResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAuthorizedConnectApp200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAuthorizedConnectAppResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -203,7 +203,7 @@ func (c *ApiService) getNextListAuthorizedConnectApp200Response(nextPageUrl stri defer resp.Body.Close() - ps := &ListAuthorizedConnectApp200Response{} + ps := &ListAuthorizedConnectAppResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers.go b/rest/api/v2010/accounts_available_phone_numbers.go index a31b0fdb7..4088f002c 100644 --- a/rest/api/v2010/accounts_available_phone_numbers.go +++ b/rest/api/v2010/accounts_available_phone_numbers.go @@ -85,7 +85,7 @@ func (params *ListAvailablePhoneNumberCountryParams) SetLimit(Limit int) *ListAv } // Retrieve a single page of AvailablePhoneNumberCountry records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberCountry(params *ListAvailablePhoneNumberCountryParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberCountry200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberCountry(params *ListAvailablePhoneNumberCountryParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberCountryResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -115,7 +115,7 @@ func (c *ApiService) PageAvailablePhoneNumberCountry(params *ListAvailablePhoneN defer resp.Body.Close() - ps := &ListAvailablePhoneNumberCountry200Response{} + ps := &ListAvailablePhoneNumberCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -161,7 +161,7 @@ func (c *ApiService) StreamAvailablePhoneNumberCountry(params *ListAvailablePhon return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePhoneNumberCountry200Response, params *ListAvailablePhoneNumberCountryParams, recordChannel chan ApiV2010AvailablePhoneNumberCountry, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePhoneNumberCountryResponse, params *ListAvailablePhoneNumberCountryParams, recordChannel chan ApiV2010AvailablePhoneNumberCountry, errorChannel chan error) { curRecord := 1 for response != nil { @@ -176,7 +176,7 @@ func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePh } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberCountry200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberCountryResponse) if err != nil { errorChannel <- err break @@ -184,14 +184,14 @@ func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePh break } - response = record.(*ListAvailablePhoneNumberCountry200Response) + response = record.(*ListAvailablePhoneNumberCountryResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberCountry200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberCountryResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -202,7 +202,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberCountry200Response(nextPageU defer resp.Body.Close() - ps := &ListAvailablePhoneNumberCountry200Response{} + ps := &ListAvailablePhoneNumberCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_local.go b/rest/api/v2010/accounts_available_phone_numbers_local.go index a844c819a..9d7ffaecf 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_local.go +++ b/rest/api/v2010/accounts_available_phone_numbers_local.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberLocalParams) SetLimit(Limit int) *ListAvai } // Retrieve a single page of AvailablePhoneNumberLocal records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberLocal(CountryCode string, params *ListAvailablePhoneNumberLocalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberLocal200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberLocal(CountryCode string, params *ListAvailablePhoneNumberLocalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberLocalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberLocal(CountryCode string, params *L defer resp.Body.Close() - ps := &ListAvailablePhoneNumberLocal200Response{} + ps := &ListAvailablePhoneNumberLocalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberLocal(CountryCode string, params return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhoneNumberLocal200Response, params *ListAvailablePhoneNumberLocalParams, recordChannel chan ApiV2010AvailablePhoneNumberLocal, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhoneNumberLocalResponse, params *ListAvailablePhoneNumberLocalParams, recordChannel chan ApiV2010AvailablePhoneNumberLocal, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberLocal200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberLocalResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhon break } - response = record.(*ListAvailablePhoneNumberLocal200Response) + response = record.(*ListAvailablePhoneNumberLocalResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberLocal200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberLocalResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberLocal200Response(nextPageUrl defer resp.Body.Close() - ps := &ListAvailablePhoneNumberLocal200Response{} + ps := &ListAvailablePhoneNumberLocalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go b/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go index dac140370..30f22af46 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go +++ b/rest/api/v2010/accounts_available_phone_numbers_machine_to_machine.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberMachineToMachineParams) SetLimit(Limit int } // Retrieve a single page of AvailablePhoneNumberMachineToMachine records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberMachineToMachine(CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMachineToMachine200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberMachineToMachine(CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMachineToMachineResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberMachineToMachine(CountryCode string defer resp.Body.Close() - ps := &ListAvailablePhoneNumberMachineToMachine200Response{} + ps := &ListAvailablePhoneNumberMachineToMachineResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberMachineToMachine(CountryCode stri return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAvailablePhoneNumberMachineToMachine200Response, params *ListAvailablePhoneNumberMachineToMachineParams, recordChannel chan ApiV2010AvailablePhoneNumberMachineToMachine, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAvailablePhoneNumberMachineToMachineResponse, params *ListAvailablePhoneNumberMachineToMachineParams, recordChannel chan ApiV2010AvailablePhoneNumberMachineToMachine, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAv } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberMachineToMachine200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberMachineToMachineResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAv break } - response = record.(*ListAvailablePhoneNumberMachineToMachine200Response) + response = record.(*ListAvailablePhoneNumberMachineToMachineResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberMachineToMachine200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberMachineToMachineResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberMachineToMachine200Response( defer resp.Body.Close() - ps := &ListAvailablePhoneNumberMachineToMachine200Response{} + ps := &ListAvailablePhoneNumberMachineToMachineResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_mobile.go b/rest/api/v2010/accounts_available_phone_numbers_mobile.go index 344d4eab1..df649b4d0 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_available_phone_numbers_mobile.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberMobileParams) SetLimit(Limit int) *ListAva } // Retrieve a single page of AvailablePhoneNumberMobile records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberMobile(CountryCode string, params *ListAvailablePhoneNumberMobileParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMobile200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberMobile(CountryCode string, params *ListAvailablePhoneNumberMobileParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMobileResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberMobile(CountryCode string, params * defer resp.Body.Close() - ps := &ListAvailablePhoneNumberMobile200Response{} + ps := &ListAvailablePhoneNumberMobileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberMobile(CountryCode string, params return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePhoneNumberMobile200Response, params *ListAvailablePhoneNumberMobileParams, recordChannel chan ApiV2010AvailablePhoneNumberMobile, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePhoneNumberMobileResponse, params *ListAvailablePhoneNumberMobileParams, recordChannel chan ApiV2010AvailablePhoneNumberMobile, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePho } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberMobile200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberMobileResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePho break } - response = record.(*ListAvailablePhoneNumberMobile200Response) + response = record.(*ListAvailablePhoneNumberMobileResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberMobile200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberMobileResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberMobile200Response(nextPageUr defer resp.Body.Close() - ps := &ListAvailablePhoneNumberMobile200Response{} + ps := &ListAvailablePhoneNumberMobileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_national.go b/rest/api/v2010/accounts_available_phone_numbers_national.go index ea15ce058..46f936ea2 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_national.go +++ b/rest/api/v2010/accounts_available_phone_numbers_national.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberNationalParams) SetLimit(Limit int) *ListA } // Retrieve a single page of AvailablePhoneNumberNational records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberNational(CountryCode string, params *ListAvailablePhoneNumberNationalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberNational200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberNational(CountryCode string, params *ListAvailablePhoneNumberNationalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberNationalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberNational(CountryCode string, params defer resp.Body.Close() - ps := &ListAvailablePhoneNumberNational200Response{} + ps := &ListAvailablePhoneNumberNationalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberNational(CountryCode string, para return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailablePhoneNumberNational200Response, params *ListAvailablePhoneNumberNationalParams, recordChannel chan ApiV2010AvailablePhoneNumberNational, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailablePhoneNumberNationalResponse, params *ListAvailablePhoneNumberNationalParams, recordChannel chan ApiV2010AvailablePhoneNumberNational, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailableP } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberNational200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberNationalResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailableP break } - response = record.(*ListAvailablePhoneNumberNational200Response) + response = record.(*ListAvailablePhoneNumberNationalResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberNational200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberNationalResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberNational200Response(nextPage defer resp.Body.Close() - ps := &ListAvailablePhoneNumberNational200Response{} + ps := &ListAvailablePhoneNumberNationalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go b/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go index 667a75f35..9c6abff87 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go +++ b/rest/api/v2010/accounts_available_phone_numbers_shared_cost.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberSharedCostParams) SetLimit(Limit int) *Lis } // Retrieve a single page of AvailablePhoneNumberSharedCost records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberSharedCost(CountryCode string, params *ListAvailablePhoneNumberSharedCostParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberSharedCost200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberSharedCost(CountryCode string, params *ListAvailablePhoneNumberSharedCostParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberSharedCostResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberSharedCost(CountryCode string, para defer resp.Body.Close() - ps := &ListAvailablePhoneNumberSharedCost200Response{} + ps := &ListAvailablePhoneNumberSharedCostResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberSharedCost(CountryCode string, pa return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailablePhoneNumberSharedCost200Response, params *ListAvailablePhoneNumberSharedCostParams, recordChannel chan ApiV2010AvailablePhoneNumberSharedCost, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailablePhoneNumberSharedCostResponse, params *ListAvailablePhoneNumberSharedCostParams, recordChannel chan ApiV2010AvailablePhoneNumberSharedCost, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailabl } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberSharedCost200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberSharedCostResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailabl break } - response = record.(*ListAvailablePhoneNumberSharedCost200Response) + response = record.(*ListAvailablePhoneNumberSharedCostResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberSharedCost200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberSharedCostResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberSharedCost200Response(nextPa defer resp.Body.Close() - ps := &ListAvailablePhoneNumberSharedCost200Response{} + ps := &ListAvailablePhoneNumberSharedCostResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_toll_free.go b/rest/api/v2010/accounts_available_phone_numbers_toll_free.go index f9a1bdcf6..7d4be3c1f 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_available_phone_numbers_toll_free.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberTollFreeParams) SetLimit(Limit int) *ListA } // Retrieve a single page of AvailablePhoneNumberTollFree records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberTollFree(CountryCode string, params *ListAvailablePhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberTollFree200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberTollFree(CountryCode string, params *ListAvailablePhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberTollFreeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberTollFree(CountryCode string, params defer resp.Body.Close() - ps := &ListAvailablePhoneNumberTollFree200Response{} + ps := &ListAvailablePhoneNumberTollFreeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberTollFree(CountryCode string, para return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailablePhoneNumberTollFree200Response, params *ListAvailablePhoneNumberTollFreeParams, recordChannel chan ApiV2010AvailablePhoneNumberTollFree, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailablePhoneNumberTollFreeResponse, params *ListAvailablePhoneNumberTollFreeParams, recordChannel chan ApiV2010AvailablePhoneNumberTollFree, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailableP } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberTollFree200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberTollFreeResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailableP break } - response = record.(*ListAvailablePhoneNumberTollFree200Response) + response = record.(*ListAvailablePhoneNumberTollFreeResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberTollFree200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberTollFreeResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberTollFree200Response(nextPage defer resp.Body.Close() - ps := &ListAvailablePhoneNumberTollFree200Response{} + ps := &ListAvailablePhoneNumberTollFreeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_available_phone_numbers_voip.go b/rest/api/v2010/accounts_available_phone_numbers_voip.go index 0f3595557..a2534d8e5 100644 --- a/rest/api/v2010/accounts_available_phone_numbers_voip.go +++ b/rest/api/v2010/accounts_available_phone_numbers_voip.go @@ -155,7 +155,7 @@ func (params *ListAvailablePhoneNumberVoipParams) SetLimit(Limit int) *ListAvail } // Retrieve a single page of AvailablePhoneNumberVoip records from the API. Request is executed immediately. -func (c *ApiService) PageAvailablePhoneNumberVoip(CountryCode string, params *ListAvailablePhoneNumberVoipParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberVoip200Response, error) { +func (c *ApiService) PageAvailablePhoneNumberVoip(CountryCode string, params *ListAvailablePhoneNumberVoipParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberVoipResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" if params != nil && params.PathAccountSid != nil { @@ -240,7 +240,7 @@ func (c *ApiService) PageAvailablePhoneNumberVoip(CountryCode string, params *Li defer resp.Body.Close() - ps := &ListAvailablePhoneNumberVoip200Response{} + ps := &ListAvailablePhoneNumberVoipResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -286,7 +286,7 @@ func (c *ApiService) StreamAvailablePhoneNumberVoip(CountryCode string, params * return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhoneNumberVoip200Response, params *ListAvailablePhoneNumberVoipParams, recordChannel chan ApiV2010AvailablePhoneNumberVoip, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhoneNumberVoipResponse, params *ListAvailablePhoneNumberVoipParams, recordChannel chan ApiV2010AvailablePhoneNumberVoip, errorChannel chan error) { curRecord := 1 for response != nil { @@ -301,7 +301,7 @@ func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhone } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberVoip200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberVoipResponse) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhone break } - response = record.(*ListAvailablePhoneNumberVoip200Response) + response = record.(*ListAvailablePhoneNumberVoipResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberVoip200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberVoipResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberVoip200Response(nextPageUrl defer resp.Body.Close() - ps := &ListAvailablePhoneNumberVoip200Response{} + ps := &ListAvailablePhoneNumberVoipResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_calls.go b/rest/api/v2010/accounts_calls.go index f2dff4a9a..21df276d3 100644 --- a/rest/api/v2010/accounts_calls.go +++ b/rest/api/v2010/accounts_calls.go @@ -467,10 +467,18 @@ type ListCallParams struct { ParentCallSid *string `json:"ParentCallSid,omitempty"` // The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. Status *string `json:"Status,omitempty"` - // Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. + // Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. StartTime *time.Time `json:"StartTime,omitempty"` - // Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. + // Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. + StartTimeBefore *time.Time `json:"StartTime<,omitempty"` + // Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. + StartTimeAfter *time.Time `json:"StartTime>,omitempty"` + // Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. EndTime *time.Time `json:"EndTime,omitempty"` + // Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. + EndTimeBefore *time.Time `json:"EndTime<,omitempty"` + // Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. + EndTimeAfter *time.Time `json:"EndTime>,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. @@ -501,10 +509,26 @@ func (params *ListCallParams) SetStartTime(StartTime time.Time) *ListCallParams params.StartTime = &StartTime return params } +func (params *ListCallParams) SetStartTimeBefore(StartTimeBefore time.Time) *ListCallParams { + params.StartTimeBefore = &StartTimeBefore + return params +} +func (params *ListCallParams) SetStartTimeAfter(StartTimeAfter time.Time) *ListCallParams { + params.StartTimeAfter = &StartTimeAfter + return params +} func (params *ListCallParams) SetEndTime(EndTime time.Time) *ListCallParams { params.EndTime = &EndTime return params } +func (params *ListCallParams) SetEndTimeBefore(EndTimeBefore time.Time) *ListCallParams { + params.EndTimeBefore = &EndTimeBefore + return params +} +func (params *ListCallParams) SetEndTimeAfter(EndTimeAfter time.Time) *ListCallParams { + params.EndTimeAfter = &EndTimeAfter + return params +} func (params *ListCallParams) SetPageSize(PageSize int) *ListCallParams { params.PageSize = &PageSize return params @@ -515,7 +539,7 @@ func (params *ListCallParams) SetLimit(Limit int) *ListCallParams { } // Retrieve a single page of Call records from the API. Request is executed immediately. -func (c *ApiService) PageCall(params *ListCallParams, pageToken, pageNumber string) (*ListCall200Response, error) { +func (c *ApiService) PageCall(params *ListCallParams, pageToken, pageNumber string) (*ListCallResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" if params != nil && params.PathAccountSid != nil { @@ -542,9 +566,21 @@ func (c *ApiService) PageCall(params *ListCallParams, pageToken, pageNumber stri if params != nil && params.StartTime != nil { data.Set("StartTime", fmt.Sprint((*params.StartTime).Format(time.RFC3339))) } + if params != nil && params.StartTimeBefore != nil { + data.Set("StartTime<", fmt.Sprint((*params.StartTimeBefore).Format(time.RFC3339))) + } + if params != nil && params.StartTimeAfter != nil { + data.Set("StartTime>", fmt.Sprint((*params.StartTimeAfter).Format(time.RFC3339))) + } if params != nil && params.EndTime != nil { data.Set("EndTime", fmt.Sprint((*params.EndTime).Format(time.RFC3339))) } + if params != nil && params.EndTimeBefore != nil { + data.Set("EndTime<", fmt.Sprint((*params.EndTimeBefore).Format(time.RFC3339))) + } + if params != nil && params.EndTimeAfter != nil { + data.Set("EndTime>", fmt.Sprint((*params.EndTimeAfter).Format(time.RFC3339))) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -563,7 +599,7 @@ func (c *ApiService) PageCall(params *ListCallParams, pageToken, pageNumber stri defer resp.Body.Close() - ps := &ListCall200Response{} + ps := &ListCallResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -609,7 +645,7 @@ func (c *ApiService) StreamCall(params *ListCallParams) (chan ApiV2010Call, chan return recordChannel, errorChannel } -func (c *ApiService) streamCall(response *ListCall200Response, params *ListCallParams, recordChannel chan ApiV2010Call, errorChannel chan error) { +func (c *ApiService) streamCall(response *ListCallResponse, params *ListCallParams, recordChannel chan ApiV2010Call, errorChannel chan error) { curRecord := 1 for response != nil { @@ -624,7 +660,7 @@ func (c *ApiService) streamCall(response *ListCall200Response, params *ListCallP } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCall200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallResponse) if err != nil { errorChannel <- err break @@ -632,14 +668,14 @@ func (c *ApiService) streamCall(response *ListCall200Response, params *ListCallP break } - response = record.(*ListCall200Response) + response = record.(*ListCallResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCall200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -650,7 +686,7 @@ func (c *ApiService) getNextListCall200Response(nextPageUrl string) (interface{} defer resp.Body.Close() - ps := &ListCall200Response{} + ps := &ListCallResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_calls_events.go b/rest/api/v2010/accounts_calls_events.go index f6349aba2..07ce9789a 100644 --- a/rest/api/v2010/accounts_calls_events.go +++ b/rest/api/v2010/accounts_calls_events.go @@ -47,7 +47,7 @@ func (params *ListCallEventParams) SetLimit(Limit int) *ListCallEventParams { } // Retrieve a single page of CallEvent records from the API. Request is executed immediately. -func (c *ApiService) PageCallEvent(CallSid string, params *ListCallEventParams, pageToken, pageNumber string) (*ListCallEvent200Response, error) { +func (c *ApiService) PageCallEvent(CallSid string, params *ListCallEventParams, pageToken, pageNumber string) (*ListCallEventResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" if params != nil && params.PathAccountSid != nil { @@ -78,7 +78,7 @@ func (c *ApiService) PageCallEvent(CallSid string, params *ListCallEventParams, defer resp.Body.Close() - ps := &ListCallEvent200Response{} + ps := &ListCallEventResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -124,7 +124,7 @@ func (c *ApiService) StreamCallEvent(CallSid string, params *ListCallEventParams return recordChannel, errorChannel } -func (c *ApiService) streamCallEvent(response *ListCallEvent200Response, params *ListCallEventParams, recordChannel chan ApiV2010CallEvent, errorChannel chan error) { +func (c *ApiService) streamCallEvent(response *ListCallEventResponse, params *ListCallEventParams, recordChannel chan ApiV2010CallEvent, errorChannel chan error) { curRecord := 1 for response != nil { @@ -139,7 +139,7 @@ func (c *ApiService) streamCallEvent(response *ListCallEvent200Response, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallEvent200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallEventResponse) if err != nil { errorChannel <- err break @@ -147,14 +147,14 @@ func (c *ApiService) streamCallEvent(response *ListCallEvent200Response, params break } - response = record.(*ListCallEvent200Response) + response = record.(*ListCallEventResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallEvent200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallEventResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -165,7 +165,7 @@ func (c *ApiService) getNextListCallEvent200Response(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListCallEvent200Response{} + ps := &ListCallEventResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_calls_notifications.go b/rest/api/v2010/accounts_calls_notifications.go index 9fbc3f5ea..ece1f14cf 100644 --- a/rest/api/v2010/accounts_calls_notifications.go +++ b/rest/api/v2010/accounts_calls_notifications.go @@ -110,7 +110,7 @@ func (params *ListCallNotificationParams) SetLimit(Limit int) *ListCallNotificat } // Retrieve a single page of CallNotification records from the API. Request is executed immediately. -func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotificationParams, pageToken, pageNumber string) (*ListCallNotification200Response, error) { +func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotificationParams, pageToken, pageNumber string) (*ListCallNotificationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" if params != nil && params.PathAccountSid != nil { @@ -153,7 +153,7 @@ func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotifi defer resp.Body.Close() - ps := &ListCallNotification200Response{} + ps := &ListCallNotificationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -199,7 +199,7 @@ func (c *ApiService) StreamCallNotification(CallSid string, params *ListCallNoti return recordChannel, errorChannel } -func (c *ApiService) streamCallNotification(response *ListCallNotification200Response, params *ListCallNotificationParams, recordChannel chan ApiV2010CallNotification, errorChannel chan error) { +func (c *ApiService) streamCallNotification(response *ListCallNotificationResponse, params *ListCallNotificationParams, recordChannel chan ApiV2010CallNotification, errorChannel chan error) { curRecord := 1 for response != nil { @@ -214,7 +214,7 @@ func (c *ApiService) streamCallNotification(response *ListCallNotification200Res } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallNotification200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallNotificationResponse) if err != nil { errorChannel <- err break @@ -222,14 +222,14 @@ func (c *ApiService) streamCallNotification(response *ListCallNotification200Res break } - response = record.(*ListCallNotification200Response) + response = record.(*ListCallNotificationResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallNotification200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallNotificationResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -240,7 +240,7 @@ func (c *ApiService) getNextListCallNotification200Response(nextPageUrl string) defer resp.Body.Close() - ps := &ListCallNotification200Response{} + ps := &ListCallNotificationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_calls_recordings.go b/rest/api/v2010/accounts_calls_recordings.go index aee57ac0a..955ded6e5 100644 --- a/rest/api/v2010/accounts_calls_recordings.go +++ b/rest/api/v2010/accounts_calls_recordings.go @@ -236,7 +236,7 @@ func (params *ListCallRecordingParams) SetLimit(Limit int) *ListCallRecordingPar } // Retrieve a single page of CallRecording records from the API. Request is executed immediately. -func (c *ApiService) PageCallRecording(CallSid string, params *ListCallRecordingParams, pageToken, pageNumber string) (*ListCallRecording200Response, error) { +func (c *ApiService) PageCallRecording(CallSid string, params *ListCallRecordingParams, pageToken, pageNumber string) (*ListCallRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { @@ -276,7 +276,7 @@ func (c *ApiService) PageCallRecording(CallSid string, params *ListCallRecording defer resp.Body.Close() - ps := &ListCallRecording200Response{} + ps := &ListCallRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -322,7 +322,7 @@ func (c *ApiService) StreamCallRecording(CallSid string, params *ListCallRecordi return recordChannel, errorChannel } -func (c *ApiService) streamCallRecording(response *ListCallRecording200Response, params *ListCallRecordingParams, recordChannel chan ApiV2010CallRecording, errorChannel chan error) { +func (c *ApiService) streamCallRecording(response *ListCallRecordingResponse, params *ListCallRecordingParams, recordChannel chan ApiV2010CallRecording, errorChannel chan error) { curRecord := 1 for response != nil { @@ -337,7 +337,7 @@ func (c *ApiService) streamCallRecording(response *ListCallRecording200Response, } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallRecording200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallRecordingResponse) if err != nil { errorChannel <- err break @@ -345,14 +345,14 @@ func (c *ApiService) streamCallRecording(response *ListCallRecording200Response, break } - response = record.(*ListCallRecording200Response) + response = record.(*ListCallRecordingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallRecording200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallRecordingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -363,7 +363,7 @@ func (c *ApiService) getNextListCallRecording200Response(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListCallRecording200Response{} + ps := &ListCallRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_conferences.go b/rest/api/v2010/accounts_conferences.go index 0c011a703..0dce8c112 100644 --- a/rest/api/v2010/accounts_conferences.go +++ b/rest/api/v2010/accounts_conferences.go @@ -68,8 +68,16 @@ type ListConferenceParams struct { PathAccountSid *string `json:"PathAccountSid,omitempty"` // The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. DateCreated *string `json:"DateCreated,omitempty"` + // The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + DateCreatedBefore *string `json:"DateCreated<,omitempty"` + // The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + DateCreatedAfter *string `json:"DateCreated>,omitempty"` // The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. DateUpdated *string `json:"DateUpdated,omitempty"` + // The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + DateUpdatedBefore *string `json:"DateUpdated<,omitempty"` + // The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + DateUpdatedAfter *string `json:"DateUpdated>,omitempty"` // The string that identifies the Conference resources to read. FriendlyName *string `json:"FriendlyName,omitempty"` // The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. @@ -88,10 +96,26 @@ func (params *ListConferenceParams) SetDateCreated(DateCreated string) *ListConf params.DateCreated = &DateCreated return params } +func (params *ListConferenceParams) SetDateCreatedBefore(DateCreatedBefore string) *ListConferenceParams { + params.DateCreatedBefore = &DateCreatedBefore + return params +} +func (params *ListConferenceParams) SetDateCreatedAfter(DateCreatedAfter string) *ListConferenceParams { + params.DateCreatedAfter = &DateCreatedAfter + return params +} func (params *ListConferenceParams) SetDateUpdated(DateUpdated string) *ListConferenceParams { params.DateUpdated = &DateUpdated return params } +func (params *ListConferenceParams) SetDateUpdatedBefore(DateUpdatedBefore string) *ListConferenceParams { + params.DateUpdatedBefore = &DateUpdatedBefore + return params +} +func (params *ListConferenceParams) SetDateUpdatedAfter(DateUpdatedAfter string) *ListConferenceParams { + params.DateUpdatedAfter = &DateUpdatedAfter + return params +} func (params *ListConferenceParams) SetFriendlyName(FriendlyName string) *ListConferenceParams { params.FriendlyName = &FriendlyName return params @@ -110,7 +134,7 @@ func (params *ListConferenceParams) SetLimit(Limit int) *ListConferenceParams { } // Retrieve a single page of Conference records from the API. Request is executed immediately. -func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pageNumber string) (*ListConference200Response, error) { +func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pageNumber string) (*ListConferenceResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" if params != nil && params.PathAccountSid != nil { @@ -125,9 +149,21 @@ func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pag if params != nil && params.DateCreated != nil { data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreated<", fmt.Sprint(*params.DateCreatedBefore)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreated>", fmt.Sprint(*params.DateCreatedAfter)) + } if params != nil && params.DateUpdated != nil { data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } + if params != nil && params.DateUpdatedBefore != nil { + data.Set("DateUpdated<", fmt.Sprint(*params.DateUpdatedBefore)) + } + if params != nil && params.DateUpdatedAfter != nil { + data.Set("DateUpdated>", fmt.Sprint(*params.DateUpdatedAfter)) + } if params != nil && params.FriendlyName != nil { data.Set("FriendlyName", *params.FriendlyName) } @@ -152,7 +188,7 @@ func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pag defer resp.Body.Close() - ps := &ListConference200Response{} + ps := &ListConferenceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -198,7 +234,7 @@ func (c *ApiService) StreamConference(params *ListConferenceParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamConference(response *ListConference200Response, params *ListConferenceParams, recordChannel chan ApiV2010Conference, errorChannel chan error) { +func (c *ApiService) streamConference(response *ListConferenceResponse, params *ListConferenceParams, recordChannel chan ApiV2010Conference, errorChannel chan error) { curRecord := 1 for response != nil { @@ -213,7 +249,7 @@ func (c *ApiService) streamConference(response *ListConference200Response, param } } - record, err := client.GetNext(c.baseURL, response, c.getNextListConference200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListConferenceResponse) if err != nil { errorChannel <- err break @@ -221,14 +257,14 @@ func (c *ApiService) streamConference(response *ListConference200Response, param break } - response = record.(*ListConference200Response) + response = record.(*ListConferenceResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListConference200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListConferenceResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -239,7 +275,7 @@ func (c *ApiService) getNextListConference200Response(nextPageUrl string) (inter defer resp.Body.Close() - ps := &ListConference200Response{} + ps := &ListConferenceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_conferences_participants.go b/rest/api/v2010/accounts_conferences_participants.go index 51014339f..e8335247f 100644 --- a/rest/api/v2010/accounts_conferences_participants.go +++ b/rest/api/v2010/accounts_conferences_participants.go @@ -619,7 +619,7 @@ func (params *ListParticipantParams) SetLimit(Limit int) *ListParticipantParams } // Retrieve a single page of Participant records from the API. Request is executed immediately. -func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipantParams, pageToken, pageNumber string) (*ListParticipant200Response, error) { +func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipantParams, pageToken, pageNumber string) (*ListParticipantResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" if params != nil && params.PathAccountSid != nil { @@ -659,7 +659,7 @@ func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipa defer resp.Body.Close() - ps := &ListParticipant200Response{} + ps := &ListParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -705,7 +705,7 @@ func (c *ApiService) StreamParticipant(ConferenceSid string, params *ListPartici return recordChannel, errorChannel } -func (c *ApiService) streamParticipant(response *ListParticipant200Response, params *ListParticipantParams, recordChannel chan ApiV2010Participant, errorChannel chan error) { +func (c *ApiService) streamParticipant(response *ListParticipantResponse, params *ListParticipantParams, recordChannel chan ApiV2010Participant, errorChannel chan error) { curRecord := 1 for response != nil { @@ -720,7 +720,7 @@ func (c *ApiService) streamParticipant(response *ListParticipant200Response, par } } - record, err := client.GetNext(c.baseURL, response, c.getNextListParticipant200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListParticipantResponse) if err != nil { errorChannel <- err break @@ -728,14 +728,14 @@ func (c *ApiService) streamParticipant(response *ListParticipant200Response, par break } - response = record.(*ListParticipant200Response) + response = record.(*ListParticipantResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListParticipant200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListParticipantResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -746,7 +746,7 @@ func (c *ApiService) getNextListParticipant200Response(nextPageUrl string) (inte defer resp.Body.Close() - ps := &ListParticipant200Response{} + ps := &ListParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_conferences_recordings.go b/rest/api/v2010/accounts_conferences_recordings.go index 3435592a4..4d0783ea1 100644 --- a/rest/api/v2010/accounts_conferences_recordings.go +++ b/rest/api/v2010/accounts_conferences_recordings.go @@ -140,7 +140,7 @@ func (params *ListConferenceRecordingParams) SetLimit(Limit int) *ListConference } // Retrieve a single page of ConferenceRecording records from the API. Request is executed immediately. -func (c *ApiService) PageConferenceRecording(ConferenceSid string, params *ListConferenceRecordingParams, pageToken, pageNumber string) (*ListConferenceRecording200Response, error) { +func (c *ApiService) PageConferenceRecording(ConferenceSid string, params *ListConferenceRecordingParams, pageToken, pageNumber string) (*ListConferenceRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { @@ -180,7 +180,7 @@ func (c *ApiService) PageConferenceRecording(ConferenceSid string, params *ListC defer resp.Body.Close() - ps := &ListConferenceRecording200Response{} + ps := &ListConferenceRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -226,7 +226,7 @@ func (c *ApiService) StreamConferenceRecording(ConferenceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamConferenceRecording(response *ListConferenceRecording200Response, params *ListConferenceRecordingParams, recordChannel chan ApiV2010ConferenceRecording, errorChannel chan error) { +func (c *ApiService) streamConferenceRecording(response *ListConferenceRecordingResponse, params *ListConferenceRecordingParams, recordChannel chan ApiV2010ConferenceRecording, errorChannel chan error) { curRecord := 1 for response != nil { @@ -241,7 +241,7 @@ func (c *ApiService) streamConferenceRecording(response *ListConferenceRecording } } - record, err := client.GetNext(c.baseURL, response, c.getNextListConferenceRecording200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListConferenceRecordingResponse) if err != nil { errorChannel <- err break @@ -249,14 +249,14 @@ func (c *ApiService) streamConferenceRecording(response *ListConferenceRecording break } - response = record.(*ListConferenceRecording200Response) + response = record.(*ListConferenceRecordingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListConferenceRecording200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListConferenceRecordingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -267,7 +267,7 @@ func (c *ApiService) getNextListConferenceRecording200Response(nextPageUrl strin defer resp.Body.Close() - ps := &ListConferenceRecording200Response{} + ps := &ListConferenceRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_connect_apps.go b/rest/api/v2010/accounts_connect_apps.go index 00dd664a8..f37ece34c 100644 --- a/rest/api/v2010/accounts_connect_apps.go +++ b/rest/api/v2010/accounts_connect_apps.go @@ -120,7 +120,7 @@ func (params *ListConnectAppParams) SetLimit(Limit int) *ListConnectAppParams { } // Retrieve a single page of ConnectApp records from the API. Request is executed immediately. -func (c *ApiService) PageConnectApp(params *ListConnectAppParams, pageToken, pageNumber string) (*ListConnectApp200Response, error) { +func (c *ApiService) PageConnectApp(params *ListConnectAppParams, pageToken, pageNumber string) (*ListConnectAppResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" if params != nil && params.PathAccountSid != nil { @@ -150,7 +150,7 @@ func (c *ApiService) PageConnectApp(params *ListConnectAppParams, pageToken, pag defer resp.Body.Close() - ps := &ListConnectApp200Response{} + ps := &ListConnectAppResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -196,7 +196,7 @@ func (c *ApiService) StreamConnectApp(params *ListConnectAppParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamConnectApp(response *ListConnectApp200Response, params *ListConnectAppParams, recordChannel chan ApiV2010ConnectApp, errorChannel chan error) { +func (c *ApiService) streamConnectApp(response *ListConnectAppResponse, params *ListConnectAppParams, recordChannel chan ApiV2010ConnectApp, errorChannel chan error) { curRecord := 1 for response != nil { @@ -211,7 +211,7 @@ func (c *ApiService) streamConnectApp(response *ListConnectApp200Response, param } } - record, err := client.GetNext(c.baseURL, response, c.getNextListConnectApp200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListConnectAppResponse) if err != nil { errorChannel <- err break @@ -219,14 +219,14 @@ func (c *ApiService) streamConnectApp(response *ListConnectApp200Response, param break } - response = record.(*ListConnectApp200Response) + response = record.(*ListConnectAppResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListConnectApp200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListConnectAppResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -237,7 +237,7 @@ func (c *ApiService) getNextListConnectApp200Response(nextPageUrl string) (inter defer resp.Body.Close() - ps := &ListConnectApp200Response{} + ps := &ListConnectAppResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_incoming_phone_numbers.go b/rest/api/v2010/accounts_incoming_phone_numbers.go index b27a2adf3..a97f6e225 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers.go @@ -399,7 +399,7 @@ func (params *ListIncomingPhoneNumberParams) SetLimit(Limit int) *ListIncomingPh } // Retrieve a single page of IncomingPhoneNumber records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumber(params *ListIncomingPhoneNumberParams, pageToken, pageNumber string) (*ListIncomingPhoneNumber200Response, error) { +func (c *ApiService) PageIncomingPhoneNumber(params *ListIncomingPhoneNumberParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -441,7 +441,7 @@ func (c *ApiService) PageIncomingPhoneNumber(params *ListIncomingPhoneNumberPara defer resp.Body.Close() - ps := &ListIncomingPhoneNumber200Response{} + ps := &ListIncomingPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -487,7 +487,7 @@ func (c *ApiService) StreamIncomingPhoneNumber(params *ListIncomingPhoneNumberPa return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumber200Response, params *ListIncomingPhoneNumberParams, recordChannel chan ApiV2010IncomingPhoneNumber, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumberResponse, params *ListIncomingPhoneNumberParams, recordChannel chan ApiV2010IncomingPhoneNumber, errorChannel chan error) { curRecord := 1 for response != nil { @@ -502,7 +502,7 @@ func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumber } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumber200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberResponse) if err != nil { errorChannel <- err break @@ -510,14 +510,14 @@ func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumber break } - response = record.(*ListIncomingPhoneNumber200Response) + response = record.(*ListIncomingPhoneNumberResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumber200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -528,7 +528,7 @@ func (c *ApiService) getNextListIncomingPhoneNumber200Response(nextPageUrl strin defer resp.Body.Close() - ps := &ListIncomingPhoneNumber200Response{} + ps := &ListIncomingPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go index ba236308e..c6ccd00d5 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons.go @@ -171,7 +171,7 @@ func (params *ListIncomingPhoneNumberAssignedAddOnParams) SetLimit(Limit int) *L } // Retrieve a single page of IncomingPhoneNumberAssignedAddOn records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOn200Response, error) { +func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOnResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" if params != nil && params.PathAccountSid != nil { @@ -202,7 +202,7 @@ func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn(ResourceSid string, pa defer resp.Body.Close() - ps := &ListIncomingPhoneNumberAssignedAddOn200Response{} + ps := &ListIncomingPhoneNumberAssignedAddOnResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -248,7 +248,7 @@ func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOn(ResourceSid string, return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomingPhoneNumberAssignedAddOn200Response, params *ListIncomingPhoneNumberAssignedAddOnParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOn, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomingPhoneNumberAssignedAddOnResponse, params *ListIncomingPhoneNumberAssignedAddOnParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOn, errorChannel chan error) { curRecord := 1 for response != nil { @@ -263,7 +263,7 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomi } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOn200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOnResponse) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomi break } - response = record.(*ListIncomingPhoneNumberAssignedAddOn200Response) + response = record.(*ListIncomingPhoneNumberAssignedAddOnResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOn200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOn200Response(next defer resp.Body.Close() - ps := &ListIncomingPhoneNumberAssignedAddOn200Response{} + ps := &ListIncomingPhoneNumberAssignedAddOnResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go index 091cb92d5..981b2137a 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_assigned_add_ons_extensions.go @@ -88,7 +88,7 @@ func (params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) SetLimit(Limi } // Retrieve a single page of IncomingPhoneNumberAssignedAddOnExtension records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOnExtension200Response, error) { +func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOnExtensionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" if params != nil && params.PathAccountSid != nil { @@ -120,7 +120,7 @@ func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension(ResourceSid s defer resp.Body.Close() - ps := &ListIncomingPhoneNumberAssignedAddOnExtension200Response{} + ps := &ListIncomingPhoneNumberAssignedAddOnExtensionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -166,7 +166,7 @@ func (c *ApiService) StreamIncomingPhoneNumberAssignedAddOnExtension(ResourceSid return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *ListIncomingPhoneNumberAssignedAddOnExtension200Response, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *ListIncomingPhoneNumberAssignedAddOnExtensionResponse, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, errorChannel chan error) { curRecord := 1 for response != nil { @@ -181,7 +181,7 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *L } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOnExtension200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOnExtensionResponse) if err != nil { errorChannel <- err break @@ -189,14 +189,14 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *L break } - response = record.(*ListIncomingPhoneNumberAssignedAddOnExtension200Response) + response = record.(*ListIncomingPhoneNumberAssignedAddOnExtensionResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnExtension200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnExtensionResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -207,7 +207,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnExtension200Resp defer resp.Body.Close() - ps := &ListIncomingPhoneNumberAssignedAddOnExtension200Response{} + ps := &ListIncomingPhoneNumberAssignedAddOnExtensionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_local.go b/rest/api/v2010/accounts_incoming_phone_numbers_local.go index f71fd4a8f..5fed5385d 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_local.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_local.go @@ -316,7 +316,7 @@ func (params *ListIncomingPhoneNumberLocalParams) SetLimit(Limit int) *ListIncom } // Retrieve a single page of IncomingPhoneNumberLocal records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberLocal(params *ListIncomingPhoneNumberLocalParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberLocal200Response, error) { +func (c *ApiService) PageIncomingPhoneNumberLocal(params *ListIncomingPhoneNumberLocalParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberLocalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" if params != nil && params.PathAccountSid != nil { @@ -358,7 +358,7 @@ func (c *ApiService) PageIncomingPhoneNumberLocal(params *ListIncomingPhoneNumbe defer resp.Body.Close() - ps := &ListIncomingPhoneNumberLocal200Response{} + ps := &ListIncomingPhoneNumberLocalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -404,7 +404,7 @@ func (c *ApiService) StreamIncomingPhoneNumberLocal(params *ListIncomingPhoneNum return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneNumberLocal200Response, params *ListIncomingPhoneNumberLocalParams, recordChannel chan ApiV2010IncomingPhoneNumberLocal, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneNumberLocalResponse, params *ListIncomingPhoneNumberLocalParams, recordChannel chan ApiV2010IncomingPhoneNumberLocal, errorChannel chan error) { curRecord := 1 for response != nil { @@ -419,7 +419,7 @@ func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneN } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberLocal200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberLocalResponse) if err != nil { errorChannel <- err break @@ -427,14 +427,14 @@ func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneN break } - response = record.(*ListIncomingPhoneNumberLocal200Response) + response = record.(*ListIncomingPhoneNumberLocalResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberLocal200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberLocalResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -445,7 +445,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberLocal200Response(nextPageUrl defer resp.Body.Close() - ps := &ListIncomingPhoneNumberLocal200Response{} + ps := &ListIncomingPhoneNumberLocalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go index e81845799..e48fae0a7 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go @@ -316,7 +316,7 @@ func (params *ListIncomingPhoneNumberMobileParams) SetLimit(Limit int) *ListInco } // Retrieve a single page of IncomingPhoneNumberMobile records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberMobile(params *ListIncomingPhoneNumberMobileParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberMobile200Response, error) { +func (c *ApiService) PageIncomingPhoneNumberMobile(params *ListIncomingPhoneNumberMobileParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberMobileResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -358,7 +358,7 @@ func (c *ApiService) PageIncomingPhoneNumberMobile(params *ListIncomingPhoneNumb defer resp.Body.Close() - ps := &ListIncomingPhoneNumberMobile200Response{} + ps := &ListIncomingPhoneNumberMobileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -404,7 +404,7 @@ func (c *ApiService) StreamIncomingPhoneNumberMobile(params *ListIncomingPhoneNu return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhoneNumberMobile200Response, params *ListIncomingPhoneNumberMobileParams, recordChannel chan ApiV2010IncomingPhoneNumberMobile, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhoneNumberMobileResponse, params *ListIncomingPhoneNumberMobileParams, recordChannel chan ApiV2010IncomingPhoneNumberMobile, errorChannel chan error) { curRecord := 1 for response != nil { @@ -419,7 +419,7 @@ func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhone } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberMobile200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberMobileResponse) if err != nil { errorChannel <- err break @@ -427,14 +427,14 @@ func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhone break } - response = record.(*ListIncomingPhoneNumberMobile200Response) + response = record.(*ListIncomingPhoneNumberMobileResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberMobile200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberMobileResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -445,7 +445,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberMobile200Response(nextPageUrl defer resp.Body.Close() - ps := &ListIncomingPhoneNumberMobile200Response{} + ps := &ListIncomingPhoneNumberMobileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go index f1c47b086..666783f9a 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go @@ -316,7 +316,7 @@ func (params *ListIncomingPhoneNumberTollFreeParams) SetLimit(Limit int) *ListIn } // Retrieve a single page of IncomingPhoneNumberTollFree records from the API. Request is executed immediately. -func (c *ApiService) PageIncomingPhoneNumberTollFree(params *ListIncomingPhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberTollFree200Response, error) { +func (c *ApiService) PageIncomingPhoneNumberTollFree(params *ListIncomingPhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberTollFreeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -358,7 +358,7 @@ func (c *ApiService) PageIncomingPhoneNumberTollFree(params *ListIncomingPhoneNu defer resp.Body.Close() - ps := &ListIncomingPhoneNumberTollFree200Response{} + ps := &ListIncomingPhoneNumberTollFreeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -404,7 +404,7 @@ func (c *ApiService) StreamIncomingPhoneNumberTollFree(params *ListIncomingPhone return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPhoneNumberTollFree200Response, params *ListIncomingPhoneNumberTollFreeParams, recordChannel chan ApiV2010IncomingPhoneNumberTollFree, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPhoneNumberTollFreeResponse, params *ListIncomingPhoneNumberTollFreeParams, recordChannel chan ApiV2010IncomingPhoneNumberTollFree, errorChannel chan error) { curRecord := 1 for response != nil { @@ -419,7 +419,7 @@ func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPho } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberTollFree200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberTollFreeResponse) if err != nil { errorChannel <- err break @@ -427,14 +427,14 @@ func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPho break } - response = record.(*ListIncomingPhoneNumberTollFree200Response) + response = record.(*ListIncomingPhoneNumberTollFreeResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberTollFree200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberTollFreeResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -445,7 +445,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberTollFree200Response(nextPageU defer resp.Body.Close() - ps := &ListIncomingPhoneNumberTollFree200Response{} + ps := &ListIncomingPhoneNumberTollFreeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_keys.go b/rest/api/v2010/accounts_keys.go index f8b879219..156176111 100644 --- a/rest/api/v2010/accounts_keys.go +++ b/rest/api/v2010/accounts_keys.go @@ -165,7 +165,7 @@ func (params *ListKeyParams) SetLimit(Limit int) *ListKeyParams { } // Retrieve a single page of Key records from the API. Request is executed immediately. -func (c *ApiService) PageKey(params *ListKeyParams, pageToken, pageNumber string) (*ListKey200Response, error) { +func (c *ApiService) PageKey(params *ListKeyParams, pageToken, pageNumber string) (*ListKeyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" if params != nil && params.PathAccountSid != nil { @@ -195,7 +195,7 @@ func (c *ApiService) PageKey(params *ListKeyParams, pageToken, pageNumber string defer resp.Body.Close() - ps := &ListKey200Response{} + ps := &ListKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -241,7 +241,7 @@ func (c *ApiService) StreamKey(params *ListKeyParams) (chan ApiV2010Key, chan er return recordChannel, errorChannel } -func (c *ApiService) streamKey(response *ListKey200Response, params *ListKeyParams, recordChannel chan ApiV2010Key, errorChannel chan error) { +func (c *ApiService) streamKey(response *ListKeyResponse, params *ListKeyParams, recordChannel chan ApiV2010Key, errorChannel chan error) { curRecord := 1 for response != nil { @@ -256,7 +256,7 @@ func (c *ApiService) streamKey(response *ListKey200Response, params *ListKeyPara } } - record, err := client.GetNext(c.baseURL, response, c.getNextListKey200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListKeyResponse) if err != nil { errorChannel <- err break @@ -264,14 +264,14 @@ func (c *ApiService) streamKey(response *ListKey200Response, params *ListKeyPara break } - response = record.(*ListKey200Response) + response = record.(*ListKeyResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListKey200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListKeyResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -282,7 +282,7 @@ func (c *ApiService) getNextListKey200Response(nextPageUrl string) (interface{}, defer resp.Body.Close() - ps := &ListKey200Response{} + ps := &ListKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index 51f6f01d3..c020d9cc4 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -357,6 +357,10 @@ type ListMessageParams struct { From *string `json:"From,omitempty"` // Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). DateSent *time.Time `json:"DateSent,omitempty"` + // Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). + DateSentBefore *time.Time `json:"DateSent<,omitempty"` + // Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). + DateSentAfter *time.Time `json:"DateSent>,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. @@ -379,6 +383,14 @@ func (params *ListMessageParams) SetDateSent(DateSent time.Time) *ListMessagePar params.DateSent = &DateSent return params } +func (params *ListMessageParams) SetDateSentBefore(DateSentBefore time.Time) *ListMessageParams { + params.DateSentBefore = &DateSentBefore + return params +} +func (params *ListMessageParams) SetDateSentAfter(DateSentAfter time.Time) *ListMessageParams { + params.DateSentAfter = &DateSentAfter + return params +} func (params *ListMessageParams) SetPageSize(PageSize int) *ListMessageParams { params.PageSize = &PageSize return params @@ -389,7 +401,7 @@ func (params *ListMessageParams) SetLimit(Limit int) *ListMessageParams { } // Retrieve a single page of Message records from the API. Request is executed immediately. -func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumber string) (*ListMessage200Response, error) { +func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumber string) (*ListMessageResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" if params != nil && params.PathAccountSid != nil { @@ -410,6 +422,12 @@ func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumbe if params != nil && params.DateSent != nil { data.Set("DateSent", fmt.Sprint((*params.DateSent).Format(time.RFC3339))) } + if params != nil && params.DateSentBefore != nil { + data.Set("DateSent<", fmt.Sprint((*params.DateSentBefore).Format(time.RFC3339))) + } + if params != nil && params.DateSentAfter != nil { + data.Set("DateSent>", fmt.Sprint((*params.DateSentAfter).Format(time.RFC3339))) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -428,7 +446,7 @@ func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumbe defer resp.Body.Close() - ps := &ListMessage200Response{} + ps := &ListMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -474,7 +492,7 @@ func (c *ApiService) StreamMessage(params *ListMessageParams) (chan ApiV2010Mess return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessage200Response, params *ListMessageParams, recordChannel chan ApiV2010Message, errorChannel chan error) { +func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ApiV2010Message, errorChannel chan error) { curRecord := 1 for response != nil { @@ -489,7 +507,7 @@ func (c *ApiService) streamMessage(response *ListMessage200Response, params *Lis } } - record, err := client.GetNext(c.baseURL, response, c.getNextListMessage200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListMessageResponse) if err != nil { errorChannel <- err break @@ -497,14 +515,14 @@ func (c *ApiService) streamMessage(response *ListMessage200Response, params *Lis break } - response = record.(*ListMessage200Response) + response = record.(*ListMessageResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListMessage200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListMessageResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -515,7 +533,7 @@ func (c *ApiService) getNextListMessage200Response(nextPageUrl string) (interfac defer resp.Body.Close() - ps := &ListMessage200Response{} + ps := &ListMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_messages_media.go b/rest/api/v2010/accounts_messages_media.go index 51218b382..4f0f81578 100644 --- a/rest/api/v2010/accounts_messages_media.go +++ b/rest/api/v2010/accounts_messages_media.go @@ -141,7 +141,7 @@ func (params *ListMediaParams) SetLimit(Limit int) *ListMediaParams { } // Retrieve a single page of Media records from the API. Request is executed immediately. -func (c *ApiService) PageMedia(MessageSid string, params *ListMediaParams, pageToken, pageNumber string) (*ListMedia200Response, error) { +func (c *ApiService) PageMedia(MessageSid string, params *ListMediaParams, pageToken, pageNumber string) (*ListMediaResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" if params != nil && params.PathAccountSid != nil { @@ -181,7 +181,7 @@ func (c *ApiService) PageMedia(MessageSid string, params *ListMediaParams, pageT defer resp.Body.Close() - ps := &ListMedia200Response{} + ps := &ListMediaResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -227,7 +227,7 @@ func (c *ApiService) StreamMedia(MessageSid string, params *ListMediaParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamMedia(response *ListMedia200Response, params *ListMediaParams, recordChannel chan ApiV2010Media, errorChannel chan error) { +func (c *ApiService) streamMedia(response *ListMediaResponse, params *ListMediaParams, recordChannel chan ApiV2010Media, errorChannel chan error) { curRecord := 1 for response != nil { @@ -242,7 +242,7 @@ func (c *ApiService) streamMedia(response *ListMedia200Response, params *ListMed } } - record, err := client.GetNext(c.baseURL, response, c.getNextListMedia200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListMediaResponse) if err != nil { errorChannel <- err break @@ -250,14 +250,14 @@ func (c *ApiService) streamMedia(response *ListMedia200Response, params *ListMed break } - response = record.(*ListMedia200Response) + response = record.(*ListMediaResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListMedia200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListMediaResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -268,7 +268,7 @@ func (c *ApiService) getNextListMedia200Response(nextPageUrl string) (interface{ defer resp.Body.Close() - ps := &ListMedia200Response{} + ps := &ListMediaResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_notifications.go b/rest/api/v2010/accounts_notifications.go index b220a3ebf..4151a7021 100644 --- a/rest/api/v2010/accounts_notifications.go +++ b/rest/api/v2010/accounts_notifications.go @@ -110,7 +110,7 @@ func (params *ListNotificationParams) SetLimit(Limit int) *ListNotificationParam } // Retrieve a single page of Notification records from the API. Request is executed immediately. -func (c *ApiService) PageNotification(params *ListNotificationParams, pageToken, pageNumber string) (*ListNotification200Response, error) { +func (c *ApiService) PageNotification(params *ListNotificationParams, pageToken, pageNumber string) (*ListNotificationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" if params != nil && params.PathAccountSid != nil { @@ -152,7 +152,7 @@ func (c *ApiService) PageNotification(params *ListNotificationParams, pageToken, defer resp.Body.Close() - ps := &ListNotification200Response{} + ps := &ListNotificationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -198,7 +198,7 @@ func (c *ApiService) StreamNotification(params *ListNotificationParams) (chan Ap return recordChannel, errorChannel } -func (c *ApiService) streamNotification(response *ListNotification200Response, params *ListNotificationParams, recordChannel chan ApiV2010Notification, errorChannel chan error) { +func (c *ApiService) streamNotification(response *ListNotificationResponse, params *ListNotificationParams, recordChannel chan ApiV2010Notification, errorChannel chan error) { curRecord := 1 for response != nil { @@ -213,7 +213,7 @@ func (c *ApiService) streamNotification(response *ListNotification200Response, p } } - record, err := client.GetNext(c.baseURL, response, c.getNextListNotification200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListNotificationResponse) if err != nil { errorChannel <- err break @@ -221,14 +221,14 @@ func (c *ApiService) streamNotification(response *ListNotification200Response, p break } - response = record.(*ListNotification200Response) + response = record.(*ListNotificationResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListNotification200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListNotificationResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -239,7 +239,7 @@ func (c *ApiService) getNextListNotification200Response(nextPageUrl string) (int defer resp.Body.Close() - ps := &ListNotification200Response{} + ps := &ListNotificationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_outgoing_caller_ids.go b/rest/api/v2010/accounts_outgoing_caller_ids.go index e4f72ff11..f972c9d9d 100644 --- a/rest/api/v2010/accounts_outgoing_caller_ids.go +++ b/rest/api/v2010/accounts_outgoing_caller_ids.go @@ -224,7 +224,7 @@ func (params *ListOutgoingCallerIdParams) SetLimit(Limit int) *ListOutgoingCalle } // Retrieve a single page of OutgoingCallerId records from the API. Request is executed immediately. -func (c *ApiService) PageOutgoingCallerId(params *ListOutgoingCallerIdParams, pageToken, pageNumber string) (*ListOutgoingCallerId200Response, error) { +func (c *ApiService) PageOutgoingCallerId(params *ListOutgoingCallerIdParams, pageToken, pageNumber string) (*ListOutgoingCallerIdResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" if params != nil && params.PathAccountSid != nil { @@ -260,7 +260,7 @@ func (c *ApiService) PageOutgoingCallerId(params *ListOutgoingCallerIdParams, pa defer resp.Body.Close() - ps := &ListOutgoingCallerId200Response{} + ps := &ListOutgoingCallerIdResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -306,7 +306,7 @@ func (c *ApiService) StreamOutgoingCallerId(params *ListOutgoingCallerIdParams) return recordChannel, errorChannel } -func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerId200Response, params *ListOutgoingCallerIdParams, recordChannel chan ApiV2010OutgoingCallerId, errorChannel chan error) { +func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerIdResponse, params *ListOutgoingCallerIdParams, recordChannel chan ApiV2010OutgoingCallerId, errorChannel chan error) { curRecord := 1 for response != nil { @@ -321,7 +321,7 @@ func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerId200Res } } - record, err := client.GetNext(c.baseURL, response, c.getNextListOutgoingCallerId200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListOutgoingCallerIdResponse) if err != nil { errorChannel <- err break @@ -329,14 +329,14 @@ func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerId200Res break } - response = record.(*ListOutgoingCallerId200Response) + response = record.(*ListOutgoingCallerIdResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListOutgoingCallerId200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListOutgoingCallerIdResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -347,7 +347,7 @@ func (c *ApiService) getNextListOutgoingCallerId200Response(nextPageUrl string) defer resp.Body.Close() - ps := &ListOutgoingCallerId200Response{} + ps := &ListOutgoingCallerIdResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_queues.go b/rest/api/v2010/accounts_queues.go index aa45e0e86..9f6c3e7b2 100644 --- a/rest/api/v2010/accounts_queues.go +++ b/rest/api/v2010/accounts_queues.go @@ -177,7 +177,7 @@ func (params *ListQueueParams) SetLimit(Limit int) *ListQueueParams { } // Retrieve a single page of Queue records from the API. Request is executed immediately. -func (c *ApiService) PageQueue(params *ListQueueParams, pageToken, pageNumber string) (*ListQueue200Response, error) { +func (c *ApiService) PageQueue(params *ListQueueParams, pageToken, pageNumber string) (*ListQueueResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" if params != nil && params.PathAccountSid != nil { @@ -207,7 +207,7 @@ func (c *ApiService) PageQueue(params *ListQueueParams, pageToken, pageNumber st defer resp.Body.Close() - ps := &ListQueue200Response{} + ps := &ListQueueResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -253,7 +253,7 @@ func (c *ApiService) StreamQueue(params *ListQueueParams) (chan ApiV2010Queue, c return recordChannel, errorChannel } -func (c *ApiService) streamQueue(response *ListQueue200Response, params *ListQueueParams, recordChannel chan ApiV2010Queue, errorChannel chan error) { +func (c *ApiService) streamQueue(response *ListQueueResponse, params *ListQueueParams, recordChannel chan ApiV2010Queue, errorChannel chan error) { curRecord := 1 for response != nil { @@ -268,7 +268,7 @@ func (c *ApiService) streamQueue(response *ListQueue200Response, params *ListQue } } - record, err := client.GetNext(c.baseURL, response, c.getNextListQueue200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListQueueResponse) if err != nil { errorChannel <- err break @@ -276,14 +276,14 @@ func (c *ApiService) streamQueue(response *ListQueue200Response, params *ListQue break } - response = record.(*ListQueue200Response) + response = record.(*ListQueueResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListQueue200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListQueueResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -294,7 +294,7 @@ func (c *ApiService) getNextListQueue200Response(nextPageUrl string) (interface{ defer resp.Body.Close() - ps := &ListQueue200Response{} + ps := &ListQueueResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_queues_members.go b/rest/api/v2010/accounts_queues_members.go index 1fa85e954..93a3f0b24 100644 --- a/rest/api/v2010/accounts_queues_members.go +++ b/rest/api/v2010/accounts_queues_members.go @@ -87,7 +87,7 @@ func (params *ListMemberParams) SetLimit(Limit int) *ListMemberParams { } // Retrieve a single page of Member records from the API. Request is executed immediately. -func (c *ApiService) PageMember(QueueSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMember200Response, error) { +func (c *ApiService) PageMember(QueueSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMemberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" if params != nil && params.PathAccountSid != nil { @@ -118,7 +118,7 @@ func (c *ApiService) PageMember(QueueSid string, params *ListMemberParams, pageT defer resp.Body.Close() - ps := &ListMember200Response{} + ps := &ListMemberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -164,7 +164,7 @@ func (c *ApiService) StreamMember(QueueSid string, params *ListMemberParams) (ch return recordChannel, errorChannel } -func (c *ApiService) streamMember(response *ListMember200Response, params *ListMemberParams, recordChannel chan ApiV2010Member, errorChannel chan error) { +func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemberParams, recordChannel chan ApiV2010Member, errorChannel chan error) { curRecord := 1 for response != nil { @@ -179,7 +179,7 @@ func (c *ApiService) streamMember(response *ListMember200Response, params *ListM } } - record, err := client.GetNext(c.baseURL, response, c.getNextListMember200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListMemberResponse) if err != nil { errorChannel <- err break @@ -187,14 +187,14 @@ func (c *ApiService) streamMember(response *ListMember200Response, params *ListM break } - response = record.(*ListMember200Response) + response = record.(*ListMemberResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListMember200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListMemberResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -205,7 +205,7 @@ func (c *ApiService) getNextListMember200Response(nextPageUrl string) (interface defer resp.Body.Close() - ps := &ListMember200Response{} + ps := &ListMemberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_recordings.go b/rest/api/v2010/accounts_recordings.go index 402ef3958..cae717617 100644 --- a/rest/api/v2010/accounts_recordings.go +++ b/rest/api/v2010/accounts_recordings.go @@ -167,7 +167,7 @@ func (params *ListRecordingParams) SetLimit(Limit int) *ListRecordingParams { } // Retrieve a single page of Recording records from the API. Request is executed immediately. -func (c *ApiService) PageRecording(params *ListRecordingParams, pageToken, pageNumber string) (*ListRecording200Response, error) { +func (c *ApiService) PageRecording(params *ListRecordingParams, pageToken, pageNumber string) (*ListRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" if params != nil && params.PathAccountSid != nil { @@ -215,7 +215,7 @@ func (c *ApiService) PageRecording(params *ListRecordingParams, pageToken, pageN defer resp.Body.Close() - ps := &ListRecording200Response{} + ps := &ListRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -261,7 +261,7 @@ func (c *ApiService) StreamRecording(params *ListRecordingParams) (chan ApiV2010 return recordChannel, errorChannel } -func (c *ApiService) streamRecording(response *ListRecording200Response, params *ListRecordingParams, recordChannel chan ApiV2010Recording, errorChannel chan error) { +func (c *ApiService) streamRecording(response *ListRecordingResponse, params *ListRecordingParams, recordChannel chan ApiV2010Recording, errorChannel chan error) { curRecord := 1 for response != nil { @@ -276,7 +276,7 @@ func (c *ApiService) streamRecording(response *ListRecording200Response, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListRecording200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingResponse) if err != nil { errorChannel <- err break @@ -284,14 +284,14 @@ func (c *ApiService) streamRecording(response *ListRecording200Response, params break } - response = record.(*ListRecording200Response) + response = record.(*ListRecordingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecording200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -302,7 +302,7 @@ func (c *ApiService) getNextListRecording200Response(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListRecording200Response{} + ps := &ListRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_recordings_add_on_results.go b/rest/api/v2010/accounts_recordings_add_on_results.go index d2249309a..69857f08e 100644 --- a/rest/api/v2010/accounts_recordings_add_on_results.go +++ b/rest/api/v2010/accounts_recordings_add_on_results.go @@ -122,7 +122,7 @@ func (params *ListRecordingAddOnResultParams) SetLimit(Limit int) *ListRecording } // Retrieve a single page of RecordingAddOnResult records from the API. Request is executed immediately. -func (c *ApiService) PageRecordingAddOnResult(ReferenceSid string, params *ListRecordingAddOnResultParams, pageToken, pageNumber string) (*ListRecordingAddOnResult200Response, error) { +func (c *ApiService) PageRecordingAddOnResult(ReferenceSid string, params *ListRecordingAddOnResultParams, pageToken, pageNumber string) (*ListRecordingAddOnResultResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" if params != nil && params.PathAccountSid != nil { @@ -153,7 +153,7 @@ func (c *ApiService) PageRecordingAddOnResult(ReferenceSid string, params *ListR defer resp.Body.Close() - ps := &ListRecordingAddOnResult200Response{} + ps := &ListRecordingAddOnResultResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -199,7 +199,7 @@ func (c *ApiService) StreamRecordingAddOnResult(ReferenceSid string, params *Lis return recordChannel, errorChannel } -func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResult200Response, params *ListRecordingAddOnResultParams, recordChannel chan ApiV2010RecordingAddOnResult, errorChannel chan error) { +func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResultResponse, params *ListRecordingAddOnResultParams, recordChannel chan ApiV2010RecordingAddOnResult, errorChannel chan error) { curRecord := 1 for response != nil { @@ -214,7 +214,7 @@ func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResu } } - record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingAddOnResult200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingAddOnResultResponse) if err != nil { errorChannel <- err break @@ -222,14 +222,14 @@ func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResu break } - response = record.(*ListRecordingAddOnResult200Response) + response = record.(*ListRecordingAddOnResultResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingAddOnResult200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingAddOnResultResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -240,7 +240,7 @@ func (c *ApiService) getNextListRecordingAddOnResult200Response(nextPageUrl stri defer resp.Body.Close() - ps := &ListRecordingAddOnResult200Response{} + ps := &ListRecordingAddOnResultResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_recordings_add_on_results_payloads.go b/rest/api/v2010/accounts_recordings_add_on_results_payloads.go index ccaa2141d..e9738d49a 100644 --- a/rest/api/v2010/accounts_recordings_add_on_results_payloads.go +++ b/rest/api/v2010/accounts_recordings_add_on_results_payloads.go @@ -124,7 +124,7 @@ func (params *ListRecordingAddOnResultPayloadParams) SetLimit(Limit int) *ListRe } // Retrieve a single page of RecordingAddOnResultPayload records from the API. Request is executed immediately. -func (c *ApiService) PageRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams, pageToken, pageNumber string) (*ListRecordingAddOnResultPayload200Response, error) { +func (c *ApiService) PageRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams, pageToken, pageNumber string) (*ListRecordingAddOnResultPayloadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" if params != nil && params.PathAccountSid != nil { @@ -156,7 +156,7 @@ func (c *ApiService) PageRecordingAddOnResultPayload(ReferenceSid string, AddOnR defer resp.Body.Close() - ps := &ListRecordingAddOnResultPayload200Response{} + ps := &ListRecordingAddOnResultPayloadResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -202,7 +202,7 @@ func (c *ApiService) StreamRecordingAddOnResultPayload(ReferenceSid string, AddO return recordChannel, errorChannel } -func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAddOnResultPayload200Response, params *ListRecordingAddOnResultPayloadParams, recordChannel chan ApiV2010RecordingAddOnResultPayload, errorChannel chan error) { +func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAddOnResultPayloadResponse, params *ListRecordingAddOnResultPayloadParams, recordChannel chan ApiV2010RecordingAddOnResultPayload, errorChannel chan error) { curRecord := 1 for response != nil { @@ -217,7 +217,7 @@ func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAd } } - record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingAddOnResultPayload200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingAddOnResultPayloadResponse) if err != nil { errorChannel <- err break @@ -225,14 +225,14 @@ func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAd break } - response = record.(*ListRecordingAddOnResultPayload200Response) + response = record.(*ListRecordingAddOnResultPayloadResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingAddOnResultPayload200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingAddOnResultPayloadResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -243,7 +243,7 @@ func (c *ApiService) getNextListRecordingAddOnResultPayload200Response(nextPageU defer resp.Body.Close() - ps := &ListRecordingAddOnResultPayload200Response{} + ps := &ListRecordingAddOnResultPayloadResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_recordings_transcriptions.go b/rest/api/v2010/accounts_recordings_transcriptions.go index ed0f23311..650aa38e2 100644 --- a/rest/api/v2010/accounts_recordings_transcriptions.go +++ b/rest/api/v2010/accounts_recordings_transcriptions.go @@ -120,7 +120,7 @@ func (params *ListRecordingTranscriptionParams) SetLimit(Limit int) *ListRecordi } // Retrieve a single page of RecordingTranscription records from the API. Request is executed immediately. -func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *ListRecordingTranscriptionParams, pageToken, pageNumber string) (*ListRecordingTranscription200Response, error) { +func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *ListRecordingTranscriptionParams, pageToken, pageNumber string) (*ListRecordingTranscriptionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" if params != nil && params.PathAccountSid != nil { @@ -151,7 +151,7 @@ func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *Lis defer resp.Body.Close() - ps := &ListRecordingTranscription200Response{} + ps := &ListRecordingTranscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -197,7 +197,7 @@ func (c *ApiService) StreamRecordingTranscription(RecordingSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscription200Response, params *ListRecordingTranscriptionParams, recordChannel chan ApiV2010RecordingTranscription, errorChannel chan error) { +func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscriptionResponse, params *ListRecordingTranscriptionParams, recordChannel chan ApiV2010RecordingTranscription, errorChannel chan error) { curRecord := 1 for response != nil { @@ -212,7 +212,7 @@ func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscr } } - record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingTranscription200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingTranscriptionResponse) if err != nil { errorChannel <- err break @@ -220,14 +220,14 @@ func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscr break } - response = record.(*ListRecordingTranscription200Response) + response = record.(*ListRecordingTranscriptionResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingTranscription200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingTranscriptionResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -238,7 +238,7 @@ func (c *ApiService) getNextListRecordingTranscription200Response(nextPageUrl st defer resp.Body.Close() - ps := &ListRecordingTranscription200Response{} + ps := &ListRecordingTranscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_signing_keys.go b/rest/api/v2010/accounts_signing_keys.go index d4acaf366..838c15834 100644 --- a/rest/api/v2010/accounts_signing_keys.go +++ b/rest/api/v2010/accounts_signing_keys.go @@ -166,7 +166,7 @@ func (params *ListSigningKeyParams) SetLimit(Limit int) *ListSigningKeyParams { } // Retrieve a single page of SigningKey records from the API. Request is executed immediately. -func (c *ApiService) PageSigningKey(params *ListSigningKeyParams, pageToken, pageNumber string) (*ListSigningKey200Response, error) { +func (c *ApiService) PageSigningKey(params *ListSigningKeyParams, pageToken, pageNumber string) (*ListSigningKeyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" if params != nil && params.PathAccountSid != nil { @@ -196,7 +196,7 @@ func (c *ApiService) PageSigningKey(params *ListSigningKeyParams, pageToken, pag defer resp.Body.Close() - ps := &ListSigningKey200Response{} + ps := &ListSigningKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -242,7 +242,7 @@ func (c *ApiService) StreamSigningKey(params *ListSigningKeyParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamSigningKey(response *ListSigningKey200Response, params *ListSigningKeyParams, recordChannel chan ApiV2010SigningKey, errorChannel chan error) { +func (c *ApiService) streamSigningKey(response *ListSigningKeyResponse, params *ListSigningKeyParams, recordChannel chan ApiV2010SigningKey, errorChannel chan error) { curRecord := 1 for response != nil { @@ -257,7 +257,7 @@ func (c *ApiService) streamSigningKey(response *ListSigningKey200Response, param } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSigningKey200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSigningKeyResponse) if err != nil { errorChannel <- err break @@ -265,14 +265,14 @@ func (c *ApiService) streamSigningKey(response *ListSigningKey200Response, param break } - response = record.(*ListSigningKey200Response) + response = record.(*ListSigningKeyResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSigningKey200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSigningKeyResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -283,7 +283,7 @@ func (c *ApiService) getNextListSigningKey200Response(nextPageUrl string) (inter defer resp.Body.Close() - ps := &ListSigningKey200Response{} + ps := &ListSigningKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_credential_lists.go b/rest/api/v2010/accounts_sip_credential_lists.go index e04804294..17a523bc0 100644 --- a/rest/api/v2010/accounts_sip_credential_lists.go +++ b/rest/api/v2010/accounts_sip_credential_lists.go @@ -168,7 +168,7 @@ func (params *ListSipCredentialListParams) SetLimit(Limit int) *ListSipCredentia } // Retrieve a single page of SipCredentialList records from the API. Request is executed immediately. -func (c *ApiService) PageSipCredentialList(params *ListSipCredentialListParams, pageToken, pageNumber string) (*ListSipCredentialList200Response, error) { +func (c *ApiService) PageSipCredentialList(params *ListSipCredentialListParams, pageToken, pageNumber string) (*ListSipCredentialListResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" if params != nil && params.PathAccountSid != nil { @@ -198,7 +198,7 @@ func (c *ApiService) PageSipCredentialList(params *ListSipCredentialListParams, defer resp.Body.Close() - ps := &ListSipCredentialList200Response{} + ps := &ListSipCredentialListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -244,7 +244,7 @@ func (c *ApiService) StreamSipCredentialList(params *ListSipCredentialListParams return recordChannel, errorChannel } -func (c *ApiService) streamSipCredentialList(response *ListSipCredentialList200Response, params *ListSipCredentialListParams, recordChannel chan ApiV2010SipCredentialList, errorChannel chan error) { +func (c *ApiService) streamSipCredentialList(response *ListSipCredentialListResponse, params *ListSipCredentialListParams, recordChannel chan ApiV2010SipCredentialList, errorChannel chan error) { curRecord := 1 for response != nil { @@ -259,7 +259,7 @@ func (c *ApiService) streamSipCredentialList(response *ListSipCredentialList200R } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialList200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialListResponse) if err != nil { errorChannel <- err break @@ -267,14 +267,14 @@ func (c *ApiService) streamSipCredentialList(response *ListSipCredentialList200R break } - response = record.(*ListSipCredentialList200Response) + response = record.(*ListSipCredentialListResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipCredentialList200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipCredentialListResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -285,7 +285,7 @@ func (c *ApiService) getNextListSipCredentialList200Response(nextPageUrl string) defer resp.Body.Close() - ps := &ListSipCredentialList200Response{} + ps := &ListSipCredentialListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_credential_lists_credentials.go b/rest/api/v2010/accounts_sip_credential_lists_credentials.go index 820238a34..e82f254f2 100644 --- a/rest/api/v2010/accounts_sip_credential_lists_credentials.go +++ b/rest/api/v2010/accounts_sip_credential_lists_credentials.go @@ -180,7 +180,7 @@ func (params *ListSipCredentialParams) SetLimit(Limit int) *ListSipCredentialPar } // Retrieve a single page of SipCredential records from the API. Request is executed immediately. -func (c *ApiService) PageSipCredential(CredentialListSid string, params *ListSipCredentialParams, pageToken, pageNumber string) (*ListSipCredential200Response, error) { +func (c *ApiService) PageSipCredential(CredentialListSid string, params *ListSipCredentialParams, pageToken, pageNumber string) (*ListSipCredentialResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" if params != nil && params.PathAccountSid != nil { @@ -211,7 +211,7 @@ func (c *ApiService) PageSipCredential(CredentialListSid string, params *ListSip defer resp.Body.Close() - ps := &ListSipCredential200Response{} + ps := &ListSipCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -257,7 +257,7 @@ func (c *ApiService) StreamSipCredential(CredentialListSid string, params *ListS return recordChannel, errorChannel } -func (c *ApiService) streamSipCredential(response *ListSipCredential200Response, params *ListSipCredentialParams, recordChannel chan ApiV2010SipCredential, errorChannel chan error) { +func (c *ApiService) streamSipCredential(response *ListSipCredentialResponse, params *ListSipCredentialParams, recordChannel chan ApiV2010SipCredential, errorChannel chan error) { curRecord := 1 for response != nil { @@ -272,7 +272,7 @@ func (c *ApiService) streamSipCredential(response *ListSipCredential200Response, } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredential200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialResponse) if err != nil { errorChannel <- err break @@ -280,14 +280,14 @@ func (c *ApiService) streamSipCredential(response *ListSipCredential200Response, break } - response = record.(*ListSipCredential200Response) + response = record.(*ListSipCredentialResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipCredential200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipCredentialResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -298,7 +298,7 @@ func (c *ApiService) getNextListSipCredential200Response(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListSipCredential200Response{} + ps := &ListSipCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_domains.go b/rest/api/v2010/accounts_sip_domains.go index afdeb0405..e0868c6f0 100644 --- a/rest/api/v2010/accounts_sip_domains.go +++ b/rest/api/v2010/accounts_sip_domains.go @@ -276,7 +276,7 @@ func (params *ListSipDomainParams) SetLimit(Limit int) *ListSipDomainParams { } // Retrieve a single page of SipDomain records from the API. Request is executed immediately. -func (c *ApiService) PageSipDomain(params *ListSipDomainParams, pageToken, pageNumber string) (*ListSipDomain200Response, error) { +func (c *ApiService) PageSipDomain(params *ListSipDomainParams, pageToken, pageNumber string) (*ListSipDomainResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" if params != nil && params.PathAccountSid != nil { @@ -306,7 +306,7 @@ func (c *ApiService) PageSipDomain(params *ListSipDomainParams, pageToken, pageN defer resp.Body.Close() - ps := &ListSipDomain200Response{} + ps := &ListSipDomainResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -352,7 +352,7 @@ func (c *ApiService) StreamSipDomain(params *ListSipDomainParams) (chan ApiV2010 return recordChannel, errorChannel } -func (c *ApiService) streamSipDomain(response *ListSipDomain200Response, params *ListSipDomainParams, recordChannel chan ApiV2010SipDomain, errorChannel chan error) { +func (c *ApiService) streamSipDomain(response *ListSipDomainResponse, params *ListSipDomainParams, recordChannel chan ApiV2010SipDomain, errorChannel chan error) { curRecord := 1 for response != nil { @@ -367,7 +367,7 @@ func (c *ApiService) streamSipDomain(response *ListSipDomain200Response, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipDomain200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipDomainResponse) if err != nil { errorChannel <- err break @@ -375,14 +375,14 @@ func (c *ApiService) streamSipDomain(response *ListSipDomain200Response, params break } - response = record.(*ListSipDomain200Response) + response = record.(*ListSipDomainResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipDomain200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipDomainResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -393,7 +393,7 @@ func (c *ApiService) getNextListSipDomain200Response(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListSipDomain200Response{} + ps := &ListSipDomainResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go b/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go index 41afecbd2..f3d34690e 100644 --- a/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_auth_calls_credential_list_mappings.go @@ -171,7 +171,7 @@ func (params *ListSipAuthCallsCredentialListMappingParams) SetLimit(Limit int) * } // Retrieve a single page of SipAuthCallsCredentialListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipAuthCallsCredentialListMapping(DomainSid string, params *ListSipAuthCallsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsCredentialListMapping200Response, error) { +func (c *ApiService) PageSipAuthCallsCredentialListMapping(DomainSid string, params *ListSipAuthCallsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -202,7 +202,7 @@ func (c *ApiService) PageSipAuthCallsCredentialListMapping(DomainSid string, par defer resp.Body.Close() - ps := &ListSipAuthCallsCredentialListMapping200Response{} + ps := &ListSipAuthCallsCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -248,7 +248,7 @@ func (c *ApiService) StreamSipAuthCallsCredentialListMapping(DomainSid string, p return recordChannel, errorChannel } -func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAuthCallsCredentialListMapping200Response, params *ListSipAuthCallsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthCallsCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAuthCallsCredentialListMappingResponse, params *ListSipAuthCallsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthCallsCredentialListMapping, errorChannel chan error) { curRecord := 1 for response != nil { @@ -263,7 +263,7 @@ func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAu } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthCallsCredentialListMapping200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthCallsCredentialListMappingResponse) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAu break } - response = record.(*ListSipAuthCallsCredentialListMapping200Response) + response = record.(*ListSipAuthCallsCredentialListMappingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipAuthCallsCredentialListMapping200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipAuthCallsCredentialListMappingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipAuthCallsCredentialListMapping200Response(nex defer resp.Body.Close() - ps := &ListSipAuthCallsCredentialListMapping200Response{} + ps := &ListSipAuthCallsCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go b/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go index f24f433c5..86daa24f0 100644 --- a/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_auth_calls_ip_access_control_list_mappings.go @@ -171,7 +171,7 @@ func (params *ListSipAuthCallsIpAccessControlListMappingParams) SetLimit(Limit i } // Retrieve a single page of SipAuthCallsIpAccessControlListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping(DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsIpAccessControlListMapping200Response, error) { +func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping(DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsIpAccessControlListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -202,7 +202,7 @@ func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping(DomainSid string defer resp.Body.Close() - ps := &ListSipAuthCallsIpAccessControlListMapping200Response{} + ps := &ListSipAuthCallsIpAccessControlListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -248,7 +248,7 @@ func (c *ApiService) StreamSipAuthCallsIpAccessControlListMapping(DomainSid stri return recordChannel, errorChannel } -func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *ListSipAuthCallsIpAccessControlListMapping200Response, params *ListSipAuthCallsIpAccessControlListMappingParams, recordChannel chan ApiV2010SipAuthCallsIpAccessControlListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *ListSipAuthCallsIpAccessControlListMappingResponse, params *ListSipAuthCallsIpAccessControlListMappingParams, recordChannel chan ApiV2010SipAuthCallsIpAccessControlListMapping, errorChannel chan error) { curRecord := 1 for response != nil { @@ -263,7 +263,7 @@ func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *List } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthCallsIpAccessControlListMapping200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthCallsIpAccessControlListMappingResponse) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *List break } - response = record.(*ListSipAuthCallsIpAccessControlListMapping200Response) + response = record.(*ListSipAuthCallsIpAccessControlListMappingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipAuthCallsIpAccessControlListMapping200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipAuthCallsIpAccessControlListMappingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipAuthCallsIpAccessControlListMapping200Respons defer resp.Body.Close() - ps := &ListSipAuthCallsIpAccessControlListMapping200Response{} + ps := &ListSipAuthCallsIpAccessControlListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go b/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go index 1069034f0..431e5099b 100644 --- a/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_auth_registrations_credential_list_mappings.go @@ -171,7 +171,7 @@ func (params *ListSipAuthRegistrationsCredentialListMappingParams) SetLimit(Limi } // Retrieve a single page of SipAuthRegistrationsCredentialListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping(DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthRegistrationsCredentialListMapping200Response, error) { +func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping(DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthRegistrationsCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -202,7 +202,7 @@ func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping(DomainSid str defer resp.Body.Close() - ps := &ListSipAuthRegistrationsCredentialListMapping200Response{} + ps := &ListSipAuthRegistrationsCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -248,7 +248,7 @@ func (c *ApiService) StreamSipAuthRegistrationsCredentialListMapping(DomainSid s return recordChannel, errorChannel } -func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *ListSipAuthRegistrationsCredentialListMapping200Response, params *ListSipAuthRegistrationsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthRegistrationsCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *ListSipAuthRegistrationsCredentialListMappingResponse, params *ListSipAuthRegistrationsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthRegistrationsCredentialListMapping, errorChannel chan error) { curRecord := 1 for response != nil { @@ -263,7 +263,7 @@ func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *L } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthRegistrationsCredentialListMapping200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthRegistrationsCredentialListMappingResponse) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *L break } - response = record.(*ListSipAuthRegistrationsCredentialListMapping200Response) + response = record.(*ListSipAuthRegistrationsCredentialListMappingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipAuthRegistrationsCredentialListMapping200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipAuthRegistrationsCredentialListMappingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipAuthRegistrationsCredentialListMapping200Resp defer resp.Body.Close() - ps := &ListSipAuthRegistrationsCredentialListMapping200Response{} + ps := &ListSipAuthRegistrationsCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go b/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go index 3b19534f1..09ac9162e 100644 --- a/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_credential_list_mappings.go @@ -171,7 +171,7 @@ func (params *ListSipCredentialListMappingParams) SetLimit(Limit int) *ListSipCr } // Retrieve a single page of SipCredentialListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipCredentialListMapping(DomainSid string, params *ListSipCredentialListMappingParams, pageToken, pageNumber string) (*ListSipCredentialListMapping200Response, error) { +func (c *ApiService) PageSipCredentialListMapping(DomainSid string, params *ListSipCredentialListMappingParams, pageToken, pageNumber string) (*ListSipCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -202,7 +202,7 @@ func (c *ApiService) PageSipCredentialListMapping(DomainSid string, params *List defer resp.Body.Close() - ps := &ListSipCredentialListMapping200Response{} + ps := &ListSipCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -248,7 +248,7 @@ func (c *ApiService) StreamSipCredentialListMapping(DomainSid string, params *Li return recordChannel, errorChannel } -func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialListMapping200Response, params *ListSipCredentialListMappingParams, recordChannel chan ApiV2010SipCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialListMappingResponse, params *ListSipCredentialListMappingParams, recordChannel chan ApiV2010SipCredentialListMapping, errorChannel chan error) { curRecord := 1 for response != nil { @@ -263,7 +263,7 @@ func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialL } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialListMapping200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialListMappingResponse) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialL break } - response = record.(*ListSipCredentialListMapping200Response) + response = record.(*ListSipCredentialListMappingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipCredentialListMapping200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipCredentialListMappingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipCredentialListMapping200Response(nextPageUrl defer resp.Body.Close() - ps := &ListSipCredentialListMapping200Response{} + ps := &ListSipCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go b/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go index 32106eec4..e42334eb7 100644 --- a/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go +++ b/rest/api/v2010/accounts_sip_domains_ip_access_control_list_mappings.go @@ -171,7 +171,7 @@ func (params *ListSipIpAccessControlListMappingParams) SetLimit(Limit int) *List } // Retrieve a single page of SipIpAccessControlListMapping records from the API. Request is executed immediately. -func (c *ApiService) PageSipIpAccessControlListMapping(DomainSid string, params *ListSipIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipIpAccessControlListMapping200Response, error) { +func (c *ApiService) PageSipIpAccessControlListMapping(DomainSid string, params *ListSipIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipIpAccessControlListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" if params != nil && params.PathAccountSid != nil { @@ -202,7 +202,7 @@ func (c *ApiService) PageSipIpAccessControlListMapping(DomainSid string, params defer resp.Body.Close() - ps := &ListSipIpAccessControlListMapping200Response{} + ps := &ListSipIpAccessControlListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -248,7 +248,7 @@ func (c *ApiService) StreamSipIpAccessControlListMapping(DomainSid string, param return recordChannel, errorChannel } -func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAccessControlListMapping200Response, params *ListSipIpAccessControlListMappingParams, recordChannel chan ApiV2010SipIpAccessControlListMapping, errorChannel chan error) { +func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAccessControlListMappingResponse, params *ListSipIpAccessControlListMappingParams, recordChannel chan ApiV2010SipIpAccessControlListMapping, errorChannel chan error) { curRecord := 1 for response != nil { @@ -263,7 +263,7 @@ func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAcce } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAccessControlListMapping200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAccessControlListMappingResponse) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAcce break } - response = record.(*ListSipIpAccessControlListMapping200Response) + response = record.(*ListSipIpAccessControlListMappingResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipIpAccessControlListMapping200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipIpAccessControlListMappingResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipIpAccessControlListMapping200Response(nextPag defer resp.Body.Close() - ps := &ListSipIpAccessControlListMapping200Response{} + ps := &ListSipIpAccessControlListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sipip_access_control_lists.go b/rest/api/v2010/accounts_sipip_access_control_lists.go index dee60a45a..390bcfa25 100644 --- a/rest/api/v2010/accounts_sipip_access_control_lists.go +++ b/rest/api/v2010/accounts_sipip_access_control_lists.go @@ -168,7 +168,7 @@ func (params *ListSipIpAccessControlListParams) SetLimit(Limit int) *ListSipIpAc } // Retrieve a single page of SipIpAccessControlList records from the API. Request is executed immediately. -func (c *ApiService) PageSipIpAccessControlList(params *ListSipIpAccessControlListParams, pageToken, pageNumber string) (*ListSipIpAccessControlList200Response, error) { +func (c *ApiService) PageSipIpAccessControlList(params *ListSipIpAccessControlListParams, pageToken, pageNumber string) (*ListSipIpAccessControlListResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" if params != nil && params.PathAccountSid != nil { @@ -198,7 +198,7 @@ func (c *ApiService) PageSipIpAccessControlList(params *ListSipIpAccessControlLi defer resp.Body.Close() - ps := &ListSipIpAccessControlList200Response{} + ps := &ListSipIpAccessControlListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -244,7 +244,7 @@ func (c *ApiService) StreamSipIpAccessControlList(params *ListSipIpAccessControl return recordChannel, errorChannel } -func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessControlList200Response, params *ListSipIpAccessControlListParams, recordChannel chan ApiV2010SipIpAccessControlList, errorChannel chan error) { +func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessControlListResponse, params *ListSipIpAccessControlListParams, recordChannel chan ApiV2010SipIpAccessControlList, errorChannel chan error) { curRecord := 1 for response != nil { @@ -259,7 +259,7 @@ func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessContr } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAccessControlList200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAccessControlListResponse) if err != nil { errorChannel <- err break @@ -267,14 +267,14 @@ func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessContr break } - response = record.(*ListSipIpAccessControlList200Response) + response = record.(*ListSipIpAccessControlListResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipIpAccessControlList200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipIpAccessControlListResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -285,7 +285,7 @@ func (c *ApiService) getNextListSipIpAccessControlList200Response(nextPageUrl st defer resp.Body.Close() - ps := &ListSipIpAccessControlList200Response{} + ps := &ListSipIpAccessControlListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go b/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go index fe0f32023..0d92df5e6 100644 --- a/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go +++ b/rest/api/v2010/accounts_sipip_access_control_lists_ip_addresses.go @@ -189,7 +189,7 @@ func (params *ListSipIpAddressParams) SetLimit(Limit int) *ListSipIpAddressParam } // Retrieve a single page of SipIpAddress records from the API. Request is executed immediately. -func (c *ApiService) PageSipIpAddress(IpAccessControlListSid string, params *ListSipIpAddressParams, pageToken, pageNumber string) (*ListSipIpAddress200Response, error) { +func (c *ApiService) PageSipIpAddress(IpAccessControlListSid string, params *ListSipIpAddressParams, pageToken, pageNumber string) (*ListSipIpAddressResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" if params != nil && params.PathAccountSid != nil { @@ -220,7 +220,7 @@ func (c *ApiService) PageSipIpAddress(IpAccessControlListSid string, params *Lis defer resp.Body.Close() - ps := &ListSipIpAddress200Response{} + ps := &ListSipIpAddressResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -266,7 +266,7 @@ func (c *ApiService) StreamSipIpAddress(IpAccessControlListSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamSipIpAddress(response *ListSipIpAddress200Response, params *ListSipIpAddressParams, recordChannel chan ApiV2010SipIpAddress, errorChannel chan error) { +func (c *ApiService) streamSipIpAddress(response *ListSipIpAddressResponse, params *ListSipIpAddressParams, recordChannel chan ApiV2010SipIpAddress, errorChannel chan error) { curRecord := 1 for response != nil { @@ -281,7 +281,7 @@ func (c *ApiService) streamSipIpAddress(response *ListSipIpAddress200Response, p } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAddress200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAddressResponse) if err != nil { errorChannel <- err break @@ -289,14 +289,14 @@ func (c *ApiService) streamSipIpAddress(response *ListSipIpAddress200Response, p break } - response = record.(*ListSipIpAddress200Response) + response = record.(*ListSipIpAddressResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipIpAddress200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipIpAddressResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -307,7 +307,7 @@ func (c *ApiService) getNextListSipIpAddress200Response(nextPageUrl string) (int defer resp.Body.Close() - ps := &ListSipIpAddress200Response{} + ps := &ListSipIpAddressResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_sms_short_codes.go b/rest/api/v2010/accounts_sms_short_codes.go index 08e3ac44f..efac7d190 100644 --- a/rest/api/v2010/accounts_sms_short_codes.go +++ b/rest/api/v2010/accounts_sms_short_codes.go @@ -98,7 +98,7 @@ func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams { } // Retrieve a single page of ShortCode records from the API. Request is executed immediately. -func (c *ApiService) PageShortCode(params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCode200Response, error) { +func (c *ApiService) PageShortCode(params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" if params != nil && params.PathAccountSid != nil { @@ -134,7 +134,7 @@ func (c *ApiService) PageShortCode(params *ListShortCodeParams, pageToken, pageN defer resp.Body.Close() - ps := &ListShortCode200Response{} + ps := &ListShortCodeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -180,7 +180,7 @@ func (c *ApiService) StreamShortCode(params *ListShortCodeParams) (chan ApiV2010 return recordChannel, errorChannel } -func (c *ApiService) streamShortCode(response *ListShortCode200Response, params *ListShortCodeParams, recordChannel chan ApiV2010ShortCode, errorChannel chan error) { +func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan ApiV2010ShortCode, errorChannel chan error) { curRecord := 1 for response != nil { @@ -195,7 +195,7 @@ func (c *ApiService) streamShortCode(response *ListShortCode200Response, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListShortCode200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListShortCodeResponse) if err != nil { errorChannel <- err break @@ -203,14 +203,14 @@ func (c *ApiService) streamShortCode(response *ListShortCode200Response, params break } - response = record.(*ListShortCode200Response) + response = record.(*ListShortCodeResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListShortCode200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListShortCodeResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -221,7 +221,7 @@ func (c *ApiService) getNextListShortCode200Response(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListShortCode200Response{} + ps := &ListShortCodeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_transcriptions.go b/rest/api/v2010/accounts_transcriptions.go index 4263a1be7..c62183a14 100644 --- a/rest/api/v2010/accounts_transcriptions.go +++ b/rest/api/v2010/accounts_transcriptions.go @@ -120,7 +120,7 @@ func (params *ListTranscriptionParams) SetLimit(Limit int) *ListTranscriptionPar } // Retrieve a single page of Transcription records from the API. Request is executed immediately. -func (c *ApiService) PageTranscription(params *ListTranscriptionParams, pageToken, pageNumber string) (*ListTranscription200Response, error) { +func (c *ApiService) PageTranscription(params *ListTranscriptionParams, pageToken, pageNumber string) (*ListTranscriptionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" if params != nil && params.PathAccountSid != nil { @@ -150,7 +150,7 @@ func (c *ApiService) PageTranscription(params *ListTranscriptionParams, pageToke defer resp.Body.Close() - ps := &ListTranscription200Response{} + ps := &ListTranscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -196,7 +196,7 @@ func (c *ApiService) StreamTranscription(params *ListTranscriptionParams) (chan return recordChannel, errorChannel } -func (c *ApiService) streamTranscription(response *ListTranscription200Response, params *ListTranscriptionParams, recordChannel chan ApiV2010Transcription, errorChannel chan error) { +func (c *ApiService) streamTranscription(response *ListTranscriptionResponse, params *ListTranscriptionParams, recordChannel chan ApiV2010Transcription, errorChannel chan error) { curRecord := 1 for response != nil { @@ -211,7 +211,7 @@ func (c *ApiService) streamTranscription(response *ListTranscription200Response, } } - record, err := client.GetNext(c.baseURL, response, c.getNextListTranscription200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListTranscriptionResponse) if err != nil { errorChannel <- err break @@ -219,14 +219,14 @@ func (c *ApiService) streamTranscription(response *ListTranscription200Response, break } - response = record.(*ListTranscription200Response) + response = record.(*ListTranscriptionResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListTranscription200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListTranscriptionResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -237,7 +237,7 @@ func (c *ApiService) getNextListTranscription200Response(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListTranscription200Response{} + ps := &ListTranscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records.go b/rest/api/v2010/accounts_usage_records.go index c31fa17d6..d5ed51a3d 100644 --- a/rest/api/v2010/accounts_usage_records.go +++ b/rest/api/v2010/accounts_usage_records.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordParams) SetLimit(Limit int) *ListUsageRecordParams } // Retrieve a single page of UsageRecord records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecord(params *ListUsageRecordParams, pageToken, pageNumber string) (*ListUsageRecord200Response, error) { +func (c *ApiService) PageUsageRecord(params *ListUsageRecordParams, pageToken, pageNumber string) (*ListUsageRecordResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecord(params *ListUsageRecordParams, pageToken, p defer resp.Body.Close() - ps := &ListUsageRecord200Response{} + ps := &ListUsageRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecord(params *ListUsageRecordParams) (chan ApiV return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecord(response *ListUsageRecord200Response, params *ListUsageRecordParams, recordChannel chan ApiV2010UsageRecord, errorChannel chan error) { +func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan ApiV2010UsageRecord, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecord(response *ListUsageRecord200Response, par } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecord200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecord(response *ListUsageRecord200Response, par break } - response = record.(*ListUsageRecord200Response) + response = record.(*ListUsageRecordResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecord200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecord200Response(nextPageUrl string) (inte defer resp.Body.Close() - ps := &ListUsageRecord200Response{} + ps := &ListUsageRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_all_time.go b/rest/api/v2010/accounts_usage_records_all_time.go index 7cba4090d..2719f2426 100644 --- a/rest/api/v2010/accounts_usage_records_all_time.go +++ b/rest/api/v2010/accounts_usage_records_all_time.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordAllTimeParams) SetLimit(Limit int) *ListUsageRecord } // Retrieve a single page of UsageRecordAllTime records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordAllTime(params *ListUsageRecordAllTimeParams, pageToken, pageNumber string) (*ListUsageRecordAllTime200Response, error) { +func (c *ApiService) PageUsageRecordAllTime(params *ListUsageRecordAllTimeParams, pageToken, pageNumber string) (*ListUsageRecordAllTimeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordAllTime(params *ListUsageRecordAllTimeParams defer resp.Body.Close() - ps := &ListUsageRecordAllTime200Response{} + ps := &ListUsageRecordAllTimeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordAllTime(params *ListUsageRecordAllTimePara return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTime200Response, params *ListUsageRecordAllTimeParams, recordChannel chan ApiV2010UsageRecordAllTime, errorChannel chan error) { +func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTimeResponse, params *ListUsageRecordAllTimeParams, recordChannel chan ApiV2010UsageRecordAllTime, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTime20 } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordAllTime200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordAllTimeResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTime20 break } - response = record.(*ListUsageRecordAllTime200Response) + response = record.(*ListUsageRecordAllTimeResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordAllTime200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordAllTimeResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordAllTime200Response(nextPageUrl string defer resp.Body.Close() - ps := &ListUsageRecordAllTime200Response{} + ps := &ListUsageRecordAllTimeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_daily.go b/rest/api/v2010/accounts_usage_records_daily.go index af6e3024a..c27a64969 100644 --- a/rest/api/v2010/accounts_usage_records_daily.go +++ b/rest/api/v2010/accounts_usage_records_daily.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordDailyParams) SetLimit(Limit int) *ListUsageRecordDa } // Retrieve a single page of UsageRecordDaily records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordDaily(params *ListUsageRecordDailyParams, pageToken, pageNumber string) (*ListUsageRecordDaily200Response, error) { +func (c *ApiService) PageUsageRecordDaily(params *ListUsageRecordDailyParams, pageToken, pageNumber string) (*ListUsageRecordDailyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordDaily(params *ListUsageRecordDailyParams, pa defer resp.Body.Close() - ps := &ListUsageRecordDaily200Response{} + ps := &ListUsageRecordDailyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordDaily(params *ListUsageRecordDailyParams) return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDaily200Response, params *ListUsageRecordDailyParams, recordChannel chan ApiV2010UsageRecordDaily, errorChannel chan error) { +func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDailyResponse, params *ListUsageRecordDailyParams, recordChannel chan ApiV2010UsageRecordDaily, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDaily200Res } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordDaily200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordDailyResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDaily200Res break } - response = record.(*ListUsageRecordDaily200Response) + response = record.(*ListUsageRecordDailyResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordDaily200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordDailyResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordDaily200Response(nextPageUrl string) defer resp.Body.Close() - ps := &ListUsageRecordDaily200Response{} + ps := &ListUsageRecordDailyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_last_month.go b/rest/api/v2010/accounts_usage_records_last_month.go index 0a8b72e44..23ec9b62d 100644 --- a/rest/api/v2010/accounts_usage_records_last_month.go +++ b/rest/api/v2010/accounts_usage_records_last_month.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordLastMonthParams) SetLimit(Limit int) *ListUsageReco } // Retrieve a single page of UsageRecordLastMonth records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordLastMonth(params *ListUsageRecordLastMonthParams, pageToken, pageNumber string) (*ListUsageRecordLastMonth200Response, error) { +func (c *ApiService) PageUsageRecordLastMonth(params *ListUsageRecordLastMonthParams, pageToken, pageNumber string) (*ListUsageRecordLastMonthResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordLastMonth(params *ListUsageRecordLastMonthPa defer resp.Body.Close() - ps := &ListUsageRecordLastMonth200Response{} + ps := &ListUsageRecordLastMonthResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordLastMonth(params *ListUsageRecordLastMonth return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMonth200Response, params *ListUsageRecordLastMonthParams, recordChannel chan ApiV2010UsageRecordLastMonth, errorChannel chan error) { +func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMonthResponse, params *ListUsageRecordLastMonthParams, recordChannel chan ApiV2010UsageRecordLastMonth, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordLastMonth200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordLastMonthResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMon break } - response = record.(*ListUsageRecordLastMonth200Response) + response = record.(*ListUsageRecordLastMonthResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordLastMonth200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordLastMonthResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordLastMonth200Response(nextPageUrl stri defer resp.Body.Close() - ps := &ListUsageRecordLastMonth200Response{} + ps := &ListUsageRecordLastMonthResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_monthly.go b/rest/api/v2010/accounts_usage_records_monthly.go index 6ca373363..82dc2e4ec 100644 --- a/rest/api/v2010/accounts_usage_records_monthly.go +++ b/rest/api/v2010/accounts_usage_records_monthly.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordMonthlyParams) SetLimit(Limit int) *ListUsageRecord } // Retrieve a single page of UsageRecordMonthly records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordMonthly(params *ListUsageRecordMonthlyParams, pageToken, pageNumber string) (*ListUsageRecordMonthly200Response, error) { +func (c *ApiService) PageUsageRecordMonthly(params *ListUsageRecordMonthlyParams, pageToken, pageNumber string) (*ListUsageRecordMonthlyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordMonthly(params *ListUsageRecordMonthlyParams defer resp.Body.Close() - ps := &ListUsageRecordMonthly200Response{} + ps := &ListUsageRecordMonthlyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordMonthly(params *ListUsageRecordMonthlyPara return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthly200Response, params *ListUsageRecordMonthlyParams, recordChannel chan ApiV2010UsageRecordMonthly, errorChannel chan error) { +func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthlyResponse, params *ListUsageRecordMonthlyParams, recordChannel chan ApiV2010UsageRecordMonthly, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthly20 } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordMonthly200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordMonthlyResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthly20 break } - response = record.(*ListUsageRecordMonthly200Response) + response = record.(*ListUsageRecordMonthlyResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordMonthly200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordMonthlyResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordMonthly200Response(nextPageUrl string defer resp.Body.Close() - ps := &ListUsageRecordMonthly200Response{} + ps := &ListUsageRecordMonthlyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_this_month.go b/rest/api/v2010/accounts_usage_records_this_month.go index 61412d509..b3b79e816 100644 --- a/rest/api/v2010/accounts_usage_records_this_month.go +++ b/rest/api/v2010/accounts_usage_records_this_month.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordThisMonthParams) SetLimit(Limit int) *ListUsageReco } // Retrieve a single page of UsageRecordThisMonth records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordThisMonth(params *ListUsageRecordThisMonthParams, pageToken, pageNumber string) (*ListUsageRecordThisMonth200Response, error) { +func (c *ApiService) PageUsageRecordThisMonth(params *ListUsageRecordThisMonthParams, pageToken, pageNumber string) (*ListUsageRecordThisMonthResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordThisMonth(params *ListUsageRecordThisMonthPa defer resp.Body.Close() - ps := &ListUsageRecordThisMonth200Response{} + ps := &ListUsageRecordThisMonthResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordThisMonth(params *ListUsageRecordThisMonth return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMonth200Response, params *ListUsageRecordThisMonthParams, recordChannel chan ApiV2010UsageRecordThisMonth, errorChannel chan error) { +func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMonthResponse, params *ListUsageRecordThisMonthParams, recordChannel chan ApiV2010UsageRecordThisMonth, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordThisMonth200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordThisMonthResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMon break } - response = record.(*ListUsageRecordThisMonth200Response) + response = record.(*ListUsageRecordThisMonthResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordThisMonth200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordThisMonthResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordThisMonth200Response(nextPageUrl stri defer resp.Body.Close() - ps := &ListUsageRecordThisMonth200Response{} + ps := &ListUsageRecordThisMonthResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_today.go b/rest/api/v2010/accounts_usage_records_today.go index 1e2cf3f06..f9ce2c74a 100644 --- a/rest/api/v2010/accounts_usage_records_today.go +++ b/rest/api/v2010/accounts_usage_records_today.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordTodayParams) SetLimit(Limit int) *ListUsageRecordTo } // Retrieve a single page of UsageRecordToday records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordToday(params *ListUsageRecordTodayParams, pageToken, pageNumber string) (*ListUsageRecordToday200Response, error) { +func (c *ApiService) PageUsageRecordToday(params *ListUsageRecordTodayParams, pageToken, pageNumber string) (*ListUsageRecordTodayResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordToday(params *ListUsageRecordTodayParams, pa defer resp.Body.Close() - ps := &ListUsageRecordToday200Response{} + ps := &ListUsageRecordTodayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordToday(params *ListUsageRecordTodayParams) return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordToday200Response, params *ListUsageRecordTodayParams, recordChannel chan ApiV2010UsageRecordToday, errorChannel chan error) { +func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordTodayResponse, params *ListUsageRecordTodayParams, recordChannel chan ApiV2010UsageRecordToday, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordToday200Res } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordToday200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordTodayResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordToday200Res break } - response = record.(*ListUsageRecordToday200Response) + response = record.(*ListUsageRecordTodayResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordToday200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordTodayResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordToday200Response(nextPageUrl string) defer resp.Body.Close() - ps := &ListUsageRecordToday200Response{} + ps := &ListUsageRecordTodayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_yearly.go b/rest/api/v2010/accounts_usage_records_yearly.go index a4a536c3b..e601fd804 100644 --- a/rest/api/v2010/accounts_usage_records_yearly.go +++ b/rest/api/v2010/accounts_usage_records_yearly.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordYearlyParams) SetLimit(Limit int) *ListUsageRecordY } // Retrieve a single page of UsageRecordYearly records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordYearly(params *ListUsageRecordYearlyParams, pageToken, pageNumber string) (*ListUsageRecordYearly200Response, error) { +func (c *ApiService) PageUsageRecordYearly(params *ListUsageRecordYearlyParams, pageToken, pageNumber string) (*ListUsageRecordYearlyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordYearly(params *ListUsageRecordYearlyParams, defer resp.Body.Close() - ps := &ListUsageRecordYearly200Response{} + ps := &ListUsageRecordYearlyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordYearly(params *ListUsageRecordYearlyParams return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearly200Response, params *ListUsageRecordYearlyParams, recordChannel chan ApiV2010UsageRecordYearly, errorChannel chan error) { +func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearlyResponse, params *ListUsageRecordYearlyParams, recordChannel chan ApiV2010UsageRecordYearly, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearly200R } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYearly200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYearlyResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearly200R break } - response = record.(*ListUsageRecordYearly200Response) + response = record.(*ListUsageRecordYearlyResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordYearly200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordYearlyResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordYearly200Response(nextPageUrl string) defer resp.Body.Close() - ps := &ListUsageRecordYearly200Response{} + ps := &ListUsageRecordYearlyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_records_yesterday.go b/rest/api/v2010/accounts_usage_records_yesterday.go index d7e8d0141..5293f7a19 100644 --- a/rest/api/v2010/accounts_usage_records_yesterday.go +++ b/rest/api/v2010/accounts_usage_records_yesterday.go @@ -71,7 +71,7 @@ func (params *ListUsageRecordYesterdayParams) SetLimit(Limit int) *ListUsageReco } // Retrieve a single page of UsageRecordYesterday records from the API. Request is executed immediately. -func (c *ApiService) PageUsageRecordYesterday(params *ListUsageRecordYesterdayParams, pageToken, pageNumber string) (*ListUsageRecordYesterday200Response, error) { +func (c *ApiService) PageUsageRecordYesterday(params *ListUsageRecordYesterdayParams, pageToken, pageNumber string) (*ListUsageRecordYesterdayResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" if params != nil && params.PathAccountSid != nil { @@ -113,7 +113,7 @@ func (c *ApiService) PageUsageRecordYesterday(params *ListUsageRecordYesterdayPa defer resp.Body.Close() - ps := &ListUsageRecordYesterday200Response{} + ps := &ListUsageRecordYesterdayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -159,7 +159,7 @@ func (c *ApiService) StreamUsageRecordYesterday(params *ListUsageRecordYesterday return recordChannel, errorChannel } -func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterday200Response, params *ListUsageRecordYesterdayParams, recordChannel chan ApiV2010UsageRecordYesterday, errorChannel chan error) { +func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterdayResponse, params *ListUsageRecordYesterdayParams, recordChannel chan ApiV2010UsageRecordYesterday, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterd } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYesterday200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYesterdayResponse) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterd break } - response = record.(*ListUsageRecordYesterday200Response) + response = record.(*ListUsageRecordYesterdayResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordYesterday200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordYesterdayResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordYesterday200Response(nextPageUrl stri defer resp.Body.Close() - ps := &ListUsageRecordYesterday200Response{} + ps := &ListUsageRecordYesterdayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/accounts_usage_triggers.go b/rest/api/v2010/accounts_usage_triggers.go index 61fc26621..6c56296e2 100644 --- a/rest/api/v2010/accounts_usage_triggers.go +++ b/rest/api/v2010/accounts_usage_triggers.go @@ -239,7 +239,7 @@ func (params *ListUsageTriggerParams) SetLimit(Limit int) *ListUsageTriggerParam } // Retrieve a single page of UsageTrigger records from the API. Request is executed immediately. -func (c *ApiService) PageUsageTrigger(params *ListUsageTriggerParams, pageToken, pageNumber string) (*ListUsageTrigger200Response, error) { +func (c *ApiService) PageUsageTrigger(params *ListUsageTriggerParams, pageToken, pageNumber string) (*ListUsageTriggerResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" if params != nil && params.PathAccountSid != nil { @@ -278,7 +278,7 @@ func (c *ApiService) PageUsageTrigger(params *ListUsageTriggerParams, pageToken, defer resp.Body.Close() - ps := &ListUsageTrigger200Response{} + ps := &ListUsageTriggerResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -324,7 +324,7 @@ func (c *ApiService) StreamUsageTrigger(params *ListUsageTriggerParams) (chan Ap return recordChannel, errorChannel } -func (c *ApiService) streamUsageTrigger(response *ListUsageTrigger200Response, params *ListUsageTriggerParams, recordChannel chan ApiV2010UsageTrigger, errorChannel chan error) { +func (c *ApiService) streamUsageTrigger(response *ListUsageTriggerResponse, params *ListUsageTriggerParams, recordChannel chan ApiV2010UsageTrigger, errorChannel chan error) { curRecord := 1 for response != nil { @@ -339,7 +339,7 @@ func (c *ApiService) streamUsageTrigger(response *ListUsageTrigger200Response, p } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageTrigger200Response) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageTriggerResponse) if err != nil { errorChannel <- err break @@ -347,14 +347,14 @@ func (c *ApiService) streamUsageTrigger(response *ListUsageTrigger200Response, p break } - response = record.(*ListUsageTrigger200Response) + response = record.(*ListUsageTriggerResponse) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageTrigger200Response(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageTriggerResponse(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -365,7 +365,7 @@ func (c *ApiService) getNextListUsageTrigger200Response(nextPageUrl string) (int defer resp.Body.Close() - ps := &ListUsageTrigger200Response{} + ps := &ListUsageTriggerResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/docs/AccountsCallsApi.md b/rest/api/v2010/docs/AccountsCallsApi.md index f3aa9ad1e..e4c376a25 100644 --- a/rest/api/v2010/docs/AccountsCallsApi.md +++ b/rest/api/v2010/docs/AccountsCallsApi.md @@ -196,8 +196,12 @@ Name | Type | Description **From** | **string** | Only include calls from this phone number, SIP address, Client identifier or SIM SID. **ParentCallSid** | **string** | Only include calls spawned by calls with this SID. **Status** | **string** | The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. -**StartTime** | **time.Time** | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. -**EndTime** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. +**StartTime** | **time.Time** | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. +**StartTimeBefore** | **time.Time** | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. +**StartTimeAfter** | **time.Time** | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. +**EndTime** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. +**EndTimeBefore** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. +**EndTimeAfter** | **time.Time** | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/api/v2010/docs/AccountsConferencesApi.md b/rest/api/v2010/docs/AccountsConferencesApi.md index 5dfa10106..ad8fba342 100644 --- a/rest/api/v2010/docs/AccountsConferencesApi.md +++ b/rest/api/v2010/docs/AccountsConferencesApi.md @@ -74,7 +74,11 @@ Name | Type | Description ------------- | ------------- | ------------- **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. **DateCreated** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. +**DateCreatedBefore** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. +**DateCreatedAfter** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. **DateUpdated** | **string** | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. +**DateUpdatedBefore** | **string** | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. +**DateUpdatedAfter** | **string** | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. **FriendlyName** | **string** | The string that identifies the Conference resources to read. **Status** | **string** | The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. diff --git a/rest/api/v2010/docs/AccountsMessagesApi.md b/rest/api/v2010/docs/AccountsMessagesApi.md index 3996f1008..21f4f15c0 100644 --- a/rest/api/v2010/docs/AccountsMessagesApi.md +++ b/rest/api/v2010/docs/AccountsMessagesApi.md @@ -183,6 +183,8 @@ Name | Type | Description **To** | **string** | Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111` **From** | **string** | Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999` **DateSent** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). +**DateSentBefore** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). +**DateSentAfter** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/api/v2010/docs/ApiV2010Call.md b/rest/api/v2010/docs/ApiV2010Call.md index ec59a8221..e7c2aa513 100644 --- a/rest/api/v2010/docs/ApiV2010Call.md +++ b/rest/api/v2010/docs/ApiV2010Call.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Sid** | Pointer to **string** | The unique string that we created to identify this Call resource. | -**DateCreated** | Pointer to **string** | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | -**DateUpdated** | Pointer to **string** | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | +**DateCreated** | Pointer to **string** | The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | +**DateUpdated** | Pointer to **string** | The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | **ParentCallSid** | Pointer to **string** | The SID that identifies the call that created this leg. | **AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Call resource. | **To** | Pointer to **string** | The phone number, SIP address, Client identifier or SIM SID that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. | @@ -15,8 +15,8 @@ Name | Type | Description | Notes **FromFormatted** | Pointer to **string** | The calling phone number, SIP address, or Client identifier formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). | **PhoneNumberSid** | Pointer to **string** | If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. | **Status** | Pointer to [**string**](CallEnumStatus.md) | | -**StartTime** | Pointer to **string** | The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. | -**EndTime** | Pointer to **string** | The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. | +**StartTime** | Pointer to **string** | The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. | +**EndTime** | Pointer to **string** | The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. | **Duration** | Pointer to **string** | The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. | **Price** | Pointer to **string** | The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. | **PriceUnit** | Pointer to **string** | The currency in which `Price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g., `USD`, `EUR`, `JPY`). Always capitalized for calls. | diff --git a/rest/api/v2010/docs/ApiV2010Participant.md b/rest/api/v2010/docs/ApiV2010Participant.md index a6ac6d812..703cae4ee 100644 --- a/rest/api/v2010/docs/ApiV2010Participant.md +++ b/rest/api/v2010/docs/ApiV2010Participant.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Hold** | Pointer to **bool** | Whether the participant is on hold. Can be `true` or `false`. | **StartConferenceOnEnter** | Pointer to **bool** | Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. | **Status** | Pointer to [**string**](ParticipantEnumStatus.md) | | +**QueueTime** | Pointer to **string** | The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request. | **Uri** | Pointer to **string** | The URI of the resource, relative to `https://api.twilio.com`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAccountResponse.md b/rest/api/v2010/docs/ListAccountResponse.md index e6a3c8e00..122f8b2e5 100644 --- a/rest/api/v2010/docs/ListAccountResponse.md +++ b/rest/api/v2010/docs/ListAccountResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Accounts** | [**[]ApiV2010Account**](ApiV2010Account.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAddressResponse.md b/rest/api/v2010/docs/ListAddressResponse.md index 8ce768b2a..c8746f597 100644 --- a/rest/api/v2010/docs/ListAddressResponse.md +++ b/rest/api/v2010/docs/ListAddressResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Addresses** | [**[]ApiV2010Address**](ApiV2010Address.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListApplicationResponse.md b/rest/api/v2010/docs/ListApplicationResponse.md index 2bb189484..b7992a91b 100644 --- a/rest/api/v2010/docs/ListApplicationResponse.md +++ b/rest/api/v2010/docs/ListApplicationResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Applications** | [**[]ApiV2010Application**](ApiV2010Application.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md b/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md index c5fb00bbb..e3ee92b44 100644 --- a/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md +++ b/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AuthorizedConnectApps** | [**[]ApiV2010AuthorizedConnectApp**](ApiV2010AuthorizedConnectApp.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md index a59c857bd..8f4b90183 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Countries** | [**[]ApiV2010AvailablePhoneNumberCountry**](ApiV2010AvailablePhoneNumberCountry.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md index 205e18881..bcb5c4c60 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberLocal**](ApiV2010AvailablePhoneNumberLocal.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md index 57e9aaec6..268dd63a1 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberMachineToMachine**](ApiV2010AvailablePhoneNumberMachineToMachine.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md index aac528f74..8bfd4a905 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberMobile**](ApiV2010AvailablePhoneNumberMobile.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md index da7940cc6..d07f43b43 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberNational**](ApiV2010AvailablePhoneNumberNational.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md index d478f1678..3610bb669 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberSharedCost**](ApiV2010AvailablePhoneNumberSharedCost.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md index 56e9d5c17..1e49b51ab 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberTollFree**](ApiV2010AvailablePhoneNumberTollFree.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md index 5ffd2b60b..db8a32d77 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberVoip**](ApiV2010AvailablePhoneNumberVoip.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListCallEventResponse.md b/rest/api/v2010/docs/ListCallEventResponse.md index 793e6ed97..a0b97a235 100644 --- a/rest/api/v2010/docs/ListCallEventResponse.md +++ b/rest/api/v2010/docs/ListCallEventResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Events** | [**[]ApiV2010CallEvent**](ApiV2010CallEvent.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListCallNotificationResponse.md b/rest/api/v2010/docs/ListCallNotificationResponse.md index 87efec158..52011452d 100644 --- a/rest/api/v2010/docs/ListCallNotificationResponse.md +++ b/rest/api/v2010/docs/ListCallNotificationResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Notifications** | [**[]ApiV2010CallNotification**](ApiV2010CallNotification.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListCallRecordingResponse.md b/rest/api/v2010/docs/ListCallRecordingResponse.md index 615ba5b39..bad1a5c25 100644 --- a/rest/api/v2010/docs/ListCallRecordingResponse.md +++ b/rest/api/v2010/docs/ListCallRecordingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Recordings** | [**[]ApiV2010CallRecording**](ApiV2010CallRecording.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListCallResponse.md b/rest/api/v2010/docs/ListCallResponse.md index a917dd8e4..a4f174bf8 100644 --- a/rest/api/v2010/docs/ListCallResponse.md +++ b/rest/api/v2010/docs/ListCallResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Calls** | [**[]ApiV2010Call**](ApiV2010Call.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListConferenceRecordingResponse.md b/rest/api/v2010/docs/ListConferenceRecordingResponse.md index b770d73de..b64900a15 100644 --- a/rest/api/v2010/docs/ListConferenceRecordingResponse.md +++ b/rest/api/v2010/docs/ListConferenceRecordingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Recordings** | [**[]ApiV2010ConferenceRecording**](ApiV2010ConferenceRecording.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListConferenceResponse.md b/rest/api/v2010/docs/ListConferenceResponse.md index 27af5be73..d7cf3e97d 100644 --- a/rest/api/v2010/docs/ListConferenceResponse.md +++ b/rest/api/v2010/docs/ListConferenceResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Conferences** | [**[]ApiV2010Conference**](ApiV2010Conference.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListConnectAppResponse.md b/rest/api/v2010/docs/ListConnectAppResponse.md index b6f04bb19..6fa4c1a85 100644 --- a/rest/api/v2010/docs/ListConnectAppResponse.md +++ b/rest/api/v2010/docs/ListConnectAppResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **ConnectApps** | [**[]ApiV2010ConnectApp**](ApiV2010ConnectApp.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md b/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md index 111ef25c9..d0e0028be 100644 --- a/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md +++ b/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **DependentPhoneNumbers** | [**[]ApiV2010DependentPhoneNumber**](ApiV2010DependentPhoneNumber.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md index 6c801e56a..1050b4b2f 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Extensions** | [**[]ApiV2010IncomingPhoneNumberAssignedAddOnExtension**](ApiV2010IncomingPhoneNumberAssignedAddOnExtension.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md index 3c837a67c..090db79b5 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AssignedAddOns** | [**[]ApiV2010IncomingPhoneNumberAssignedAddOn**](ApiV2010IncomingPhoneNumberAssignedAddOn.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md index b99c4929f..8970afc66 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumberLocal**](ApiV2010IncomingPhoneNumberLocal.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md index 05139c706..04892a75a 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumberMobile**](ApiV2010IncomingPhoneNumberMobile.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md index f121b0ddc..10bfa4345 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumber**](ApiV2010IncomingPhoneNumber.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md index 3d4cc587d..4e80f2b50 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumberTollFree**](ApiV2010IncomingPhoneNumberTollFree.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListKeyResponse.md b/rest/api/v2010/docs/ListKeyResponse.md index ec9d7e138..d79f2761c 100644 --- a/rest/api/v2010/docs/ListKeyResponse.md +++ b/rest/api/v2010/docs/ListKeyResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Keys** | [**[]ApiV2010Key**](ApiV2010Key.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListMediaResponse.md b/rest/api/v2010/docs/ListMediaResponse.md index 2304bf156..e29392ef5 100644 --- a/rest/api/v2010/docs/ListMediaResponse.md +++ b/rest/api/v2010/docs/ListMediaResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **MediaList** | [**[]ApiV2010Media**](ApiV2010Media.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListMemberResponse.md b/rest/api/v2010/docs/ListMemberResponse.md index e6940c29d..4d150cad2 100644 --- a/rest/api/v2010/docs/ListMemberResponse.md +++ b/rest/api/v2010/docs/ListMemberResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **QueueMembers** | [**[]ApiV2010Member**](ApiV2010Member.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListMessageResponse.md b/rest/api/v2010/docs/ListMessageResponse.md index 3661913c8..1ebecd960 100644 --- a/rest/api/v2010/docs/ListMessageResponse.md +++ b/rest/api/v2010/docs/ListMessageResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Messages** | [**[]ApiV2010Message**](ApiV2010Message.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListNotificationResponse.md b/rest/api/v2010/docs/ListNotificationResponse.md index fb9ff98c6..6a5487e3c 100644 --- a/rest/api/v2010/docs/ListNotificationResponse.md +++ b/rest/api/v2010/docs/ListNotificationResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Notifications** | [**[]ApiV2010Notification**](ApiV2010Notification.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md b/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md index cdd919a4b..d3da32937 100644 --- a/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md +++ b/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **OutgoingCallerIds** | [**[]ApiV2010OutgoingCallerId**](ApiV2010OutgoingCallerId.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListParticipantResponse.md b/rest/api/v2010/docs/ListParticipantResponse.md index 97008441c..c1f9400e9 100644 --- a/rest/api/v2010/docs/ListParticipantResponse.md +++ b/rest/api/v2010/docs/ListParticipantResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Participants** | [**[]ApiV2010Participant**](ApiV2010Participant.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListQueueResponse.md b/rest/api/v2010/docs/ListQueueResponse.md index 85a3e4780..d8899255d 100644 --- a/rest/api/v2010/docs/ListQueueResponse.md +++ b/rest/api/v2010/docs/ListQueueResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Queues** | [**[]ApiV2010Queue**](ApiV2010Queue.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md b/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md index 5a72717bf..18e5055c7 100644 --- a/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md +++ b/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Payloads** | [**[]ApiV2010RecordingAddOnResultPayload**](ApiV2010RecordingAddOnResultPayload.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md b/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md index 67341e14f..bcd1b25c0 100644 --- a/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md +++ b/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **AddOnResults** | [**[]ApiV2010RecordingAddOnResult**](ApiV2010RecordingAddOnResult.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListRecordingResponse.md b/rest/api/v2010/docs/ListRecordingResponse.md index 260ed3f81..a7a4dbf75 100644 --- a/rest/api/v2010/docs/ListRecordingResponse.md +++ b/rest/api/v2010/docs/ListRecordingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Recordings** | [**[]ApiV2010Recording**](ApiV2010Recording.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md b/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md index 63bd727a4..5d371c37e 100644 --- a/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md +++ b/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Transcriptions** | [**[]ApiV2010RecordingTranscription**](ApiV2010RecordingTranscription.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListShortCodeResponse.md b/rest/api/v2010/docs/ListShortCodeResponse.md index dd7d8b7c3..5bcd748f8 100644 --- a/rest/api/v2010/docs/ListShortCodeResponse.md +++ b/rest/api/v2010/docs/ListShortCodeResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **ShortCodes** | [**[]ApiV2010ShortCode**](ApiV2010ShortCode.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSigningKeyResponse.md b/rest/api/v2010/docs/ListSigningKeyResponse.md index c3f98c7d2..1da0fbfd2 100644 --- a/rest/api/v2010/docs/ListSigningKeyResponse.md +++ b/rest/api/v2010/docs/ListSigningKeyResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **SigningKeys** | [**[]ApiV2010SigningKey**](ApiV2010SigningKey.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md index 6bd9d82c8..928bafdae 100644 --- a/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Contents** | [**[]ApiV2010SipAuthCallsCredentialListMapping**](ApiV2010SipAuthCallsCredentialListMapping.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md index 3ce1a2001..e42933936 100644 --- a/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Contents** | [**[]ApiV2010SipAuthCallsIpAccessControlListMapping**](ApiV2010SipAuthCallsIpAccessControlListMapping.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md index 3b666dba7..057c4c187 100644 --- a/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Contents** | [**[]ApiV2010SipAuthRegistrationsCredentialListMapping**](ApiV2010SipAuthRegistrationsCredentialListMapping.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md b/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md index ee4d3834a..323f70e81 100644 --- a/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **CredentialListMappings** | [**[]ApiV2010SipCredentialListMapping**](ApiV2010SipCredentialListMapping.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipCredentialListResponse.md b/rest/api/v2010/docs/ListSipCredentialListResponse.md index 3fffc9f82..423ce0077 100644 --- a/rest/api/v2010/docs/ListSipCredentialListResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialListResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **CredentialLists** | [**[]ApiV2010SipCredentialList**](ApiV2010SipCredentialList.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipCredentialResponse.md b/rest/api/v2010/docs/ListSipCredentialResponse.md index e33491550..b58269fd5 100644 --- a/rest/api/v2010/docs/ListSipCredentialResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Credentials** | [**[]ApiV2010SipCredential**](ApiV2010SipCredential.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipDomainResponse.md b/rest/api/v2010/docs/ListSipDomainResponse.md index b190ef19b..2d4f21bba 100644 --- a/rest/api/v2010/docs/ListSipDomainResponse.md +++ b/rest/api/v2010/docs/ListSipDomainResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Domains** | [**[]ApiV2010SipDomain**](ApiV2010SipDomain.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md b/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md index 9a80f3cf2..2530ce307 100644 --- a/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IpAccessControlListMappings** | [**[]ApiV2010SipIpAccessControlListMapping**](ApiV2010SipIpAccessControlListMapping.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md b/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md index 15f958cc9..af775c899 100644 --- a/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md +++ b/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IpAccessControlLists** | [**[]ApiV2010SipIpAccessControlList**](ApiV2010SipIpAccessControlList.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListSipIpAddressResponse.md b/rest/api/v2010/docs/ListSipIpAddressResponse.md index b2cc77bcc..9b3b8b15c 100644 --- a/rest/api/v2010/docs/ListSipIpAddressResponse.md +++ b/rest/api/v2010/docs/ListSipIpAddressResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **IpAddresses** | [**[]ApiV2010SipIpAddress**](ApiV2010SipIpAddress.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListTranscriptionResponse.md b/rest/api/v2010/docs/ListTranscriptionResponse.md index 0372e9ab2..a62e8734f 100644 --- a/rest/api/v2010/docs/ListTranscriptionResponse.md +++ b/rest/api/v2010/docs/ListTranscriptionResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **Transcriptions** | [**[]ApiV2010Transcription**](ApiV2010Transcription.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md b/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md index 442428c0b..f691964db 100644 --- a/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordAllTime**](ApiV2010UsageRecordAllTime.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordDailyResponse.md b/rest/api/v2010/docs/ListUsageRecordDailyResponse.md index b6ededb47..dcc2e585c 100644 --- a/rest/api/v2010/docs/ListUsageRecordDailyResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordDailyResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordDaily**](ApiV2010UsageRecordDaily.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md b/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md index ecf09a90b..8a8c29665 100644 --- a/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordLastMonth**](ApiV2010UsageRecordLastMonth.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md b/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md index 129a7b527..a08305687 100644 --- a/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordMonthly**](ApiV2010UsageRecordMonthly.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordResponse.md b/rest/api/v2010/docs/ListUsageRecordResponse.md index c9ca61377..394b2dd68 100644 --- a/rest/api/v2010/docs/ListUsageRecordResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecord**](ApiV2010UsageRecord.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md b/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md index 9434eb160..865389562 100644 --- a/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordThisMonth**](ApiV2010UsageRecordThisMonth.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordTodayResponse.md b/rest/api/v2010/docs/ListUsageRecordTodayResponse.md index 94c939cc9..a738ea755 100644 --- a/rest/api/v2010/docs/ListUsageRecordTodayResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordTodayResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordToday**](ApiV2010UsageRecordToday.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md b/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md index 7baf3c32a..36652656c 100644 --- a/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordYearly**](ApiV2010UsageRecordYearly.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md b/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md index a1905cdaf..98ed2040b 100644 --- a/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageRecords** | [**[]ApiV2010UsageRecordYesterday**](ApiV2010UsageRecordYesterday.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/docs/ListUsageTriggerResponse.md b/rest/api/v2010/docs/ListUsageTriggerResponse.md index ad8d36f60..32293033f 100644 --- a/rest/api/v2010/docs/ListUsageTriggerResponse.md +++ b/rest/api/v2010/docs/ListUsageTriggerResponse.md @@ -4,6 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**End** | **int** | |[optional] +**FirstPageUri** | **string** | |[optional] +**NextPageUri** | Pointer to **string** | | +**Page** | **int** | |[optional] +**PageSize** | **int** | |[optional] +**PreviousPageUri** | Pointer to **string** | | +**Start** | **int** | |[optional] +**Uri** | **string** | |[optional] **UsageTriggers** | [**[]ApiV2010UsageTrigger**](ApiV2010UsageTrigger.md) | |[optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/api/v2010/model_api_v2010_call.go b/rest/api/v2010/model_api_v2010_call.go index 5f6791670..cacc8eba1 100644 --- a/rest/api/v2010/model_api_v2010_call.go +++ b/rest/api/v2010/model_api_v2010_call.go @@ -18,9 +18,9 @@ package openapi type ApiV2010Call struct { // The unique string that we created to identify this Call resource. Sid *string `json:"sid,omitempty"` - // The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + // The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateCreated *string `json:"date_created,omitempty"` - // The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + // The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. DateUpdated *string `json:"date_updated,omitempty"` // The SID that identifies the call that created this leg. ParentCallSid *string `json:"parent_call_sid,omitempty"` @@ -37,9 +37,9 @@ type ApiV2010Call struct { // If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. PhoneNumberSid *string `json:"phone_number_sid,omitempty"` Status *string `json:"status,omitempty"` - // The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. + // The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. StartTime *string `json:"start_time,omitempty"` - // The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. + // The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. EndTime *string `json:"end_time,omitempty"` // The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. Duration *string `json:"duration,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_participant.go b/rest/api/v2010/model_api_v2010_participant.go index efb5369b6..1e98e829d 100644 --- a/rest/api/v2010/model_api_v2010_participant.go +++ b/rest/api/v2010/model_api_v2010_participant.go @@ -41,6 +41,8 @@ type ApiV2010Participant struct { // Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. StartConferenceOnEnter *bool `json:"start_conference_on_enter,omitempty"` Status *string `json:"status,omitempty"` + // The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request. + QueueTime *string `json:"queue_time,omitempty"` // The URI of the resource, relative to `https://api.twilio.com`. Uri *string `json:"uri,omitempty"` } diff --git a/rest/api/v2010/model_list_account_response.go b/rest/api/v2010/model_list_account_response.go index 17b90332e..e917d466b 100644 --- a/rest/api/v2010/model_list_account_response.go +++ b/rest/api/v2010/model_list_account_response.go @@ -16,5 +16,13 @@ package openapi // ListAccountResponse struct for ListAccountResponse type ListAccountResponse struct { - Accounts []ApiV2010Account `json:"accounts,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Accounts []ApiV2010Account `json:"accounts,omitempty"` } diff --git a/rest/api/v2010/model_list_address_response.go b/rest/api/v2010/model_list_address_response.go index c0a411f7c..3f4142536 100644 --- a/rest/api/v2010/model_list_address_response.go +++ b/rest/api/v2010/model_list_address_response.go @@ -16,5 +16,13 @@ package openapi // ListAddressResponse struct for ListAddressResponse type ListAddressResponse struct { - Addresses []ApiV2010Address `json:"addresses,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Addresses []ApiV2010Address `json:"addresses,omitempty"` } diff --git a/rest/api/v2010/model_list_application_response.go b/rest/api/v2010/model_list_application_response.go index 66cd3c8bf..59da9801c 100644 --- a/rest/api/v2010/model_list_application_response.go +++ b/rest/api/v2010/model_list_application_response.go @@ -16,5 +16,13 @@ package openapi // ListApplicationResponse struct for ListApplicationResponse type ListApplicationResponse struct { - Applications []ApiV2010Application `json:"applications,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Applications []ApiV2010Application `json:"applications,omitempty"` } diff --git a/rest/api/v2010/model_list_authorized_connect_app_response.go b/rest/api/v2010/model_list_authorized_connect_app_response.go index c05e3fc48..60b870a86 100644 --- a/rest/api/v2010/model_list_authorized_connect_app_response.go +++ b/rest/api/v2010/model_list_authorized_connect_app_response.go @@ -16,5 +16,13 @@ package openapi // ListAuthorizedConnectAppResponse struct for ListAuthorizedConnectAppResponse type ListAuthorizedConnectAppResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AuthorizedConnectApps []ApiV2010AuthorizedConnectApp `json:"authorized_connect_apps,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_country_response.go b/rest/api/v2010/model_list_available_phone_number_country_response.go index db275caaf..0da76149d 100644 --- a/rest/api/v2010/model_list_available_phone_number_country_response.go +++ b/rest/api/v2010/model_list_available_phone_number_country_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberCountryResponse struct for ListAvailablePhoneNumberCountryResponse type ListAvailablePhoneNumberCountryResponse struct { - Countries []ApiV2010AvailablePhoneNumberCountry `json:"countries,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Countries []ApiV2010AvailablePhoneNumberCountry `json:"countries,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_local_response.go b/rest/api/v2010/model_list_available_phone_number_local_response.go index 86578631b..bafcf2703 100644 --- a/rest/api/v2010/model_list_available_phone_number_local_response.go +++ b/rest/api/v2010/model_list_available_phone_number_local_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberLocalResponse struct for ListAvailablePhoneNumberLocalResponse type ListAvailablePhoneNumberLocalResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberLocal `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go index 64f21a52c..f2f1e7e28 100644 --- a/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go +++ b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberMachineToMachineResponse struct for ListAvailablePhoneNumberMachineToMachineResponse type ListAvailablePhoneNumberMachineToMachineResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberMachineToMachine `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_mobile_response.go b/rest/api/v2010/model_list_available_phone_number_mobile_response.go index 94f68f593..df4bf290f 100644 --- a/rest/api/v2010/model_list_available_phone_number_mobile_response.go +++ b/rest/api/v2010/model_list_available_phone_number_mobile_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberMobileResponse struct for ListAvailablePhoneNumberMobileResponse type ListAvailablePhoneNumberMobileResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberMobile `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_national_response.go b/rest/api/v2010/model_list_available_phone_number_national_response.go index 6a21f9c5a..5fb4834a9 100644 --- a/rest/api/v2010/model_list_available_phone_number_national_response.go +++ b/rest/api/v2010/model_list_available_phone_number_national_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberNationalResponse struct for ListAvailablePhoneNumberNationalResponse type ListAvailablePhoneNumberNationalResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberNational `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go b/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go index 0bc2e4309..47fd992ea 100644 --- a/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go +++ b/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberSharedCostResponse struct for ListAvailablePhoneNumberSharedCostResponse type ListAvailablePhoneNumberSharedCostResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberSharedCost `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_toll_free_response.go b/rest/api/v2010/model_list_available_phone_number_toll_free_response.go index 9f70e1749..c00440aca 100644 --- a/rest/api/v2010/model_list_available_phone_number_toll_free_response.go +++ b/rest/api/v2010/model_list_available_phone_number_toll_free_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberTollFreeResponse struct for ListAvailablePhoneNumberTollFreeResponse type ListAvailablePhoneNumberTollFreeResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberTollFree `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_available_phone_number_voip_response.go b/rest/api/v2010/model_list_available_phone_number_voip_response.go index 1f5194502..f3087b01d 100644 --- a/rest/api/v2010/model_list_available_phone_number_voip_response.go +++ b/rest/api/v2010/model_list_available_phone_number_voip_response.go @@ -16,5 +16,13 @@ package openapi // ListAvailablePhoneNumberVoipResponse struct for ListAvailablePhoneNumberVoipResponse type ListAvailablePhoneNumberVoipResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberVoip `json:"available_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_call_event_response.go b/rest/api/v2010/model_list_call_event_response.go index 39b43c2df..e010c3d77 100644 --- a/rest/api/v2010/model_list_call_event_response.go +++ b/rest/api/v2010/model_list_call_event_response.go @@ -16,5 +16,13 @@ package openapi // ListCallEventResponse struct for ListCallEventResponse type ListCallEventResponse struct { - Events []ApiV2010CallEvent `json:"events,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Events []ApiV2010CallEvent `json:"events,omitempty"` } diff --git a/rest/api/v2010/model_list_call_notification_response.go b/rest/api/v2010/model_list_call_notification_response.go index 496068a77..45ea9cd53 100644 --- a/rest/api/v2010/model_list_call_notification_response.go +++ b/rest/api/v2010/model_list_call_notification_response.go @@ -16,5 +16,13 @@ package openapi // ListCallNotificationResponse struct for ListCallNotificationResponse type ListCallNotificationResponse struct { - Notifications []ApiV2010CallNotification `json:"notifications,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Notifications []ApiV2010CallNotification `json:"notifications,omitempty"` } diff --git a/rest/api/v2010/model_list_call_recording_response.go b/rest/api/v2010/model_list_call_recording_response.go index c5fb106b8..c1ab0282e 100644 --- a/rest/api/v2010/model_list_call_recording_response.go +++ b/rest/api/v2010/model_list_call_recording_response.go @@ -16,5 +16,13 @@ package openapi // ListCallRecordingResponse struct for ListCallRecordingResponse type ListCallRecordingResponse struct { - Recordings []ApiV2010CallRecording `json:"recordings,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Recordings []ApiV2010CallRecording `json:"recordings,omitempty"` } diff --git a/rest/api/v2010/model_list_call_response.go b/rest/api/v2010/model_list_call_response.go index db8afc866..72ca64744 100644 --- a/rest/api/v2010/model_list_call_response.go +++ b/rest/api/v2010/model_list_call_response.go @@ -16,5 +16,13 @@ package openapi // ListCallResponse struct for ListCallResponse type ListCallResponse struct { - Calls []ApiV2010Call `json:"calls,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Calls []ApiV2010Call `json:"calls,omitempty"` } diff --git a/rest/api/v2010/model_list_conference_recording_response.go b/rest/api/v2010/model_list_conference_recording_response.go index cb1ca5460..a27be4fb1 100644 --- a/rest/api/v2010/model_list_conference_recording_response.go +++ b/rest/api/v2010/model_list_conference_recording_response.go @@ -16,5 +16,13 @@ package openapi // ListConferenceRecordingResponse struct for ListConferenceRecordingResponse type ListConferenceRecordingResponse struct { - Recordings []ApiV2010ConferenceRecording `json:"recordings,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Recordings []ApiV2010ConferenceRecording `json:"recordings,omitempty"` } diff --git a/rest/api/v2010/model_list_conference_response.go b/rest/api/v2010/model_list_conference_response.go index 526f63648..3bc6a4ad4 100644 --- a/rest/api/v2010/model_list_conference_response.go +++ b/rest/api/v2010/model_list_conference_response.go @@ -16,5 +16,13 @@ package openapi // ListConferenceResponse struct for ListConferenceResponse type ListConferenceResponse struct { - Conferences []ApiV2010Conference `json:"conferences,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Conferences []ApiV2010Conference `json:"conferences,omitempty"` } diff --git a/rest/api/v2010/model_list_connect_app_response.go b/rest/api/v2010/model_list_connect_app_response.go index 116859b10..a35fb387e 100644 --- a/rest/api/v2010/model_list_connect_app_response.go +++ b/rest/api/v2010/model_list_connect_app_response.go @@ -16,5 +16,13 @@ package openapi // ListConnectAppResponse struct for ListConnectAppResponse type ListConnectAppResponse struct { - ConnectApps []ApiV2010ConnectApp `json:"connect_apps,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + ConnectApps []ApiV2010ConnectApp `json:"connect_apps,omitempty"` } diff --git a/rest/api/v2010/model_list_dependent_phone_number_response.go b/rest/api/v2010/model_list_dependent_phone_number_response.go index fd06a535f..0b31e4f92 100644 --- a/rest/api/v2010/model_list_dependent_phone_number_response.go +++ b/rest/api/v2010/model_list_dependent_phone_number_response.go @@ -16,5 +16,13 @@ package openapi // ListDependentPhoneNumberResponse struct for ListDependentPhoneNumberResponse type ListDependentPhoneNumberResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` DependentPhoneNumbers []ApiV2010DependentPhoneNumber `json:"dependent_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go index 40263e9d6..abe4f1f54 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go @@ -16,5 +16,13 @@ package openapi // ListIncomingPhoneNumberAssignedAddOnExtensionResponse struct for ListIncomingPhoneNumberAssignedAddOnExtensionResponse type ListIncomingPhoneNumberAssignedAddOnExtensionResponse struct { - Extensions []ApiV2010IncomingPhoneNumberAssignedAddOnExtension `json:"extensions,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Extensions []ApiV2010IncomingPhoneNumberAssignedAddOnExtension `json:"extensions,omitempty"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go index 9e8235432..08942247f 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go @@ -16,5 +16,13 @@ package openapi // ListIncomingPhoneNumberAssignedAddOnResponse struct for ListIncomingPhoneNumberAssignedAddOnResponse type ListIncomingPhoneNumberAssignedAddOnResponse struct { - AssignedAddOns []ApiV2010IncomingPhoneNumberAssignedAddOn `json:"assigned_add_ons,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + AssignedAddOns []ApiV2010IncomingPhoneNumberAssignedAddOn `json:"assigned_add_ons,omitempty"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_local_response.go b/rest/api/v2010/model_list_incoming_phone_number_local_response.go index ec9612088..528754b83 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_local_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_local_response.go @@ -16,5 +16,13 @@ package openapi // ListIncomingPhoneNumberLocalResponse struct for ListIncomingPhoneNumberLocalResponse type ListIncomingPhoneNumberLocalResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` IncomingPhoneNumbers []ApiV2010IncomingPhoneNumberLocal `json:"incoming_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go b/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go index f931f651f..62b144ae9 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go @@ -16,5 +16,13 @@ package openapi // ListIncomingPhoneNumberMobileResponse struct for ListIncomingPhoneNumberMobileResponse type ListIncomingPhoneNumberMobileResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` IncomingPhoneNumbers []ApiV2010IncomingPhoneNumberMobile `json:"incoming_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_response.go b/rest/api/v2010/model_list_incoming_phone_number_response.go index e18972c59..d2dfa19ba 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_response.go @@ -16,5 +16,13 @@ package openapi // ListIncomingPhoneNumberResponse struct for ListIncomingPhoneNumberResponse type ListIncomingPhoneNumberResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` IncomingPhoneNumbers []ApiV2010IncomingPhoneNumber `json:"incoming_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go b/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go index 736055375..cbbb2f0e2 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go @@ -16,5 +16,13 @@ package openapi // ListIncomingPhoneNumberTollFreeResponse struct for ListIncomingPhoneNumberTollFreeResponse type ListIncomingPhoneNumberTollFreeResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` IncomingPhoneNumbers []ApiV2010IncomingPhoneNumberTollFree `json:"incoming_phone_numbers,omitempty"` } diff --git a/rest/api/v2010/model_list_key_response.go b/rest/api/v2010/model_list_key_response.go index 64d262400..4895cc7f7 100644 --- a/rest/api/v2010/model_list_key_response.go +++ b/rest/api/v2010/model_list_key_response.go @@ -16,5 +16,13 @@ package openapi // ListKeyResponse struct for ListKeyResponse type ListKeyResponse struct { - Keys []ApiV2010Key `json:"keys,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Keys []ApiV2010Key `json:"keys,omitempty"` } diff --git a/rest/api/v2010/model_list_media_response.go b/rest/api/v2010/model_list_media_response.go index 49b2993de..f61a17b0e 100644 --- a/rest/api/v2010/model_list_media_response.go +++ b/rest/api/v2010/model_list_media_response.go @@ -16,5 +16,13 @@ package openapi // ListMediaResponse struct for ListMediaResponse type ListMediaResponse struct { - MediaList []ApiV2010Media `json:"media_list,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + MediaList []ApiV2010Media `json:"media_list,omitempty"` } diff --git a/rest/api/v2010/model_list_member_response.go b/rest/api/v2010/model_list_member_response.go index c3ed6d7cc..c717126b7 100644 --- a/rest/api/v2010/model_list_member_response.go +++ b/rest/api/v2010/model_list_member_response.go @@ -16,5 +16,13 @@ package openapi // ListMemberResponse struct for ListMemberResponse type ListMemberResponse struct { - QueueMembers []ApiV2010Member `json:"queue_members,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + QueueMembers []ApiV2010Member `json:"queue_members,omitempty"` } diff --git a/rest/api/v2010/model_list_message_response.go b/rest/api/v2010/model_list_message_response.go index bda6f38fa..c51d4f80a 100644 --- a/rest/api/v2010/model_list_message_response.go +++ b/rest/api/v2010/model_list_message_response.go @@ -16,5 +16,13 @@ package openapi // ListMessageResponse struct for ListMessageResponse type ListMessageResponse struct { - Messages []ApiV2010Message `json:"messages,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Messages []ApiV2010Message `json:"messages,omitempty"` } diff --git a/rest/api/v2010/model_list_notification_response.go b/rest/api/v2010/model_list_notification_response.go index f01255a65..bf30f9114 100644 --- a/rest/api/v2010/model_list_notification_response.go +++ b/rest/api/v2010/model_list_notification_response.go @@ -16,5 +16,13 @@ package openapi // ListNotificationResponse struct for ListNotificationResponse type ListNotificationResponse struct { - Notifications []ApiV2010Notification `json:"notifications,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Notifications []ApiV2010Notification `json:"notifications,omitempty"` } diff --git a/rest/api/v2010/model_list_outgoing_caller_id_response.go b/rest/api/v2010/model_list_outgoing_caller_id_response.go index 6c59f46ca..51e45098d 100644 --- a/rest/api/v2010/model_list_outgoing_caller_id_response.go +++ b/rest/api/v2010/model_list_outgoing_caller_id_response.go @@ -16,5 +16,13 @@ package openapi // ListOutgoingCallerIdResponse struct for ListOutgoingCallerIdResponse type ListOutgoingCallerIdResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` OutgoingCallerIds []ApiV2010OutgoingCallerId `json:"outgoing_caller_ids,omitempty"` } diff --git a/rest/api/v2010/model_list_participant_response.go b/rest/api/v2010/model_list_participant_response.go index b3cd4cc67..048e81ee2 100644 --- a/rest/api/v2010/model_list_participant_response.go +++ b/rest/api/v2010/model_list_participant_response.go @@ -16,5 +16,13 @@ package openapi // ListParticipantResponse struct for ListParticipantResponse type ListParticipantResponse struct { - Participants []ApiV2010Participant `json:"participants,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Participants []ApiV2010Participant `json:"participants,omitempty"` } diff --git a/rest/api/v2010/model_list_queue_response.go b/rest/api/v2010/model_list_queue_response.go index f834a8344..42babed33 100644 --- a/rest/api/v2010/model_list_queue_response.go +++ b/rest/api/v2010/model_list_queue_response.go @@ -16,5 +16,13 @@ package openapi // ListQueueResponse struct for ListQueueResponse type ListQueueResponse struct { - Queues []ApiV2010Queue `json:"queues,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Queues []ApiV2010Queue `json:"queues,omitempty"` } diff --git a/rest/api/v2010/model_list_recording_add_on_result_payload_response.go b/rest/api/v2010/model_list_recording_add_on_result_payload_response.go index f345b521a..82e3346cb 100644 --- a/rest/api/v2010/model_list_recording_add_on_result_payload_response.go +++ b/rest/api/v2010/model_list_recording_add_on_result_payload_response.go @@ -16,5 +16,13 @@ package openapi // ListRecordingAddOnResultPayloadResponse struct for ListRecordingAddOnResultPayloadResponse type ListRecordingAddOnResultPayloadResponse struct { - Payloads []ApiV2010RecordingAddOnResultPayload `json:"payloads,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Payloads []ApiV2010RecordingAddOnResultPayload `json:"payloads,omitempty"` } diff --git a/rest/api/v2010/model_list_recording_add_on_result_response.go b/rest/api/v2010/model_list_recording_add_on_result_response.go index 14a051875..c8dc649c4 100644 --- a/rest/api/v2010/model_list_recording_add_on_result_response.go +++ b/rest/api/v2010/model_list_recording_add_on_result_response.go @@ -16,5 +16,13 @@ package openapi // ListRecordingAddOnResultResponse struct for ListRecordingAddOnResultResponse type ListRecordingAddOnResultResponse struct { - AddOnResults []ApiV2010RecordingAddOnResult `json:"add_on_results,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + AddOnResults []ApiV2010RecordingAddOnResult `json:"add_on_results,omitempty"` } diff --git a/rest/api/v2010/model_list_recording_response.go b/rest/api/v2010/model_list_recording_response.go index 9f3ca4d2d..2f4a8bbf4 100644 --- a/rest/api/v2010/model_list_recording_response.go +++ b/rest/api/v2010/model_list_recording_response.go @@ -16,5 +16,13 @@ package openapi // ListRecordingResponse struct for ListRecordingResponse type ListRecordingResponse struct { - Recordings []ApiV2010Recording `json:"recordings,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Recordings []ApiV2010Recording `json:"recordings,omitempty"` } diff --git a/rest/api/v2010/model_list_recording_transcription_response.go b/rest/api/v2010/model_list_recording_transcription_response.go index 5570dd41b..1f8a492ca 100644 --- a/rest/api/v2010/model_list_recording_transcription_response.go +++ b/rest/api/v2010/model_list_recording_transcription_response.go @@ -16,5 +16,13 @@ package openapi // ListRecordingTranscriptionResponse struct for ListRecordingTranscriptionResponse type ListRecordingTranscriptionResponse struct { - Transcriptions []ApiV2010RecordingTranscription `json:"transcriptions,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Transcriptions []ApiV2010RecordingTranscription `json:"transcriptions,omitempty"` } diff --git a/rest/api/v2010/model_list_short_code_response.go b/rest/api/v2010/model_list_short_code_response.go index 14c431002..c9a197097 100644 --- a/rest/api/v2010/model_list_short_code_response.go +++ b/rest/api/v2010/model_list_short_code_response.go @@ -16,5 +16,13 @@ package openapi // ListShortCodeResponse struct for ListShortCodeResponse type ListShortCodeResponse struct { - ShortCodes []ApiV2010ShortCode `json:"short_codes,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + ShortCodes []ApiV2010ShortCode `json:"short_codes,omitempty"` } diff --git a/rest/api/v2010/model_list_signing_key_response.go b/rest/api/v2010/model_list_signing_key_response.go index 64d3f4e35..9c7aca42c 100644 --- a/rest/api/v2010/model_list_signing_key_response.go +++ b/rest/api/v2010/model_list_signing_key_response.go @@ -16,5 +16,13 @@ package openapi // ListSigningKeyResponse struct for ListSigningKeyResponse type ListSigningKeyResponse struct { - SigningKeys []ApiV2010SigningKey `json:"signing_keys,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + SigningKeys []ApiV2010SigningKey `json:"signing_keys,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go b/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go index 51632e9b0..3a5646924 100644 --- a/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go +++ b/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go @@ -16,5 +16,13 @@ package openapi // ListSipAuthCallsCredentialListMappingResponse struct for ListSipAuthCallsCredentialListMappingResponse type ListSipAuthCallsCredentialListMappingResponse struct { - Contents []ApiV2010SipAuthCallsCredentialListMapping `json:"contents,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Contents []ApiV2010SipAuthCallsCredentialListMapping `json:"contents,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go b/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go index e5338a2a3..863eec957 100644 --- a/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go +++ b/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go @@ -16,5 +16,13 @@ package openapi // ListSipAuthCallsIpAccessControlListMappingResponse struct for ListSipAuthCallsIpAccessControlListMappingResponse type ListSipAuthCallsIpAccessControlListMappingResponse struct { - Contents []ApiV2010SipAuthCallsIpAccessControlListMapping `json:"contents,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Contents []ApiV2010SipAuthCallsIpAccessControlListMapping `json:"contents,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go b/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go index 0bcc95306..6b44399a0 100644 --- a/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go +++ b/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go @@ -16,5 +16,13 @@ package openapi // ListSipAuthRegistrationsCredentialListMappingResponse struct for ListSipAuthRegistrationsCredentialListMappingResponse type ListSipAuthRegistrationsCredentialListMappingResponse struct { - Contents []ApiV2010SipAuthRegistrationsCredentialListMapping `json:"contents,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Contents []ApiV2010SipAuthRegistrationsCredentialListMapping `json:"contents,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_credential_list_mapping_response.go b/rest/api/v2010/model_list_sip_credential_list_mapping_response.go index c7f01b59e..8c2e35b7f 100644 --- a/rest/api/v2010/model_list_sip_credential_list_mapping_response.go +++ b/rest/api/v2010/model_list_sip_credential_list_mapping_response.go @@ -16,5 +16,13 @@ package openapi // ListSipCredentialListMappingResponse struct for ListSipCredentialListMappingResponse type ListSipCredentialListMappingResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` CredentialListMappings []ApiV2010SipCredentialListMapping `json:"credential_list_mappings,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_credential_list_response.go b/rest/api/v2010/model_list_sip_credential_list_response.go index da0f7996e..dc0a025ed 100644 --- a/rest/api/v2010/model_list_sip_credential_list_response.go +++ b/rest/api/v2010/model_list_sip_credential_list_response.go @@ -16,5 +16,13 @@ package openapi // ListSipCredentialListResponse struct for ListSipCredentialListResponse type ListSipCredentialListResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` CredentialLists []ApiV2010SipCredentialList `json:"credential_lists,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_credential_response.go b/rest/api/v2010/model_list_sip_credential_response.go index f6455a390..77ba4f85e 100644 --- a/rest/api/v2010/model_list_sip_credential_response.go +++ b/rest/api/v2010/model_list_sip_credential_response.go @@ -16,5 +16,13 @@ package openapi // ListSipCredentialResponse struct for ListSipCredentialResponse type ListSipCredentialResponse struct { - Credentials []ApiV2010SipCredential `json:"credentials,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Credentials []ApiV2010SipCredential `json:"credentials,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_domain_response.go b/rest/api/v2010/model_list_sip_domain_response.go index cf07f0fb7..0a2ca6ffa 100644 --- a/rest/api/v2010/model_list_sip_domain_response.go +++ b/rest/api/v2010/model_list_sip_domain_response.go @@ -16,5 +16,13 @@ package openapi // ListSipDomainResponse struct for ListSipDomainResponse type ListSipDomainResponse struct { - Domains []ApiV2010SipDomain `json:"domains,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Domains []ApiV2010SipDomain `json:"domains,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go index 53c70a119..65c512baa 100644 --- a/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go +++ b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go @@ -16,5 +16,13 @@ package openapi // ListSipIpAccessControlListMappingResponse struct for ListSipIpAccessControlListMappingResponse type ListSipIpAccessControlListMappingResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` IpAccessControlListMappings []ApiV2010SipIpAccessControlListMapping `json:"ip_access_control_list_mappings,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_ip_access_control_list_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_response.go index 584097f9b..c6a8d19e9 100644 --- a/rest/api/v2010/model_list_sip_ip_access_control_list_response.go +++ b/rest/api/v2010/model_list_sip_ip_access_control_list_response.go @@ -16,5 +16,13 @@ package openapi // ListSipIpAccessControlListResponse struct for ListSipIpAccessControlListResponse type ListSipIpAccessControlListResponse struct { + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` IpAccessControlLists []ApiV2010SipIpAccessControlList `json:"ip_access_control_lists,omitempty"` } diff --git a/rest/api/v2010/model_list_sip_ip_address_response.go b/rest/api/v2010/model_list_sip_ip_address_response.go index 5eb10e5d2..b0347554f 100644 --- a/rest/api/v2010/model_list_sip_ip_address_response.go +++ b/rest/api/v2010/model_list_sip_ip_address_response.go @@ -16,5 +16,13 @@ package openapi // ListSipIpAddressResponse struct for ListSipIpAddressResponse type ListSipIpAddressResponse struct { - IpAddresses []ApiV2010SipIpAddress `json:"ip_addresses,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + IpAddresses []ApiV2010SipIpAddress `json:"ip_addresses,omitempty"` } diff --git a/rest/api/v2010/model_list_transcription_response.go b/rest/api/v2010/model_list_transcription_response.go index 91935b23a..ebabe6262 100644 --- a/rest/api/v2010/model_list_transcription_response.go +++ b/rest/api/v2010/model_list_transcription_response.go @@ -16,5 +16,13 @@ package openapi // ListTranscriptionResponse struct for ListTranscriptionResponse type ListTranscriptionResponse struct { - Transcriptions []ApiV2010Transcription `json:"transcriptions,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + Transcriptions []ApiV2010Transcription `json:"transcriptions,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_all_time_response.go b/rest/api/v2010/model_list_usage_record_all_time_response.go index 500c50ff0..8b08e650c 100644 --- a/rest/api/v2010/model_list_usage_record_all_time_response.go +++ b/rest/api/v2010/model_list_usage_record_all_time_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordAllTimeResponse struct for ListUsageRecordAllTimeResponse type ListUsageRecordAllTimeResponse struct { - UsageRecords []ApiV2010UsageRecordAllTime `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordAllTime `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_daily_response.go b/rest/api/v2010/model_list_usage_record_daily_response.go index 6ad4c8fea..f4e448834 100644 --- a/rest/api/v2010/model_list_usage_record_daily_response.go +++ b/rest/api/v2010/model_list_usage_record_daily_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordDailyResponse struct for ListUsageRecordDailyResponse type ListUsageRecordDailyResponse struct { - UsageRecords []ApiV2010UsageRecordDaily `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordDaily `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_last_month_response.go b/rest/api/v2010/model_list_usage_record_last_month_response.go index df45c4549..23cba59a6 100644 --- a/rest/api/v2010/model_list_usage_record_last_month_response.go +++ b/rest/api/v2010/model_list_usage_record_last_month_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordLastMonthResponse struct for ListUsageRecordLastMonthResponse type ListUsageRecordLastMonthResponse struct { - UsageRecords []ApiV2010UsageRecordLastMonth `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordLastMonth `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_monthly_response.go b/rest/api/v2010/model_list_usage_record_monthly_response.go index a493a6b4d..13b3474f4 100644 --- a/rest/api/v2010/model_list_usage_record_monthly_response.go +++ b/rest/api/v2010/model_list_usage_record_monthly_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordMonthlyResponse struct for ListUsageRecordMonthlyResponse type ListUsageRecordMonthlyResponse struct { - UsageRecords []ApiV2010UsageRecordMonthly `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordMonthly `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_response.go b/rest/api/v2010/model_list_usage_record_response.go index 70012afc2..f22550c66 100644 --- a/rest/api/v2010/model_list_usage_record_response.go +++ b/rest/api/v2010/model_list_usage_record_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordResponse struct for ListUsageRecordResponse type ListUsageRecordResponse struct { - UsageRecords []ApiV2010UsageRecord `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecord `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_this_month_response.go b/rest/api/v2010/model_list_usage_record_this_month_response.go index 27cdbd16f..22e51358f 100644 --- a/rest/api/v2010/model_list_usage_record_this_month_response.go +++ b/rest/api/v2010/model_list_usage_record_this_month_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordThisMonthResponse struct for ListUsageRecordThisMonthResponse type ListUsageRecordThisMonthResponse struct { - UsageRecords []ApiV2010UsageRecordThisMonth `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordThisMonth `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_today_response.go b/rest/api/v2010/model_list_usage_record_today_response.go index ac910da82..7cf57be2d 100644 --- a/rest/api/v2010/model_list_usage_record_today_response.go +++ b/rest/api/v2010/model_list_usage_record_today_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordTodayResponse struct for ListUsageRecordTodayResponse type ListUsageRecordTodayResponse struct { - UsageRecords []ApiV2010UsageRecordToday `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordToday `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_yearly_response.go b/rest/api/v2010/model_list_usage_record_yearly_response.go index a93c4f5ab..02a7a92cb 100644 --- a/rest/api/v2010/model_list_usage_record_yearly_response.go +++ b/rest/api/v2010/model_list_usage_record_yearly_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordYearlyResponse struct for ListUsageRecordYearlyResponse type ListUsageRecordYearlyResponse struct { - UsageRecords []ApiV2010UsageRecordYearly `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordYearly `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_record_yesterday_response.go b/rest/api/v2010/model_list_usage_record_yesterday_response.go index 40744bcde..8173ff512 100644 --- a/rest/api/v2010/model_list_usage_record_yesterday_response.go +++ b/rest/api/v2010/model_list_usage_record_yesterday_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageRecordYesterdayResponse struct for ListUsageRecordYesterdayResponse type ListUsageRecordYesterdayResponse struct { - UsageRecords []ApiV2010UsageRecordYesterday `json:"usage_records,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010UsageRecordYesterday `json:"usage_records,omitempty"` } diff --git a/rest/api/v2010/model_list_usage_trigger_response.go b/rest/api/v2010/model_list_usage_trigger_response.go index 0c599ab77..57e919a04 100644 --- a/rest/api/v2010/model_list_usage_trigger_response.go +++ b/rest/api/v2010/model_list_usage_trigger_response.go @@ -16,5 +16,13 @@ package openapi // ListUsageTriggerResponse struct for ListUsageTriggerResponse type ListUsageTriggerResponse struct { - UsageTriggers []ApiV2010UsageTrigger `json:"usage_triggers,omitempty"` + End int `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri *string `json:"next_page_uri,omitempty"` + Page int `json:"page,omitempty"` + PageSize int `json:"page_size,omitempty"` + PreviousPageUri *string `json:"previous_page_uri,omitempty"` + Start int `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageTriggers []ApiV2010UsageTrigger `json:"usage_triggers,omitempty"` } diff --git a/rest/bulkexports/v1/exports_jobs.go b/rest/bulkexports/v1/exports_jobs.go index 9f940eaf6..7dd346103 100644 --- a/rest/bulkexports/v1/exports_jobs.go +++ b/rest/bulkexports/v1/exports_jobs.go @@ -64,7 +64,6 @@ func (params *CreateExportCustomJobParams) SetEmail(Email string) *CreateExportC return params } -// func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportCustomJob, error) { path := "/v1/Exports/{ResourceType}/Jobs" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -106,7 +105,6 @@ func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateEx return ps, err } -// func (c *ApiService) DeleteJob(JobSid string) error { path := "/v1/Exports/Jobs/{JobSid}" path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) @@ -124,7 +122,6 @@ func (c *ApiService) DeleteJob(JobSid string) error { return nil } -// func (c *ApiService) FetchJob(JobSid string) (*BulkexportsV1Job, error) { path := "/v1/Exports/Jobs/{JobSid}" path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) diff --git a/rest/chat/v1/credentials.go b/rest/chat/v1/credentials.go index 7d1ce09c1..8cee103d4 100644 --- a/rest/chat/v1/credentials.go +++ b/rest/chat/v1/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Credential, error) { path := "/v1/Credentials" @@ -114,7 +113,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Cr return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -132,7 +130,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*ChatV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -332,7 +329,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v1/services.go b/rest/chat/v1/services.go index d5b8abda9..0cff5ef91 100644 --- a/rest/chat/v1/services.go +++ b/rest/chat/v1/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, error) { path := "/v1/Services" @@ -60,7 +59,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -78,7 +76,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*ChatV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -566,7 +563,6 @@ func (params *UpdateServiceParams) SetLimitsUserChannels(LimitsUserChannels int) return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v1/services_channels.go b/rest/chat/v1/services_channels.go index a4d54b7ea..b148e326b 100644 --- a/rest/chat/v1/services_channels.go +++ b/rest/chat/v1/services_channels.go @@ -52,7 +52,6 @@ func (params *CreateChannelParams) SetType(Type string) *CreateChannelParams { return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -88,7 +87,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam return ps, err } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -107,7 +105,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -303,7 +300,6 @@ func (params *UpdateChannelParams) SetAttributes(Attributes string) *UpdateChann return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_channels_invites.go b/rest/chat/v1/services_channels_invites.go index 9c7293663..b3dc72919 100644 --- a/rest/chat/v1/services_channels_invites.go +++ b/rest/chat/v1/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -71,7 +70,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_channels_members.go b/rest/chat/v1/services_channels_members.go index 43c63e650..5c924674d 100644 --- a/rest/chat/v1/services_channels_members.go +++ b/rest/chat/v1/services_channels_members.go @@ -40,7 +40,6 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -71,7 +70,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -283,7 +280,6 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_channels_messages.go b/rest/chat/v1/services_channels_messages.go index d66d42370..c7de3a5d9 100644 --- a/rest/chat/v1/services_channels_messages.go +++ b/rest/chat/v1/services_channels_messages.go @@ -46,7 +46,6 @@ func (params *CreateMessageParams) SetAttributes(Attributes string) *CreateMessa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -80,7 +79,6 @@ func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params return ps, err } -// func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -290,7 +287,6 @@ func (params *UpdateMessageParams) SetAttributes(Attributes string) *UpdateMessa return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_roles.go b/rest/chat/v1/services_roles.go index f7474658b..341a987ed 100644 --- a/rest/chat/v1/services_roles.go +++ b/rest/chat/v1/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*ChatV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*C return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*ChatV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -273,7 +270,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*ChatV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v1/services_users.go b/rest/chat/v1/services_users.go index 7a58491fd..eb2543604 100644 --- a/rest/chat/v1/services_users.go +++ b/rest/chat/v1/services_users.go @@ -52,7 +52,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*ChatV1User, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -88,7 +87,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*C return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -107,7 +105,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*ChatV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -292,7 +289,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*ChatV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/credentials.go b/rest/chat/v2/credentials.go index 376caa738..f031ba6c6 100644 --- a/rest/chat/v2/credentials.go +++ b/rest/chat/v2/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Credential, error) { path := "/v2/Credentials" @@ -114,7 +113,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Cr return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -132,7 +130,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*ChatV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -332,7 +329,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v2/services.go b/rest/chat/v2/services.go index 8a5a3e2a1..e732b72d2 100644 --- a/rest/chat/v2/services.go +++ b/rest/chat/v2/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, error) { path := "/v2/Services" @@ -60,7 +59,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -78,7 +76,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*ChatV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -428,7 +425,6 @@ func (params *UpdateServiceParams) SetNotificationsLogEnabled(NotificationsLogEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/chat/v2/services_bindings.go b/rest/chat/v2/services_bindings.go index 74d6d4a21..dba1ab250 100644 --- a/rest/chat/v2/services_bindings.go +++ b/rest/chat/v2/services_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -42,7 +41,6 @@ func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchBinding(ServiceSid string, Sid string) (*ChatV2Binding, error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels.go b/rest/chat/v2/services_channels.go index 66ebff7d7..3eb1cb5ac 100644 --- a/rest/chat/v2/services_channels.go +++ b/rest/chat/v2/services_channels.go @@ -77,7 +77,6 @@ func (params *CreateChannelParams) SetCreatedBy(CreatedBy string) *CreateChannel return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -136,7 +135,6 @@ func (params *DeleteChannelParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) error { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -158,7 +156,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *Delete return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -378,7 +375,6 @@ func (params *UpdateChannelParams) SetCreatedBy(CreatedBy string) *UpdateChannel return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_invites.go b/rest/chat/v2/services_channels_invites.go index 0b02c00d2..413d93005 100644 --- a/rest/chat/v2/services_channels_invites.go +++ b/rest/chat/v2/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -71,7 +70,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_members.go b/rest/chat/v2/services_channels_members.go index 015ed0684..386c7373a 100644 --- a/rest/chat/v2/services_channels_members.go +++ b/rest/chat/v2/services_channels_members.go @@ -77,7 +77,6 @@ func (params *CreateMemberParams) SetAttributes(Attributes string) *CreateMember return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -137,7 +136,6 @@ func (params *DeleteMemberParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled return params } -// func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string, params *DeleteMemberParams) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -160,7 +158,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -382,7 +379,6 @@ func (params *UpdateMemberParams) SetAttributes(Attributes string) *UpdateMember return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_messages.go b/rest/chat/v2/services_channels_messages.go index 3cca69276..13ef94833 100644 --- a/rest/chat/v2/services_channels_messages.go +++ b/rest/chat/v2/services_channels_messages.go @@ -77,7 +77,6 @@ func (params *CreateMessageParams) SetMediaSid(MediaSid string) *CreateMessagePa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -137,7 +136,6 @@ func (params *DeleteMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -160,7 +158,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*ChatV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -380,7 +377,6 @@ func (params *UpdateMessageParams) SetFrom(From string) *UpdateMessageParams { return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_channels_webhooks.go b/rest/chat/v2/services_channels_webhooks.go index 6db76bd24..f2e734f18 100644 --- a/rest/chat/v2/services_channels_webhooks.go +++ b/rest/chat/v2/services_channels_webhooks.go @@ -70,7 +70,6 @@ func (params *CreateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*ChatV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -120,7 +119,6 @@ func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, return ps, err } -// func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -140,7 +138,6 @@ func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, return nil } -// func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -345,7 +342,6 @@ func (params *UpdateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_roles.go b/rest/chat/v2/services_roles.go index 36ea514eb..87eae374a 100644 --- a/rest/chat/v2/services_roles.go +++ b/rest/chat/v2/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*ChatV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*C return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*ChatV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -273,7 +270,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*ChatV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_users.go b/rest/chat/v2/services_users.go index 8ed504420..27c069dfd 100644 --- a/rest/chat/v2/services_users.go +++ b/rest/chat/v2/services_users.go @@ -58,7 +58,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*ChatV2User, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -97,7 +96,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*C return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -116,7 +114,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*ChatV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -307,7 +304,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*ChatV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_users_bindings.go b/rest/chat/v2/services_users_bindings.go index eec6334c4..3857e0969 100644 --- a/rest/chat/v2/services_users_bindings.go +++ b/rest/chat/v2/services_users_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -43,7 +42,6 @@ func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid st return nil } -// func (c *ApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*ChatV2UserBinding, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/chat/v2/services_users_channels.go b/rest/chat/v2/services_users_channels.go index 2545d1270..5513aed7c 100644 --- a/rest/chat/v2/services_users_channels.go +++ b/rest/chat/v2/services_users_channels.go @@ -58,7 +58,6 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe return nil } -// func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*ChatV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -245,7 +244,6 @@ func (params *UpdateUserChannelParams) SetLastConsumptionTimestamp(LastConsumpti return params } -// func (c *ApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*ChatV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/content/v1/README.md b/rest/content/v1/README.md index 2b51d8c8e..80d5a37db 100644 --- a/rest/content/v1/README.md +++ b/rest/content/v1/README.md @@ -36,8 +36,8 @@ Class | Method | HTTP request | Description *ContentApi* | [**FetchContent**](docs/ContentApi.md#fetchcontent) | **Get** /v1/Content/{Sid} | *ContentApi* | [**ListContent**](docs/ContentApi.md#listcontent) | **Get** /v1/Content | *ContentAndApprovalsApi* | [**ListContentAndApprovals**](docs/ContentAndApprovalsApi.md#listcontentandapprovals) | **Get** /v1/ContentAndApprovals | -*ContentApprovalRequestsApi* | [**FetchApproval**](docs/ContentApprovalRequestsApi.md#fetchapproval) | **Get** /v1/Content/{Sid}/ApprovalRequests | -*ContentApprovalRequestsWhatsappApi* | [**CreateContentApprovalRequest**](docs/ContentApprovalRequestsWhatsappApi.md#createcontentapprovalrequest) | **Post** /v1/Content/{Sid}/ApprovalRequests/whatsapp | +*ContentApprovalRequestsApi* | [**FetchApproval**](docs/ContentApprovalRequestsApi.md#fetchapproval) | **Get** /v1/Content/{ContentSid}/ApprovalRequests | +*ContentApprovalRequestsWhatsappApi* | [**CreateContentApprovalRequest**](docs/ContentApprovalRequestsWhatsappApi.md#createcontentapprovalrequest) | **Post** /v1/Content/{ContentSid}/ApprovalRequests/whatsapp | *LegacyContentApi* | [**ListLegacyContent**](docs/LegacyContentApi.md#listlegacycontent) | **Get** /v1/LegacyContent | @@ -65,12 +65,14 @@ Class | Method | HTTP request | Description - [CallToActionAction](docs/CallToActionAction.md) - [TwilioQuickReply](docs/TwilioQuickReply.md) - [ContentApprovalRequest](docs/ContentApprovalRequest.md) + - [TwilioCatalog](docs/TwilioCatalog.md) - [ContentV1Content](docs/ContentV1Content.md) - [ListContentResponse](docs/ListContentResponse.md) - [TwilioCallToAction](docs/TwilioCallToAction.md) - [AuthenticationActionType](docs/AuthenticationActionType.md) - [AuthenticationAction](docs/AuthenticationAction.md) - [CardAction](docs/CardAction.md) + - [CatalogItem](docs/CatalogItem.md) - [ContentV1LegacyContent](docs/ContentV1LegacyContent.md) - [ListContentAndApprovalsResponse](docs/ListContentAndApprovalsResponse.md) diff --git a/rest/content/v1/content_approval_requests.go b/rest/content/v1/content_approval_requests.go index 636ede04a..165858389 100644 --- a/rest/content/v1/content_approval_requests.go +++ b/rest/content/v1/content_approval_requests.go @@ -21,9 +21,9 @@ import ( ) // Fetch a Content resource's approval status by its unique Content Sid -func (c *ApiService) FetchApproval(Sid string) (*ContentV1ApprovalFetch, error) { - path := "/v1/Content/{Sid}/ApprovalRequests" - path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) +func (c *ApiService) FetchApproval(ContentSid string) (*ContentV1ApprovalFetch, error) { + path := "/v1/Content/{ContentSid}/ApprovalRequests" + path = strings.Replace(path, "{"+"ContentSid"+"}", ContentSid, -1) data := url.Values{} headers := make(map[string]interface{}) diff --git a/rest/content/v1/content_approval_requests_whatsapp.go b/rest/content/v1/content_approval_requests_whatsapp.go index 986ddfe46..f2adf78a8 100644 --- a/rest/content/v1/content_approval_requests_whatsapp.go +++ b/rest/content/v1/content_approval_requests_whatsapp.go @@ -31,9 +31,9 @@ func (params *CreateContentApprovalRequestParams) SetContentApprovalRequest(Cont return params } -func (c *ApiService) CreateContentApprovalRequest(Sid string, params *CreateContentApprovalRequestParams) (*ContentV1ApprovalCreate, error) { - path := "/v1/Content/{Sid}/ApprovalRequests/whatsapp" - path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) +func (c *ApiService) CreateContentApprovalRequest(ContentSid string, params *CreateContentApprovalRequestParams) (*ContentV1ApprovalCreate, error) { + path := "/v1/Content/{ContentSid}/ApprovalRequests/whatsapp" + path = strings.Replace(path, "{"+"ContentSid"+"}", ContentSid, -1) data := url.Values{} headers := map[string]interface{}{ diff --git a/rest/content/v1/docs/CatalogItem.md b/rest/content/v1/docs/CatalogItem.md new file mode 100644 index 000000000..b932f86fe --- /dev/null +++ b/rest/content/v1/docs/CatalogItem.md @@ -0,0 +1,16 @@ +# CatalogItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | |[optional] +**SectionTitle** | **string** | |[optional] +**Name** | **string** | |[optional] +**MediaUrl** | **string** | |[optional] +**Price** | **float32** | |[optional] +**Description** | **string** | |[optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/content/v1/docs/ContentApprovalRequestsApi.md b/rest/content/v1/docs/ContentApprovalRequestsApi.md index 18af3ba37..238cc358e 100644 --- a/rest/content/v1/docs/ContentApprovalRequestsApi.md +++ b/rest/content/v1/docs/ContentApprovalRequestsApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://content.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**FetchApproval**](ContentApprovalRequestsApi.md#FetchApproval) | **Get** /v1/Content/{Sid}/ApprovalRequests | +[**FetchApproval**](ContentApprovalRequestsApi.md#FetchApproval) | **Get** /v1/Content/{ContentSid}/ApprovalRequests | ## FetchApproval -> ContentV1ApprovalFetch FetchApproval(ctx, Sid) +> ContentV1ApprovalFetch FetchApproval(ctx, ContentSid) @@ -22,7 +22,7 @@ Fetch a Content resource's approval status by its unique Content Sid Name | Type | Description ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string** | The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch. +**ContentSid** | **string** | The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch. ### Other Parameters diff --git a/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md b/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md index 2e5c2ae10..c85e774e3 100644 --- a/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md +++ b/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://content.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateContentApprovalRequest**](ContentApprovalRequestsWhatsappApi.md#CreateContentApprovalRequest) | **Post** /v1/Content/{Sid}/ApprovalRequests/whatsapp | +[**CreateContentApprovalRequest**](ContentApprovalRequestsWhatsappApi.md#CreateContentApprovalRequest) | **Post** /v1/Content/{ContentSid}/ApprovalRequests/whatsapp | ## CreateContentApprovalRequest -> ContentV1ApprovalCreate CreateContentApprovalRequest(ctx, Sidoptional) +> ContentV1ApprovalCreate CreateContentApprovalRequest(ctx, ContentSidoptional) @@ -22,7 +22,7 @@ Method | HTTP request | Description Name | Type | Description ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string** | +**ContentSid** | **string** | ### Other Parameters diff --git a/rest/content/v1/docs/TwilioCatalog.md b/rest/content/v1/docs/TwilioCatalog.md new file mode 100644 index 000000000..85f339e21 --- /dev/null +++ b/rest/content/v1/docs/TwilioCatalog.md @@ -0,0 +1,16 @@ +# TwilioCatalog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | |[optional] +**Body** | **string** | | +**Subtitle** | **string** | |[optional] +**Id** | **string** | |[optional] +**Items** | [**[]CatalogItem**](CatalogItem.md) | |[optional] +**DynamicItems** | **string** | |[optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/content/v1/docs/Types.md b/rest/content/v1/docs/Types.md index 93d8aae48..2e882fd23 100644 --- a/rest/content/v1/docs/Types.md +++ b/rest/content/v1/docs/Types.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **TwilioCallToAction** | Pointer to [**TwilioCallToAction**](TwilioCallToAction.md) | | **TwilioQuickReply** | Pointer to [**TwilioQuickReply**](TwilioQuickReply.md) | | **TwilioCard** | Pointer to [**TwilioCard**](TwilioCard.md) | | +**TwilioCatalog** | Pointer to [**TwilioCatalog**](TwilioCatalog.md) | | **WhatsappCard** | Pointer to [**WhatsappCard**](WhatsappCard.md) | | **WhatsappAuthentication** | Pointer to [**WhatsappAuthentication**](WhatsappAuthentication.md) | | diff --git a/rest/content/v1/model_catalog_item.go b/rest/content/v1/model_catalog_item.go new file mode 100644 index 000000000..552590feb --- /dev/null +++ b/rest/content/v1/model_catalog_item.go @@ -0,0 +1,62 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Content + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "encoding/json" + + "github.com/twilio/twilio-go/client" +) + +// CatalogItem struct for CatalogItem +type CatalogItem struct { + Id string `json:"id,omitempty"` + SectionTitle string `json:"section_title,omitempty"` + Name string `json:"name,omitempty"` + MediaUrl string `json:"media_url,omitempty"` + Price float32 `json:"price,omitempty"` + Description string `json:"description,omitempty"` +} + +func (response *CatalogItem) UnmarshalJSON(bytes []byte) (err error) { + raw := struct { + Id string `json:"id"` + SectionTitle string `json:"section_title"` + Name string `json:"name"` + MediaUrl string `json:"media_url"` + Price interface{} `json:"price"` + Description string `json:"description"` + }{} + + if err = json.Unmarshal(bytes, &raw); err != nil { + return err + } + + *response = CatalogItem{ + Id: raw.Id, + SectionTitle: raw.SectionTitle, + Name: raw.Name, + MediaUrl: raw.MediaUrl, + Description: raw.Description, + } + + responsePrice, err := client.UnmarshalFloat32(&raw.Price) + if err != nil { + return err + } + response.Price = *responsePrice + + return +} diff --git a/rest/content/v1/model_twilio_catalog.go b/rest/content/v1/model_twilio_catalog.go new file mode 100644 index 000000000..01533283a --- /dev/null +++ b/rest/content/v1/model_twilio_catalog.go @@ -0,0 +1,25 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Content + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// TwilioCatalog twilio/catalog type lets recipients view list of catalog products, ask questions about products, order products. +type TwilioCatalog struct { + Title string `json:"title,omitempty"` + Body string `json:"body"` + Subtitle string `json:"subtitle,omitempty"` + Id string `json:"id,omitempty"` + Items []CatalogItem `json:"items,omitempty"` + DynamicItems string `json:"dynamic_items,omitempty"` +} diff --git a/rest/content/v1/model_types.go b/rest/content/v1/model_types.go index a3c7c4625..364eb5830 100644 --- a/rest/content/v1/model_types.go +++ b/rest/content/v1/model_types.go @@ -23,6 +23,7 @@ type Types struct { TwilioCallToAction *TwilioCallToAction `json:"twilio/call-to-action,omitempty"` TwilioQuickReply *TwilioQuickReply `json:"twilio/quick-reply,omitempty"` TwilioCard *TwilioCard `json:"twilio/card,omitempty"` + TwilioCatalog *TwilioCatalog `json:"twilio/catalog,omitempty"` WhatsappCard *WhatsappCard `json:"whatsapp/card,omitempty"` WhatsappAuthentication *WhatsappAuthentication `json:"whatsapp/authentication,omitempty"` } diff --git a/rest/conversations/v1/configuration_webhooks.go b/rest/conversations/v1/configuration_webhooks.go index bece581d0..8bc18afd9 100644 --- a/rest/conversations/v1/configuration_webhooks.go +++ b/rest/conversations/v1/configuration_webhooks.go @@ -19,7 +19,6 @@ import ( "net/url" ) -// func (c *ApiService) FetchConfigurationWebhook() (*ConversationsV1ConfigurationWebhook, error) { path := "/v1/Configuration/Webhooks" @@ -76,7 +75,6 @@ func (params *UpdateConfigurationWebhookParams) SetTarget(Target string) *Update return params } -// func (c *ApiService) UpdateConfigurationWebhook(params *UpdateConfigurationWebhookParams) (*ConversationsV1ConfigurationWebhook, error) { path := "/v1/Configuration/Webhooks" diff --git a/rest/conversations/v1/docs/ServicesConversationsApi.md b/rest/conversations/v1/docs/ServicesConversationsApi.md index 1ce5acdb1..d3b5e6d65 100644 --- a/rest/conversations/v1/docs/ServicesConversationsApi.md +++ b/rest/conversations/v1/docs/ServicesConversationsApi.md @@ -176,8 +176,8 @@ Other parameters are passed through a pointer to a ListServiceConversationParams Name | Type | Description ------------- | ------------- | ------------- -**StartDate** | **string** | Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. -**EndDate** | **string** | End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. +**StartDate** | **string** | Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. +**EndDate** | **string** | Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. **State** | **string** | State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/conversations/v1/services_conversations.go b/rest/conversations/v1/services_conversations.go index 5ad76e3d2..09b03cd37 100644 --- a/rest/conversations/v1/services_conversations.go +++ b/rest/conversations/v1/services_conversations.go @@ -220,9 +220,9 @@ func (c *ApiService) FetchServiceConversation(ChatServiceSid string, Sid string) // Optional parameters for the method 'ListServiceConversation' type ListServiceConversationParams struct { - // Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. + // Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. StartDate *string `json:"StartDate,omitempty"` - // End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. + // Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. EndDate *string `json:"EndDate,omitempty"` // State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` State *string `json:"State,omitempty"` diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md index 3b44e1f8b..8583ac9dd 100644 --- a/rest/flex/v1/README.md +++ b/rest/flex/v1/README.md @@ -111,13 +111,13 @@ Class | Method | HTTP request | Description - [FlexV1InteractionChannel](docs/FlexV1InteractionChannel.md) - [ListChannelResponse](docs/ListChannelResponse.md) - [FlexV1InteractionChannelParticipant](docs/FlexV1InteractionChannelParticipant.md) - - [ListInsightsQuestionnairesCategoryResponse](docs/ListInsightsQuestionnairesCategoryResponse.md) - [ListPluginConfigurationResponse](docs/ListPluginConfigurationResponse.md) + - [ListInsightsQuestionnairesCategoryResponse](docs/ListInsightsQuestionnairesCategoryResponse.md) - [ListInsightsQuestionnairesResponse](docs/ListInsightsQuestionnairesResponse.md) - [FlexV1InsightsQuestionnaires](docs/FlexV1InsightsQuestionnaires.md) - [FlexV1ConfiguredPlugin](docs/FlexV1ConfiguredPlugin.md) - - [FlexV1Interaction](docs/FlexV1Interaction.md) - [ListInsightsConversationsResponse](docs/ListInsightsConversationsResponse.md) + - [FlexV1Interaction](docs/FlexV1Interaction.md) - [FlexV1InsightsQuestionnairesQuestion](docs/FlexV1InsightsQuestionnairesQuestion.md) - [ListFlexFlowResponse](docs/ListFlexFlowResponse.md) - [ListConfiguredPluginResponse](docs/ListConfiguredPluginResponse.md) @@ -129,11 +129,11 @@ Class | Method | HTTP request | Description - [FlexV1Channel](docs/FlexV1Channel.md) - [ListInsightsAssessmentsResponse](docs/ListInsightsAssessmentsResponse.md) - [FlexV1PluginRelease](docs/FlexV1PluginRelease.md) - - [FlexV1InsightsSettingsComment](docs/FlexV1InsightsSettingsComment.md) - [ListInsightsSegmentsResponse](docs/ListInsightsSegmentsResponse.md) + - [FlexV1InsightsSettingsComment](docs/FlexV1InsightsSettingsComment.md) + - [FlexV1WebChannel](docs/FlexV1WebChannel.md) - [FlexV1PluginConfigurationArchive](docs/FlexV1PluginConfigurationArchive.md) - [FlexV1PluginVersion](docs/FlexV1PluginVersion.md) - - [FlexV1WebChannel](docs/FlexV1WebChannel.md) - [FlexV1InsightsSegments](docs/FlexV1InsightsSegments.md) - [FlexV1PluginConfiguration](docs/FlexV1PluginConfiguration.md) - [FlexV1PluginArchive](docs/FlexV1PluginArchive.md) @@ -143,8 +143,8 @@ Class | Method | HTTP request | Description - [ListWebChannelResponse](docs/ListWebChannelResponse.md) - [FlexV1Configuration](docs/FlexV1Configuration.md) - [FlexV1InsightsAssessments](docs/FlexV1InsightsAssessments.md) - - [FlexV1InsightsConversations](docs/FlexV1InsightsConversations.md) - [FlexV1InsightsQuestionnairesCategory](docs/FlexV1InsightsQuestionnairesCategory.md) + - [FlexV1InsightsConversations](docs/FlexV1InsightsConversations.md) - [ListPluginVersionResponse](docs/ListPluginVersionResponse.md) - [FlexV1ProvisioningStatus](docs/FlexV1ProvisioningStatus.md) - [FlexV1Plugin](docs/FlexV1Plugin.md) diff --git a/rest/flex/v1/account_provision_status.go b/rest/flex/v1/account_provision_status.go index f24e5a0e4..bb07738f4 100644 --- a/rest/flex/v1/account_provision_status.go +++ b/rest/flex/v1/account_provision_status.go @@ -19,7 +19,6 @@ import ( "net/url" ) -// func (c *ApiService) FetchProvisioningStatus() (*FlexV1ProvisioningStatus, error) { path := "/v1/account/provision/status" diff --git a/rest/flex/v1/channels.go b/rest/flex/v1/channels.go index ddf91c9f7..e8c3067f2 100644 --- a/rest/flex/v1/channels.go +++ b/rest/flex/v1/channels.go @@ -88,7 +88,6 @@ func (params *CreateChannelParams) SetLongLived(LongLived bool) *CreateChannelPa return params } -// func (c *ApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, error) { path := "/v1/Channels" @@ -141,7 +140,6 @@ func (c *ApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, return ps, err } -// func (c *ApiService) DeleteChannel(Sid string) error { path := "/v1/Channels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -159,7 +157,6 @@ func (c *ApiService) DeleteChannel(Sid string) error { return nil } -// func (c *ApiService) FetchChannel(Sid string) (*FlexV1Channel, error) { path := "/v1/Channels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/docs/PluginServicePluginsApi.md b/rest/flex/v1/docs/PluginServicePluginsApi.md index 69b9ceb98..b59d48ded 100644 --- a/rest/flex/v1/docs/PluginServicePluginsApi.md +++ b/rest/flex/v1/docs/PluginServicePluginsApi.md @@ -34,6 +34,8 @@ Name | Type | Description **UniqueName** | **string** | The Flex Plugin's unique name. **FriendlyName** | **string** | The Flex Plugin's friendly name. **Description** | **string** | A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long +**CliVersion** | **string** | The version of Flex Plugins CLI used to create this plugin +**ValidateStatus** | **string** | The validation status of the plugin, indicating whether it has been validated ### Return type diff --git a/rest/flex/v1/flex_flows.go b/rest/flex/v1/flex_flows.go index 705066713..da39f2cdd 100644 --- a/rest/flex/v1/flex_flows.go +++ b/rest/flex/v1/flex_flows.go @@ -130,7 +130,6 @@ func (params *CreateFlexFlowParams) SetIntegrationRetryCount(IntegrationRetryCou return params } -// func (c *ApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows" @@ -204,7 +203,6 @@ func (c *ApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFl return ps, err } -// func (c *ApiService) DeleteFlexFlow(Sid string) error { path := "/v1/FlexFlows/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -222,7 +220,6 @@ func (c *ApiService) DeleteFlexFlow(Sid string) error { return nil } -// func (c *ApiService) FetchFlexFlow(Sid string) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -497,7 +494,6 @@ func (params *UpdateFlexFlowParams) SetIntegrationRetryCount(IntegrationRetryCou return params } -// func (c *ApiService) UpdateFlexFlow(Sid string, params *UpdateFlexFlowParams) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/insights_quality_management_categories.go b/rest/flex/v1/insights_quality_management_categories.go index 8e1d5d795..bcb9b96b7 100644 --- a/rest/flex/v1/insights_quality_management_categories.go +++ b/rest/flex/v1/insights_quality_management_categories.go @@ -80,7 +80,6 @@ func (params *DeleteInsightsQuestionnairesCategoryParams) SetAuthorization(Autho return params } -// func (c *ApiService) DeleteInsightsQuestionnairesCategory(CategorySid string, params *DeleteInsightsQuestionnairesCategoryParams) error { path := "/v1/Insights/QualityManagement/Categories/{CategorySid}" path = strings.Replace(path, "{"+"CategorySid"+"}", CategorySid, -1) diff --git a/rest/flex/v1/insights_quality_management_questions.go b/rest/flex/v1/insights_quality_management_questions.go index b2128f4ca..58271bb05 100644 --- a/rest/flex/v1/insights_quality_management_questions.go +++ b/rest/flex/v1/insights_quality_management_questions.go @@ -116,7 +116,6 @@ func (params *DeleteInsightsQuestionnairesQuestionParams) SetAuthorization(Autho return params } -// func (c *ApiService) DeleteInsightsQuestionnairesQuestion(QuestionSid string, params *DeleteInsightsQuestionnairesQuestionParams) error { path := "/v1/Insights/QualityManagement/Questions/{QuestionSid}" path = strings.Replace(path, "{"+"QuestionSid"+"}", QuestionSid, -1) diff --git a/rest/flex/v1/interactions.go b/rest/flex/v1/interactions.go index fb0d949a7..0d7bb9d5f 100644 --- a/rest/flex/v1/interactions.go +++ b/rest/flex/v1/interactions.go @@ -87,7 +87,6 @@ func (c *ApiService) CreateInteraction(params *CreateInteractionParams) (*FlexV1 return ps, err } -// func (c *ApiService) FetchInteraction(Sid string) (*FlexV1Interaction, error) { path := "/v1/Interactions/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v1/plugin_service_plugins.go b/rest/flex/v1/plugin_service_plugins.go index 5c33170d0..b33b98cd7 100644 --- a/rest/flex/v1/plugin_service_plugins.go +++ b/rest/flex/v1/plugin_service_plugins.go @@ -33,6 +33,10 @@ type CreatePluginParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` // A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long Description *string `json:"Description,omitempty"` + // The version of Flex Plugins CLI used to create this plugin + CliVersion *string `json:"CliVersion,omitempty"` + // The validation status of the plugin, indicating whether it has been validated + ValidateStatus *string `json:"ValidateStatus,omitempty"` } func (params *CreatePluginParams) SetFlexMetadata(FlexMetadata string) *CreatePluginParams { @@ -51,6 +55,14 @@ func (params *CreatePluginParams) SetDescription(Description string) *CreatePlug params.Description = &Description return params } +func (params *CreatePluginParams) SetCliVersion(CliVersion string) *CreatePluginParams { + params.CliVersion = &CliVersion + return params +} +func (params *CreatePluginParams) SetValidateStatus(ValidateStatus string) *CreatePluginParams { + params.ValidateStatus = &ValidateStatus + return params +} func (c *ApiService) CreatePlugin(params *CreatePluginParams) (*FlexV1Plugin, error) { path := "/v1/PluginService/Plugins" @@ -67,6 +79,12 @@ func (c *ApiService) CreatePlugin(params *CreatePluginParams) (*FlexV1Plugin, er if params != nil && params.Description != nil { data.Set("Description", *params.Description) } + if params != nil && params.CliVersion != nil { + data.Set("CliVersion", *params.CliVersion) + } + if params != nil && params.ValidateStatus != nil { + data.Set("ValidateStatus", *params.ValidateStatus) + } if params != nil && params.FlexMetadata != nil { headers["Flex-Metadata"] = *params.FlexMetadata diff --git a/rest/flex/v1/web_channels.go b/rest/flex/v1/web_channels.go index 589a70e06..17de9149b 100644 --- a/rest/flex/v1/web_channels.go +++ b/rest/flex/v1/web_channels.go @@ -64,7 +64,6 @@ func (params *CreateWebChannelParams) SetPreEngagementData(PreEngagementData str return params } -// func (c *ApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1WebChannel, error) { path := "/v1/WebChannels" @@ -105,7 +104,6 @@ func (c *ApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1We return ps, err } -// func (c *ApiService) DeleteWebChannel(Sid string) error { path := "/v1/WebChannels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -123,7 +121,6 @@ func (c *ApiService) DeleteWebChannel(Sid string) error { return nil } -// func (c *ApiService) FetchWebChannel(Sid string) (*FlexV1WebChannel, error) { path := "/v1/WebChannels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -299,7 +296,6 @@ func (params *UpdateWebChannelParams) SetPostEngagementData(PostEngagementData s return params } -// func (c *ApiService) UpdateWebChannel(Sid string, params *UpdateWebChannelParams) (*FlexV1WebChannel, error) { path := "/v1/WebChannels/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/flex/v2/web_chats.go b/rest/flex/v2/web_chats.go index e54716669..75be2d4d7 100644 --- a/rest/flex/v2/web_chats.go +++ b/rest/flex/v2/web_chats.go @@ -48,7 +48,6 @@ func (params *CreateWebChannelParams) SetPreEngagementData(PreEngagementData str return params } -// func (c *ApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV2WebChannel, error) { path := "/v2/WebChats" diff --git a/rest/insights/v1/README.md b/rest/insights/v1/README.md index 652d3a7a9..9291f38a1 100644 --- a/rest/insights/v1/README.md +++ b/rest/insights/v1/README.md @@ -65,11 +65,11 @@ Class | Method | HTTP request | Description - [ListConferenceParticipantResponse](docs/ListConferenceParticipantResponse.md) - [ListVideoRoomSummaryResponse](docs/ListVideoRoomSummaryResponse.md) - [InsightsV1Call](docs/InsightsV1Call.md) - - [ListCallSummariesResponse](docs/ListCallSummariesResponse.md) - [ListCallSummariesResponseMeta](docs/ListCallSummariesResponseMeta.md) - - [InsightsV1Summary](docs/InsightsV1Summary.md) + - [ListCallSummariesResponse](docs/ListCallSummariesResponse.md) - [ListEventResponse](docs/ListEventResponse.md) - [ListMetricResponse](docs/ListMetricResponse.md) + - [InsightsV1Summary](docs/InsightsV1Summary.md) - [InsightsV1Event](docs/InsightsV1Event.md) diff --git a/rest/insights/v1/voice.go b/rest/insights/v1/voice.go index e78674854..cca0f3bb0 100644 --- a/rest/insights/v1/voice.go +++ b/rest/insights/v1/voice.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchCall(Sid string) (*InsightsV1Call, error) { path := "/v1/Voice/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/intelligence/v2/README.md b/rest/intelligence/v2/README.md index 4d452dc98..72f46461a 100644 --- a/rest/intelligence/v2/README.md +++ b/rest/intelligence/v2/README.md @@ -49,8 +49,8 @@ Class | Method | HTTP request | Description ## Documentation For Models - [ListOperatorResultResponseMeta](docs/ListOperatorResultResponseMeta.md) - - [IntelligenceV2OperatorResult](docs/IntelligenceV2OperatorResult.md) - [IntelligenceV2Transcript](docs/IntelligenceV2Transcript.md) + - [IntelligenceV2OperatorResult](docs/IntelligenceV2OperatorResult.md) - [ListTranscriptResponse](docs/ListTranscriptResponse.md) - [IntelligenceV2Service](docs/IntelligenceV2Service.md) - [IntelligenceV2Sentence](docs/IntelligenceV2Sentence.md) diff --git a/rest/ip_messaging/v1/credentials.go b/rest/ip_messaging/v1/credentials.go index 850c839e0..d340de2ee 100644 --- a/rest/ip_messaging/v1/credentials.go +++ b/rest/ip_messaging/v1/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV1Credential, error) { path := "/v1/Credentials" @@ -114,7 +113,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessag return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -132,7 +130,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*IpMessagingV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -332,7 +329,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*IpMessagingV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v1/services.go b/rest/ip_messaging/v1/services.go index a1370fc84..fc5ff23f9 100644 --- a/rest/ip_messaging/v1/services.go +++ b/rest/ip_messaging/v1/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV1Service, error) { path := "/v1/Services" @@ -60,7 +59,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV1S return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -78,7 +76,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*IpMessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -566,7 +563,6 @@ func (params *UpdateServiceParams) SetLimitsUserChannels(LimitsUserChannels int) return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IpMessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v1/services_channels.go b/rest/ip_messaging/v1/services_channels.go index 22d296a9e..fded0fc7c 100644 --- a/rest/ip_messaging/v1/services_channels.go +++ b/rest/ip_messaging/v1/services_channels.go @@ -52,7 +52,6 @@ func (params *CreateChannelParams) SetType(Type string) *CreateChannelParams { return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*IpMessagingV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -88,7 +87,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam return ps, err } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -107,7 +105,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*IpMessagingV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -303,7 +300,6 @@ func (params *UpdateChannelParams) SetAttributes(Attributes string) *UpdateChann return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV1Channel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_channels_invites.go b/rest/ip_messaging/v1/services_channels_invites.go index 30253d330..24ac87250 100644 --- a/rest/ip_messaging/v1/services_channels_invites.go +++ b/rest/ip_messaging/v1/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -71,7 +70,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV1Invite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_channels_members.go b/rest/ip_messaging/v1/services_channels_members.go index 77b1b4e90..78d104a16 100644 --- a/rest/ip_messaging/v1/services_channels_members.go +++ b/rest/ip_messaging/v1/services_channels_members.go @@ -40,7 +40,6 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -71,7 +70,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -283,7 +280,6 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV1Member, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_channels_messages.go b/rest/ip_messaging/v1/services_channels_messages.go index 28f929dda..bfeb8b6a1 100644 --- a/rest/ip_messaging/v1/services_channels_messages.go +++ b/rest/ip_messaging/v1/services_channels_messages.go @@ -46,7 +46,6 @@ func (params *CreateMessageParams) SetAttributes(Attributes string) *CreateMessa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -80,7 +79,6 @@ func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params return ps, err } -// func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -290,7 +287,6 @@ func (params *UpdateMessageParams) SetAttributes(Attributes string) *UpdateMessa return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV1Message, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_roles.go b/rest/ip_messaging/v1/services_roles.go index 3d562e6c0..11c122a62 100644 --- a/rest/ip_messaging/v1/services_roles.go +++ b/rest/ip_messaging/v1/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*IpMessagingV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*I return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -273,7 +270,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*IpMessagingV1Role, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v1/services_users.go b/rest/ip_messaging/v1/services_users.go index 8fe15c616..115cdf17e 100644 --- a/rest/ip_messaging/v1/services_users.go +++ b/rest/ip_messaging/v1/services_users.go @@ -52,7 +52,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*IpMessagingV1User, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -88,7 +87,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*I return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -107,7 +105,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -292,7 +289,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*IpMessagingV1User, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/credentials.go b/rest/ip_messaging/v2/credentials.go index 7d4227335..ba2285bad 100644 --- a/rest/ip_messaging/v2/credentials.go +++ b/rest/ip_messaging/v2/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV2Credential, error) { path := "/v2/Credentials" @@ -114,7 +113,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*IpMessag return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -132,7 +130,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*IpMessagingV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -332,7 +329,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*IpMessagingV2Credential, error) { path := "/v2/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v2/services.go b/rest/ip_messaging/v2/services.go index 3b093dcd5..d4fd50f00 100644 --- a/rest/ip_messaging/v2/services.go +++ b/rest/ip_messaging/v2/services.go @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2Service, error) { path := "/v2/Services" @@ -60,7 +59,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2S return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -78,7 +76,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*IpMessagingV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -428,7 +425,6 @@ func (params *UpdateServiceParams) SetNotificationsLogEnabled(NotificationsLogEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IpMessagingV2Service, error) { path := "/v2/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/ip_messaging/v2/services_bindings.go b/rest/ip_messaging/v2/services_bindings.go index 248da0f90..7ad442831 100644 --- a/rest/ip_messaging/v2/services_bindings.go +++ b/rest/ip_messaging/v2/services_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -42,7 +41,6 @@ func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchBinding(ServiceSid string, Sid string) (*IpMessagingV2Binding, error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels.go b/rest/ip_messaging/v2/services_channels.go index fe06ed53e..5b25e916a 100644 --- a/rest/ip_messaging/v2/services_channels.go +++ b/rest/ip_messaging/v2/services_channels.go @@ -77,7 +77,6 @@ func (params *CreateChannelParams) SetCreatedBy(CreatedBy string) *CreateChannel return params } -// func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*IpMessagingV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -136,7 +135,6 @@ func (params *DeleteChannelParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) error { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -158,7 +156,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *Delete return nil } -// func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*IpMessagingV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -378,7 +375,6 @@ func (params *UpdateChannelParams) SetCreatedBy(CreatedBy string) *UpdateChannel return params } -// func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV2Channel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_invites.go b/rest/ip_messaging/v2/services_channels_invites.go index f02e2cbbc..50210a400 100644 --- a/rest/ip_messaging/v2/services_channels_invites.go +++ b/rest/ip_messaging/v2/services_channels_invites.go @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams return params } -// func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -71,7 +70,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params * return ps, err } -// func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -91,7 +89,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2Invite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_members.go b/rest/ip_messaging/v2/services_channels_members.go index e3f23a9d7..d1d24d7b8 100644 --- a/rest/ip_messaging/v2/services_channels_members.go +++ b/rest/ip_messaging/v2/services_channels_members.go @@ -77,7 +77,6 @@ func (params *CreateMemberParams) SetAttributes(Attributes string) *CreateMember return params } -// func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -137,7 +136,6 @@ func (params *DeleteMemberParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled return params } -// func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string, params *DeleteMemberParams) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -160,7 +158,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri return nil } -// func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -382,7 +379,6 @@ func (params *UpdateMemberParams) SetAttributes(Attributes string) *UpdateMember return params } -// func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV2Member, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_messages.go b/rest/ip_messaging/v2/services_channels_messages.go index d8d0e8415..d2bed2911 100644 --- a/rest/ip_messaging/v2/services_channels_messages.go +++ b/rest/ip_messaging/v2/services_channels_messages.go @@ -77,7 +77,6 @@ func (params *CreateMessageParams) SetMediaSid(MediaSid string) *CreateMessagePa return params } -// func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -137,7 +136,6 @@ func (params *DeleteMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnable return params } -// func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -160,7 +158,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str return nil } -// func (c *ApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -380,7 +377,6 @@ func (params *UpdateMessageParams) SetFrom(From string) *UpdateMessageParams { return params } -// func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV2Message, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_channels_webhooks.go b/rest/ip_messaging/v2/services_channels_webhooks.go index 76535a9e2..2c4dbb3e7 100644 --- a/rest/ip_messaging/v2/services_channels_webhooks.go +++ b/rest/ip_messaging/v2/services_channels_webhooks.go @@ -70,7 +70,6 @@ func (params *CreateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -120,7 +119,6 @@ func (c *ApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, return ps, err } -// func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -140,7 +138,6 @@ func (c *ApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, return nil } -// func (c *ApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -345,7 +342,6 @@ func (params *UpdateChannelWebhookParams) SetConfigurationRetryCount(Configurati return params } -// func (c *ApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_roles.go b/rest/ip_messaging/v2/services_roles.go index 62bc98a4d..cf8640019 100644 --- a/rest/ip_messaging/v2/services_roles.go +++ b/rest/ip_messaging/v2/services_roles.go @@ -46,7 +46,6 @@ func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRolePa return params } -// func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*IpMessagingV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -81,7 +80,6 @@ func (c *ApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*I return ps, err } -// func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -100,7 +98,6 @@ func (c *ApiService) DeleteRole(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -273,7 +270,6 @@ func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRolePa return params } -// func (c *ApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*IpMessagingV2Role, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_users.go b/rest/ip_messaging/v2/services_users.go index fbe2eb131..38c8895ba 100644 --- a/rest/ip_messaging/v2/services_users.go +++ b/rest/ip_messaging/v2/services_users.go @@ -58,7 +58,6 @@ func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUser return params } -// func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*IpMessagingV2User, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -97,7 +96,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*I return ps, err } -// func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -116,7 +114,6 @@ func (c *ApiService) DeleteUser(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -307,7 +304,6 @@ func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUser return params } -// func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*IpMessagingV2User, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_users_bindings.go b/rest/ip_messaging/v2/services_users_bindings.go index 3ee4e8c86..1af0c698e 100644 --- a/rest/ip_messaging/v2/services_users_bindings.go +++ b/rest/ip_messaging/v2/services_users_bindings.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid string) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -43,7 +42,6 @@ func (c *ApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid st return nil } -// func (c *ApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*IpMessagingV2UserBinding, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/ip_messaging/v2/services_users_channels.go b/rest/ip_messaging/v2/services_users_channels.go index 08d882ce7..ca24e301f 100644 --- a/rest/ip_messaging/v2/services_users_channels.go +++ b/rest/ip_messaging/v2/services_users_channels.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, ChannelSid string) error { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -44,7 +43,6 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe return nil } -// func (c *ApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*IpMessagingV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -231,7 +229,6 @@ func (params *UpdateUserChannelParams) SetLastConsumptionTimestamp(LastConsumpti return params } -// func (c *ApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*IpMessagingV2UserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/lookups/v1/phone_numbers.go b/rest/lookups/v1/phone_numbers.go index 437c00a8f..44560d9bb 100644 --- a/rest/lookups/v1/phone_numbers.go +++ b/rest/lookups/v1/phone_numbers.go @@ -49,7 +49,6 @@ func (params *FetchPhoneNumberParams) SetAddOnsData(AddOnsData map[string]interf return params } -// func (c *ApiService) FetchPhoneNumber(PhoneNumber string, params *FetchPhoneNumberParams) (*LookupsV1PhoneNumber, error) { path := "/v1/PhoneNumbers/{PhoneNumber}" path = strings.Replace(path, "{"+"PhoneNumber"+"}", PhoneNumber, -1) diff --git a/rest/lookups/v2/phone_numbers.go b/rest/lookups/v2/phone_numbers.go index 110751dbd..66b9029b4 100644 --- a/rest/lookups/v2/phone_numbers.go +++ b/rest/lookups/v2/phone_numbers.go @@ -103,7 +103,6 @@ func (params *FetchPhoneNumberParams) SetLastVerifiedDate(LastVerifiedDate strin return params } -// func (c *ApiService) FetchPhoneNumber(PhoneNumber string, params *FetchPhoneNumberParams) (*LookupsV2PhoneNumber, error) { path := "/v2/PhoneNumbers/{PhoneNumber}" path = strings.Replace(path, "{"+"PhoneNumber"+"}", PhoneNumber, -1) diff --git a/rest/media/v1/media_processors.go b/rest/media/v1/media_processors.go index 90fd7b7f2..93916118f 100644 --- a/rest/media/v1/media_processors.go +++ b/rest/media/v1/media_processors.go @@ -64,7 +64,6 @@ func (params *CreateMediaProcessorParams) SetMaxDuration(MaxDuration int) *Creat return params } -// func (c *ApiService) CreateMediaProcessor(params *CreateMediaProcessorParams) (*MediaV1MediaProcessor, error) { path := "/v1/MediaProcessors" diff --git a/rest/media/v1/player_streamers.go b/rest/media/v1/player_streamers.go index 88938ee7b..24146e238 100644 --- a/rest/media/v1/player_streamers.go +++ b/rest/media/v1/player_streamers.go @@ -52,7 +52,6 @@ func (params *CreatePlayerStreamerParams) SetMaxDuration(MaxDuration int) *Creat return params } -// func (c *ApiService) CreatePlayerStreamer(params *CreatePlayerStreamerParams) (*MediaV1PlayerStreamer, error) { path := "/v1/PlayerStreamers" diff --git a/rest/media/v1/player_streamers_playback_grant.go b/rest/media/v1/player_streamers_playback_grant.go index 9ad55e06a..ece852082 100644 --- a/rest/media/v1/player_streamers_playback_grant.go +++ b/rest/media/v1/player_streamers_playback_grant.go @@ -38,7 +38,6 @@ func (params *CreatePlayerStreamerPlaybackGrantParams) SetAccessControlAllowOrig return params } -// func (c *ApiService) CreatePlayerStreamerPlaybackGrant(Sid string, params *CreatePlayerStreamerPlaybackGrantParams) (*MediaV1PlayerStreamerPlaybackGrant, error) { path := "/v1/PlayerStreamers/{Sid}/PlaybackGrant" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/messaging/v1/a2p_brand_registrations.go b/rest/messaging/v1/a2p_brand_registrations.go index a6ce88b3f..5f9668ca7 100644 --- a/rest/messaging/v1/a2p_brand_registrations.go +++ b/rest/messaging/v1/a2p_brand_registrations.go @@ -58,7 +58,6 @@ func (params *CreateBrandRegistrationsParams) SetSkipAutomaticSecVet(SkipAutomat return params } -// func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsParams) (*MessagingV1BrandRegistrations, error) { path := "/v1/a2p/BrandRegistrations" @@ -96,7 +95,6 @@ func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsPa return ps, err } -// func (c *ApiService) FetchBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error) { path := "/v1/a2p/BrandRegistrations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -255,7 +253,6 @@ func (c *ApiService) getNextListBrandRegistrationsResponse(nextPageUrl string) ( return ps, nil } -// func (c *ApiService) UpdateBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error) { path := "/v1/a2p/BrandRegistrations/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/messaging/v1/a2p_brand_registrations_sms_otp.go b/rest/messaging/v1/a2p_brand_registrations_sms_otp.go index 17fcb9614..81a176e80 100644 --- a/rest/messaging/v1/a2p_brand_registrations_sms_otp.go +++ b/rest/messaging/v1/a2p_brand_registrations_sms_otp.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) CreateBrandRegistrationOtp(BrandRegistrationSid string) (*MessagingV1BrandRegistrationOtp, error) { path := "/v1/a2p/BrandRegistrations/{BrandRegistrationSid}/SmsOtp" path = strings.Replace(path, "{"+"BrandRegistrationSid"+"}", BrandRegistrationSid, -1) diff --git a/rest/messaging/v1/a2p_brand_registrations_vettings.go b/rest/messaging/v1/a2p_brand_registrations_vettings.go index b7e46cdcd..05ddbf434 100644 --- a/rest/messaging/v1/a2p_brand_registrations_vettings.go +++ b/rest/messaging/v1/a2p_brand_registrations_vettings.go @@ -40,7 +40,6 @@ func (params *CreateBrandVettingParams) SetVettingId(VettingId string) *CreateBr return params } -// func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVettingParams) (*MessagingV1BrandVetting, error) { path := "/v1/a2p/BrandRegistrations/{BrandSid}/Vettings" path = strings.Replace(path, "{"+"BrandSid"+"}", BrandSid, -1) @@ -70,7 +69,6 @@ func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVett return ps, err } -// func (c *ApiService) FetchBrandVetting(BrandSid string, BrandVettingSid string) (*MessagingV1BrandVetting, error) { path := "/v1/a2p/BrandRegistrations/{BrandSid}/Vettings/{BrandVettingSid}" path = strings.Replace(path, "{"+"BrandSid"+"}", BrandSid, -1) diff --git a/rest/messaging/v1/link_shortening_domains_certificate.go b/rest/messaging/v1/link_shortening_domains_certificate.go index 8447978d3..0fa4d0362 100644 --- a/rest/messaging/v1/link_shortening_domains_certificate.go +++ b/rest/messaging/v1/link_shortening_domains_certificate.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) DeleteDomainCertV4(DomainSid string) error { path := "/v1/LinkShortening/Domains/{DomainSid}/Certificate" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -38,7 +37,6 @@ func (c *ApiService) DeleteDomainCertV4(DomainSid string) error { return nil } -// func (c *ApiService) FetchDomainCertV4(DomainSid string) (*MessagingV1DomainCertV4, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Certificate" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -72,7 +70,6 @@ func (params *UpdateDomainCertV4Params) SetTlsCert(TlsCert string) *UpdateDomain return params } -// func (c *ApiService) UpdateDomainCertV4(DomainSid string, params *UpdateDomainCertV4Params) (*MessagingV1DomainCertV4, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Certificate" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_domains_config.go b/rest/messaging/v1/link_shortening_domains_config.go index 04e34b090..874fa724c 100644 --- a/rest/messaging/v1/link_shortening_domains_config.go +++ b/rest/messaging/v1/link_shortening_domains_config.go @@ -21,7 +21,6 @@ import ( "strings" ) -// func (c *ApiService) FetchDomainConfig(DomainSid string) (*MessagingV1DomainConfig, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Config" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -73,7 +72,6 @@ func (params *UpdateDomainConfigParams) SetDisableHttps(DisableHttps bool) *Upda return params } -// func (c *ApiService) UpdateDomainConfig(DomainSid string, params *UpdateDomainConfigParams) (*MessagingV1DomainConfig, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/Config" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_domains_messaging_services.go b/rest/messaging/v1/link_shortening_domains_messaging_services.go index 44f94e76f..aae126b84 100644 --- a/rest/messaging/v1/link_shortening_domains_messaging_services.go +++ b/rest/messaging/v1/link_shortening_domains_messaging_services.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingService, error) { path := "/v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -44,7 +43,6 @@ func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, Mess return ps, err } -// func (c *ApiService) DeleteLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) error { path := "/v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}" path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) diff --git a/rest/messaging/v1/link_shortening_messaging_service_domain_config.go b/rest/messaging/v1/link_shortening_messaging_service_domain_config.go index 9d2291f27..e42de5313 100644 --- a/rest/messaging/v1/link_shortening_messaging_service_domain_config.go +++ b/rest/messaging/v1/link_shortening_messaging_service_domain_config.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchDomainConfigMessagingService(MessagingServiceSid string) (*MessagingV1DomainConfigMessagingService, error) { path := "/v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/link_shortening_messaging_services_domain.go b/rest/messaging/v1/link_shortening_messaging_services_domain.go index 5d23d2737..0eb7c25c6 100644 --- a/rest/messaging/v1/link_shortening_messaging_services_domain.go +++ b/rest/messaging/v1/link_shortening_messaging_services_domain.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchLinkshorteningMessagingServiceDomainAssociation(MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingServiceDomainAssociation, error) { path := "/v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/services.go b/rest/messaging/v1/services.go index df8bfbe4a..49078b888 100644 --- a/rest/messaging/v1/services.go +++ b/rest/messaging/v1/services.go @@ -124,7 +124,6 @@ func (params *CreateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhoo return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error) { path := "/v1/Services" @@ -195,7 +194,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Ser return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -213,7 +211,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*MessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -473,7 +470,6 @@ func (params *UpdateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhoo return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*MessagingV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/messaging/v1/services_alpha_senders.go b/rest/messaging/v1/services_alpha_senders.go index c8a5639cb..2b967ae5e 100644 --- a/rest/messaging/v1/services_alpha_senders.go +++ b/rest/messaging/v1/services_alpha_senders.go @@ -34,7 +34,6 @@ func (params *CreateAlphaSenderParams) SetAlphaSender(AlphaSender string) *Creat return params } -// func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1AlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -61,7 +60,6 @@ func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSen return ps, err } -// func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -80,7 +78,6 @@ func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchAlphaSender(ServiceSid string, Sid string) (*MessagingV1AlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/messaging/v1/services_channel_senders.go b/rest/messaging/v1/services_channel_senders.go index 27408c83d..6f9b968da 100644 --- a/rest/messaging/v1/services_channel_senders.go +++ b/rest/messaging/v1/services_channel_senders.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchChannelSender(MessagingServiceSid string, Sid string) (*MessagingV1ChannelSender, error) { path := "/v1/Services/{MessagingServiceSid}/ChannelSenders/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/services_compliance_usa2p.go b/rest/messaging/v1/services_compliance_usa2p.go index c4ee14941..74bec7b73 100644 --- a/rest/messaging/v1/services_compliance_usa2p.go +++ b/rest/messaging/v1/services_compliance_usa2p.go @@ -124,7 +124,6 @@ func (params *CreateUsAppToPersonParams) SetDirectLending(DirectLending bool) *C return params } -// func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *CreateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -204,7 +203,6 @@ func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *Cre return ps, err } -// func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) error { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -223,7 +221,6 @@ func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) return nil } -// func (c *ApiService) FetchUsAppToPerson(MessagingServiceSid string, Sid string) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) @@ -432,7 +429,6 @@ func (params *UpdateUsAppToPersonParams) SetDirectLending(DirectLending bool) *U return params } -// func (c *ApiService) UpdateUsAppToPerson(MessagingServiceSid string, Sid string, params *UpdateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/services_compliance_usa2p_usecases.go b/rest/messaging/v1/services_compliance_usa2p_usecases.go index 93a7586c0..793f981bc 100644 --- a/rest/messaging/v1/services_compliance_usa2p_usecases.go +++ b/rest/messaging/v1/services_compliance_usa2p_usecases.go @@ -31,7 +31,6 @@ func (params *FetchUsAppToPersonUsecaseParams) SetBrandRegistrationSid(BrandRegi return params } -// func (c *ApiService) FetchUsAppToPersonUsecase(MessagingServiceSid string, params *FetchUsAppToPersonUsecaseParams) (*MessagingV1UsAppToPersonUsecase, error) { path := "/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/Usecases" path = strings.Replace(path, "{"+"MessagingServiceSid"+"}", MessagingServiceSid, -1) diff --git a/rest/messaging/v1/services_phone_numbers.go b/rest/messaging/v1/services_phone_numbers.go index 1f2f48fbb..b6042c472 100644 --- a/rest/messaging/v1/services_phone_numbers.go +++ b/rest/messaging/v1/services_phone_numbers.go @@ -34,7 +34,6 @@ func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) return params } -// func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -61,7 +60,6 @@ func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNum return ps, err } -// func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -80,7 +78,6 @@ func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*MessagingV1PhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/messaging/v1/services_preregistered_usa2p.go b/rest/messaging/v1/services_preregistered_usa2p.go index f188b45af..9ffb9318b 100644 --- a/rest/messaging/v1/services_preregistered_usa2p.go +++ b/rest/messaging/v1/services_preregistered_usa2p.go @@ -36,7 +36,6 @@ func (params *CreateExternalCampaignParams) SetMessagingServiceSid(MessagingServ return params } -// func (c *ApiService) CreateExternalCampaign(params *CreateExternalCampaignParams) (*MessagingV1ExternalCampaign, error) { path := "/v1/Services/PreregisteredUsa2p" diff --git a/rest/messaging/v1/services_short_codes.go b/rest/messaging/v1/services_short_codes.go index 19745e3d4..eed09f980 100644 --- a/rest/messaging/v1/services_short_codes.go +++ b/rest/messaging/v1/services_short_codes.go @@ -34,7 +34,6 @@ func (params *CreateShortCodeParams) SetShortCodeSid(ShortCodeSid string) *Creat return params } -// func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*MessagingV1ShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -61,7 +60,6 @@ func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeP return ps, err } -// func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -80,7 +78,6 @@ func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1ShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/messaging/v1/services_usecases.go b/rest/messaging/v1/services_usecases.go index 6fd408723..b787ca55f 100644 --- a/rest/messaging/v1/services_usecases.go +++ b/rest/messaging/v1/services_usecases.go @@ -19,7 +19,6 @@ import ( "net/url" ) -// func (c *ApiService) FetchUsecase() (*MessagingV1Usecase, error) { path := "/v1/Services/Usecases" diff --git a/rest/messaging/v1/tollfree_verifications.go b/rest/messaging/v1/tollfree_verifications.go index a795ef0f5..3940a9fa7 100644 --- a/rest/messaging/v1/tollfree_verifications.go +++ b/rest/messaging/v1/tollfree_verifications.go @@ -166,7 +166,6 @@ func (params *CreateTollfreeVerificationParams) SetExternalReferenceId(ExternalR return params } -// func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications" @@ -262,7 +261,6 @@ func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificati return ps, err } -// func (c *ApiService) DeleteTollfreeVerification(Sid string) error { path := "/v1/Tollfree/Verifications/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -280,7 +278,6 @@ func (c *ApiService) DeleteTollfreeVerification(Sid string) error { return nil } -// func (c *ApiService) FetchTollfreeVerification(Sid string) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -588,7 +585,6 @@ func (params *UpdateTollfreeVerificationParams) SetEditReason(EditReason string) return params } -// func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/monitor/v1/alerts.go b/rest/monitor/v1/alerts.go index 7fc808c65..5abad2743 100644 --- a/rest/monitor/v1/alerts.go +++ b/rest/monitor/v1/alerts.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchAlert(Sid string) (*MonitorV1AlertInstance, error) { path := "/v1/Alerts/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/monitor/v1/events.go b/rest/monitor/v1/events.go index 98492ac46..880d45d76 100644 --- a/rest/monitor/v1/events.go +++ b/rest/monitor/v1/events.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchEvent(Sid string) (*MonitorV1Event, error) { path := "/v1/Events/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/notify/v1/credentials.go b/rest/notify/v1/credentials.go index 196d912d3..c5f63a49f 100644 --- a/rest/notify/v1/credentials.go +++ b/rest/notify/v1/credentials.go @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential return params } -// func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1Credential, error) { path := "/v1/Credentials" @@ -114,7 +113,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1 return ps, err } -// func (c *ApiService) DeleteCredential(Sid string) error { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -132,7 +130,6 @@ func (c *ApiService) DeleteCredential(Sid string) error { return nil } -// func (c *ApiService) FetchCredential(Sid string) (*NotifyV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -332,7 +329,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential return params } -// func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*NotifyV1Credential, error) { path := "/v1/Credentials/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/notify/v1/services.go b/rest/notify/v1/services.go index e19cdb3d3..fb64a5079 100644 --- a/rest/notify/v1/services.go +++ b/rest/notify/v1/services.go @@ -112,7 +112,6 @@ func (params *CreateServiceParams) SetDeliveryCallbackEnabled(DeliveryCallbackEn return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*NotifyV1Service, error) { path := "/v1/Services" @@ -177,7 +176,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*NotifyV1Servic return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -195,7 +193,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*NotifyV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -452,7 +449,6 @@ func (params *UpdateServiceParams) SetDeliveryCallbackEnabled(DeliveryCallbackEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*NotifyV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/notify/v1/services_bindings.go b/rest/notify/v1/services_bindings.go index 6240d68eb..a9c6efaff 100644 --- a/rest/notify/v1/services_bindings.go +++ b/rest/notify/v1/services_bindings.go @@ -70,7 +70,6 @@ func (params *CreateBindingParams) SetEndpoint(Endpoint string) *CreateBindingPa return params } -// func (c *ApiService) CreateBinding(ServiceSid string, params *CreateBindingParams) (*NotifyV1Binding, error) { path := "/v1/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -117,7 +116,6 @@ func (c *ApiService) CreateBinding(ServiceSid string, params *CreateBindingParam return ps, err } -// func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -136,7 +134,6 @@ func (c *ApiService) DeleteBinding(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchBinding(ServiceSid string, Sid string) (*NotifyV1Binding, error) { path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/notify/v1/services_notifications.go b/rest/notify/v1/services_notifications.go index 8a1f70e1f..da16ece3e 100644 --- a/rest/notify/v1/services_notifications.go +++ b/rest/notify/v1/services_notifications.go @@ -134,7 +134,6 @@ func (params *CreateNotificationParams) SetTag(Tag []string) *CreateNotification return params } -// func (c *ApiService) CreateNotification(ServiceSid string, params *CreateNotificationParams) (*NotifyV1Notification, error) { path := "/v1/Services/{ServiceSid}/Notifications" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/numbers/v1/docs/NumbersV1PortingPortInFetch.md b/rest/numbers/v1/docs/NumbersV1PortingPortInFetch.md index 775e73d8e..1404a08a5 100644 --- a/rest/numbers/v1/docs/NumbersV1PortingPortInFetch.md +++ b/rest/numbers/v1/docs/NumbersV1PortingPortInFetch.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **TargetPortInDate** | Pointer to **string** | Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation. | **TargetPortInTimeRangeStart** | Pointer to **string** | Minimum hour in the future needs to be established with the Ops team for validation. | **TargetPortInTimeRangeEnd** | Pointer to **string** | Maximum hour in the future needs to be established with the Ops team for validation. | +**PortInRequestStatus** | Pointer to **string** | The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled. | **LosingCarrierInformation** | Pointer to **interface{}** | The information for the losing carrier. | **PhoneNumbers** | Pointer to **[]interface{}** | The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212). | **Documents** | Pointer to **[]string** | The list of documents SID referencing a utility bills | diff --git a/rest/numbers/v1/model_numbers_v1_porting_port_in_fetch.go b/rest/numbers/v1/model_numbers_v1_porting_port_in_fetch.go index 422d0a6a2..d708c5d6d 100644 --- a/rest/numbers/v1/model_numbers_v1_porting_port_in_fetch.go +++ b/rest/numbers/v1/model_numbers_v1_porting_port_in_fetch.go @@ -30,6 +30,8 @@ type NumbersV1PortingPortInFetch struct { TargetPortInTimeRangeStart *string `json:"target_port_in_time_range_start,omitempty"` // Maximum hour in the future needs to be established with the Ops team for validation. TargetPortInTimeRangeEnd *string `json:"target_port_in_time_range_end,omitempty"` + // The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled. + PortInRequestStatus *string `json:"port_in_request_status,omitempty"` // The information for the losing carrier. LosingCarrierInformation *interface{} `json:"losing_carrier_information,omitempty"` // The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212). diff --git a/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md b/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md index 99f7bb401..3d98a3d96 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md @@ -169,6 +169,8 @@ Name | Type | Description **SortBy** | **string** | Can be `valid-until` or `date-updated`. Defaults to `date-created`. **SortDirection** | **string** | Default is `DESC`. Can be `ASC` or `DESC`. **ValidUntilDate** | **time.Time** | Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. +**ValidUntilDateBefore** | **time.Time** | Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. +**ValidUntilDateAfter** | **time.Time** | Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/numbers/v2/regulatory_compliance_bundles.go b/rest/numbers/v2/regulatory_compliance_bundles.go index f0b191016..cd0a3c8d2 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles.go +++ b/rest/numbers/v2/regulatory_compliance_bundles.go @@ -176,6 +176,10 @@ type ListBundleParams struct { SortDirection *string `json:"SortDirection,omitempty"` // Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. ValidUntilDate *time.Time `json:"ValidUntilDate,omitempty"` + // Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. + ValidUntilDateBefore *time.Time `json:"ValidUntilDate<,omitempty"` + // Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format. + ValidUntilDateAfter *time.Time `json:"ValidUntilDate>,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. @@ -218,6 +222,14 @@ func (params *ListBundleParams) SetValidUntilDate(ValidUntilDate time.Time) *Lis params.ValidUntilDate = &ValidUntilDate return params } +func (params *ListBundleParams) SetValidUntilDateBefore(ValidUntilDateBefore time.Time) *ListBundleParams { + params.ValidUntilDateBefore = &ValidUntilDateBefore + return params +} +func (params *ListBundleParams) SetValidUntilDateAfter(ValidUntilDateAfter time.Time) *ListBundleParams { + params.ValidUntilDateAfter = &ValidUntilDateAfter + return params +} func (params *ListBundleParams) SetPageSize(PageSize int) *ListBundleParams { params.PageSize = &PageSize return params @@ -261,6 +273,12 @@ func (c *ApiService) PageBundle(params *ListBundleParams, pageToken, pageNumber if params != nil && params.ValidUntilDate != nil { data.Set("ValidUntilDate", fmt.Sprint((*params.ValidUntilDate).Format(time.RFC3339))) } + if params != nil && params.ValidUntilDateBefore != nil { + data.Set("ValidUntilDate<", fmt.Sprint((*params.ValidUntilDateBefore).Format(time.RFC3339))) + } + if params != nil && params.ValidUntilDateAfter != nil { + data.Set("ValidUntilDate>", fmt.Sprint((*params.ValidUntilDateAfter).Format(time.RFC3339))) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/oauth/v1/README.md b/rest/oauth/v1/README.md new file mode 100644 index 000000000..89b8dc73d --- /dev/null +++ b/rest/oauth/v1/README.md @@ -0,0 +1,61 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.0.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +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: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://oauth.twilio.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AuthorizeApi* | [**FetchAuthorize**](docs/AuthorizeApi.md#fetchauthorize) | **Get** /v1/authorize | +*TokenApi* | [**CreateToken**](docs/TokenApi.md#createtoken) | **Post** /v1/token | + + +## Documentation For Models + + - [OauthV1Authorize](docs/OauthV1Authorize.md) + - [OauthV1Token](docs/OauthV1Token.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + diff --git a/rest/oauth/v1/api_service.go b/rest/oauth/v1/api_service.go new file mode 100644 index 000000000..d301cbc4d --- /dev/null +++ b/rest/oauth/v1/api_service.go @@ -0,0 +1,35 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Oauth + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + twilio "github.com/twilio/twilio-go/client" +) + +type ApiService struct { + baseURL string + requestHandler *twilio.RequestHandler +} + +func NewApiService(requestHandler *twilio.RequestHandler) *ApiService { + return &ApiService{ + requestHandler: requestHandler, + baseURL: "https://oauth.twilio.com", + } +} + +func NewApiServiceWithClient(client twilio.BaseClient) *ApiService { + return NewApiService(twilio.NewRequestHandler(client)) +} diff --git a/rest/oauth/v1/authorize.go b/rest/oauth/v1/authorize.go new file mode 100644 index 000000000..6c6b9f7d4 --- /dev/null +++ b/rest/oauth/v1/authorize.go @@ -0,0 +1,93 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Oauth + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "encoding/json" + "net/url" +) + +// Optional parameters for the method 'FetchAuthorize' +type FetchAuthorizeParams struct { + // Response Type + ResponseType *string `json:"ResponseType,omitempty"` + // The Client Identifier + ClientId *string `json:"ClientId,omitempty"` + // The url to which response will be redirected to + RedirectUri *string `json:"RedirectUri,omitempty"` + // The scope of the access request + Scope *string `json:"Scope,omitempty"` + // An opaque value which can be used to maintain state between the request and callback + State *string `json:"State,omitempty"` +} + +func (params *FetchAuthorizeParams) SetResponseType(ResponseType string) *FetchAuthorizeParams { + params.ResponseType = &ResponseType + return params +} +func (params *FetchAuthorizeParams) SetClientId(ClientId string) *FetchAuthorizeParams { + params.ClientId = &ClientId + return params +} +func (params *FetchAuthorizeParams) SetRedirectUri(RedirectUri string) *FetchAuthorizeParams { + params.RedirectUri = &RedirectUri + return params +} +func (params *FetchAuthorizeParams) SetScope(Scope string) *FetchAuthorizeParams { + params.Scope = &Scope + return params +} +func (params *FetchAuthorizeParams) SetState(State string) *FetchAuthorizeParams { + params.State = &State + return params +} + +// Retrieves authorize uri +func (c *ApiService) FetchAuthorize(params *FetchAuthorizeParams) (*OauthV1Authorize, error) { + path := "/v1/authorize" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.ResponseType != nil { + data.Set("ResponseType", *params.ResponseType) + } + if params != nil && params.ClientId != nil { + data.Set("ClientId", *params.ClientId) + } + if params != nil && params.RedirectUri != nil { + data.Set("RedirectUri", *params.RedirectUri) + } + if params != nil && params.Scope != nil { + data.Set("Scope", *params.Scope) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &OauthV1Authorize{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/oauth/v1/docs/AuthorizeApi.md b/rest/oauth/v1/docs/AuthorizeApi.md new file mode 100644 index 000000000..36f310334 --- /dev/null +++ b/rest/oauth/v1/docs/AuthorizeApi.md @@ -0,0 +1,52 @@ +# AuthorizeApi + +All URIs are relative to *https://oauth.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchAuthorize**](AuthorizeApi.md#FetchAuthorize) | **Get** /v1/authorize | + + + +## FetchAuthorize + +> OauthV1Authorize FetchAuthorize(ctx, optional) + + + +Retrieves authorize uri + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a FetchAuthorizeParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**ResponseType** | **string** | Response Type +**ClientId** | **string** | The Client Identifier +**RedirectUri** | **string** | The url to which response will be redirected to +**Scope** | **string** | The scope of the access request +**State** | **string** | An opaque value which can be used to maintain state between the request and callback + +### Return type + +[**OauthV1Authorize**](OauthV1Authorize.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/rest/oauth/v1/docs/OauthV1Authorize.md b/rest/oauth/v1/docs/OauthV1Authorize.md new file mode 100644 index 000000000..e5ee8244f --- /dev/null +++ b/rest/oauth/v1/docs/OauthV1Authorize.md @@ -0,0 +1,11 @@ +# OauthV1Authorize + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RedirectTo** | Pointer to **string** | The callback URL | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/oauth/v1/docs/OauthV1Token.md b/rest/oauth/v1/docs/OauthV1Token.md new file mode 100644 index 000000000..dd8662283 --- /dev/null +++ b/rest/oauth/v1/docs/OauthV1Token.md @@ -0,0 +1,15 @@ +# OauthV1Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | Pointer to **string** | Token which carries the necessary information to access a Twilio resource directly. | +**RefreshToken** | Pointer to **string** | Token which carries the information necessary to get a new access token. | +**IdToken** | Pointer to **string** | Token which carries the information necessary of user profile. | +**TokenType** | Pointer to **string** | Token type | +**ExpiresIn** | Pointer to **int64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/oauth/v1/docs/TokenApi.md b/rest/oauth/v1/docs/TokenApi.md new file mode 100644 index 000000000..1fe785f43 --- /dev/null +++ b/rest/oauth/v1/docs/TokenApi.md @@ -0,0 +1,55 @@ +# TokenApi + +All URIs are relative to *https://oauth.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateToken**](TokenApi.md#CreateToken) | **Post** /v1/token | + + + +## CreateToken + +> OauthV1Token CreateToken(ctx, optional) + + + +Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateTokenParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**GrantType** | **string** | Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token. +**ClientId** | **string** | A 34 character string that uniquely identifies this OAuth App. +**ClientSecret** | **string** | The credential for confidential OAuth App. +**Code** | **string** | JWT token related to the authorization code grant type. +**RedirectUri** | **string** | The redirect uri +**Audience** | **string** | The targeted audience uri +**RefreshToken** | **string** | JWT token related to refresh access token. +**Scope** | **string** | The scope of token + +### Return type + +[**OauthV1Token**](OauthV1Token.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/rest/oauth/v1/model_oauth_v1_authorize.go b/rest/oauth/v1/model_oauth_v1_authorize.go new file mode 100644 index 000000000..9895bff31 --- /dev/null +++ b/rest/oauth/v1/model_oauth_v1_authorize.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Oauth + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// OauthV1Authorize struct for OauthV1Authorize +type OauthV1Authorize struct { + // The callback URL + RedirectTo *string `json:"redirect_to,omitempty"` +} diff --git a/rest/oauth/v1/model_oauth_v1_token.go b/rest/oauth/v1/model_oauth_v1_token.go new file mode 100644 index 000000000..9033f4e03 --- /dev/null +++ b/rest/oauth/v1/model_oauth_v1_token.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Oauth + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// OauthV1Token struct for OauthV1Token +type OauthV1Token struct { + // Token which carries the necessary information to access a Twilio resource directly. + AccessToken *string `json:"access_token,omitempty"` + // Token which carries the information necessary to get a new access token. + RefreshToken *string `json:"refresh_token,omitempty"` + // Token which carries the information necessary of user profile. + IdToken *string `json:"id_token,omitempty"` + // Token type + TokenType *string `json:"token_type,omitempty"` + ExpiresIn *int64 `json:"expires_in,omitempty"` +} diff --git a/rest/oauth/v1/token.go b/rest/oauth/v1/token.go new file mode 100644 index 000000000..b04716351 --- /dev/null +++ b/rest/oauth/v1/token.go @@ -0,0 +1,120 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Oauth + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "encoding/json" + "net/url" +) + +// Optional parameters for the method 'CreateToken' +type CreateTokenParams struct { + // Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token. + GrantType *string `json:"GrantType,omitempty"` + // A 34 character string that uniquely identifies this OAuth App. + ClientId *string `json:"ClientId,omitempty"` + // The credential for confidential OAuth App. + ClientSecret *string `json:"ClientSecret,omitempty"` + // JWT token related to the authorization code grant type. + Code *string `json:"Code,omitempty"` + // The redirect uri + RedirectUri *string `json:"RedirectUri,omitempty"` + // The targeted audience uri + Audience *string `json:"Audience,omitempty"` + // JWT token related to refresh access token. + RefreshToken *string `json:"RefreshToken,omitempty"` + // The scope of token + Scope *string `json:"Scope,omitempty"` +} + +func (params *CreateTokenParams) SetGrantType(GrantType string) *CreateTokenParams { + params.GrantType = &GrantType + return params +} +func (params *CreateTokenParams) SetClientId(ClientId string) *CreateTokenParams { + params.ClientId = &ClientId + return params +} +func (params *CreateTokenParams) SetClientSecret(ClientSecret string) *CreateTokenParams { + params.ClientSecret = &ClientSecret + return params +} +func (params *CreateTokenParams) SetCode(Code string) *CreateTokenParams { + params.Code = &Code + return params +} +func (params *CreateTokenParams) SetRedirectUri(RedirectUri string) *CreateTokenParams { + params.RedirectUri = &RedirectUri + return params +} +func (params *CreateTokenParams) SetAudience(Audience string) *CreateTokenParams { + params.Audience = &Audience + return params +} +func (params *CreateTokenParams) SetRefreshToken(RefreshToken string) *CreateTokenParams { + params.RefreshToken = &RefreshToken + return params +} +func (params *CreateTokenParams) SetScope(Scope string) *CreateTokenParams { + params.Scope = &Scope + return params +} + +// Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant +func (c *ApiService) CreateToken(params *CreateTokenParams) (*OauthV1Token, error) { + path := "/v1/token" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.GrantType != nil { + data.Set("GrantType", *params.GrantType) + } + if params != nil && params.ClientId != nil { + data.Set("ClientId", *params.ClientId) + } + if params != nil && params.ClientSecret != nil { + data.Set("ClientSecret", *params.ClientSecret) + } + if params != nil && params.Code != nil { + data.Set("Code", *params.Code) + } + if params != nil && params.RedirectUri != nil { + data.Set("RedirectUri", *params.RedirectUri) + } + if params != nil && params.Audience != nil { + data.Set("Audience", *params.Audience) + } + if params != nil && params.RefreshToken != nil { + data.Set("RefreshToken", *params.RefreshToken) + } + if params != nil && params.Scope != nil { + data.Set("Scope", *params.Scope) + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &OauthV1Token{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/preview_messaging/v1/api_service.go b/rest/preview_messaging/v1/api_service.go index 2d4d02796..ce4de2f11 100644 --- a/rest/preview_messaging/v1/api_service.go +++ b/rest/preview_messaging/v1/api_service.go @@ -26,7 +26,7 @@ type ApiService struct { func NewApiService(requestHandler *twilio.RequestHandler) *ApiService { return &ApiService{ requestHandler: requestHandler, - baseURL: "", + baseURL: "https://preview.messaging.twilio.com", } } diff --git a/rest/pricing/v1/messaging_countries.go b/rest/pricing/v1/messaging_countries.go index 44948443b..81d818ed1 100644 --- a/rest/pricing/v1/messaging_countries.go +++ b/rest/pricing/v1/messaging_countries.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchMessagingCountry(IsoCountry string) (*PricingV1MessagingCountryInstance, error) { path := "/v1/Messaging/Countries/{IsoCountry}" path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) diff --git a/rest/pricing/v1/phone_numbers_countries.go b/rest/pricing/v1/phone_numbers_countries.go index 45e54bb34..7c4a76528 100644 --- a/rest/pricing/v1/phone_numbers_countries.go +++ b/rest/pricing/v1/phone_numbers_countries.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchPhoneNumberCountry(IsoCountry string) (*PricingV1PhoneNumberCountryInstance, error) { path := "/v1/PhoneNumbers/Countries/{IsoCountry}" path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) diff --git a/rest/pricing/v1/voice_countries.go b/rest/pricing/v1/voice_countries.go index 97a5dce22..9d8c64258 100644 --- a/rest/pricing/v1/voice_countries.go +++ b/rest/pricing/v1/voice_countries.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchVoiceCountry(IsoCountry string) (*PricingV1VoiceCountryInstance, error) { path := "/v1/Voice/Countries/{IsoCountry}" path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) diff --git a/rest/pricing/v1/voice_numbers.go b/rest/pricing/v1/voice_numbers.go index a7993a1bb..14dbf8337 100644 --- a/rest/pricing/v1/voice_numbers.go +++ b/rest/pricing/v1/voice_numbers.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchVoiceNumber(Number string) (*PricingV1VoiceNumber, error) { path := "/v1/Voice/Numbers/{Number}" path = strings.Replace(path, "{"+"Number"+"}", Number, -1) diff --git a/rest/proxy/v1/README.md b/rest/proxy/v1/README.md index 867c70ca0..f74ed2e1a 100644 --- a/rest/proxy/v1/README.md +++ b/rest/proxy/v1/README.md @@ -65,16 +65,16 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [ProxyV1PhoneNumber](docs/ProxyV1PhoneNumber.md) - [ProxyV1ServiceShortCodeCapabilities](docs/ProxyV1ServiceShortCodeCapabilities.md) + - [ProxyV1PhoneNumber](docs/ProxyV1PhoneNumber.md) - [ListSessionResponse](docs/ListSessionResponse.md) - [ProxyV1Session](docs/ProxyV1Session.md) - [ListInteractionResponse](docs/ListInteractionResponse.md) - [ListPhoneNumberResponse](docs/ListPhoneNumberResponse.md) - [ListServiceResponse](docs/ListServiceResponse.md) - [ProxyV1Interaction](docs/ProxyV1Interaction.md) - - [ProxyV1MessageInteraction](docs/ProxyV1MessageInteraction.md) - [ProxyV1ServicePhoneNumberCapabilities](docs/ProxyV1ServicePhoneNumberCapabilities.md) + - [ProxyV1MessageInteraction](docs/ProxyV1MessageInteraction.md) - [ListParticipantResponse](docs/ListParticipantResponse.md) - [ListInteractionResponseMeta](docs/ListInteractionResponseMeta.md) - [ListMessageInteractionResponse](docs/ListMessageInteractionResponse.md) diff --git a/rest/proxy/v1/services_sessions_participants_message_interactions.go b/rest/proxy/v1/services_sessions_participants_message_interactions.go index e942021e0..ac303db89 100644 --- a/rest/proxy/v1/services_sessions_participants_message_interactions.go +++ b/rest/proxy/v1/services_sessions_participants_message_interactions.go @@ -74,7 +74,6 @@ func (c *ApiService) CreateMessageInteraction(ServiceSid string, SessionSid stri return ps, err } -// func (c *ApiService) FetchMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, Sid string) (*ProxyV1MessageInteraction, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/routes/v2/sip_domains.go b/rest/routes/v2/sip_domains.go index bdaa766ef..855814e99 100644 --- a/rest/routes/v2/sip_domains.go +++ b/rest/routes/v2/sip_domains.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchSipDomain(SipDomain string) (*RoutesV2SipDomain, error) { path := "/v2/SipDomains/{SipDomain}" path = strings.Replace(path, "{"+"SipDomain"+"}", SipDomain, -1) @@ -60,7 +59,6 @@ func (params *UpdateSipDomainParams) SetFriendlyName(FriendlyName string) *Updat return params } -// func (c *ApiService) UpdateSipDomain(SipDomain string, params *UpdateSipDomainParams) (*RoutesV2SipDomain, error) { path := "/v2/SipDomains/{SipDomain}" path = strings.Replace(path, "{"+"SipDomain"+"}", SipDomain, -1) diff --git a/rest/serverless/v1/README.md b/rest/serverless/v1/README.md index 530ab2524..54138d620 100644 --- a/rest/serverless/v1/README.md +++ b/rest/serverless/v1/README.md @@ -81,8 +81,8 @@ Class | Method | HTTP request | Description - [ServerlessV1FunctionVersionContent](docs/ServerlessV1FunctionVersionContent.md) - [ServerlessV1Variable](docs/ServerlessV1Variable.md) - [ListLogResponse](docs/ListLogResponse.md) - - [ServerlessV1Asset](docs/ServerlessV1Asset.md) - [ServerlessV1Function](docs/ServerlessV1Function.md) + - [ServerlessV1Asset](docs/ServerlessV1Asset.md) - [ListServiceResponse](docs/ListServiceResponse.md) - [ServerlessV1AssetVersion](docs/ServerlessV1AssetVersion.md) - [ListBuildResponse](docs/ListBuildResponse.md) diff --git a/rest/sync/v1/README.md b/rest/sync/v1/README.md index 662595f2a..45a0b48f5 100644 --- a/rest/sync/v1/README.md +++ b/rest/sync/v1/README.md @@ -84,8 +84,8 @@ Class | Method | HTTP request | Description ## Documentation For Models - [ListSyncStreamResponse](docs/ListSyncStreamResponse.md) - - [ListDocumentResponse](docs/ListDocumentResponse.md) - [SyncV1StreamMessage](docs/SyncV1StreamMessage.md) + - [ListDocumentResponse](docs/ListDocumentResponse.md) - [SyncV1SyncMap](docs/SyncV1SyncMap.md) - [ListDocumentResponseMeta](docs/ListDocumentResponseMeta.md) - [ListSyncListPermissionResponse](docs/ListSyncListPermissionResponse.md) @@ -103,8 +103,8 @@ Class | Method | HTTP request | Description - [ListSyncListResponse](docs/ListSyncListResponse.md) - [ListSyncListItemResponse](docs/ListSyncListItemResponse.md) - [SyncV1SyncStream](docs/SyncV1SyncStream.md) - - [ListSyncMapItemResponse](docs/ListSyncMapItemResponse.md) - [SyncV1Service](docs/SyncV1Service.md) + - [ListSyncMapItemResponse](docs/ListSyncMapItemResponse.md) ## Documentation For Authorization diff --git a/rest/sync/v1/services.go b/rest/sync/v1/services.go index 848858339..a8b0e8006 100644 --- a/rest/sync/v1/services.go +++ b/rest/sync/v1/services.go @@ -70,7 +70,6 @@ func (params *CreateServiceParams) SetWebhooksFromRestEnabled(WebhooksFromRestEn return params } -// func (c *ApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, error) { path := "/v1/Services" @@ -114,7 +113,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, return ps, err } -// func (c *ApiService) DeleteService(Sid string) error { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -132,7 +130,6 @@ func (c *ApiService) DeleteService(Sid string) error { return nil } -// func (c *ApiService) FetchService(Sid string) (*SyncV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -338,7 +335,6 @@ func (params *UpdateServiceParams) SetWebhooksFromRestEnabled(WebhooksFromRestEn return params } -// func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*SyncV1Service, error) { path := "/v1/Services/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/sync/v1/services_documents.go b/rest/sync/v1/services_documents.go index 6aae3ba8b..fa43714eb 100644 --- a/rest/sync/v1/services_documents.go +++ b/rest/sync/v1/services_documents.go @@ -46,7 +46,6 @@ func (params *CreateDocumentParams) SetTtl(Ttl int) *CreateDocumentParams { return params } -// func (c *ApiService) CreateDocument(ServiceSid string, params *CreateDocumentParams) (*SyncV1Document, error) { path := "/v1/Services/{ServiceSid}/Documents" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -85,7 +84,6 @@ func (c *ApiService) CreateDocument(ServiceSid string, params *CreateDocumentPar return ps, err } -// func (c *ApiService) DeleteDocument(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -104,7 +102,6 @@ func (c *ApiService) DeleteDocument(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchDocument(ServiceSid string, Sid string) (*SyncV1Document, error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -289,7 +286,6 @@ func (params *UpdateDocumentParams) SetTtl(Ttl int) *UpdateDocumentParams { return params } -// func (c *ApiService) UpdateDocument(ServiceSid string, Sid string, params *UpdateDocumentParams) (*SyncV1Document, error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_lists.go b/rest/sync/v1/services_lists.go index 358ea56bf..91c4e0d51 100644 --- a/rest/sync/v1/services_lists.go +++ b/rest/sync/v1/services_lists.go @@ -46,7 +46,6 @@ func (params *CreateSyncListParams) SetCollectionTtl(CollectionTtl int) *CreateS return params } -// func (c *ApiService) CreateSyncList(ServiceSid string, params *CreateSyncListParams) (*SyncV1SyncList, error) { path := "/v1/Services/{ServiceSid}/Lists" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -79,7 +78,6 @@ func (c *ApiService) CreateSyncList(ServiceSid string, params *CreateSyncListPar return ps, err } -// func (c *ApiService) DeleteSyncList(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -98,7 +96,6 @@ func (c *ApiService) DeleteSyncList(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchSyncList(ServiceSid string, Sid string) (*SyncV1SyncList, error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -277,7 +274,6 @@ func (params *UpdateSyncListParams) SetCollectionTtl(CollectionTtl int) *UpdateS return params } -// func (c *ApiService) UpdateSyncList(ServiceSid string, Sid string, params *UpdateSyncListParams) (*SyncV1SyncList, error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_lists_items.go b/rest/sync/v1/services_lists_items.go index 572df5abc..800c214bc 100644 --- a/rest/sync/v1/services_lists_items.go +++ b/rest/sync/v1/services_lists_items.go @@ -52,7 +52,6 @@ func (params *CreateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *Cre return params } -// func (c *ApiService) CreateSyncListItem(ServiceSid string, ListSid string, params *CreateSyncListItemParams) (*SyncV1SyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -106,7 +105,6 @@ func (params *DeleteSyncListItemParams) SetIfMatch(IfMatch string) *DeleteSyncLi return params } -// func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int, params *DeleteSyncListItemParams) error { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -129,7 +127,6 @@ func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index return nil } -// func (c *ApiService) FetchSyncListItem(ServiceSid string, ListSid string, Index int) (*SyncV1SyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -355,7 +352,6 @@ func (params *UpdateSyncListItemParams) SetCollectionTtl(CollectionTtl int) *Upd return params } -// func (c *ApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index int, params *UpdateSyncListItemParams) (*SyncV1SyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_maps.go b/rest/sync/v1/services_maps.go index 731ada14d..6afb604d3 100644 --- a/rest/sync/v1/services_maps.go +++ b/rest/sync/v1/services_maps.go @@ -46,7 +46,6 @@ func (params *CreateSyncMapParams) SetCollectionTtl(CollectionTtl int) *CreateSy return params } -// func (c *ApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParams) (*SyncV1SyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -79,7 +78,6 @@ func (c *ApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParam return ps, err } -// func (c *ApiService) DeleteSyncMap(ServiceSid string, Sid string) error { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -98,7 +96,6 @@ func (c *ApiService) DeleteSyncMap(ServiceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1SyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -277,7 +274,6 @@ func (params *UpdateSyncMapParams) SetCollectionTtl(CollectionTtl int) *UpdateSy return params } -// func (c *ApiService) UpdateSyncMap(ServiceSid string, Sid string, params *UpdateSyncMapParams) (*SyncV1SyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/sync/v1/services_maps_items.go b/rest/sync/v1/services_maps_items.go index 961e98735..afdff97b9 100644 --- a/rest/sync/v1/services_maps_items.go +++ b/rest/sync/v1/services_maps_items.go @@ -58,7 +58,6 @@ func (params *CreateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *Crea return params } -// func (c *ApiService) CreateSyncMapItem(ServiceSid string, MapSid string, params *CreateSyncMapItemParams) (*SyncV1SyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -115,7 +114,6 @@ func (params *DeleteSyncMapItemParams) SetIfMatch(IfMatch string) *DeleteSyncMap return params } -// func (c *ApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) error { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -138,7 +136,6 @@ func (c *ApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key str return nil } -// func (c *ApiService) FetchSyncMapItem(ServiceSid string, MapSid string, Key string) (*SyncV1SyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -364,7 +361,6 @@ func (params *UpdateSyncMapItemParams) SetCollectionTtl(CollectionTtl int) *Upda return params } -// func (c *ApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key string, params *UpdateSyncMapItemParams) (*SyncV1SyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/taskrouter/v1/workspaces.go b/rest/taskrouter/v1/workspaces.go index a1890a26a..38a27130a 100644 --- a/rest/taskrouter/v1/workspaces.go +++ b/rest/taskrouter/v1/workspaces.go @@ -64,7 +64,6 @@ func (params *CreateWorkspaceParams) SetPrioritizeQueueOrder(PrioritizeQueueOrde return params } -// func (c *ApiService) CreateWorkspace(params *CreateWorkspaceParams) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces" @@ -105,7 +104,6 @@ func (c *ApiService) CreateWorkspace(params *CreateWorkspaceParams) (*Taskrouter return ps, err } -// func (c *ApiService) DeleteWorkspace(Sid string) error { path := "/v1/Workspaces/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -123,7 +121,6 @@ func (c *ApiService) DeleteWorkspace(Sid string) error { return nil } -// func (c *ApiService) FetchWorkspace(Sid string) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -338,7 +335,6 @@ func (params *UpdateWorkspaceParams) SetPrioritizeQueueOrder(PrioritizeQueueOrde return params } -// func (c *ApiService) UpdateWorkspace(Sid string, params *UpdateWorkspaceParams) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/taskrouter/v1/workspaces_activities.go b/rest/taskrouter/v1/workspaces_activities.go index 563c227c4..4521257fd 100644 --- a/rest/taskrouter/v1/workspaces_activities.go +++ b/rest/taskrouter/v1/workspaces_activities.go @@ -40,7 +40,6 @@ func (params *CreateActivityParams) SetAvailable(Available bool) *CreateActivity return params } -// func (c *ApiService) CreateActivity(WorkspaceSid string, params *CreateActivityParams) (*TaskrouterV1Activity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -70,7 +69,6 @@ func (c *ApiService) CreateActivity(WorkspaceSid string, params *CreateActivityP return ps, err } -// func (c *ApiService) DeleteActivity(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -89,7 +87,6 @@ func (c *ApiService) DeleteActivity(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchActivity(WorkspaceSid string, Sid string) (*TaskrouterV1Activity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -280,7 +277,6 @@ func (params *UpdateActivityParams) SetFriendlyName(FriendlyName string) *Update return params } -// func (c *ApiService) UpdateActivity(WorkspaceSid string, Sid string, params *UpdateActivityParams) (*TaskrouterV1Activity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_cumulative_statistics.go index 5bf253374..0fdd741f2 100644 --- a/rest/taskrouter/v1/workspaces_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_cumulative_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkspaceCumulativeStatisticsParams) SetSplitByWaitTime(Split return params } -// func (c *ApiService) FetchWorkspaceCumulativeStatistics(WorkspaceSid string, params *FetchWorkspaceCumulativeStatisticsParams) (*TaskrouterV1WorkspaceCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_events.go b/rest/taskrouter/v1/workspaces_events.go index b9bc46cbf..13bfaa94b 100644 --- a/rest/taskrouter/v1/workspaces_events.go +++ b/rest/taskrouter/v1/workspaces_events.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchEvent(WorkspaceSid string, Sid string) (*TaskrouterV1Event, error) { path := "/v1/Workspaces/{WorkspaceSid}/Events/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_real_time_statistics.go b/rest/taskrouter/v1/workspaces_real_time_statistics.go index 75593edef..1341ad6df 100644 --- a/rest/taskrouter/v1/workspaces_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_real_time_statistics.go @@ -31,7 +31,6 @@ func (params *FetchWorkspaceRealTimeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchWorkspaceRealTimeStatistics(WorkspaceSid string, params *FetchWorkspaceRealTimeStatisticsParams) (*TaskrouterV1WorkspaceRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_statistics.go b/rest/taskrouter/v1/workspaces_statistics.go index 1d92d7d28..5a1149c81 100644 --- a/rest/taskrouter/v1/workspaces_statistics.go +++ b/rest/taskrouter/v1/workspaces_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkspaceStatisticsParams) SetSplitByWaitTime(SplitByWaitTime return params } -// func (c *ApiService) FetchWorkspaceStatistics(WorkspaceSid string, params *FetchWorkspaceStatisticsParams) (*TaskrouterV1WorkspaceStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_channels.go b/rest/taskrouter/v1/workspaces_task_channels.go index ab0035c54..7f2cdbf47 100644 --- a/rest/taskrouter/v1/workspaces_task_channels.go +++ b/rest/taskrouter/v1/workspaces_task_channels.go @@ -46,7 +46,6 @@ func (params *CreateTaskChannelParams) SetChannelOptimizedRouting(ChannelOptimiz return params } -// func (c *ApiService) CreateTaskChannel(WorkspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -79,7 +78,6 @@ func (c *ApiService) CreateTaskChannel(WorkspaceSid string, params *CreateTaskCh return ps, err } -// func (c *ApiService) DeleteTaskChannel(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -98,7 +96,6 @@ func (c *ApiService) DeleteTaskChannel(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchTaskChannel(WorkspaceSid string, Sid string) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -277,7 +274,6 @@ func (params *UpdateTaskChannelParams) SetChannelOptimizedRouting(ChannelOptimiz return params } -// func (c *ApiService) UpdateTaskChannel(WorkspaceSid string, Sid string, params *UpdateTaskChannelParams) (*TaskrouterV1TaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues.go b/rest/taskrouter/v1/workspaces_task_queues.go index 9bdfc7224..613e85495 100644 --- a/rest/taskrouter/v1/workspaces_task_queues.go +++ b/rest/taskrouter/v1/workspaces_task_queues.go @@ -64,7 +64,6 @@ func (params *CreateTaskQueueParams) SetAssignmentActivitySid(AssignmentActivity return params } -// func (c *ApiService) CreateTaskQueue(WorkspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -106,7 +105,6 @@ func (c *ApiService) CreateTaskQueue(WorkspaceSid string, params *CreateTaskQueu return ps, err } -// func (c *ApiService) DeleteTaskQueue(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -125,7 +123,6 @@ func (c *ApiService) DeleteTaskQueue(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchTaskQueue(WorkspaceSid string, Sid string) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -364,7 +361,6 @@ func (params *UpdateTaskQueueParams) SetTaskOrder(TaskOrder string) *UpdateTaskQ return params } -// func (c *ApiService) UpdateTaskQueue(WorkspaceSid string, Sid string, params *UpdateTaskQueueParams) (*TaskrouterV1TaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go index 2216de575..a64339ffa 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_cumulative_statistics.go @@ -57,7 +57,6 @@ func (params *FetchTaskQueueCumulativeStatisticsParams) SetSplitByWaitTime(Split return params } -// func (c *ApiService) FetchTaskQueueCumulativeStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueCumulativeStatisticsParams) (*TaskrouterV1TaskQueueCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_task_queues_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_statistics.go index c5ea20fd7..a2e882248 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_statistics.go @@ -59,7 +59,6 @@ func (params *FetchTaskQueueStatisticsParams) SetSplitByWaitTime(SplitByWaitTime return params } -// func (c *ApiService) FetchTaskQueueStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1TaskQueueStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_tasks.go b/rest/taskrouter/v1/workspaces_tasks.go index bdb0b0762..9e762a312 100644 --- a/rest/taskrouter/v1/workspaces_tasks.go +++ b/rest/taskrouter/v1/workspaces_tasks.go @@ -65,7 +65,6 @@ func (params *CreateTaskParams) SetVirtualStartTime(VirtualStartTime time.Time) return params } -// func (c *ApiService) CreateTask(WorkspaceSid string, params *CreateTaskParams) (*TaskrouterV1Task, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -118,7 +117,6 @@ func (params *DeleteTaskParams) SetIfMatch(IfMatch string) *DeleteTaskParams { return params } -// func (c *ApiService) DeleteTask(WorkspaceSid string, Sid string, params *DeleteTaskParams) error { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -140,7 +138,6 @@ func (c *ApiService) DeleteTask(WorkspaceSid string, Sid string, params *DeleteT return nil } -// func (c *ApiService) FetchTask(WorkspaceSid string, Sid string) (*TaskrouterV1Task, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -432,7 +429,6 @@ func (params *UpdateTaskParams) SetVirtualStartTime(VirtualStartTime time.Time) return params } -// func (c *ApiService) UpdateTask(WorkspaceSid string, Sid string, params *UpdateTaskParams) (*TaskrouterV1Task, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_tasks_reservations.go b/rest/taskrouter/v1/workspaces_tasks_reservations.go index c6a075d95..73d0d8780 100644 --- a/rest/taskrouter/v1/workspaces_tasks_reservations.go +++ b/rest/taskrouter/v1/workspaces_tasks_reservations.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchTaskReservation(WorkspaceSid string, TaskSid string, Sid string) (*TaskrouterV1TaskReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -540,7 +539,6 @@ func (params *UpdateTaskReservationParams) SetJitterBufferSize(JitterBufferSize return params } -// func (c *ApiService) UpdateTaskReservation(WorkspaceSid string, TaskSid string, Sid string, params *UpdateTaskReservationParams) (*TaskrouterV1TaskReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers.go b/rest/taskrouter/v1/workspaces_workers.go index 88c4f41cf..367036383 100644 --- a/rest/taskrouter/v1/workspaces_workers.go +++ b/rest/taskrouter/v1/workspaces_workers.go @@ -46,7 +46,6 @@ func (params *CreateWorkerParams) SetAttributes(Attributes string) *CreateWorker return params } -// func (c *ApiService) CreateWorker(WorkspaceSid string, params *CreateWorkerParams) (*TaskrouterV1Worker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -90,7 +89,6 @@ func (params *DeleteWorkerParams) SetIfMatch(IfMatch string) *DeleteWorkerParams return params } -// func (c *ApiService) DeleteWorker(WorkspaceSid string, Sid string, params *DeleteWorkerParams) error { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -112,7 +110,6 @@ func (c *ApiService) DeleteWorker(WorkspaceSid string, Sid string, params *Delet return nil } -// func (c *ApiService) FetchWorker(WorkspaceSid string, Sid string) (*TaskrouterV1Worker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -381,7 +378,6 @@ func (params *UpdateWorkerParams) SetRejectPendingReservations(RejectPendingRese return params } -// func (c *ApiService) UpdateWorker(WorkspaceSid string, Sid string, params *UpdateWorkerParams) (*TaskrouterV1Worker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_channels.go b/rest/taskrouter/v1/workspaces_workers_channels.go index d6e72fafb..092948fb8 100644 --- a/rest/taskrouter/v1/workspaces_workers_channels.go +++ b/rest/taskrouter/v1/workspaces_workers_channels.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkerChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -204,7 +203,6 @@ func (params *UpdateWorkerChannelParams) SetAvailable(Available bool) *UpdateWor return params } -// func (c *ApiService) UpdateWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkerChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go index a6bdc0626..0a46aaf40 100644 --- a/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_workers_cumulative_statistics.go @@ -51,7 +51,6 @@ func (params *FetchWorkersCumulativeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchWorkersCumulativeStatistics(WorkspaceSid string, params *FetchWorkersCumulativeStatisticsParams) (*TaskrouterV1WorkersCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go b/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go index 7fa3f4fe4..78a6d5bf4 100644 --- a/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_workers_real_time_statistics.go @@ -31,7 +31,6 @@ func (params *FetchWorkersRealTimeStatisticsParams) SetTaskChannel(TaskChannel s return params } -// func (c *ApiService) FetchWorkersRealTimeStatistics(WorkspaceSid string, params *FetchWorkersRealTimeStatisticsParams) (*TaskrouterV1WorkersRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_reservations.go b/rest/taskrouter/v1/workspaces_workers_reservations.go index 0f09a20c8..56a9632ce 100644 --- a/rest/taskrouter/v1/workspaces_workers_reservations.go +++ b/rest/taskrouter/v1/workspaces_workers_reservations.go @@ -23,7 +23,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkerReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -519,7 +518,6 @@ func (params *UpdateWorkerReservationParams) SetJitterBufferSize(JitterBufferSiz return params } -// func (c *ApiService) UpdateWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkerReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workers_statistics.go b/rest/taskrouter/v1/workspaces_workers_statistics.go index 6d2d96495..1e4d616ea 100644 --- a/rest/taskrouter/v1/workspaces_workers_statistics.go +++ b/rest/taskrouter/v1/workspaces_workers_statistics.go @@ -51,7 +51,6 @@ func (params *FetchWorkerInstanceStatisticsParams) SetTaskChannel(TaskChannel st return params } -// func (c *ApiService) FetchWorkerInstanceStatistics(WorkspaceSid string, WorkerSid string, params *FetchWorkerInstanceStatisticsParams) (*TaskrouterV1WorkerInstanceStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -135,7 +134,6 @@ func (params *FetchWorkerStatisticsParams) SetTaskChannel(TaskChannel string) *F return params } -// func (c *ApiService) FetchWorkerStatistics(WorkspaceSid string, params *FetchWorkerStatisticsParams) (*TaskrouterV1WorkerStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows.go b/rest/taskrouter/v1/workspaces_workflows.go index e7dadffd7..99e694fdb 100644 --- a/rest/taskrouter/v1/workspaces_workflows.go +++ b/rest/taskrouter/v1/workspaces_workflows.go @@ -58,7 +58,6 @@ func (params *CreateWorkflowParams) SetTaskReservationTimeout(TaskReservationTim return params } -// func (c *ApiService) CreateWorkflow(WorkspaceSid string, params *CreateWorkflowParams) (*TaskrouterV1Workflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -97,7 +96,6 @@ func (c *ApiService) CreateWorkflow(WorkspaceSid string, params *CreateWorkflowP return ps, err } -// func (c *ApiService) DeleteWorkflow(WorkspaceSid string, Sid string) error { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -116,7 +114,6 @@ func (c *ApiService) DeleteWorkflow(WorkspaceSid string, Sid string) error { return nil } -// func (c *ApiService) FetchWorkflow(WorkspaceSid string, Sid string) (*TaskrouterV1Workflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -328,7 +325,6 @@ func (params *UpdateWorkflowParams) SetReEvaluateTasks(ReEvaluateTasks string) * return params } -// func (c *ApiService) UpdateWorkflow(WorkspaceSid string, Sid string, params *UpdateWorkflowParams) (*TaskrouterV1Workflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go b/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go index ee6ebb429..a30bee417 100644 --- a/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go +++ b/rest/taskrouter/v1/workspaces_workflows_cumulative_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkflowCumulativeStatisticsParams) SetSplitByWaitTime(SplitB return params } -// func (c *ApiService) FetchWorkflowCumulativeStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowCumulativeStatisticsParams) (*TaskrouterV1WorkflowCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go b/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go index 5fb9ab9aa..c958f5dcc 100644 --- a/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_workflows_real_time_statistics.go @@ -31,7 +31,6 @@ func (params *FetchWorkflowRealTimeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchWorkflowRealTimeStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowRealTimeStatisticsParams) (*TaskrouterV1WorkflowRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/taskrouter/v1/workspaces_workflows_statistics.go b/rest/taskrouter/v1/workspaces_workflows_statistics.go index 0c20502d5..8b60192c0 100644 --- a/rest/taskrouter/v1/workspaces_workflows_statistics.go +++ b/rest/taskrouter/v1/workspaces_workflows_statistics.go @@ -57,7 +57,6 @@ func (params *FetchWorkflowStatisticsParams) SetSplitByWaitTime(SplitByWaitTime return params } -// func (c *ApiService) FetchWorkflowStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowStatisticsParams) (*TaskrouterV1WorkflowStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) diff --git a/rest/trunking/v1/README.md b/rest/trunking/v1/README.md index b8a7707a1..d1dd37fd5 100644 --- a/rest/trunking/v1/README.md +++ b/rest/trunking/v1/README.md @@ -61,16 +61,16 @@ Class | Method | HTTP request | Description - [ListCredentialListResponse](docs/ListCredentialListResponse.md) - [TrunkingV1CredentialList](docs/TrunkingV1CredentialList.md) - - [ListCredentialListResponseMeta](docs/ListCredentialListResponseMeta.md) - [TrunkingV1PhoneNumber](docs/TrunkingV1PhoneNumber.md) + - [ListCredentialListResponseMeta](docs/ListCredentialListResponseMeta.md) - [TrunkingV1Trunk](docs/TrunkingV1Trunk.md) - [TrunkingV1IpAccessControlList](docs/TrunkingV1IpAccessControlList.md) - [ListIpAccessControlListResponse](docs/ListIpAccessControlListResponse.md) - [ListOriginationUrlResponse](docs/ListOriginationUrlResponse.md) - [ListPhoneNumberResponse](docs/ListPhoneNumberResponse.md) - [ListTrunkResponse](docs/ListTrunkResponse.md) - - [TrunkingV1OriginationUrl](docs/TrunkingV1OriginationUrl.md) - [TrunkingV1Recording](docs/TrunkingV1Recording.md) + - [TrunkingV1OriginationUrl](docs/TrunkingV1OriginationUrl.md) ## Documentation For Authorization diff --git a/rest/trunking/v1/trunks.go b/rest/trunking/v1/trunks.go index 45a5e80ac..43adcb6a3 100644 --- a/rest/trunking/v1/trunks.go +++ b/rest/trunking/v1/trunks.go @@ -76,7 +76,6 @@ func (params *CreateTrunkParams) SetTransferCallerId(TransferCallerId string) *C return params } -// func (c *ApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error) { path := "/v1/Trunks" @@ -123,7 +122,6 @@ func (c *ApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, e return ps, err } -// func (c *ApiService) DeleteTrunk(Sid string) error { path := "/v1/Trunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -141,7 +139,6 @@ func (c *ApiService) DeleteTrunk(Sid string) error { return nil } -// func (c *ApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error) { path := "/v1/Trunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -353,7 +350,6 @@ func (params *UpdateTrunkParams) SetTransferCallerId(TransferCallerId string) *U return params } -// func (c *ApiService) UpdateTrunk(Sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error) { path := "/v1/Trunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trunking/v1/trunks_credential_lists.go b/rest/trunking/v1/trunks_credential_lists.go index 25b8c0f66..d6d98928b 100644 --- a/rest/trunking/v1/trunks_credential_lists.go +++ b/rest/trunking/v1/trunks_credential_lists.go @@ -34,7 +34,6 @@ func (params *CreateCredentialListParams) SetCredentialListSid(CredentialListSid return params } -// func (c *ApiService) CreateCredentialList(TrunkSid string, params *CreateCredentialListParams) (*TrunkingV1CredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -61,7 +60,6 @@ func (c *ApiService) CreateCredentialList(TrunkSid string, params *CreateCredent return ps, err } -// func (c *ApiService) DeleteCredentialList(TrunkSid string, Sid string) error { path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -80,7 +78,6 @@ func (c *ApiService) DeleteCredentialList(TrunkSid string, Sid string) error { return nil } -// func (c *ApiService) FetchCredentialList(TrunkSid string, Sid string) (*TrunkingV1CredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trunking/v1/trunks_ip_access_control_lists.go b/rest/trunking/v1/trunks_ip_access_control_lists.go index 3ab9fdf5a..d51f2d303 100644 --- a/rest/trunking/v1/trunks_ip_access_control_lists.go +++ b/rest/trunking/v1/trunks_ip_access_control_lists.go @@ -80,7 +80,6 @@ func (c *ApiService) DeleteIpAccessControlList(TrunkSid string, Sid string) erro return nil } -// func (c *ApiService) FetchIpAccessControlList(TrunkSid string, Sid string) (*TrunkingV1IpAccessControlList, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trunking/v1/trunks_origination_urls.go b/rest/trunking/v1/trunks_origination_urls.go index 147bdb0e1..a217ebd72 100644 --- a/rest/trunking/v1/trunks_origination_urls.go +++ b/rest/trunking/v1/trunks_origination_urls.go @@ -58,7 +58,6 @@ func (params *CreateOriginationUrlParams) SetSipUrl(SipUrl string) *CreateOrigin return params } -// func (c *ApiService) CreateOriginationUrl(TrunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -97,7 +96,6 @@ func (c *ApiService) CreateOriginationUrl(TrunkSid string, params *CreateOrigina return ps, err } -// func (c *ApiService) DeleteOriginationUrl(TrunkSid string, Sid string) error { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -116,7 +114,6 @@ func (c *ApiService) DeleteOriginationUrl(TrunkSid string, Sid string) error { return nil } -// func (c *ApiService) FetchOriginationUrl(TrunkSid string, Sid string) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -313,7 +310,6 @@ func (params *UpdateOriginationUrlParams) SetSipUrl(SipUrl string) *UpdateOrigin return params } -// func (c *ApiService) UpdateOriginationUrl(TrunkSid string, Sid string, params *UpdateOriginationUrlParams) (*TrunkingV1OriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trunking/v1/trunks_phone_numbers.go b/rest/trunking/v1/trunks_phone_numbers.go index 4670e4b37..43750cff1 100644 --- a/rest/trunking/v1/trunks_phone_numbers.go +++ b/rest/trunking/v1/trunks_phone_numbers.go @@ -34,7 +34,6 @@ func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) return params } -// func (c *ApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1PhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -61,7 +60,6 @@ func (c *ApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumbe return ps, err } -// func (c *ApiService) DeletePhoneNumber(TrunkSid string, Sid string) error { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -80,7 +78,6 @@ func (c *ApiService) DeletePhoneNumber(TrunkSid string, Sid string) error { return nil } -// func (c *ApiService) FetchPhoneNumber(TrunkSid string, Sid string) (*TrunkingV1PhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trunking/v1/trunks_recording.go b/rest/trunking/v1/trunks_recording.go index 615fd2e51..3b134a129 100644 --- a/rest/trunking/v1/trunks_recording.go +++ b/rest/trunking/v1/trunks_recording.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) FetchRecording(TrunkSid string) (*TrunkingV1Recording, error) { path := "/v1/Trunks/{TrunkSid}/Recording" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -60,7 +59,6 @@ func (params *UpdateRecordingParams) SetTrim(Trim string) *UpdateRecordingParams return params } -// func (c *ApiService) UpdateRecording(TrunkSid string, params *UpdateRecordingParams) (*TrunkingV1Recording, error) { path := "/v1/Trunks/{TrunkSid}/Recording" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) diff --git a/rest/trusthub/v1/README.md b/rest/trusthub/v1/README.md index 7214a4937..42ba383de 100644 --- a/rest/trusthub/v1/README.md +++ b/rest/trusthub/v1/README.md @@ -34,6 +34,7 @@ Class | Method | HTTP request | Description *ComplianceInquiriesCustomersInitializeApi* | [**CreateComplianceInquiry**](docs/ComplianceInquiriesCustomersInitializeApi.md#createcomplianceinquiry) | **Post** /v1/ComplianceInquiries/Customers/Initialize | *ComplianceInquiriesCustomersInitializeApi* | [**UpdateComplianceInquiry**](docs/ComplianceInquiriesCustomersInitializeApi.md#updatecomplianceinquiry) | **Post** /v1/ComplianceInquiries/Customers/{CustomerId}/Initialize | *ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi* | [**CreateComplianceRegistration**](docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md#createcomplianceregistration) | **Post** /v1/ComplianceInquiries/Registration/RegulatoryCompliance/GB/Initialize | +*ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi* | [**UpdateComplianceRegistration**](docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md#updatecomplianceregistration) | **Post** /v1/ComplianceInquiries/Registration/{RegistrationId}/RegulatoryCompliance/GB/Initialize | *ComplianceInquiriesTollfreeInitializeApi* | [**CreateComplianceTollfreeInquiry**](docs/ComplianceInquiriesTollfreeInitializeApi.md#createcompliancetollfreeinquiry) | **Post** /v1/ComplianceInquiries/Tollfree/Initialize | *CustomerProfilesApi* | [**CreateCustomerProfile**](docs/CustomerProfilesApi.md#createcustomerprofile) | **Post** /v1/CustomerProfiles | *CustomerProfilesApi* | [**DeleteCustomerProfile**](docs/CustomerProfilesApi.md#deletecustomerprofile) | **Delete** /v1/CustomerProfiles/{Sid} | diff --git a/rest/trusthub/v1/compliance_inquiries_registration_regulatory_compliance_gb_initialize.go b/rest/trusthub/v1/compliance_inquiries_registration_regulatory_compliance_gb_initialize.go index 09a439a4a..2eceb7500 100644 --- a/rest/trusthub/v1/compliance_inquiries_registration_regulatory_compliance_gb_initialize.go +++ b/rest/trusthub/v1/compliance_inquiries_registration_regulatory_compliance_gb_initialize.go @@ -18,6 +18,7 @@ import ( "encoding/json" "fmt" "net/url" + "strings" ) // Optional parameters for the method 'CreateComplianceRegistration' @@ -98,6 +99,8 @@ type CreateComplianceRegistrationParams struct { IsvRegisteringForSelfOrTenant *string `json:"IsvRegisteringForSelfOrTenant,omitempty"` // The url we call to inform you of bundle changes. StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + // Theme id for styling the inquiry form. + ThemeSetId *string `json:"ThemeSetId,omitempty"` } func (params *CreateComplianceRegistrationParams) SetEndUserType(EndUserType string) *CreateComplianceRegistrationParams { @@ -252,6 +255,10 @@ func (params *CreateComplianceRegistrationParams) SetStatusCallbackUrl(StatusCal params.StatusCallbackUrl = &StatusCallbackUrl return params } +func (params *CreateComplianceRegistrationParams) SetThemeSetId(ThemeSetId string) *CreateComplianceRegistrationParams { + params.ThemeSetId = &ThemeSetId + return params +} // Create a new Compliance Registration Inquiry for the authenticated account. This is necessary to start a new embedded session. func (c *ApiService) CreateComplianceRegistration(params *CreateComplianceRegistrationParams) (*TrusthubV1ComplianceRegistration, error) { @@ -374,6 +381,56 @@ func (c *ApiService) CreateComplianceRegistration(params *CreateComplianceRegist if params != nil && params.StatusCallbackUrl != nil { data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) } + if params != nil && params.ThemeSetId != nil { + data.Set("ThemeSetId", *params.ThemeSetId) + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrusthubV1ComplianceRegistration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'UpdateComplianceRegistration' +type UpdateComplianceRegistrationParams struct { + // Indicates if the inquiry is being started from an ISV embedded component. + IsIsvEmbed *bool `json:"IsIsvEmbed,omitempty"` + // Theme id for styling the inquiry form. + ThemeSetId *string `json:"ThemeSetId,omitempty"` +} + +func (params *UpdateComplianceRegistrationParams) SetIsIsvEmbed(IsIsvEmbed bool) *UpdateComplianceRegistrationParams { + params.IsIsvEmbed = &IsIsvEmbed + return params +} +func (params *UpdateComplianceRegistrationParams) SetThemeSetId(ThemeSetId string) *UpdateComplianceRegistrationParams { + params.ThemeSetId = &ThemeSetId + return params +} + +// Resume a specific Regulatory Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing. +func (c *ApiService) UpdateComplianceRegistration(RegistrationId string, params *UpdateComplianceRegistrationParams) (*TrusthubV1ComplianceRegistration, error) { + path := "/v1/ComplianceInquiries/Registration/{RegistrationId}/RegulatoryCompliance/GB/Initialize" + path = strings.Replace(path, "{"+"RegistrationId"+"}", RegistrationId, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.IsIsvEmbed != nil { + data.Set("IsIsvEmbed", fmt.Sprint(*params.IsIsvEmbed)) + } + if params != nil && params.ThemeSetId != nil { + data.Set("ThemeSetId", *params.ThemeSetId) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { diff --git a/rest/trusthub/v1/customer_profiles_entity_assignments.go b/rest/trusthub/v1/customer_profiles_entity_assignments.go index e21cc9441..49eec7e32 100644 --- a/rest/trusthub/v1/customer_profiles_entity_assignments.go +++ b/rest/trusthub/v1/customer_profiles_entity_assignments.go @@ -106,12 +106,18 @@ func (c *ApiService) FetchCustomerProfileEntityAssignment(CustomerProfileSid str // Optional parameters for the method 'ListCustomerProfileEntityAssignment' type ListCustomerProfileEntityAssignmentParams struct { + // A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. + ObjectType *string `json:"ObjectType,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"` } +func (params *ListCustomerProfileEntityAssignmentParams) SetObjectType(ObjectType string) *ListCustomerProfileEntityAssignmentParams { + params.ObjectType = &ObjectType + return params +} func (params *ListCustomerProfileEntityAssignmentParams) SetPageSize(PageSize int) *ListCustomerProfileEntityAssignmentParams { params.PageSize = &PageSize return params @@ -130,6 +136,9 @@ func (c *ApiService) PageCustomerProfileEntityAssignment(CustomerProfileSid stri data := url.Values{} headers := make(map[string]interface{}) + if params != nil && params.ObjectType != nil { + data.Set("ObjectType", *params.ObjectType) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md b/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md index 147306ae5..bd4801643 100644 --- a/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md +++ b/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://trusthub.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateComplianceRegistration**](ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md#CreateComplianceRegistration) | **Post** /v1/ComplianceInquiries/Registration/RegulatoryCompliance/GB/Initialize | +[**UpdateComplianceRegistration**](ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md#UpdateComplianceRegistration) | **Post** /v1/ComplianceInquiries/Registration/{RegistrationId}/RegulatoryCompliance/GB/Initialize | @@ -65,6 +66,51 @@ Name | Type | Description **IsIsvEmbed** | **bool** | Indicates if the inquiry is being started from an ISV embedded component. **IsvRegisteringForSelfOrTenant** | **string** | Indicates if the isv registering for self or tenant. **StatusCallbackUrl** | **string** | The url we call to inform you of bundle changes. +**ThemeSetId** | **string** | Theme id for styling the inquiry form. + +### Return type + +[**TrusthubV1ComplianceRegistration**](TrusthubV1ComplianceRegistration.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateComplianceRegistration + +> TrusthubV1ComplianceRegistration UpdateComplianceRegistration(ctx, RegistrationIdoptional) + + + +Resume a specific Regulatory Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing. + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**RegistrationId** | **string** | The unique RegistrationId matching the Regulatory Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Regulatory Compliance Inquiry creation call. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdateComplianceRegistrationParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**IsIsvEmbed** | **bool** | Indicates if the inquiry is being started from an ISV embedded component. +**ThemeSetId** | **string** | Theme id for styling the inquiry form. ### Return type diff --git a/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md b/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md index 7bd1601c8..aba29a7aa 100644 --- a/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md +++ b/rest/trusthub/v1/docs/CustomerProfilesEntityAssignmentsApi.md @@ -163,6 +163,7 @@ Other parameters are passed through a pointer to a ListCustomerProfileEntityAssi Name | Type | Description ------------- | ------------- | ------------- +**ObjectType** | **string** | A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/trusthub/v1/docs/TrustProductsApi.md b/rest/trusthub/v1/docs/TrustProductsApi.md index 7bdd9a998..c572866be 100644 --- a/rest/trusthub/v1/docs/TrustProductsApi.md +++ b/rest/trusthub/v1/docs/TrustProductsApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description -Create a new Customer-Profile. +Create a new Trust Product. ### Path Parameters @@ -32,8 +32,8 @@ Other parameters are passed through a pointer to a CreateTrustProductParams stru Name | Type | Description ------------- | ------------- | ------------- **FriendlyName** | **string** | The string that you assigned to describe the resource. -**Email** | **string** | The email address that will receive updates when the Customer-Profile resource changes status. -**PolicySid** | **string** | The unique string of a policy that is associated to the Customer-Profile resource. +**Email** | **string** | The email address that will receive updates when the Trust Product resource changes status. +**PolicySid** | **string** | The unique string of a policy that is associated to the Trust Product resource. **StatusCallback** | **string** | The URL we call to inform your application of status changes. ### Return type @@ -60,7 +60,7 @@ Name | Type | Description -Delete a specific Customer-Profile. +Delete a specific Trust Product. ### Path Parameters @@ -68,7 +68,7 @@ Delete a specific Customer-Profile. Name | Type | Description ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string** | The unique string that we created to identify the Customer-Profile resource. +**Sid** | **string** | The unique string that we created to identify the Trust Product resource. ### Other Parameters @@ -102,7 +102,7 @@ Name | Type | Description -Fetch a specific Customer-Profile instance. +Fetch a specific Trust Product instance. ### Path Parameters @@ -110,7 +110,7 @@ Fetch a specific Customer-Profile instance. Name | Type | Description ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string** | The unique string that we created to identify the Customer-Profile resource. +**Sid** | **string** | The unique string that we created to identify the Trust Product resource. ### Other Parameters @@ -144,7 +144,7 @@ Name | Type | Description -Retrieve a list of all Customer-Profiles for an account. +Retrieve a list of all Trust Products for an account. ### Path Parameters @@ -157,9 +157,9 @@ Other parameters are passed through a pointer to a ListTrustProductParams struct Name | Type | Description ------------- | ------------- | ------------- -**Status** | **string** | The verification status of the Customer-Profile resource. +**Status** | **string** | The verification status of the Trust Product resource. **FriendlyName** | **string** | The string that you assigned to describe the resource. -**PolicySid** | **string** | The unique string of a policy that is associated to the Customer-Profile resource. +**PolicySid** | **string** | The unique string of a policy that is associated to the Trust Product resource. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. @@ -187,7 +187,7 @@ Name | Type | Description -Updates a Customer-Profile in an account. +Updates a Trust Product in an account. ### Path Parameters @@ -195,7 +195,7 @@ Updates a Customer-Profile in an account. Name | Type | Description ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string** | The unique string that we created to identify the Customer-Profile resource. +**Sid** | **string** | The unique string that we created to identify the Trust Product resource. ### Other Parameters @@ -207,7 +207,7 @@ Name | Type | Description **Status** | **string** | **StatusCallback** | **string** | The URL we call to inform your application of status changes. **FriendlyName** | **string** | The string that you assigned to describe the resource. -**Email** | **string** | The email address that will receive updates when the Customer-Profile resource changes status. +**Email** | **string** | The email address that will receive updates when the Trust Product resource changes status. ### Return type diff --git a/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md b/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md index 7c3e65ebe..f59cfcfb9 100644 --- a/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md +++ b/rest/trusthub/v1/docs/TrustProductsEntityAssignmentsApi.md @@ -163,6 +163,7 @@ Other parameters are passed through a pointer to a ListTrustProductEntityAssignm Name | Type | Description ------------- | ------------- | ------------- +**ObjectType** | **string** | A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/trusthub/v1/docs/TrusthubV1TrustProduct.md b/rest/trusthub/v1/docs/TrusthubV1TrustProduct.md index 810fd7975..f0c3843a4 100644 --- a/rest/trusthub/v1/docs/TrusthubV1TrustProduct.md +++ b/rest/trusthub/v1/docs/TrusthubV1TrustProduct.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Sid** | Pointer to **string** | The unique string that we created to identify the Customer-Profile resource. | -**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Customer-Profile resource. | -**PolicySid** | Pointer to **string** | The unique string of a policy that is associated to the Customer-Profile resource. | +**Sid** | Pointer to **string** | The unique string that we created to identify the Trust Product resource. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trust Product resource. | +**PolicySid** | Pointer to **string** | The unique string of the policy that is associated with the Trust Product resource. | **FriendlyName** | Pointer to **string** | The string that you assigned to describe the resource. | **Status** | Pointer to [**string**](TrustProductEnumStatus.md) | | -**ValidUntil** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until. | -**Email** | Pointer to **string** | The email address that will receive updates when the Customer-Profile resource changes status. | +**ValidUntil** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format until which the resource will be valid. | +**Email** | Pointer to **string** | The email address that will receive updates when the Trust Product resource changes status. | **StatusCallback** | Pointer to **string** | The URL we call to inform your application of status changes. | **DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | **DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | -**Url** | Pointer to **string** | The absolute URL of the Customer-Profile resource. | -**Links** | Pointer to **map[string]interface{}** | The URLs of the Assigned Items of the Customer-Profile resource. | +**Url** | Pointer to **string** | The absolute URL of the Trust Product resource. | +**Links** | Pointer to **map[string]interface{}** | The URLs of the Assigned Items of the Trust Product resource. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/trusthub/v1/model_trusthub_v1_trust_product.go b/rest/trusthub/v1/model_trusthub_v1_trust_product.go index f228e2e35..75789f30c 100644 --- a/rest/trusthub/v1/model_trusthub_v1_trust_product.go +++ b/rest/trusthub/v1/model_trusthub_v1_trust_product.go @@ -20,18 +20,18 @@ import ( // TrusthubV1TrustProduct struct for TrusthubV1TrustProduct type TrusthubV1TrustProduct struct { - // The unique string that we created to identify the Customer-Profile resource. + // The unique string that we created to identify the Trust Product resource. Sid *string `json:"sid,omitempty"` - // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Customer-Profile resource. + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trust Product resource. AccountSid *string `json:"account_sid,omitempty"` - // The unique string of a policy that is associated to the Customer-Profile resource. + // The unique string of the policy that is associated with the Trust Product resource. PolicySid *string `json:"policy_sid,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"friendly_name,omitempty"` Status *string `json:"status,omitempty"` - // The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until. + // The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format until which the resource will be valid. ValidUntil *time.Time `json:"valid_until,omitempty"` - // The email address that will receive updates when the Customer-Profile resource changes status. + // The email address that will receive updates when the Trust Product resource changes status. Email *string `json:"email,omitempty"` // The URL we call to inform your application of status changes. StatusCallback *string `json:"status_callback,omitempty"` @@ -39,8 +39,8 @@ type TrusthubV1TrustProduct struct { DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` - // The absolute URL of the Customer-Profile resource. + // The absolute URL of the Trust Product resource. Url *string `json:"url,omitempty"` - // The URLs of the Assigned Items of the Customer-Profile resource. + // The URLs of the Assigned Items of the Trust Product resource. Links *map[string]interface{} `json:"links,omitempty"` } diff --git a/rest/trusthub/v1/trust_products.go b/rest/trusthub/v1/trust_products.go index 5d6de413e..a916a760e 100644 --- a/rest/trusthub/v1/trust_products.go +++ b/rest/trusthub/v1/trust_products.go @@ -27,9 +27,9 @@ import ( type CreateTrustProductParams struct { // The string that you assigned to describe the resource. FriendlyName *string `json:"FriendlyName,omitempty"` - // The email address that will receive updates when the Customer-Profile resource changes status. + // The email address that will receive updates when the Trust Product resource changes status. Email *string `json:"Email,omitempty"` - // The unique string of a policy that is associated to the Customer-Profile resource. + // The unique string of a policy that is associated to the Trust Product resource. PolicySid *string `json:"PolicySid,omitempty"` // The URL we call to inform your application of status changes. StatusCallback *string `json:"StatusCallback,omitempty"` @@ -52,7 +52,7 @@ func (params *CreateTrustProductParams) SetStatusCallback(StatusCallback string) return params } -// Create a new Customer-Profile. +// Create a new Trust Product. func (c *ApiService) CreateTrustProduct(params *CreateTrustProductParams) (*TrusthubV1TrustProduct, error) { path := "/v1/TrustProducts" @@ -87,7 +87,7 @@ func (c *ApiService) CreateTrustProduct(params *CreateTrustProductParams) (*Trus return ps, err } -// Delete a specific Customer-Profile. +// Delete a specific Trust Product. func (c *ApiService) DeleteTrustProduct(Sid string) error { path := "/v1/TrustProducts/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -105,7 +105,7 @@ func (c *ApiService) DeleteTrustProduct(Sid string) error { return nil } -// Fetch a specific Customer-Profile instance. +// Fetch a specific Trust Product instance. func (c *ApiService) FetchTrustProduct(Sid string) (*TrusthubV1TrustProduct, error) { path := "/v1/TrustProducts/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -130,11 +130,11 @@ func (c *ApiService) FetchTrustProduct(Sid string) (*TrusthubV1TrustProduct, err // Optional parameters for the method 'ListTrustProduct' type ListTrustProductParams struct { - // The verification status of the Customer-Profile resource. + // The verification status of the Trust Product resource. Status *string `json:"Status,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"FriendlyName,omitempty"` - // The unique string of a policy that is associated to the Customer-Profile resource. + // The unique string of a policy that is associated to the Trust Product resource. PolicySid *string `json:"PolicySid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` @@ -299,7 +299,7 @@ type UpdateTrustProductParams struct { StatusCallback *string `json:"StatusCallback,omitempty"` // The string that you assigned to describe the resource. FriendlyName *string `json:"FriendlyName,omitempty"` - // The email address that will receive updates when the Customer-Profile resource changes status. + // The email address that will receive updates when the Trust Product resource changes status. Email *string `json:"Email,omitempty"` } @@ -320,7 +320,7 @@ func (params *UpdateTrustProductParams) SetEmail(Email string) *UpdateTrustProdu return params } -// Updates a Customer-Profile in an account. +// Updates a Trust Product in an account. func (c *ApiService) UpdateTrustProduct(Sid string, params *UpdateTrustProductParams) (*TrusthubV1TrustProduct, error) { path := "/v1/TrustProducts/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/trusthub/v1/trust_products_entity_assignments.go b/rest/trusthub/v1/trust_products_entity_assignments.go index cc5bc2b31..114b930bb 100644 --- a/rest/trusthub/v1/trust_products_entity_assignments.go +++ b/rest/trusthub/v1/trust_products_entity_assignments.go @@ -106,12 +106,18 @@ func (c *ApiService) FetchTrustProductEntityAssignment(TrustProductSid string, S // Optional parameters for the method 'ListTrustProductEntityAssignment' type ListTrustProductEntityAssignmentParams struct { + // A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. + ObjectType *string `json:"ObjectType,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"` } +func (params *ListTrustProductEntityAssignmentParams) SetObjectType(ObjectType string) *ListTrustProductEntityAssignmentParams { + params.ObjectType = &ObjectType + return params +} func (params *ListTrustProductEntityAssignmentParams) SetPageSize(PageSize int) *ListTrustProductEntityAssignmentParams { params.PageSize = &PageSize return params @@ -130,6 +136,9 @@ func (c *ApiService) PageTrustProductEntityAssignment(TrustProductSid string, pa data := url.Values{} headers := make(map[string]interface{}) + if params != nil && params.ObjectType != nil { + data.Set("ObjectType", *params.ObjectType) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md index 2c29002ff..713fc6c7d 100644 --- a/rest/verify/v2/README.md +++ b/rest/verify/v2/README.md @@ -89,8 +89,8 @@ Class | Method | HTTP request | Description ## Documentation For Models - [ListMessagingConfigurationResponse](docs/ListMessagingConfigurationResponse.md) - - [VerifyV2AccessToken](docs/VerifyV2AccessToken.md) - [VerifyV2RateLimit](docs/VerifyV2RateLimit.md) + - [VerifyV2AccessToken](docs/VerifyV2AccessToken.md) - [VerifyV2Webhook](docs/VerifyV2Webhook.md) - [ListServiceResponse](docs/ListServiceResponse.md) - [VerifyV2Notification](docs/VerifyV2Notification.md) @@ -101,8 +101,8 @@ Class | Method | HTTP request | Description - [VerifyV2Challenge](docs/VerifyV2Challenge.md) - [ListEntityResponse](docs/ListEntityResponse.md) - [ListWebhookResponse](docs/ListWebhookResponse.md) - - [ListFactorResponse](docs/ListFactorResponse.md) - [ListRateLimitResponse](docs/ListRateLimitResponse.md) + - [ListFactorResponse](docs/ListFactorResponse.md) - [ListVerificationTemplateResponse](docs/ListVerificationTemplateResponse.md) - [VerifyV2MessagingConfiguration](docs/VerifyV2MessagingConfiguration.md) - [VerifyV2Service](docs/VerifyV2Service.md) @@ -111,8 +111,8 @@ Class | Method | HTTP request | Description - [VerifyV2VerificationCheck](docs/VerifyV2VerificationCheck.md) - [ListVerificationAttemptResponse](docs/ListVerificationAttemptResponse.md) - [VerifyV2NewFactor](docs/VerifyV2NewFactor.md) - - [VerifyV2Verification](docs/VerifyV2Verification.md) - [VerifyV2VerificationAttemptsSummary](docs/VerifyV2VerificationAttemptsSummary.md) + - [VerifyV2Verification](docs/VerifyV2Verification.md) - [ListBucketResponse](docs/ListBucketResponse.md) - [ListChallengeResponse](docs/ListChallengeResponse.md) - [VerifyV2Bucket](docs/VerifyV2Bucket.md) diff --git a/rest/verify/v2/services_webhooks.go b/rest/verify/v2/services_webhooks.go index 46dd9318c..07dbaef30 100644 --- a/rest/verify/v2/services_webhooks.go +++ b/rest/verify/v2/services_webhooks.go @@ -315,7 +315,6 @@ func (params *UpdateWebhookParams) SetVersion(Version string) *UpdateWebhookPara return params } -// func (c *ApiService) UpdateWebhook(ServiceSid string, Sid string, params *UpdateWebhookParams) (*VerifyV2Webhook, error) { path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) diff --git a/rest/video/v1/composition_hooks.go b/rest/video/v1/composition_hooks.go index a7a824e18..612fde050 100644 --- a/rest/video/v1/composition_hooks.go +++ b/rest/video/v1/composition_hooks.go @@ -89,7 +89,6 @@ func (params *CreateCompositionHookParams) SetTrim(Trim bool) *CreateComposition return params } -// func (c *ApiService) CreateCompositionHook(params *CreateCompositionHookParams) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks" @@ -430,7 +429,6 @@ func (params *UpdateCompositionHookParams) SetStatusCallbackMethod(StatusCallbac return params } -// func (c *ApiService) UpdateCompositionHook(Sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/video/v1/composition_settings_default.go b/rest/video/v1/composition_settings_default.go index 84854f91f..7796d4968 100644 --- a/rest/video/v1/composition_settings_default.go +++ b/rest/video/v1/composition_settings_default.go @@ -61,7 +61,6 @@ func (params *CreateCompositionSettingsParams) SetEncryptionEnabled(EncryptionEn return params } -// func (c *ApiService) CreateCompositionSettings(params *CreateCompositionSettingsParams) (*VideoV1CompositionSettings, error) { path := "/v1/CompositionSettings/Default" @@ -102,7 +101,6 @@ func (c *ApiService) CreateCompositionSettings(params *CreateCompositionSettings return ps, err } -// func (c *ApiService) FetchCompositionSettings() (*VideoV1CompositionSettings, error) { path := "/v1/CompositionSettings/Default" diff --git a/rest/video/v1/compositions.go b/rest/video/v1/compositions.go index d0dce4ee9..0fdc43d14 100644 --- a/rest/video/v1/compositions.go +++ b/rest/video/v1/compositions.go @@ -83,7 +83,6 @@ func (params *CreateCompositionParams) SetTrim(Trim bool) *CreateCompositionPara return params } -// func (c *ApiService) CreateComposition(params *CreateCompositionParams) (*VideoV1Composition, error) { path := "/v1/Compositions" diff --git a/rest/video/v1/recording_settings_default.go b/rest/video/v1/recording_settings_default.go index 9cf263345..08d112a70 100644 --- a/rest/video/v1/recording_settings_default.go +++ b/rest/video/v1/recording_settings_default.go @@ -61,7 +61,6 @@ func (params *CreateRecordingSettingsParams) SetEncryptionEnabled(EncryptionEnab return params } -// func (c *ApiService) CreateRecordingSettings(params *CreateRecordingSettingsParams) (*VideoV1RecordingSettings, error) { path := "/v1/RecordingSettings/Default" @@ -102,7 +101,6 @@ func (c *ApiService) CreateRecordingSettings(params *CreateRecordingSettingsPara return ps, err } -// func (c *ApiService) FetchRecordingSettings() (*VideoV1RecordingSettings, error) { path := "/v1/RecordingSettings/Default" diff --git a/rest/video/v1/rooms.go b/rest/video/v1/rooms.go index 0ea1b2229..42ae28e36 100644 --- a/rest/video/v1/rooms.go +++ b/rest/video/v1/rooms.go @@ -119,7 +119,6 @@ func (params *CreateRoomParams) SetLargeRoom(LargeRoom bool) *CreateRoomParams { return params } -// func (c *ApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) { path := "/v1/Rooms" @@ -195,7 +194,6 @@ func (c *ApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) return ps, err } -// func (c *ApiService) FetchRoom(Sid string) (*VideoV1Room, error) { path := "/v1/Rooms/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -401,7 +399,6 @@ func (params *UpdateRoomParams) SetStatus(Status string) *UpdateRoomParams { return params } -// func (c *ApiService) UpdateRoom(Sid string, params *UpdateRoomParams) (*VideoV1Room, error) { path := "/v1/Rooms/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/video/v1/rooms_participants.go b/rest/video/v1/rooms_participants.go index af815d01e..502d4a63a 100644 --- a/rest/video/v1/rooms_participants.go +++ b/rest/video/v1/rooms_participants.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) FetchRoomParticipant(RoomSid string, Sid string) (*VideoV1RoomParticipant, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -233,7 +232,6 @@ func (params *UpdateRoomParticipantParams) SetStatus(Status string) *UpdateRoomP return params } -// func (c *ApiService) UpdateRoomParticipant(RoomSid string, Sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomParticipant, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) diff --git a/rest/video/v1/rooms_participants_anonymize.go b/rest/video/v1/rooms_participants_anonymize.go index 509352a4d..d334fd08d 100644 --- a/rest/video/v1/rooms_participants_anonymize.go +++ b/rest/video/v1/rooms_participants_anonymize.go @@ -20,7 +20,6 @@ import ( "strings" ) -// func (c *ApiService) UpdateRoomParticipantAnonymize(RoomSid string, Sid string) (*VideoV1RoomParticipantAnonymize, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}/Anonymize" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) diff --git a/rest/video/v1/rooms_recordings.go b/rest/video/v1/rooms_recordings.go index 37b72820c..c5de09c13 100644 --- a/rest/video/v1/rooms_recordings.go +++ b/rest/video/v1/rooms_recordings.go @@ -24,7 +24,6 @@ import ( "github.com/twilio/twilio-go/client" ) -// func (c *ApiService) DeleteRoomRecording(RoomSid string, Sid string) error { path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -43,7 +42,6 @@ func (c *ApiService) DeleteRoomRecording(RoomSid string, Sid string) error { return nil } -// func (c *ApiService) FetchRoomRecording(RoomSid string, Sid string) (*VideoV1RoomRecording, error) { path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) diff --git a/rest/voice/v1/byoc_trunks.go b/rest/voice/v1/byoc_trunks.go index 8bc50ff79..e0639dd54 100644 --- a/rest/voice/v1/byoc_trunks.go +++ b/rest/voice/v1/byoc_trunks.go @@ -88,7 +88,6 @@ func (params *CreateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *Cre return params } -// func (c *ApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks" @@ -141,7 +140,6 @@ func (c *ApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1Byo return ps, err } -// func (c *ApiService) DeleteByocTrunk(Sid string) error { path := "/v1/ByocTrunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -159,7 +157,6 @@ func (c *ApiService) DeleteByocTrunk(Sid string) error { return nil } -// func (c *ApiService) FetchByocTrunk(Sid string) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -383,7 +380,6 @@ func (params *UpdateByocTrunkParams) SetFromDomainSid(FromDomainSid string) *Upd return params } -// func (c *ApiService) UpdateByocTrunk(Sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/connection_policies.go b/rest/voice/v1/connection_policies.go index 24eda12dd..95d4b73e3 100644 --- a/rest/voice/v1/connection_policies.go +++ b/rest/voice/v1/connection_policies.go @@ -34,7 +34,6 @@ func (params *CreateConnectionPolicyParams) SetFriendlyName(FriendlyName string) return params } -// func (c *ApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies" @@ -60,7 +59,6 @@ func (c *ApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams return ps, err } -// func (c *ApiService) DeleteConnectionPolicy(Sid string) error { path := "/v1/ConnectionPolicies/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -78,7 +76,6 @@ func (c *ApiService) DeleteConnectionPolicy(Sid string) error { return nil } -// func (c *ApiService) FetchConnectionPolicy(Sid string) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -248,7 +245,6 @@ func (params *UpdateConnectionPolicyParams) SetFriendlyName(FriendlyName string) return params } -// func (c *ApiService) UpdateConnectionPolicy(Sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/connection_policies_targets.go b/rest/voice/v1/connection_policies_targets.go index 015b0c972..f2e0b850d 100644 --- a/rest/voice/v1/connection_policies_targets.go +++ b/rest/voice/v1/connection_policies_targets.go @@ -58,7 +58,6 @@ func (params *CreateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *Crea return params } -// func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -97,7 +96,6 @@ func (c *ApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, pa return ps, err } -// func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Sid string) error { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -116,7 +114,6 @@ func (c *ApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Si return nil } -// func (c *ApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -313,7 +310,6 @@ func (params *UpdateConnectionPolicyTargetParams) SetEnabled(Enabled bool) *Upda return params } -// func (c *ApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid string, Sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) diff --git a/rest/voice/v1/ip_records.go b/rest/voice/v1/ip_records.go index 93ed82dde..a65595bb9 100644 --- a/rest/voice/v1/ip_records.go +++ b/rest/voice/v1/ip_records.go @@ -46,7 +46,6 @@ func (params *CreateIpRecordParams) SetCidrPrefixLength(CidrPrefixLength int) *C return params } -// func (c *ApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords" @@ -78,7 +77,6 @@ func (c *ApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRec return ps, err } -// func (c *ApiService) DeleteIpRecord(Sid string) error { path := "/v1/IpRecords/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -96,7 +94,6 @@ func (c *ApiService) DeleteIpRecord(Sid string) error { return nil } -// func (c *ApiService) FetchIpRecord(Sid string) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -266,7 +263,6 @@ func (params *UpdateIpRecordParams) SetFriendlyName(FriendlyName string) *Update return params } -// func (c *ApiService) UpdateIpRecord(Sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/voice/v1/source_ip_mappings.go b/rest/voice/v1/source_ip_mappings.go index 083da2e12..fe733d24b 100644 --- a/rest/voice/v1/source_ip_mappings.go +++ b/rest/voice/v1/source_ip_mappings.go @@ -40,7 +40,6 @@ func (params *CreateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) return params } -// func (c *ApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings" @@ -69,7 +68,6 @@ func (c *ApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) return ps, err } -// func (c *ApiService) DeleteSourceIpMapping(Sid string) error { path := "/v1/SourceIpMappings/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -87,7 +85,6 @@ func (c *ApiService) DeleteSourceIpMapping(Sid string) error { return nil } -// func (c *ApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -257,7 +254,6 @@ func (params *UpdateSourceIpMappingParams) SetSipDomainSid(SipDomainSid string) return params } -// func (c *ApiService) UpdateSourceIpMapping(Sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/wireless/v1/rate_plans.go b/rest/wireless/v1/rate_plans.go index a115db739..6efadde70 100644 --- a/rest/wireless/v1/rate_plans.go +++ b/rest/wireless/v1/rate_plans.go @@ -94,7 +94,6 @@ func (params *CreateRatePlanParams) SetInternationalRoamingDataLimit(Internation return params } -// func (c *ApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans" @@ -152,7 +151,6 @@ func (c *ApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1Ra return ps, err } -// func (c *ApiService) DeleteRatePlan(Sid string) error { path := "/v1/RatePlans/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -170,7 +168,6 @@ func (c *ApiService) DeleteRatePlan(Sid string) error { return nil } -// func (c *ApiService) FetchRatePlan(Sid string) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -346,7 +343,6 @@ func (params *UpdateRatePlanParams) SetFriendlyName(FriendlyName string) *Update return params } -// func (c *ApiService) UpdateRatePlan(Sid string, params *UpdateRatePlanParams) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/twiml/voice_response.go b/twiml/voice_response.go index 81c4de057..20be6a001 100644 --- a/twiml/voice_response.go +++ b/twiml/voice_response.go @@ -13,7 +13,7 @@ func Voice(verbs []Element) (string, error) { return ToXML(doc) } -//VoiceRefer TwiML Verb +// VoiceRefer TwiML Verb type VoiceRefer struct { // action: Action URL // method: Action URL method @@ -44,7 +44,7 @@ func (m VoiceRefer) GetInnerElements() []Element { return m.InnerElements } -//VoiceReferSip TwiML Noun used in +// VoiceReferSip TwiML Noun used in type VoiceReferSip struct { // sip_url: SIP URL // OptionalAttributes: additional attributes @@ -69,7 +69,7 @@ func (m VoiceReferSip) GetInnerElements() []Element { return m.InnerElements } -//VoiceStop TwiML Verb +// VoiceStop TwiML Verb type VoiceStop struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -92,7 +92,7 @@ func (m VoiceStop) GetInnerElements() []Element { return m.InnerElements } -//VoiceSipRec TwiML Noun +// VoiceSipRec TwiML Noun type VoiceSipRec struct { // name: Friendly name given to SIPREC // connector_name: Unique name for Connector @@ -132,7 +132,7 @@ func (m VoiceSipRec) GetInnerElements() []Element { return m.InnerElements } -//VoiceParameter TwiML Noun +// VoiceParameter TwiML Noun type VoiceParameter struct { // name: The name of the custom parameter // value: The value of the custom parameter @@ -163,7 +163,7 @@ func (m VoiceParameter) GetInnerElements() []Element { return m.InnerElements } -//VoiceStream TwiML Noun +// VoiceStream TwiML Noun type VoiceStream struct { // name: Friendly name given to the Stream // connector_name: Unique name for Stream Connector @@ -206,7 +206,7 @@ func (m VoiceStream) GetInnerElements() []Element { return m.InnerElements } -//VoiceStart TwiML Verb +// VoiceStart TwiML Verb type VoiceStart struct { // action: Action URL // method: Action URL method @@ -237,7 +237,7 @@ func (m VoiceStart) GetInnerElements() []Element { return m.InnerElements } -//VoicePrompt Twiml Verb +// VoicePrompt Twiml Verb type VoicePrompt struct { // for_: Name of the payment source data element // error_type: Type of error @@ -277,7 +277,7 @@ func (m VoicePrompt) GetInnerElements() []Element { return m.InnerElements } -//VoicePause TwiML Verb +// VoicePause TwiML Verb type VoicePause struct { // length: Length in seconds to pause // OptionalAttributes: additional attributes @@ -305,7 +305,7 @@ func (m VoicePause) GetInnerElements() []Element { return m.InnerElements } -//VoicePlay TwiML Verb +// VoicePlay TwiML Verb type VoicePlay struct { // url: Media URL // loop: Times to loop media @@ -338,7 +338,7 @@ func (m VoicePlay) GetInnerElements() []Element { return m.InnerElements } -//VoiceSay TwiML Verb +// VoiceSay TwiML Verb type VoiceSay struct { // message: Message to say // voice: Voice to use @@ -374,7 +374,7 @@ func (m VoiceSay) GetInnerElements() []Element { return m.InnerElements } -//VoiceW Improving Pronunciation by Specifying Parts of Speech in +// VoiceW Improving Pronunciation by Specifying Parts of Speech in type VoiceW struct { // words: Words to speak // role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning @@ -404,7 +404,7 @@ func (m VoiceW) GetInnerElements() []Element { return m.InnerElements } -//VoiceSub Pronouncing Acronyms and Abbreviations in +// VoiceSub Pronouncing Acronyms and Abbreviations in type VoiceSub struct { // words: Words to be substituted // alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation @@ -434,7 +434,7 @@ func (m VoiceSub) GetInnerElements() []Element { return m.InnerElements } -//VoiceSayAs Controlling How Special Types of Words Are Spoken in +// VoiceSayAs Controlling How Special Types of Words Are Spoken in type VoiceSayAs struct { // words: Words to be interpreted // interpret-as: Specify the type of words are spoken @@ -467,7 +467,7 @@ func (m VoiceSayAs) GetInnerElements() []Element { return m.InnerElements } -//VoiceProsody Controling Volume, Speaking Rate, and Pitch in +// VoiceProsody Controling Volume, Speaking Rate, and Pitch in type VoiceProsody struct { // words: Words to speak // volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB @@ -503,7 +503,7 @@ func (m VoiceProsody) GetInnerElements() []Element { return m.InnerElements } -//VoiceS Adding A Pause Between Sentences in +// VoiceS Adding A Pause Between Sentences in type VoiceS struct { // words: Words to speak // OptionalAttributes: additional attributes @@ -528,7 +528,7 @@ func (m VoiceS) GetInnerElements() []Element { return m.InnerElements } -//VoicePhoneme Using Phonetic Pronunciation in +// VoicePhoneme Using Phonetic Pronunciation in type VoicePhoneme struct { // words: Words to speak // alphabet: Specify the phonetic alphabet @@ -561,7 +561,7 @@ func (m VoicePhoneme) GetInnerElements() []Element { return m.InnerElements } -//VoiceLang Specifying Another Language for Specific Words in +// VoiceLang Specifying Another Language for Specific Words in type VoiceLang struct { // words: Words to speak // xml:lang: Specify the language @@ -591,7 +591,7 @@ func (m VoiceLang) GetInnerElements() []Element { return m.InnerElements } -//VoiceP Adding a Pause Between Paragraphs in +// VoiceP Adding a Pause Between Paragraphs in type VoiceP struct { // words: Words to speak // OptionalAttributes: additional attributes @@ -616,7 +616,7 @@ func (m VoiceP) GetInnerElements() []Element { return m.InnerElements } -//VoiceEmphasis Emphasizing Words in +// VoiceEmphasis Emphasizing Words in type VoiceEmphasis struct { // words: Words to emphasize // level: Specify the degree of emphasis @@ -646,7 +646,7 @@ func (m VoiceEmphasis) GetInnerElements() []Element { return m.InnerElements } -//VoiceBreak Adding a Pause in +// VoiceBreak Adding a Pause in type VoiceBreak struct { // strength: Set a pause based on strength // time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms @@ -677,7 +677,7 @@ func (m VoiceBreak) GetInnerElements() []Element { return m.InnerElements } -//VoicePay Twiml Verb +// VoicePay Twiml Verb type VoicePay struct { // input: Input type Twilio should accept // action: Action URL @@ -756,7 +756,7 @@ func (m VoicePay) GetInnerElements() []Element { return m.InnerElements } -//VoiceSms TwiML Noun +// VoiceSms TwiML Noun type VoiceSms struct { // message: Message body // to: Number to send message to @@ -798,7 +798,7 @@ func (m VoiceSms) GetInnerElements() []Element { return m.InnerElements } -//VoiceReject TwiML Verb +// VoiceReject TwiML Verb type VoiceReject struct { // reason: Rejection reason // OptionalAttributes: additional attributes @@ -826,7 +826,7 @@ func (m VoiceReject) GetInnerElements() []Element { return m.InnerElements } -//VoiceRedirect TwiML Verb +// VoiceRedirect TwiML Verb type VoiceRedirect struct { // url: Redirect URL // method: Redirect URL method @@ -856,7 +856,7 @@ func (m VoiceRedirect) GetInnerElements() []Element { return m.InnerElements } -//VoiceRecord TwiML Verb +// VoiceRecord TwiML Verb type VoiceRecord struct { // action: Action URL // method: Action URL method @@ -917,7 +917,7 @@ func (m VoiceRecord) GetInnerElements() []Element { return m.InnerElements } -//VoiceQueue TwiML Noun +// VoiceQueue TwiML Noun type VoiceQueue struct { // name: Queue name // url: Action URL @@ -956,7 +956,7 @@ func (m VoiceQueue) GetInnerElements() []Element { return m.InnerElements } -//VoiceLeave TwiML Verb +// VoiceLeave TwiML Verb type VoiceLeave struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -979,7 +979,7 @@ func (m VoiceLeave) GetInnerElements() []Element { return m.InnerElements } -//VoiceHangup TwiML Verb +// VoiceHangup TwiML Verb type VoiceHangup struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -1002,7 +1002,7 @@ func (m VoiceHangup) GetInnerElements() []Element { return m.InnerElements } -//VoiceGather TwiML Verb +// VoiceGather TwiML Verb type VoiceGather struct { // input: Input type Twilio should accept // action: Action URL @@ -1081,7 +1081,7 @@ func (m VoiceGather) GetInnerElements() []Element { return m.InnerElements } -//VoiceEnqueue TwiML Noun +// VoiceEnqueue TwiML Noun type VoiceEnqueue struct { // name: Friendly name // action: Action URL @@ -1126,7 +1126,7 @@ func (m VoiceEnqueue) GetInnerElements() []Element { return m.InnerElements } -//VoiceTask TwiML Noun +// VoiceTask TwiML Noun type VoiceTask struct { // body: TaskRouter task attributes // priority: Task priority @@ -1159,7 +1159,7 @@ func (m VoiceTask) GetInnerElements() []Element { return m.InnerElements } -//VoiceEcho TwiML Verb +// VoiceEcho TwiML Verb type VoiceEcho struct { // OptionalAttributes: additional attributes InnerElements []Element @@ -1182,7 +1182,7 @@ func (m VoiceEcho) GetInnerElements() []Element { return m.InnerElements } -//VoiceDial TwiML Verb +// VoiceDial TwiML Verb type VoiceDial struct { // number: Phone number to dial // action: Action URL @@ -1260,7 +1260,7 @@ func (m VoiceDial) GetInnerElements() []Element { return m.InnerElements } -//VoiceApplication TwiML Noun +// VoiceApplication TwiML Noun type VoiceApplication struct { // application_sid: Application sid // url: TwiML URL @@ -1308,7 +1308,7 @@ func (m VoiceApplication) GetInnerElements() []Element { return m.InnerElements } -//VoiceApplicationSid TwiML Noun +// VoiceApplicationSid TwiML Noun type VoiceApplicationSid struct { // sid: Application sid to dial // OptionalAttributes: additional attributes @@ -1333,7 +1333,7 @@ func (m VoiceApplicationSid) GetInnerElements() []Element { return m.InnerElements } -//VoiceSip TwiML Noun +// VoiceSip TwiML Noun type VoiceSip struct { // sip_url: SIP URL // username: SIP Username @@ -1402,7 +1402,7 @@ func (m VoiceSip) GetInnerElements() []Element { return m.InnerElements } -//VoiceSim TwiML Noun +// VoiceSim TwiML Noun type VoiceSim struct { // sim_sid: SIM SID // OptionalAttributes: additional attributes @@ -1427,7 +1427,7 @@ func (m VoiceSim) GetInnerElements() []Element { return m.InnerElements } -//VoiceNumber TwiML Noun +// VoiceNumber TwiML Noun type VoiceNumber struct { // phone_number: Phone Number to dial // send_digits: DTMF tones to play when the call is answered @@ -1496,7 +1496,7 @@ func (m VoiceNumber) GetInnerElements() []Element { return m.InnerElements } -//VoiceConference TwiML Noun +// VoiceConference TwiML Noun type VoiceConference struct { // name: Conference name // muted: Join the conference muted @@ -1583,7 +1583,7 @@ func (m VoiceConference) GetInnerElements() []Element { return m.InnerElements } -//VoiceClient TwiML Noun +// VoiceClient TwiML Noun type VoiceClient struct { // identity: Client identity // url: Client URL @@ -1625,7 +1625,7 @@ func (m VoiceClient) GetInnerElements() []Element { return m.InnerElements } -//VoiceIdentity TwiML Noun +// VoiceIdentity TwiML Noun type VoiceIdentity struct { // client_identity: Identity of the client to dial // OptionalAttributes: additional attributes @@ -1650,7 +1650,7 @@ func (m VoiceIdentity) GetInnerElements() []Element { return m.InnerElements } -//VoiceConnect TwiML Verb +// VoiceConnect TwiML Verb type VoiceConnect struct { // action: Action URL // method: Action URL method @@ -1681,7 +1681,7 @@ func (m VoiceConnect) GetInnerElements() []Element { return m.InnerElements } -//VoiceConversation TwiML Noun +// VoiceConversation TwiML Noun type VoiceConversation struct { // service_instance_sid: Service instance Sid // inbound_autocreation: Inbound autocreation @@ -1748,7 +1748,7 @@ func (m VoiceConversation) GetInnerElements() []Element { return m.InnerElements } -//VoiceVirtualAgent TwiML Noun +// VoiceVirtualAgent TwiML Noun type VoiceVirtualAgent struct { // connector_name: Defines the conversation profile Dialogflow needs to use // language: Language to be used by Dialogflow to transcribe speech @@ -1788,7 +1788,7 @@ func (m VoiceVirtualAgent) GetInnerElements() []Element { return m.InnerElements } -//VoiceConfig TwiML Noun +// VoiceConfig TwiML Noun type VoiceConfig struct { // name: The name of the custom config // value: The value of the custom config @@ -1819,7 +1819,7 @@ func (m VoiceConfig) GetInnerElements() []Element { return m.InnerElements } -//VoiceAutopilot TwiML Noun +// VoiceAutopilot TwiML Noun type VoiceAutopilot struct { // name: Autopilot assistant sid or unique name // OptionalAttributes: additional attributes @@ -1844,7 +1844,7 @@ func (m VoiceAutopilot) GetInnerElements() []Element { return m.InnerElements } -//VoiceRoom TwiML Noun +// VoiceRoom TwiML Noun type VoiceRoom struct { // name: Room name // participant_identity: Participant identity when connecting to the Room