From eddfc50157b75a0ceb470910da0c31f0a847cf6e Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Mon, 11 Mar 2024 16:47:17 +0530 Subject: [PATCH 1/3] feat!: Merging rc branch in main --- UPGRADE.md | 8 +++++ client/base_client.go | 2 +- client/client.go | 66 ++++++++++++++++++++++++---------- client/client_test.go | 2 +- client/request_handler.go | 9 +++-- client/request_handler_test.go | 52 +++++++++++++++++++++++++++ 6 files changed, 113 insertions(+), 26 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index ae2248ef4..37cd6b1d3 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -2,6 +2,14 @@ _All `MAJOR` version bumps will have upgrade notes posted here._ +## [2024-03-11] 1.x.x to 2.x.x +### Overview + +#### Twilio Go Helper Library’s major version 2.0.0 is now available. We ensured that you can upgrade to Go helper Library 2.0.0 version without any breaking changes of existing apis + +Behind the scenes Go Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages. +We're pleased to inform you that version 2.0.0 adds support for the application/json content type in the request body. + [2022-10-05] 0.26.x to 1.x.x ----------------------------- ### NEW FEATURE - Added Support for Twiml Building diff --git a/client/base_client.go b/client/base_client.go index 974560dcd..4febc438f 100644 --- a/client/base_client.go +++ b/client/base_client.go @@ -10,5 +10,5 @@ type BaseClient interface { AccountSid() string SetTimeout(timeout time.Duration) SendRequest(method string, rawURL string, data url.Values, - headers map[string]interface{}) (*http.Response, error) + headers map[string]interface{}, body ...byte) (*http.Response, error) } diff --git a/client/client.go b/client/client.go index 44f5a9942..7519adc79 100644 --- a/client/client.go +++ b/client/client.go @@ -2,6 +2,7 @@ package client import ( + "bytes" "encoding/json" "fmt" "net/http" @@ -64,10 +65,20 @@ func (c *Client) SetTimeout(timeout time.Duration) { c.HTTPClient.Timeout = timeout } +func extractContentTypeHeader(headers map[string]interface{}) (cType string) { + headerType, ok := headers["Content-Type"] + if !ok { + return urlEncodedContentType + } + return headerType.(string) +} + const ( - keepZeros = true - delimiter = '.' - escapee = '\\' + urlEncodedContentType = "application/x-www-form-urlencoded" + jsonContentType = "application/json" + keepZeros = true + delimiter = '.' + escapee = '\\' ) func (c *Client) doWithErr(req *http.Request) (*http.Response, error) { @@ -117,7 +128,10 @@ func (c *Client) validateCredentials() error { // SendRequest verifies, constructs, and authorizes an HTTP request. func (c *Client) SendRequest(method string, rawURL string, data url.Values, - headers map[string]interface{}) (*http.Response, error) { + headers map[string]interface{}, body ...byte) (*http.Response, error) { + + contentType := extractContentTypeHeader(headers) + u, err := url.Parse(rawURL) if err != nil { return nil, err @@ -125,8 +139,13 @@ func (c *Client) SendRequest(method string, rawURL string, data url.Values, valueReader := &strings.Reader{} goVersion := runtime.Version() + var req *http.Request - if method == http.MethodGet { + //For HTTP GET Method there are no body parameters. All other parameters like query, path etc + // are added as information in the url itself. Also while Content-Type is json, we are sending + // json body. In that case, data variable conatins all other parameters than body, which is the + //same case as GET method. In that case as well all parameters will be added to url + if method == http.MethodGet || contentType == jsonContentType { if data != nil { v, _ := form.EncodeToStringWith(data, delimiter, escapee, keepZeros) s := delimitingRegex.ReplaceAllString(v, "") @@ -135,18 +154,32 @@ func (c *Client) SendRequest(method string, rawURL string, data url.Values, } } - if method == http.MethodPost { - valueReader = strings.NewReader(data.Encode()) - } + //data is already processed and information will be added to u(the url) in the + //previous step. Now body will solely contain json payload + if contentType == jsonContentType { + req, err = http.NewRequest(method, u.String(), bytes.NewBuffer(body)) + if err != nil { + return nil, err + } + } else { + //Here the HTTP POST methods which is not having json content type are processed + //All the values will be added in data and encoded (all body, query, path parameters) + if method == http.MethodPost { + valueReader = strings.NewReader(data.Encode()) + } + credErr := c.validateCredentials() + if credErr != nil { + return nil, credErr + } + req, err = http.NewRequest(method, u.String(), valueReader) + if err != nil { + return nil, err + } - credErr := c.validateCredentials() - if credErr != nil { - return nil, credErr } - req, err := http.NewRequest(method, u.String(), valueReader) - if err != nil { - return nil, err + if contentType == urlEncodedContentType { + req.Header.Add("Content-Type", urlEncodedContentType) } req.SetBasicAuth(c.basicAuth()) @@ -160,14 +193,9 @@ func (c *Client) SendRequest(method string, rawURL string, data url.Values, req.Header.Add("User-Agent", userAgent) - if method == http.MethodPost { - req.Header.Add("Content-Type", "application/x-www-form-urlencoded") - } - for k, v := range headers { req.Header.Add(k, fmt.Sprint(v)) } - return c.doWithErr(req) } diff --git a/client/client_test.go b/client/client_test.go index abf2999c2..e949d293f 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -294,7 +294,7 @@ func TestClient_SetAccountSid(t *testing.T) { func TestClient_DefaultUserAgentHeaders(t *testing.T) { headerServer := httptest.NewServer(http.HandlerFunc( func(writer http.ResponseWriter, request *http.Request) { - assert.Regexp(t, regexp.MustCompile(`^twilio-go/[0-9.]+\s\(\w+\s\w+\)\sgo/\S+$`), request.Header.Get("User-Agent")) + assert.Regexp(t, regexp.MustCompile(`^twilio-go/[0-9.]+(-rc.[0-9])*\s\(\w+\s\w+\)\sgo/\S+$`), request.Header.Get("User-Agent")) })) resp, _ := testClient.SendRequest("GET", headerServer.URL, nil, nil) diff --git a/client/request_handler.go b/client/request_handler.go index 89fe7883f..3b918e9ba 100644 --- a/client/request_handler.go +++ b/client/request_handler.go @@ -23,13 +23,12 @@ func NewRequestHandler(client BaseClient) *RequestHandler { } func (c *RequestHandler) sendRequest(method string, rawURL string, data url.Values, - headers map[string]interface{}) (*http.Response, error) { + headers map[string]interface{}, body ...byte) (*http.Response, error) { parsedURL, err := c.BuildUrl(rawURL) if err != nil { return nil, err } - - return c.Client.SendRequest(method, parsedURL, data, headers) + return c.Client.SendRequest(method, parsedURL, data, headers, body...) } // BuildUrl builds the target host string taking into account region and edge configurations. @@ -83,8 +82,8 @@ func (c *RequestHandler) BuildUrl(rawURL string) (string, error) { return u.String(), nil } -func (c *RequestHandler) Post(path string, bodyData url.Values, headers map[string]interface{}) (*http.Response, error) { - return c.sendRequest(http.MethodPost, path, bodyData, headers) +func (c *RequestHandler) Post(path string, bodyData url.Values, headers map[string]interface{}, body ...byte) (*http.Response, error) { + return c.sendRequest(http.MethodPost, path, bodyData, headers, body...) } func (c *RequestHandler) Get(path string, queryData url.Values, headers map[string]interface{}) (*http.Response, error) { diff --git a/client/request_handler_test.go b/client/request_handler_test.go index fbce01df7..1756ae521 100644 --- a/client/request_handler_test.go +++ b/client/request_handler_test.go @@ -2,6 +2,8 @@ package client_test import ( "errors" + "net/http" + "net/http/httptest" "net/url" "testing" @@ -65,3 +67,53 @@ func assertAndGetURL(t *testing.T, requestHandler *client.RequestHandler, rawURL assert.Nil(t, err) return parsedURL } + +func TestRequestHandler_SendGetRequest(t *testing.T) { + errorResponse := `{ + "status": 400, + "code":20001, + "message":"Bad request", + "more_info":"https://www.twilio.com/docs/errors/20001" +}` + errorServer := httptest.NewServer(http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write([]byte(errorResponse)) + })) + defer errorServer.Close() + + requestHandler := NewRequestHandler("user", "pass") + resp, err := requestHandler.Get(errorServer.URL, nil, nil) //nolint:bodyclose + twilioError := err.(*client.TwilioRestError) + assert.Nil(t, resp) + assert.Equal(t, 400, twilioError.Status) + assert.Equal(t, 20001, twilioError.Code) + assert.Equal(t, "https://www.twilio.com/docs/errors/20001", twilioError.MoreInfo) + assert.Equal(t, "Bad request", twilioError.Message) + assert.Nil(t, twilioError.Details) +} + +func TestRequestHandler_SendPostRequest(t *testing.T) { + errorResponse := `{ + "status": 400, + "code":20001, + "message":"Bad request", + "more_info":"https://www.twilio.com/docs/errors/20001" +}` + errorServer := httptest.NewServer(http.HandlerFunc( + func(resp http.ResponseWriter, req *http.Request) { + resp.WriteHeader(400) + _, _ = resp.Write([]byte(errorResponse)) + })) + defer errorServer.Close() + + requestHandler := NewRequestHandler("user", "pass") + resp, err := requestHandler.Post(errorServer.URL, nil, nil) //nolint:bodyclose + twilioError := err.(*client.TwilioRestError) + assert.Nil(t, resp) + assert.Equal(t, 400, twilioError.Status) + assert.Equal(t, 20001, twilioError.Code) + assert.Equal(t, "https://www.twilio.com/docs/errors/20001", twilioError.MoreInfo) + assert.Equal(t, "Bad request", twilioError.Message) + assert.Nil(t, twilioError.Details) +} From ed17b1172520c098f5b2c3c946974b9641852d26 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Mon, 11 Mar 2024 18:13:27 +0530 Subject: [PATCH 2/3] feat!: Rest api changes --- rest/accounts/v1/README.md | 2 +- .../v1/docs/ListCredentialAwsResponseMeta.md | 2 +- ...model_list_credential_aws_response_meta.go | 2 +- rest/api/v2010/README.md | 187 ++++++---- rest/api/v2010/accounts.go | 14 +- rest/api/v2010/accounts_addresses.go | 18 +- ...ounts_addresses_dependent_phone_numbers.go | 14 +- rest/api/v2010/accounts_applications.go | 14 +- .../v2010/accounts_authorized_connect_apps.go | 14 +- .../v2010/accounts_available_phone_numbers.go | 15 +- .../accounts_available_phone_numbers_local.go | 14 +- ...ilable_phone_numbers_machine_to_machine.go | 14 +- ...accounts_available_phone_numbers_mobile.go | 14 +- ...counts_available_phone_numbers_national.go | 14 +- ...nts_available_phone_numbers_shared_cost.go | 14 +- ...ounts_available_phone_numbers_toll_free.go | 14 +- .../accounts_available_phone_numbers_voip.go | 14 +- rest/api/v2010/accounts_calls.go | 50 +-- rest/api/v2010/accounts_calls_events.go | 14 +- .../api/v2010/accounts_calls_notifications.go | 15 +- rest/api/v2010/accounts_calls_recordings.go | 14 +- rest/api/v2010/accounts_conferences.go | 51 +-- .../accounts_conferences_participants.go | 15 +- .../v2010/accounts_conferences_recordings.go | 14 +- rest/api/v2010/accounts_connect_apps.go | 14 +- .../v2010/accounts_incoming_phone_numbers.go | 14 +- ...incoming_phone_numbers_assigned_add_ons.go | 14 +- ...one_numbers_assigned_add_ons_extensions.go | 14 +- .../accounts_incoming_phone_numbers_local.go | 15 +- .../accounts_incoming_phone_numbers_mobile.go | 15 +- ...counts_incoming_phone_numbers_toll_free.go | 15 +- rest/api/v2010/accounts_keys.go | 18 +- rest/api/v2010/accounts_messages.go | 36 +- rest/api/v2010/accounts_messages_media.go | 14 +- rest/api/v2010/accounts_notifications.go | 14 +- .../api/v2010/accounts_outgoing_caller_ids.go | 15 +- rest/api/v2010/accounts_queues.go | 14 +- rest/api/v2010/accounts_queues_members.go | 14 +- rest/api/v2010/accounts_recordings.go | 14 +- .../accounts_recordings_add_on_results.go | 14 +- ...unts_recordings_add_on_results_payloads.go | 14 +- .../accounts_recordings_transcriptions.go | 16 +- rest/api/v2010/accounts_signing_keys.go | 17 +- .../v2010/accounts_sip_credential_lists.go | 14 +- ...counts_sip_credential_lists_credentials.go | 14 +- rest/api/v2010/accounts_sip_domains.go | 14 +- ...ins_auth_calls_credential_list_mappings.go | 14 +- ...h_calls_ip_access_control_list_mappings.go | 14 +- ..._registrations_credential_list_mappings.go | 14 +- ...ts_sip_domains_credential_list_mappings.go | 14 +- ...domains_ip_access_control_list_mappings.go | 14 +- .../accounts_sipip_access_control_lists.go | 14 +- ...sipip_access_control_lists_ip_addresses.go | 14 +- rest/api/v2010/accounts_sms_short_codes.go | 14 +- rest/api/v2010/accounts_transcriptions.go | 14 +- rest/api/v2010/accounts_usage_records.go | 14 +- .../v2010/accounts_usage_records_all_time.go | 14 +- .../api/v2010/accounts_usage_records_daily.go | 14 +- .../accounts_usage_records_last_month.go | 14 +- .../v2010/accounts_usage_records_monthly.go | 14 +- .../accounts_usage_records_this_month.go | 14 +- .../api/v2010/accounts_usage_records_today.go | 14 +- .../v2010/accounts_usage_records_yearly.go | 14 +- .../v2010/accounts_usage_records_yesterday.go | 14 +- rest/api/v2010/accounts_usage_triggers.go | 15 +- rest/api/v2010/docs/AccountsCallsApi.md | 4 - rest/api/v2010/docs/AccountsConferencesApi.md | 4 - rest/api/v2010/docs/AccountsMessagesApi.md | 6 +- rest/api/v2010/docs/ListAccount200Response.md | 19 ++ .../v2010/docs/ListAccount200ResponseAllOf.md | 18 + rest/api/v2010/docs/ListAccountResponse.md | 8 - rest/api/v2010/docs/ListAddress200Response.md | 19 ++ rest/api/v2010/docs/ListAddressResponse.md | 8 - .../v2010/docs/ListApplication200Response.md | 19 ++ .../api/v2010/docs/ListApplicationResponse.md | 8 - .../ListAuthorizedConnectApp200Response.md | 19 ++ .../docs/ListAuthorizedConnectAppResponse.md | 8 - ...tAvailablePhoneNumberCountry200Response.md | 19 ++ ...ListAvailablePhoneNumberCountryResponse.md | 8 - ...istAvailablePhoneNumberLocal200Response.md | 19 ++ .../ListAvailablePhoneNumberLocalResponse.md | 8 - ...ePhoneNumberMachineToMachine200Response.md | 19 ++ ...ablePhoneNumberMachineToMachineResponse.md | 8 - ...stAvailablePhoneNumberMobile200Response.md | 19 ++ .../ListAvailablePhoneNumberMobileResponse.md | 8 - ...AvailablePhoneNumberNational200Response.md | 19 ++ ...istAvailablePhoneNumberNationalResponse.md | 8 - ...ailablePhoneNumberSharedCost200Response.md | 19 ++ ...tAvailablePhoneNumberSharedCostResponse.md | 8 - ...AvailablePhoneNumberTollFree200Response.md | 19 ++ ...istAvailablePhoneNumberTollFreeResponse.md | 8 - ...ListAvailablePhoneNumberVoip200Response.md | 19 ++ .../ListAvailablePhoneNumberVoipResponse.md | 8 - rest/api/v2010/docs/ListCall200Response.md | 19 ++ .../v2010/docs/ListCallEvent200Response.md | 19 ++ rest/api/v2010/docs/ListCallEventResponse.md | 8 - .../docs/ListCallNotification200Response.md | 19 ++ .../docs/ListCallNotificationResponse.md | 8 - .../docs/ListCallRecording200Response.md | 19 ++ .../v2010/docs/ListCallRecordingResponse.md | 8 - rest/api/v2010/docs/ListCallResponse.md | 8 - .../v2010/docs/ListConference200Response.md | 19 ++ .../ListConferenceRecording200Response.md | 19 ++ .../docs/ListConferenceRecordingResponse.md | 8 - rest/api/v2010/docs/ListConferenceResponse.md | 8 - .../v2010/docs/ListConnectApp200Response.md | 19 ++ rest/api/v2010/docs/ListConnectAppResponse.md | 8 - .../ListDependentPhoneNumber200Response.md | 19 ++ .../docs/ListDependentPhoneNumberResponse.md | 8 - .../ListIncomingPhoneNumber200Response.md | 19 ++ ...mingPhoneNumberAssignedAddOn200Response.md | 19 ++ ...NumberAssignedAddOnExtension200Response.md | 19 ++ ...oneNumberAssignedAddOnExtensionResponse.md | 8 - ...ncomingPhoneNumberAssignedAddOnResponse.md | 8 - ...ListIncomingPhoneNumberLocal200Response.md | 19 ++ .../ListIncomingPhoneNumberLocalResponse.md | 8 - ...istIncomingPhoneNumberMobile200Response.md | 19 ++ .../ListIncomingPhoneNumberMobileResponse.md | 8 - .../docs/ListIncomingPhoneNumberResponse.md | 8 - ...tIncomingPhoneNumberTollFree200Response.md | 19 ++ ...ListIncomingPhoneNumberTollFreeResponse.md | 8 - rest/api/v2010/docs/ListKey200Response.md | 19 ++ rest/api/v2010/docs/ListKeyResponse.md | 8 - rest/api/v2010/docs/ListMedia200Response.md | 19 ++ rest/api/v2010/docs/ListMediaResponse.md | 8 - rest/api/v2010/docs/ListMember200Response.md | 19 ++ rest/api/v2010/docs/ListMemberResponse.md | 8 - rest/api/v2010/docs/ListMessage200Response.md | 19 ++ rest/api/v2010/docs/ListMessageResponse.md | 8 - .../v2010/docs/ListNotification200Response.md | 19 ++ .../v2010/docs/ListNotificationResponse.md | 8 - .../docs/ListOutgoingCallerId200Response.md | 19 ++ .../docs/ListOutgoingCallerIdResponse.md | 8 - .../v2010/docs/ListParticipant200Response.md | 19 ++ .../api/v2010/docs/ListParticipantResponse.md | 8 - rest/api/v2010/docs/ListQueue200Response.md | 19 ++ rest/api/v2010/docs/ListQueueResponse.md | 8 - .../v2010/docs/ListRecording200Response.md | 19 ++ .../ListRecordingAddOnResult200Response.md | 19 ++ ...tRecordingAddOnResultPayload200Response.md | 19 ++ ...ListRecordingAddOnResultPayloadResponse.md | 8 - .../docs/ListRecordingAddOnResultResponse.md | 8 - rest/api/v2010/docs/ListRecordingResponse.md | 8 - .../ListRecordingTranscription200Response.md | 19 ++ .../ListRecordingTranscriptionResponse.md | 8 - .../v2010/docs/ListShortCode200Response.md | 19 ++ rest/api/v2010/docs/ListShortCodeResponse.md | 8 - .../v2010/docs/ListSigningKey200Response.md | 19 ++ rest/api/v2010/docs/ListSigningKeyResponse.md | 8 - ...thCallsCredentialListMapping200Response.md | 19 ++ ...pAuthCallsCredentialListMappingResponse.md | 8 - ...lsIpAccessControlListMapping200Response.md | 19 ++ ...CallsIpAccessControlListMappingResponse.md | 8 - ...rationsCredentialListMapping200Response.md | 19 ++ ...istrationsCredentialListMappingResponse.md | 8 - .../docs/ListSipCredential200Response.md | 19 ++ .../docs/ListSipCredentialList200Response.md | 19 ++ ...ListSipCredentialListMapping200Response.md | 19 ++ .../ListSipCredentialListMappingResponse.md | 8 - .../docs/ListSipCredentialListResponse.md | 8 - .../v2010/docs/ListSipCredentialResponse.md | 8 - .../v2010/docs/ListSipDomain200Response.md | 19 ++ rest/api/v2010/docs/ListSipDomainResponse.md | 8 - .../ListSipIpAccessControlList200Response.md | 19 ++ ...ipIpAccessControlListMapping200Response.md | 19 ++ ...stSipIpAccessControlListMappingResponse.md | 8 - .../ListSipIpAccessControlListResponse.md | 8 - .../v2010/docs/ListSipIpAddress200Response.md | 19 ++ .../v2010/docs/ListSipIpAddressResponse.md | 8 - .../docs/ListTranscription200Response.md | 19 ++ .../v2010/docs/ListTranscriptionResponse.md | 8 - .../v2010/docs/ListUsageRecord200Response.md | 19 ++ .../docs/ListUsageRecordAllTime200Response.md | 19 ++ .../docs/ListUsageRecordAllTimeResponse.md | 8 - .../docs/ListUsageRecordDaily200Response.md | 19 ++ .../docs/ListUsageRecordDailyResponse.md | 8 - .../ListUsageRecordLastMonth200Response.md | 19 ++ .../docs/ListUsageRecordLastMonthResponse.md | 8 - .../docs/ListUsageRecordMonthly200Response.md | 19 ++ .../docs/ListUsageRecordMonthlyResponse.md | 8 - .../api/v2010/docs/ListUsageRecordResponse.md | 8 - .../ListUsageRecordThisMonth200Response.md | 19 ++ .../docs/ListUsageRecordThisMonthResponse.md | 8 - .../docs/ListUsageRecordToday200Response.md | 19 ++ .../docs/ListUsageRecordTodayResponse.md | 8 - .../docs/ListUsageRecordYearly200Response.md | 19 ++ .../docs/ListUsageRecordYearlyResponse.md | 8 - .../ListUsageRecordYesterday200Response.md | 19 ++ .../docs/ListUsageRecordYesterdayResponse.md | 8 - .../v2010/docs/ListUsageTrigger200Response.md | 19 ++ .../v2010/docs/ListUsageTriggerResponse.md | 8 - .../v2010/model_list_account_200_response.go | 28 ++ .../model_list_account_200_response_all_of.go | 27 ++ rest/api/v2010/model_list_account_response.go | 10 +- .../v2010/model_list_address_200_response.go | 28 ++ rest/api/v2010/model_list_address_response.go | 10 +- .../model_list_application_200_response.go | 28 ++ .../v2010/model_list_application_response.go | 10 +- ...ist_authorized_connect_app_200_response.go | 28 ++ ...el_list_authorized_connect_app_response.go | 8 - ...lable_phone_number_country_200_response.go | 28 ++ ...available_phone_number_country_response.go | 10 +- ...ailable_phone_number_local_200_response.go | 28 ++ ...t_available_phone_number_local_response.go | 8 - ..._number_machine_to_machine_200_response.go | 28 ++ ...hone_number_machine_to_machine_response.go | 8 - ...ilable_phone_number_mobile_200_response.go | 28 ++ ..._available_phone_number_mobile_response.go | 8 - ...able_phone_number_national_200_response.go | 28 ++ ...vailable_phone_number_national_response.go | 8 - ...e_phone_number_shared_cost_200_response.go | 28 ++ ...lable_phone_number_shared_cost_response.go | 8 - ...ble_phone_number_toll_free_200_response.go | 28 ++ ...ailable_phone_number_toll_free_response.go | 8 - ...vailable_phone_number_voip_200_response.go | 28 ++ ...st_available_phone_number_voip_response.go | 8 - .../api/v2010/model_list_call_200_response.go | 28 ++ .../model_list_call_event_200_response.go | 28 ++ .../v2010/model_list_call_event_response.go | 10 +- ...del_list_call_notification_200_response.go | 28 ++ .../model_list_call_notification_response.go | 10 +- .../model_list_call_recording_200_response.go | 28 ++ .../model_list_call_recording_response.go | 10 +- rest/api/v2010/model_list_call_response.go | 10 +- .../model_list_conference_200_response.go | 28 ++ ..._list_conference_recording_200_response.go | 28 ++ ...odel_list_conference_recording_response.go | 10 +- .../v2010/model_list_conference_response.go | 10 +- .../model_list_connect_app_200_response.go | 28 ++ .../v2010/model_list_connect_app_response.go | 10 +- ...ist_dependent_phone_number_200_response.go | 28 ++ ...el_list_dependent_phone_number_response.go | 8 - ...list_incoming_phone_number_200_response.go | 28 ++ ...one_number_assigned_add_on_200_response.go | 28 ++ ..._assigned_add_on_extension_200_response.go | 28 ++ ...mber_assigned_add_on_extension_response.go | 10 +- ...g_phone_number_assigned_add_on_response.go | 10 +- ...ncoming_phone_number_local_200_response.go | 28 ++ ...st_incoming_phone_number_local_response.go | 8 - ...coming_phone_number_mobile_200_response.go | 28 ++ ...t_incoming_phone_number_mobile_response.go | 8 - ...del_list_incoming_phone_number_response.go | 8 - ...ing_phone_number_toll_free_200_response.go | 28 ++ ...ncoming_phone_number_toll_free_response.go | 8 - rest/api/v2010/model_list_key_200_response.go | 28 ++ rest/api/v2010/model_list_key_response.go | 10 +- .../v2010/model_list_media_200_response.go | 28 ++ rest/api/v2010/model_list_media_response.go | 10 +- .../v2010/model_list_member_200_response.go | 28 ++ rest/api/v2010/model_list_member_response.go | 10 +- .../v2010/model_list_message_200_response.go | 28 ++ rest/api/v2010/model_list_message_response.go | 10 +- .../model_list_notification_200_response.go | 28 ++ .../v2010/model_list_notification_response.go | 10 +- ...el_list_outgoing_caller_id_200_response.go | 28 ++ .../model_list_outgoing_caller_id_response.go | 8 - .../model_list_participant_200_response.go | 28 ++ .../v2010/model_list_participant_response.go | 10 +- .../v2010/model_list_queue_200_response.go | 28 ++ rest/api/v2010/model_list_queue_response.go | 10 +- .../model_list_recording_200_response.go | 28 ++ ...st_recording_add_on_result_200_response.go | 28 ++ ...ding_add_on_result_payload_200_response.go | 28 ++ ...ecording_add_on_result_payload_response.go | 10 +- ...l_list_recording_add_on_result_response.go | 10 +- .../v2010/model_list_recording_response.go | 10 +- ...st_recording_transcription_200_response.go | 28 ++ ...l_list_recording_transcription_response.go | 10 +- .../model_list_short_code_200_response.go | 28 ++ .../v2010/model_list_short_code_response.go | 10 +- .../model_list_signing_key_200_response.go | 28 ++ .../v2010/model_list_signing_key_response.go | 10 +- ...ls_credential_list_mapping_200_response.go | 28 ++ ..._calls_credential_list_mapping_response.go | 10 +- ...ccess_control_list_mapping_200_response.go | 28 ++ ...ip_access_control_list_mapping_response.go | 10 +- ...ns_credential_list_mapping_200_response.go | 28 ++ ...ations_credential_list_mapping_response.go | 10 +- .../model_list_sip_credential_200_response.go | 28 ++ ...l_list_sip_credential_list_200_response.go | 28 ++ ...ip_credential_list_mapping_200_response.go | 28 ++ ...st_sip_credential_list_mapping_response.go | 8 - ...model_list_sip_credential_list_response.go | 8 - .../model_list_sip_credential_response.go | 10 +- .../model_list_sip_domain_200_response.go | 28 ++ .../v2010/model_list_sip_domain_response.go | 10 +- ...sip_ip_access_control_list_200_response.go | 28 ++ ...ccess_control_list_mapping_200_response.go | 28 ++ ...ip_access_control_list_mapping_response.go | 8 - ...ist_sip_ip_access_control_list_response.go | 8 - .../model_list_sip_ip_address_200_response.go | 28 ++ .../model_list_sip_ip_address_response.go | 10 +- .../model_list_transcription_200_response.go | 28 ++ .../model_list_transcription_response.go | 10 +- .../model_list_usage_record_200_response.go | 28 ++ ...list_usage_record_all_time_200_response.go | 28 ++ ...del_list_usage_record_all_time_response.go | 10 +- ...el_list_usage_record_daily_200_response.go | 28 ++ .../model_list_usage_record_daily_response.go | 10 +- ...st_usage_record_last_month_200_response.go | 28 ++ ...l_list_usage_record_last_month_response.go | 10 +- ..._list_usage_record_monthly_200_response.go | 28 ++ ...odel_list_usage_record_monthly_response.go | 10 +- .../v2010/model_list_usage_record_response.go | 10 +- ...st_usage_record_this_month_200_response.go | 28 ++ ...l_list_usage_record_this_month_response.go | 10 +- ...el_list_usage_record_today_200_response.go | 28 ++ .../model_list_usage_record_today_response.go | 10 +- ...l_list_usage_record_yearly_200_response.go | 28 ++ ...model_list_usage_record_yearly_response.go | 10 +- ...ist_usage_record_yesterday_200_response.go | 28 ++ ...el_list_usage_record_yesterday_response.go | 10 +- .../model_list_usage_trigger_200_response.go | 28 ++ .../model_list_usage_trigger_response.go | 10 +- rest/bulkexports/v1/README.md | 2 +- .../v1/docs/ListDayResponseMeta.md | 2 +- rest/bulkexports/v1/exports_jobs.go | 3 - .../v1/model_list_day_response_meta.go | 2 +- rest/chat/v1/README.md | 2 +- rest/chat/v1/credentials.go | 4 - rest/chat/v1/docs/ListChannelResponseMeta.md | 2 +- .../v1/model_list_channel_response_meta.go | 2 +- rest/chat/v1/services.go | 4 - rest/chat/v1/services_channels.go | 4 - rest/chat/v1/services_channels_invites.go | 3 - rest/chat/v1/services_channels_members.go | 4 - rest/chat/v1/services_channels_messages.go | 4 - rest/chat/v1/services_roles.go | 4 - rest/chat/v1/services_users.go | 4 - rest/chat/v2/README.md | 2 +- rest/chat/v2/credentials.go | 4 - rest/chat/v2/docs/ListBindingResponseMeta.md | 2 +- .../v2/model_list_binding_response_meta.go | 2 +- rest/chat/v2/services.go | 4 - rest/chat/v2/services_bindings.go | 2 - rest/chat/v2/services_channels.go | 4 - rest/chat/v2/services_channels_invites.go | 3 - rest/chat/v2/services_channels_members.go | 4 - rest/chat/v2/services_channels_messages.go | 4 - rest/chat/v2/services_channels_webhooks.go | 4 - rest/chat/v2/services_roles.go | 4 - rest/chat/v2/services_users.go | 4 - rest/chat/v2/services_users_bindings.go | 2 - rest/chat/v2/services_users_channels.go | 2 - rest/chat/v3/README.md | 2 +- rest/content/v1/README.md | 34 +- rest/content/v1/content.go | 44 +++ rest/content/v1/content_approval_requests.go | 2 +- .../v1/content_approval_requests_whatsapp.go | 65 ++++ rest/content/v1/docs/AuthenticationAction.md | 12 + .../v1/docs/AuthenticationActionType.md | 12 + rest/content/v1/docs/CallToActionAction.md | 15 + .../content/v1/docs/CallToActionActionType.md | 13 + rest/content/v1/docs/CardAction.md | 15 + rest/content/v1/docs/CardActionType.md | 14 + rest/content/v1/docs/ContentApi.md | 40 +++ .../content/v1/docs/ContentApprovalRequest.md | 12 + .../v1/docs/ContentApprovalRequestsApi.md | 8 +- .../ContentApprovalRequestsWhatsappApi.md | 52 +++ rest/content/v1/docs/ContentCreateRequest.md | 14 + .../v1/docs/ContentV1ApprovalCreate.md | 16 + rest/content/v1/docs/ContentV1Content.md | 2 +- .../v1/docs/ContentV1ContentAndApprovals.md | 2 +- .../content/v1/docs/ContentV1LegacyContent.md | 2 +- .../v1/docs/ListContentResponseMeta.md | 2 +- rest/content/v1/docs/ListItem.md | 13 + rest/content/v1/docs/QuickReplyAction.md | 13 + rest/content/v1/docs/QuickReplyActionType.md | 12 + rest/content/v1/docs/TwilioCallToAction.md | 12 + rest/content/v1/docs/TwilioCard.md | 14 + rest/content/v1/docs/TwilioListPicker.md | 13 + rest/content/v1/docs/TwilioLocation.md | 13 + .../v1/docs/TwilioMedia.md} | 5 +- rest/content/v1/docs/TwilioQuickReply.md | 12 + rest/content/v1/docs/TwilioText.md | 11 + rest/content/v1/docs/Types.md | 19 ++ .../content/v1/docs/WhatsappAuthentication.md | 13 + rest/content/v1/docs/WhatsappCard.md | 15 + .../content/v1/model_authentication_action.go | 21 ++ .../v1/model_authentication_action_type.go | 23 ++ .../content/v1/model_call_to_action_action.go | 24 ++ .../v1/model_call_to_action_action_type.go | 24 ++ rest/content/v1/model_card_action.go | 24 ++ rest/content/v1/model_card_action_type.go | 25 ++ .../v1/model_content_approval_request.go | 23 ++ .../v1/model_content_create_request.go | 26 ++ .../v1/model_content_v1_approval_create.go | 25 ++ rest/content/v1/model_content_v1_content.go | 2 +- .../model_content_v1_content_and_approvals.go | 2 +- .../v1/model_content_v1_legacy_content.go | 2 +- .../v1/model_list_content_response_meta.go | 2 +- .../v1/model_list_item.go} | 11 +- rest/content/v1/model_quick_reply_action.go | 22 ++ .../v1/model_quick_reply_action_type.go | 23 ++ .../content/v1/model_twilio_call_to_action.go | 21 ++ rest/content/v1/model_twilio_card.go | 23 ++ rest/content/v1/model_twilio_list_picker.go | 22 ++ rest/content/v1/model_twilio_location.go | 58 ++++ rest/content/v1/model_twilio_media.go | 21 ++ rest/content/v1/model_twilio_quick_reply.go | 21 ++ rest/content/v1/model_twilio_text.go | 20 ++ rest/content/v1/model_types.go | 28 ++ .../v1/model_whatsapp_authentication.go | 53 +++ rest/content/v1/model_whatsapp_card.go | 24 ++ rest/conversations/v1/README.md | 2 +- .../v1/configuration_webhooks.go | 2 - .../ListConfigurationAddressResponseMeta.md | 2 +- ...ist_configuration_address_response_meta.go | 2 +- rest/events/v1/README.md | 2 +- .../v1/docs/ListEventTypeResponseMeta.md | 2 +- .../v1/model_list_event_type_response_meta.go | 2 +- rest/flex/v1/README.md | 34 +- rest/flex/v1/account_provision_status.go | 1 - rest/flex/v1/channels.go | 3 - rest/flex/v1/configuration.go | 44 ++- rest/flex/v1/docs/ConfigurationApi.md | 40 +++ rest/flex/v1/docs/FlexV1ConfiguredPlugin.md | 26 ++ rest/flex/v1/docs/FlexV1Plugin.md | 20 ++ rest/flex/v1/docs/FlexV1PluginArchive.md | 19 ++ .../flex/v1/docs/FlexV1PluginConfiguration.md | 18 + .../docs/FlexV1PluginConfigurationArchive.md | 17 + rest/flex/v1/docs/FlexV1PluginRelease.md | 15 + rest/flex/v1/docs/FlexV1PluginVersion.md | 20 ++ .../v1/docs/FlexV1PluginVersionArchive.md | 20 ++ rest/flex/v1/docs/ListChannelResponseMeta.md | 2 +- .../v1/docs/ListConfiguredPluginResponse.md | 12 + .../docs/ListPluginConfigurationResponse.md | 12 + .../flex/v1/docs/ListPluginReleaseResponse.md | 12 + rest/flex/v1/docs/ListPluginResponse.md | 12 + .../flex/v1/docs/ListPluginVersionResponse.md | 12 + .../v1/docs/PluginServiceConfigurationsApi.md | 137 ++++++++ .../PluginServiceConfigurationsArchiveApi.md | 52 +++ .../PluginServiceConfigurationsPluginsApi.md | 99 ++++++ rest/flex/v1/docs/PluginServicePluginsApi.md | 183 ++++++++++ .../v1/docs/PluginServicePluginsArchiveApi.md | 52 +++ .../docs/PluginServicePluginsVersionsApi.md | 147 ++++++++ .../PluginServicePluginsVersionsArchiveApi.md | 53 +++ rest/flex/v1/docs/PluginServiceReleasesApi.md | 135 ++++++++ rest/flex/v1/flex_flows.go | 4 - .../insights_quality_management_categories.go | 1 - .../insights_quality_management_questions.go | 1 - rest/flex/v1/interactions.go | 1 - .../v1/model_flex_v1_configured_plugin.go | 55 +++ rest/flex/v1/model_flex_v1_plugin.go | 42 +++ rest/flex/v1/model_flex_v1_plugin_archive.go | 41 +++ .../v1/model_flex_v1_plugin_configuration.go | 38 +++ ...el_flex_v1_plugin_configuration_archive.go | 37 ++ rest/flex/v1/model_flex_v1_plugin_release.go | 33 ++ rest/flex/v1/model_flex_v1_plugin_version.go | 43 +++ .../model_flex_v1_plugin_version_archive.go | 43 +++ .../v1/model_list_channel_response_meta.go | 2 +- .../model_list_configured_plugin_response.go | 21 ++ ...odel_list_plugin_configuration_response.go | 21 ++ .../v1/model_list_plugin_release_response.go | 21 ++ rest/flex/v1/model_list_plugin_response.go | 21 ++ .../v1/model_list_plugin_version_response.go | 21 ++ rest/flex/v1/plugin_service_configurations.go | 273 +++++++++++++++ .../plugin_service_configurations_archive.go | 57 ++++ .../plugin_service_configurations_plugins.go | 205 +++++++++++ rest/flex/v1/plugin_service_plugins.go | 320 ++++++++++++++++++ .../flex/v1/plugin_service_plugins_archive.go | 57 ++++ .../v1/plugin_service_plugins_versions.go | 278 +++++++++++++++ ...plugin_service_plugins_versions_archive.go | 58 ++++ rest/flex/v1/plugin_service_releases.go | 247 ++++++++++++++ rest/flex/v1/web_channels.go | 4 - rest/flex/v2/README.md | 2 +- rest/flex/v2/web_chats.go | 1 - rest/frontline/v1/README.md | 2 +- rest/insights/v1/README.md | 2 +- .../v1/docs/ListCallSummariesResponseMeta.md | 2 +- ...model_list_call_summaries_response_meta.go | 2 +- rest/insights/v1/voice.go | 1 - rest/intelligence/v2/README.md | 2 +- .../v2/docs/ListOperatorResultResponseMeta.md | 2 +- ...odel_list_operator_result_response_meta.go | 2 +- rest/ip_messaging/v1/README.md | 2 +- rest/ip_messaging/v1/credentials.go | 4 - .../v1/docs/ListChannelResponseMeta.md | 2 +- .../v1/model_list_channel_response_meta.go | 2 +- rest/ip_messaging/v1/services.go | 4 - rest/ip_messaging/v1/services_channels.go | 4 - .../v1/services_channels_invites.go | 3 - .../v1/services_channels_members.go | 4 - .../v1/services_channels_messages.go | 4 - rest/ip_messaging/v1/services_roles.go | 4 - rest/ip_messaging/v1/services_users.go | 4 - rest/ip_messaging/v2/README.md | 2 +- rest/ip_messaging/v2/credentials.go | 4 - .../v2/docs/ListBindingResponseMeta.md | 2 +- .../v2/model_list_binding_response_meta.go | 2 +- rest/ip_messaging/v2/services.go | 4 - rest/ip_messaging/v2/services_bindings.go | 2 - rest/ip_messaging/v2/services_channels.go | 4 - .../v2/services_channels_invites.go | 3 - .../v2/services_channels_members.go | 4 - .../v2/services_channels_messages.go | 4 - .../v2/services_channels_webhooks.go | 4 - rest/ip_messaging/v2/services_roles.go | 4 - rest/ip_messaging/v2/services_users.go | 4 - .../v2/services_users_bindings.go | 2 - .../v2/services_users_channels.go | 3 - rest/lookups/v1/README.md | 2 +- rest/lookups/v1/phone_numbers.go | 1 - rest/lookups/v2/README.md | 2 +- rest/lookups/v2/phone_numbers.go | 1 - rest/media/v1/README.md | 2 +- .../v1/docs/ListMediaProcessorResponseMeta.md | 2 +- rest/media/v1/media_processors.go | 1 - ...odel_list_media_processor_response_meta.go | 2 +- rest/media/v1/player_streamers.go | 1 - .../v1/player_streamers_playback_grant.go | 1 - rest/messaging/v1/README.md | 2 +- rest/messaging/v1/a2p_brand_registrations.go | 3 - .../v1/a2p_brand_registrations_sms_otp.go | 1 - .../v1/a2p_brand_registrations_vettings.go | 2 - .../v1/docs/ListAlphaSenderResponseMeta.md | 2 +- .../v1/docs/MessagingV1BrandRegistrations.md | 5 +- .../v1/link_shortening_domains_certificate.go | 3 - .../v1/link_shortening_domains_config.go | 2 - ...k_shortening_domains_messaging_services.go | 2 - ...rtening_messaging_service_domain_config.go | 1 - ...nk_shortening_messaging_services_domain.go | 1 - .../model_list_alpha_sender_response_meta.go | 2 +- .../model_messaging_v1_brand_registrations.go | 6 +- rest/messaging/v1/services.go | 4 - rest/messaging/v1/services_alpha_senders.go | 3 - rest/messaging/v1/services_channel_senders.go | 1 - .../messaging/v1/services_compliance_usa2p.go | 4 - .../v1/services_compliance_usa2p_usecases.go | 1 - rest/messaging/v1/services_phone_numbers.go | 3 - .../v1/services_preregistered_usa2p.go | 1 - rest/messaging/v1/services_short_codes.go | 3 - rest/messaging/v1/services_usecases.go | 1 - rest/messaging/v1/tollfree_verifications.go | 4 - rest/microvisor/v1/README.md | 2 +- .../v1/docs/ListAccountConfigResponseMeta.md | 2 +- ...model_list_account_config_response_meta.go | 2 +- rest/monitor/v1/README.md | 2 +- rest/monitor/v1/alerts.go | 1 - rest/monitor/v1/docs/ListAlertResponseMeta.md | 2 +- rest/monitor/v1/events.go | 1 - .../v1/model_list_alert_response_meta.go | 2 +- rest/notify/v1/README.md | 2 +- rest/notify/v1/credentials.go | 4 - .../notify/v1/docs/ListBindingResponseMeta.md | 2 +- .../v1/model_list_binding_response_meta.go | 2 +- rest/notify/v1/services.go | 4 - rest/notify/v1/services_bindings.go | 3 - rest/notify/v1/services_notifications.go | 1 - rest/numbers/v1/README.md | 5 +- .../v1/docs/HostedNumberEligibilityApi.md | 48 +++ .../v1/docs/HostedNumberEligibilityBulkApi.md | 40 +++ rest/numbers/v1/docs/PortingPortInApi.md | 40 +++ rest/numbers/v1/hosted_number_eligibility.go | 64 ++++ .../v1/hosted_number_eligibility_bulk.go | 44 +++ rest/numbers/v1/porting_port_in.go | 44 +++ rest/numbers/v2/README.md | 3 +- .../v2/docs/HostedNumberOrdersBulkApi.md | 40 +++ .../ListAuthorizationDocumentResponseMeta.md | 2 +- .../v2/docs/RegulatoryComplianceBundlesApi.md | 2 - rest/numbers/v2/hosted_number_orders_bulk.go | 44 +++ ...st_authorization_document_response_meta.go | 2 +- .../v2/regulatory_compliance_bundles.go | 18 - rest/preview_messaging/v1/README.md | 67 ++++ rest/preview_messaging/v1/api_service.go | 35 ++ rest/preview_messaging/v1/broadcasts.go | 56 +++ .../v1/docs/BroadcastsApi.md | 48 +++ .../v1/docs/CreateMessagesRequest.md | 27 ++ rest/preview_messaging/v1/docs/MessagesApi.md | 48 +++ .../v1/docs/MessagingV1Broadcast.md | 16 + .../MessagingV1BroadcastExecutionDetails.md | 13 + .../docs/MessagingV1CreateMessagesResult.md | 15 + .../v1/docs/MessagingV1Error.md | 14 + .../docs/MessagingV1FailedMessageReceipt.md | 13 + .../v1/docs/MessagingV1Message.md | 13 + .../v1/docs/MessagingV1MessageReceipt.md | 12 + rest/preview_messaging/v1/messages.go | 64 ++++ .../v1/model_create_messages_request.go | 111 ++++++ .../v1/model_messaging_v1_broadcast.go | 34 ++ ...essaging_v1_broadcast_execution_details.go | 25 ++ ...del_messaging_v1_create_messages_result.go | 27 ++ .../v1/model_messaging_v1_error.go | 27 ++ ...del_messaging_v1_failed_message_receipt.go | 25 ++ .../v1/model_messaging_v1_message.go | 25 ++ .../v1/model_messaging_v1_message_receipt.go | 23 ++ rest/pricing/v1/README.md | 2 +- .../docs/ListMessagingCountryResponseMeta.md | 2 +- rest/pricing/v1/messaging_countries.go | 1 - ...el_list_messaging_country_response_meta.go | 2 +- rest/pricing/v1/phone_numbers_countries.go | 1 - rest/pricing/v1/voice_countries.go | 1 - rest/pricing/v1/voice_numbers.go | 1 - rest/pricing/v2/README.md | 2 +- .../docs/ListTrunkingCountryResponseMeta.md | 2 +- ...del_list_trunking_country_response_meta.go | 2 +- rest/proxy/v1/README.md | 2 +- .../v1/docs/ListInteractionResponseMeta.md | 2 +- .../model_list_interaction_response_meta.go | 2 +- ...sions_participants_message_interactions.go | 1 - rest/routes/v2/README.md | 2 +- rest/routes/v2/sip_domains.go | 2 - rest/serverless/v1/README.md | 2 +- .../v1/docs/ListAssetResponseMeta.md | 2 +- .../v1/model_list_asset_response_meta.go | 2 +- rest/studio/v1/README.md | 2 +- .../v1/docs/ListEngagementResponseMeta.md | 2 +- .../v1/model_list_engagement_response_meta.go | 2 +- rest/studio/v2/README.md | 2 +- .../v2/docs/ListExecutionResponseMeta.md | 2 +- .../v2/model_list_execution_response_meta.go | 2 +- rest/supersim/v1/README.md | 2 +- .../v1/docs/ListBillingPeriodResponseMeta.md | 2 +- ...model_list_billing_period_response_meta.go | 2 +- rest/sync/v1/README.md | 2 +- rest/sync/v1/docs/ListDocumentResponseMeta.md | 2 +- .../v1/model_list_document_response_meta.go | 2 +- rest/sync/v1/services.go | 4 - rest/sync/v1/services_documents.go | 4 - rest/sync/v1/services_lists.go | 4 - rest/sync/v1/services_lists_items.go | 4 - rest/sync/v1/services_maps.go | 4 - rest/sync/v1/services_maps_items.go | 4 - rest/taskrouter/v1/README.md | 3 +- .../v1/docs/ListActivityResponseMeta.md | 2 +- ...rkspacesTaskQueuesRealTimeStatisticsApi.md | 44 +++ .../v1/model_list_activity_response_meta.go | 2 +- rest/taskrouter/v1/workspaces.go | 4 - rest/taskrouter/v1/workspaces_activities.go | 4 - .../v1/workspaces_cumulative_statistics.go | 1 - rest/taskrouter/v1/workspaces_events.go | 1 - .../v1/workspaces_real_time_statistics.go | 1 - rest/taskrouter/v1/workspaces_statistics.go | 1 - .../taskrouter/v1/workspaces_task_channels.go | 4 - rest/taskrouter/v1/workspaces_task_queues.go | 4 - ...paces_task_queues_cumulative_statistics.go | 1 - ...spaces_task_queues_real_time_statistics.go | 46 ++- .../v1/workspaces_task_queues_statistics.go | 1 - rest/taskrouter/v1/workspaces_tasks.go | 4 - .../v1/workspaces_tasks_reservations.go | 2 - rest/taskrouter/v1/workspaces_workers.go | 4 - .../v1/workspaces_workers_channels.go | 2 - ...orkspaces_workers_cumulative_statistics.go | 1 - ...workspaces_workers_real_time_statistics.go | 1 - .../v1/workspaces_workers_reservations.go | 2 - .../v1/workspaces_workers_statistics.go | 2 - rest/taskrouter/v1/workspaces_workflows.go | 4 - ...kspaces_workflows_cumulative_statistics.go | 1 - ...rkspaces_workflows_real_time_statistics.go | 1 - .../v1/workspaces_workflows_statistics.go | 1 - rest/trunking/v1/README.md | 2 +- .../v1/docs/ListCredentialListResponseMeta.md | 2 +- ...odel_list_credential_list_response_meta.go | 2 +- rest/trunking/v1/trunks.go | 4 - rest/trunking/v1/trunks_credential_lists.go | 3 - .../v1/trunks_ip_access_control_lists.go | 1 - rest/trunking/v1/trunks_origination_urls.go | 4 - rest/trunking/v1/trunks_phone_numbers.go | 3 - rest/trunking/v1/trunks_recording.go | 2 - rest/trusthub/v1/README.md | 2 +- ...ion_regulatory_compliance_gb_initialize.go | 18 + ...tionRegulatoryComplianceGBInitializeApi.md | 2 + .../docs/ListCustomerProfileResponseMeta.md | 2 +- ...del_list_customer_profile_response_meta.go | 2 +- rest/verify/v2/README.md | 2 +- rest/verify/v2/docs/ListBucketResponseMeta.md | 2 +- .../v2/model_list_bucket_response_meta.go | 2 +- rest/verify/v2/services_webhooks.go | 1 - rest/video/v1/README.md | 2 +- rest/video/v1/composition_hooks.go | 2 - rest/video/v1/composition_settings_default.go | 2 - rest/video/v1/compositions.go | 1 - .../v1/docs/ListCompositionResponseMeta.md | 2 +- .../model_list_composition_response_meta.go | 2 +- rest/video/v1/recording_settings_default.go | 2 - rest/video/v1/rooms.go | 3 - rest/video/v1/rooms_participants.go | 2 - rest/video/v1/rooms_participants_anonymize.go | 1 - rest/video/v1/rooms_recordings.go | 2 - rest/voice/v1/README.md | 2 +- rest/voice/v1/byoc_trunks.go | 4 - rest/voice/v1/connection_policies.go | 4 - rest/voice/v1/connection_policies_targets.go | 4 - .../v1/docs/ListByocTrunkResponseMeta.md | 2 +- rest/voice/v1/ip_records.go | 4 - .../v1/model_list_byoc_trunk_response_meta.go | 2 +- rest/voice/v1/source_ip_mappings.go | 4 - rest/wireless/v1/README.md | 2 +- .../ListAccountUsageRecordResponseMeta.md | 2 +- ...list_account_usage_record_response_meta.go | 2 +- rest/wireless/v1/rate_plans.go | 4 - 690 files changed, 9042 insertions(+), 2150 deletions(-) create mode 100644 rest/api/v2010/docs/ListAccount200Response.md create mode 100644 rest/api/v2010/docs/ListAccount200ResponseAllOf.md create mode 100644 rest/api/v2010/docs/ListAddress200Response.md create mode 100644 rest/api/v2010/docs/ListApplication200Response.md create mode 100644 rest/api/v2010/docs/ListAuthorizedConnectApp200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberCountry200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberLocal200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachine200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberMobile200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberNational200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberSharedCost200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberTollFree200Response.md create mode 100644 rest/api/v2010/docs/ListAvailablePhoneNumberVoip200Response.md create mode 100644 rest/api/v2010/docs/ListCall200Response.md create mode 100644 rest/api/v2010/docs/ListCallEvent200Response.md create mode 100644 rest/api/v2010/docs/ListCallNotification200Response.md create mode 100644 rest/api/v2010/docs/ListCallRecording200Response.md create mode 100644 rest/api/v2010/docs/ListConference200Response.md create mode 100644 rest/api/v2010/docs/ListConferenceRecording200Response.md create mode 100644 rest/api/v2010/docs/ListConnectApp200Response.md create mode 100644 rest/api/v2010/docs/ListDependentPhoneNumber200Response.md create mode 100644 rest/api/v2010/docs/ListIncomingPhoneNumber200Response.md create mode 100644 rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOn200Response.md create mode 100644 rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtension200Response.md create mode 100644 rest/api/v2010/docs/ListIncomingPhoneNumberLocal200Response.md create mode 100644 rest/api/v2010/docs/ListIncomingPhoneNumberMobile200Response.md create mode 100644 rest/api/v2010/docs/ListIncomingPhoneNumberTollFree200Response.md create mode 100644 rest/api/v2010/docs/ListKey200Response.md create mode 100644 rest/api/v2010/docs/ListMedia200Response.md create mode 100644 rest/api/v2010/docs/ListMember200Response.md create mode 100644 rest/api/v2010/docs/ListMessage200Response.md create mode 100644 rest/api/v2010/docs/ListNotification200Response.md create mode 100644 rest/api/v2010/docs/ListOutgoingCallerId200Response.md create mode 100644 rest/api/v2010/docs/ListParticipant200Response.md create mode 100644 rest/api/v2010/docs/ListQueue200Response.md create mode 100644 rest/api/v2010/docs/ListRecording200Response.md create mode 100644 rest/api/v2010/docs/ListRecordingAddOnResult200Response.md create mode 100644 rest/api/v2010/docs/ListRecordingAddOnResultPayload200Response.md create mode 100644 rest/api/v2010/docs/ListRecordingTranscription200Response.md create mode 100644 rest/api/v2010/docs/ListShortCode200Response.md create mode 100644 rest/api/v2010/docs/ListSigningKey200Response.md create mode 100644 rest/api/v2010/docs/ListSipAuthCallsCredentialListMapping200Response.md create mode 100644 rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMapping200Response.md create mode 100644 rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMapping200Response.md create mode 100644 rest/api/v2010/docs/ListSipCredential200Response.md create mode 100644 rest/api/v2010/docs/ListSipCredentialList200Response.md create mode 100644 rest/api/v2010/docs/ListSipCredentialListMapping200Response.md create mode 100644 rest/api/v2010/docs/ListSipDomain200Response.md create mode 100644 rest/api/v2010/docs/ListSipIpAccessControlList200Response.md create mode 100644 rest/api/v2010/docs/ListSipIpAccessControlListMapping200Response.md create mode 100644 rest/api/v2010/docs/ListSipIpAddress200Response.md create mode 100644 rest/api/v2010/docs/ListTranscription200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecord200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordAllTime200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordDaily200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordLastMonth200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordMonthly200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordThisMonth200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordToday200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordYearly200Response.md create mode 100644 rest/api/v2010/docs/ListUsageRecordYesterday200Response.md create mode 100644 rest/api/v2010/docs/ListUsageTrigger200Response.md create mode 100644 rest/api/v2010/model_list_account_200_response.go create mode 100644 rest/api/v2010/model_list_account_200_response_all_of.go create mode 100644 rest/api/v2010/model_list_address_200_response.go create mode 100644 rest/api/v2010/model_list_application_200_response.go create mode 100644 rest/api/v2010/model_list_authorized_connect_app_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_country_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_local_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_machine_to_machine_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_mobile_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_national_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_shared_cost_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_toll_free_200_response.go create mode 100644 rest/api/v2010/model_list_available_phone_number_voip_200_response.go create mode 100644 rest/api/v2010/model_list_call_200_response.go create mode 100644 rest/api/v2010/model_list_call_event_200_response.go create mode 100644 rest/api/v2010/model_list_call_notification_200_response.go create mode 100644 rest/api/v2010/model_list_call_recording_200_response.go create mode 100644 rest/api/v2010/model_list_conference_200_response.go create mode 100644 rest/api/v2010/model_list_conference_recording_200_response.go create mode 100644 rest/api/v2010/model_list_connect_app_200_response.go create mode 100644 rest/api/v2010/model_list_dependent_phone_number_200_response.go create mode 100644 rest/api/v2010/model_list_incoming_phone_number_200_response.go create mode 100644 rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_200_response.go create mode 100644 rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_200_response.go create mode 100644 rest/api/v2010/model_list_incoming_phone_number_local_200_response.go create mode 100644 rest/api/v2010/model_list_incoming_phone_number_mobile_200_response.go create mode 100644 rest/api/v2010/model_list_incoming_phone_number_toll_free_200_response.go create mode 100644 rest/api/v2010/model_list_key_200_response.go create mode 100644 rest/api/v2010/model_list_media_200_response.go create mode 100644 rest/api/v2010/model_list_member_200_response.go create mode 100644 rest/api/v2010/model_list_message_200_response.go create mode 100644 rest/api/v2010/model_list_notification_200_response.go create mode 100644 rest/api/v2010/model_list_outgoing_caller_id_200_response.go create mode 100644 rest/api/v2010/model_list_participant_200_response.go create mode 100644 rest/api/v2010/model_list_queue_200_response.go create mode 100644 rest/api/v2010/model_list_recording_200_response.go create mode 100644 rest/api/v2010/model_list_recording_add_on_result_200_response.go create mode 100644 rest/api/v2010/model_list_recording_add_on_result_payload_200_response.go create mode 100644 rest/api/v2010/model_list_recording_transcription_200_response.go create mode 100644 rest/api/v2010/model_list_short_code_200_response.go create mode 100644 rest/api/v2010/model_list_signing_key_200_response.go create mode 100644 rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_200_response.go create mode 100644 rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_200_response.go create mode 100644 rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_200_response.go create mode 100644 rest/api/v2010/model_list_sip_credential_200_response.go create mode 100644 rest/api/v2010/model_list_sip_credential_list_200_response.go create mode 100644 rest/api/v2010/model_list_sip_credential_list_mapping_200_response.go create mode 100644 rest/api/v2010/model_list_sip_domain_200_response.go create mode 100644 rest/api/v2010/model_list_sip_ip_access_control_list_200_response.go create mode 100644 rest/api/v2010/model_list_sip_ip_access_control_list_mapping_200_response.go create mode 100644 rest/api/v2010/model_list_sip_ip_address_200_response.go create mode 100644 rest/api/v2010/model_list_transcription_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_all_time_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_daily_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_last_month_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_monthly_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_this_month_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_today_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_yearly_200_response.go create mode 100644 rest/api/v2010/model_list_usage_record_yesterday_200_response.go create mode 100644 rest/api/v2010/model_list_usage_trigger_200_response.go create mode 100644 rest/content/v1/content_approval_requests_whatsapp.go create mode 100644 rest/content/v1/docs/AuthenticationAction.md create mode 100644 rest/content/v1/docs/AuthenticationActionType.md create mode 100644 rest/content/v1/docs/CallToActionAction.md create mode 100644 rest/content/v1/docs/CallToActionActionType.md create mode 100644 rest/content/v1/docs/CardAction.md create mode 100644 rest/content/v1/docs/CardActionType.md create mode 100644 rest/content/v1/docs/ContentApprovalRequest.md create mode 100644 rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md create mode 100644 rest/content/v1/docs/ContentCreateRequest.md create mode 100644 rest/content/v1/docs/ContentV1ApprovalCreate.md create mode 100644 rest/content/v1/docs/ListItem.md create mode 100644 rest/content/v1/docs/QuickReplyAction.md create mode 100644 rest/content/v1/docs/QuickReplyActionType.md create mode 100644 rest/content/v1/docs/TwilioCallToAction.md create mode 100644 rest/content/v1/docs/TwilioCard.md create mode 100644 rest/content/v1/docs/TwilioListPicker.md create mode 100644 rest/content/v1/docs/TwilioLocation.md rename rest/{api/v2010/docs/FetchHealthCheck200Response.md => content/v1/docs/TwilioMedia.md} (75%) create mode 100644 rest/content/v1/docs/TwilioQuickReply.md create mode 100644 rest/content/v1/docs/TwilioText.md create mode 100644 rest/content/v1/docs/Types.md create mode 100644 rest/content/v1/docs/WhatsappAuthentication.md create mode 100644 rest/content/v1/docs/WhatsappCard.md create mode 100644 rest/content/v1/model_authentication_action.go create mode 100644 rest/content/v1/model_authentication_action_type.go create mode 100644 rest/content/v1/model_call_to_action_action.go create mode 100644 rest/content/v1/model_call_to_action_action_type.go create mode 100644 rest/content/v1/model_card_action.go create mode 100644 rest/content/v1/model_card_action_type.go create mode 100644 rest/content/v1/model_content_approval_request.go create mode 100644 rest/content/v1/model_content_create_request.go create mode 100644 rest/content/v1/model_content_v1_approval_create.go rename rest/{api/v2010/model_fetch_health_check_200_response.go => content/v1/model_list_item.go} (72%) create mode 100644 rest/content/v1/model_quick_reply_action.go create mode 100644 rest/content/v1/model_quick_reply_action_type.go create mode 100644 rest/content/v1/model_twilio_call_to_action.go create mode 100644 rest/content/v1/model_twilio_card.go create mode 100644 rest/content/v1/model_twilio_list_picker.go create mode 100644 rest/content/v1/model_twilio_location.go create mode 100644 rest/content/v1/model_twilio_media.go create mode 100644 rest/content/v1/model_twilio_quick_reply.go create mode 100644 rest/content/v1/model_twilio_text.go create mode 100644 rest/content/v1/model_types.go create mode 100644 rest/content/v1/model_whatsapp_authentication.go create mode 100644 rest/content/v1/model_whatsapp_card.go create mode 100644 rest/flex/v1/docs/FlexV1ConfiguredPlugin.md create mode 100644 rest/flex/v1/docs/FlexV1Plugin.md create mode 100644 rest/flex/v1/docs/FlexV1PluginArchive.md create mode 100644 rest/flex/v1/docs/FlexV1PluginConfiguration.md create mode 100644 rest/flex/v1/docs/FlexV1PluginConfigurationArchive.md create mode 100644 rest/flex/v1/docs/FlexV1PluginRelease.md create mode 100644 rest/flex/v1/docs/FlexV1PluginVersion.md create mode 100644 rest/flex/v1/docs/FlexV1PluginVersionArchive.md create mode 100644 rest/flex/v1/docs/ListConfiguredPluginResponse.md create mode 100644 rest/flex/v1/docs/ListPluginConfigurationResponse.md create mode 100644 rest/flex/v1/docs/ListPluginReleaseResponse.md create mode 100644 rest/flex/v1/docs/ListPluginResponse.md create mode 100644 rest/flex/v1/docs/ListPluginVersionResponse.md create mode 100644 rest/flex/v1/docs/PluginServiceConfigurationsApi.md create mode 100644 rest/flex/v1/docs/PluginServiceConfigurationsArchiveApi.md create mode 100644 rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md create mode 100644 rest/flex/v1/docs/PluginServicePluginsApi.md create mode 100644 rest/flex/v1/docs/PluginServicePluginsArchiveApi.md create mode 100644 rest/flex/v1/docs/PluginServicePluginsVersionsApi.md create mode 100644 rest/flex/v1/docs/PluginServicePluginsVersionsArchiveApi.md create mode 100644 rest/flex/v1/docs/PluginServiceReleasesApi.md create mode 100644 rest/flex/v1/model_flex_v1_configured_plugin.go create mode 100644 rest/flex/v1/model_flex_v1_plugin.go create mode 100644 rest/flex/v1/model_flex_v1_plugin_archive.go create mode 100644 rest/flex/v1/model_flex_v1_plugin_configuration.go create mode 100644 rest/flex/v1/model_flex_v1_plugin_configuration_archive.go create mode 100644 rest/flex/v1/model_flex_v1_plugin_release.go create mode 100644 rest/flex/v1/model_flex_v1_plugin_version.go create mode 100644 rest/flex/v1/model_flex_v1_plugin_version_archive.go create mode 100644 rest/flex/v1/model_list_configured_plugin_response.go create mode 100644 rest/flex/v1/model_list_plugin_configuration_response.go create mode 100644 rest/flex/v1/model_list_plugin_release_response.go create mode 100644 rest/flex/v1/model_list_plugin_response.go create mode 100644 rest/flex/v1/model_list_plugin_version_response.go create mode 100644 rest/flex/v1/plugin_service_configurations.go create mode 100644 rest/flex/v1/plugin_service_configurations_archive.go create mode 100644 rest/flex/v1/plugin_service_configurations_plugins.go create mode 100644 rest/flex/v1/plugin_service_plugins.go create mode 100644 rest/flex/v1/plugin_service_plugins_archive.go create mode 100644 rest/flex/v1/plugin_service_plugins_versions.go create mode 100644 rest/flex/v1/plugin_service_plugins_versions_archive.go create mode 100644 rest/flex/v1/plugin_service_releases.go create mode 100644 rest/numbers/v1/docs/HostedNumberEligibilityApi.md create mode 100644 rest/numbers/v1/hosted_number_eligibility.go create mode 100644 rest/preview_messaging/v1/README.md create mode 100644 rest/preview_messaging/v1/api_service.go create mode 100644 rest/preview_messaging/v1/broadcasts.go create mode 100644 rest/preview_messaging/v1/docs/BroadcastsApi.md create mode 100644 rest/preview_messaging/v1/docs/CreateMessagesRequest.md create mode 100644 rest/preview_messaging/v1/docs/MessagesApi.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1Broadcast.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1BroadcastExecutionDetails.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1CreateMessagesResult.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1Error.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1FailedMessageReceipt.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1Message.md create mode 100644 rest/preview_messaging/v1/docs/MessagingV1MessageReceipt.md create mode 100644 rest/preview_messaging/v1/messages.go create mode 100644 rest/preview_messaging/v1/model_create_messages_request.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_broadcast.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_broadcast_execution_details.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_create_messages_result.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_error.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_failed_message_receipt.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_message.go create mode 100644 rest/preview_messaging/v1/model_messaging_v1_message_receipt.go diff --git a/rest/accounts/v1/README.md b/rest/accounts/v1/README.md index 669a3da29..a8a9cf30f 100644 --- a/rest/accounts/v1/README.md +++ b/rest/accounts/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md b/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md index 83b55f0c5..a0725e089 100644 --- a/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md +++ b/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/accounts/v1/model_list_credential_aws_response_meta.go b/rest/accounts/v1/model_list_credential_aws_response_meta.go index 89b23913b..a3bebd817 100644 --- a/rest/accounts/v1/model_list_credential_aws_response_meta.go +++ b/rest/accounts/v1/model_list_credential_aws_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCredentialAwsResponseMeta struct for ListCredentialAwsResponseMeta type ListCredentialAwsResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index 36d49e34a..fb567e650 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) @@ -229,127 +229,97 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [ListQueueResponse](docs/ListQueueResponse.md) - - [ApiV2010AccountIncomingPhoneNumberCapabilities](docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md) + - [ListAvailablePhoneNumberCountry200Response](docs/ListAvailablePhoneNumberCountry200Response.md) - [ApiV2010UsageRecordAllTime](docs/ApiV2010UsageRecordAllTime.md) - - [ApiV2010CallRecording](docs/ApiV2010CallRecording.md) + - [ListAvailablePhoneNumberVoip200Response](docs/ListAvailablePhoneNumberVoip200Response.md) - [ListConferenceRecordingResponse](docs/ListConferenceRecordingResponse.md) - - [ApiV2010AvailablePhoneNumberSharedCost](docs/ApiV2010AvailablePhoneNumberSharedCost.md) - [ListApplicationResponse](docs/ListApplicationResponse.md) + - [ListUsageRecordDaily200Response](docs/ListUsageRecordDaily200Response.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) - - [ApiV2010Transcription](docs/ApiV2010Transcription.md) - - [ApiV2010OutgoingCallerId](docs/ApiV2010OutgoingCallerId.md) - - [ListParticipantResponse](docs/ListParticipantResponse.md) + - [ListSipDomain200Response](docs/ListSipDomain200Response.md) + - [ListSipAuthCallsIpAccessControlListMapping200Response](docs/ListSipAuthCallsIpAccessControlListMapping200Response.md) - [ListRecordingAddOnResultPayloadResponse](docs/ListRecordingAddOnResultPayloadResponse.md) - - [ApiV2010Siprec](docs/ApiV2010Siprec.md) - [ListConnectAppResponse](docs/ListConnectAppResponse.md) - - [ListUsageRecordYearlyResponse](docs/ListUsageRecordYearlyResponse.md) - - [ListUsageRecordThisMonthResponse](docs/ListUsageRecordThisMonthResponse.md) - [ApiV2010UsageRecordMonthly](docs/ApiV2010UsageRecordMonthly.md) - - [ApiV2010Conference](docs/ApiV2010Conference.md) - - [ListAvailablePhoneNumberMobileResponse](docs/ListAvailablePhoneNumberMobileResponse.md) - - [ListAvailablePhoneNumberTollFreeResponse](docs/ListAvailablePhoneNumberTollFreeResponse.md) - - [ListSipCredentialListMappingResponse](docs/ListSipCredentialListMappingResponse.md) + - [ListAccount200Response](docs/ListAccount200Response.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) - - [ApiV2010Queue](docs/ApiV2010Queue.md) + - [ListUsageTrigger200Response](docs/ListUsageTrigger200Response.md) - [ApiV2010Token](docs/ApiV2010Token.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) - - [ApiV2010AccountTokenIceServers](docs/ApiV2010AccountTokenIceServers.md) - [ApiV2010AvailablePhoneNumberCountry](docs/ApiV2010AvailablePhoneNumberCountry.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) - - [ListOutgoingCallerIdResponse](docs/ListOutgoingCallerIdResponse.md) - - [ListSipIpAccessControlListResponse](docs/ListSipIpAccessControlListResponse.md) - - [ListAccountResponse](docs/ListAccountResponse.md) - - [ListIncomingPhoneNumberResponse](docs/ListIncomingPhoneNumberResponse.md) + - [ListUsageRecordThisMonth200Response](docs/ListUsageRecordThisMonth200Response.md) - [ListUsageRecordTodayResponse](docs/ListUsageRecordTodayResponse.md) + - [ListUsageRecordYesterday200Response](docs/ListUsageRecordYesterday200Response.md) - [ApiV2010Key](docs/ApiV2010Key.md) - - [ApiV2010CallNotification](docs/ApiV2010CallNotification.md) - [ListAvailablePhoneNumberMachineToMachineResponse](docs/ListAvailablePhoneNumberMachineToMachineResponse.md) - - [ApiV2010IncomingPhoneNumberLocal](docs/ApiV2010IncomingPhoneNumberLocal.md) + - [ListIncomingPhoneNumber200Response](docs/ListIncomingPhoneNumber200Response.md) + - [ListUsageRecordYearly200Response](docs/ListUsageRecordYearly200Response.md) - [ApiV2010Media](docs/ApiV2010Media.md) - [ApiV2010UsageRecordYearly](docs/ApiV2010UsageRecordYearly.md) - - [ApiV2010SipIpAccessControlListMapping](docs/ApiV2010SipIpAccessControlListMapping.md) + - [ListAuthorizedConnectApp200Response](docs/ListAuthorizedConnectApp200Response.md) - [ListKeyResponse](docs/ListKeyResponse.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) - - [ListIncomingPhoneNumberTollFreeResponse](docs/ListIncomingPhoneNumberTollFreeResponse.md) - [ListSipAuthCallsCredentialListMappingResponse](docs/ListSipAuthCallsCredentialListMappingResponse.md) - - [ApiV2010Payments](docs/ApiV2010Payments.md) + - [ListSipAuthCallsCredentialListMapping200Response](docs/ListSipAuthCallsCredentialListMapping200Response.md) + - [ListIncomingPhoneNumberMobile200Response](docs/ListIncomingPhoneNumberMobile200Response.md) - [ApiV2010Account](docs/ApiV2010Account.md) - - [ListSipIpAccessControlListMappingResponse](docs/ListSipIpAccessControlListMappingResponse.md) - - [ApiV2010Participant](docs/ApiV2010Participant.md) + - [ListUsageRecordMonthly200Response](docs/ListUsageRecordMonthly200Response.md) - [ApiV2010CallEvent](docs/ApiV2010CallEvent.md) - - [ApiV2010SipAuthCallsCredentialListMapping](docs/ApiV2010SipAuthCallsCredentialListMapping.md) - - [ListSipIpAddressResponse](docs/ListSipIpAddressResponse.md) + - [ListSipCredentialList200Response](docs/ListSipCredentialList200Response.md) - [ApiV2010NewKey](docs/ApiV2010NewKey.md) - [ApiV2010UserDefinedMessageSubscription](docs/ApiV2010UserDefinedMessageSubscription.md) - [ApiV2010NewSigningKey](docs/ApiV2010NewSigningKey.md) - - [ListAvailablePhoneNumberLocalResponse](docs/ListAvailablePhoneNumberLocalResponse.md) - - [ListUsageRecordYesterdayResponse](docs/ListUsageRecordYesterdayResponse.md) + - [ListSipIpAccessControlListMapping200Response](docs/ListSipIpAccessControlListMapping200Response.md) + - [ListShortCode200Response](docs/ListShortCode200Response.md) - [ListConferenceResponse](docs/ListConferenceResponse.md) - [ApiV2010AvailablePhoneNumberLocal](docs/ApiV2010AvailablePhoneNumberLocal.md) - - [ApiV2010SipCredentialList](docs/ApiV2010SipCredentialList.md) - - [ApiV2010Message](docs/ApiV2010Message.md) + - [ListTranscription200Response](docs/ListTranscription200Response.md) - [ListRecordingResponse](docs/ListRecordingResponse.md) - - [ApiV2010UsageRecordLastMonth](docs/ApiV2010UsageRecordLastMonth.md) - [ListUsageTriggerResponse](docs/ListUsageTriggerResponse.md) - [ApiV2010RecordingAddOnResult](docs/ApiV2010RecordingAddOnResult.md) - - [ListAvailablePhoneNumberCountryResponse](docs/ListAvailablePhoneNumberCountryResponse.md) - - [ListCallRecordingResponse](docs/ListCallRecordingResponse.md) - [ListSipCredentialListResponse](docs/ListSipCredentialListResponse.md) - [ListIncomingPhoneNumberMobileResponse](docs/ListIncomingPhoneNumberMobileResponse.md) - [ApiV2010AvailablePhoneNumberMobile](docs/ApiV2010AvailablePhoneNumberMobile.md) - - [ApiV2010SipCredentialListMapping](docs/ApiV2010SipCredentialListMapping.md) - [ApiV2010Stream](docs/ApiV2010Stream.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) - - [ListAuthorizedConnectAppResponse](docs/ListAuthorizedConnectAppResponse.md) + - [ListUsageRecordToday200Response](docs/ListUsageRecordToday200Response.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) @@ -357,17 +327,108 @@ Class | Method | HTTP request | Description - [ListNotificationResponse](docs/ListNotificationResponse.md) - [ListMediaResponse](docs/ListMediaResponse.md) - [ListUsageRecordResponse](docs/ListUsageRecordResponse.md) - - [ApiV2010IncomingPhoneNumberAssignedAddOnExtension](docs/ApiV2010IncomingPhoneNumberAssignedAddOnExtension.md) - - [ListRecordingAddOnResultResponse](docs/ListRecordingAddOnResultResponse.md) + - [ListMember200Response](docs/ListMember200Response.md) - [ListIncomingPhoneNumberAssignedAddOnExtensionResponse](docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) - [ListSipAuthCallsIpAccessControlListMappingResponse](docs/ListSipAuthCallsIpAccessControlListMappingResponse.md) - - [FetchHealthCheck200Response](docs/FetchHealthCheck200Response.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) - [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 9d72732d9..6e5b6c076 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) (*ListAccountResponse, error) { +func (c *ApiService) PageAccount(params *ListAccountParams, pageToken, pageNumber string) (*ListAccount200Response, 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 := &ListAccountResponse{} + ps := &ListAccount200Response{} 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 *ListAccountResponse, params *ListAccountParams, recordChannel chan ApiV2010Account, errorChannel chan error) { +func (c *ApiService) streamAccount(response *ListAccount200Response, params *ListAccountParams, recordChannel chan ApiV2010Account, errorChannel chan error) { curRecord := 1 for response != nil { @@ -204,7 +204,7 @@ func (c *ApiService) streamAccount(response *ListAccountResponse, params *ListAc } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAccountResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAccount200Response) if err != nil { errorChannel <- err break @@ -212,14 +212,14 @@ func (c *ApiService) streamAccount(response *ListAccountResponse, params *ListAc break } - response = record.(*ListAccountResponse) + response = record.(*ListAccount200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAccountResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAccount200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -230,7 +230,7 @@ func (c *ApiService) getNextListAccountResponse(nextPageUrl string) (interface{} defer resp.Body.Close() - ps := &ListAccountResponse{} + ps := &ListAccount200Response{} 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 053910881..fe00dad35 100644 --- a/rest/api/v2010/accounts_addresses.go +++ b/rest/api/v2010/accounts_addresses.go @@ -94,7 +94,6 @@ func (params *CreateAddressParams) SetStreetSecondary(StreetSecondary string) *C return params } -// func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Address, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" if params != nil && params.PathAccountSid != nil { @@ -163,7 +162,6 @@ func (params *DeleteAddressParams) SetPathAccountSid(PathAccountSid string) *Del return params } -// func (c *ApiService) DeleteAddress(Sid string, params *DeleteAddressParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -197,7 +195,6 @@ func (params *FetchAddressParams) SetPathAccountSid(PathAccountSid string) *Fetc return params } -// func (c *ApiService) FetchAddress(Sid string, params *FetchAddressParams) (*ApiV2010Address, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -267,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) (*ListAddressResponse, error) { +func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumber string) (*ListAddress200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" if params != nil && params.PathAccountSid != nil { @@ -306,7 +303,7 @@ func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumbe defer resp.Body.Close() - ps := &ListAddressResponse{} + ps := &ListAddress200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -352,7 +349,7 @@ func (c *ApiService) StreamAddress(params *ListAddressParams) (chan ApiV2010Addr return recordChannel, errorChannel } -func (c *ApiService) streamAddress(response *ListAddressResponse, params *ListAddressParams, recordChannel chan ApiV2010Address, errorChannel chan error) { +func (c *ApiService) streamAddress(response *ListAddress200Response, params *ListAddressParams, recordChannel chan ApiV2010Address, errorChannel chan error) { curRecord := 1 for response != nil { @@ -367,7 +364,7 @@ func (c *ApiService) streamAddress(response *ListAddressResponse, params *ListAd } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAddressResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAddress200Response) if err != nil { errorChannel <- err break @@ -375,14 +372,14 @@ func (c *ApiService) streamAddress(response *ListAddressResponse, params *ListAd break } - response = record.(*ListAddressResponse) + response = record.(*ListAddress200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAddressResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAddress200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -393,7 +390,7 @@ func (c *ApiService) getNextListAddressResponse(nextPageUrl string) (interface{} defer resp.Body.Close() - ps := &ListAddressResponse{} + ps := &ListAddress200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -465,7 +462,6 @@ func (params *UpdateAddressParams) SetStreetSecondary(StreetSecondary string) *U return params } -// func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*ApiV2010Address, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go b/rest/api/v2010/accounts_addresses_dependent_phone_numbers.go index f1cf03f13..6a2190650 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) (*ListDependentPhoneNumberResponse, error) { +func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDependentPhoneNumberParams, pageToken, pageNumber string) (*ListDependentPhoneNumber200Response, 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 := &ListDependentPhoneNumberResponse{} + ps := &ListDependentPhoneNumber200Response{} 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 *ListDependentPhoneNumberResponse, params *ListDependentPhoneNumberParams, recordChannel chan ApiV2010DependentPhoneNumber, errorChannel chan error) { +func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumber200Response, 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.getNextListDependentPhoneNumberResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListDependentPhoneNumber200Response) if err != nil { errorChannel <- err break @@ -147,14 +147,14 @@ func (c *ApiService) streamDependentPhoneNumber(response *ListDependentPhoneNumb break } - response = record.(*ListDependentPhoneNumberResponse) + response = record.(*ListDependentPhoneNumber200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListDependentPhoneNumberResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListDependentPhoneNumber200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -165,7 +165,7 @@ func (c *ApiService) getNextListDependentPhoneNumberResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListDependentPhoneNumberResponse{} + ps := &ListDependentPhoneNumber200Response{} 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 1a2d7f678..e833fd90d 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) (*ListApplicationResponse, error) { +func (c *ApiService) PageApplication(params *ListApplicationParams, pageToken, pageNumber string) (*ListApplication200Response, 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 := &ListApplicationResponse{} + ps := &ListApplication200Response{} 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 *ListApplicationResponse, params *ListApplicationParams, recordChannel chan ApiV2010Application, errorChannel chan error) { +func (c *ApiService) streamApplication(response *ListApplication200Response, params *ListApplicationParams, recordChannel chan ApiV2010Application, errorChannel chan error) { curRecord := 1 for response != nil { @@ -403,7 +403,7 @@ func (c *ApiService) streamApplication(response *ListApplicationResponse, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListApplicationResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListApplication200Response) if err != nil { errorChannel <- err break @@ -411,14 +411,14 @@ func (c *ApiService) streamApplication(response *ListApplicationResponse, params break } - response = record.(*ListApplicationResponse) + response = record.(*ListApplication200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListApplicationResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListApplication200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -429,7 +429,7 @@ func (c *ApiService) getNextListApplicationResponse(nextPageUrl string) (interfa defer resp.Body.Close() - ps := &ListApplicationResponse{} + ps := &ListApplication200Response{} 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 c6c0b4e0b..f77e3ee62 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) (*ListAuthorizedConnectAppResponse, error) { +func (c *ApiService) PageAuthorizedConnectApp(params *ListAuthorizedConnectAppParams, pageToken, pageNumber string) (*ListAuthorizedConnectApp200Response, 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 := &ListAuthorizedConnectAppResponse{} + ps := &ListAuthorizedConnectApp200Response{} 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 *ListAuthorizedConnectAppResponse, params *ListAuthorizedConnectAppParams, recordChannel chan ApiV2010AuthorizedConnectApp, errorChannel chan error) { +func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectApp200Response, 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.getNextListAuthorizedConnectAppResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAuthorizedConnectApp200Response) if err != nil { errorChannel <- err break @@ -185,14 +185,14 @@ func (c *ApiService) streamAuthorizedConnectApp(response *ListAuthorizedConnectA break } - response = record.(*ListAuthorizedConnectAppResponse) + response = record.(*ListAuthorizedConnectApp200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAuthorizedConnectAppResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAuthorizedConnectApp200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -203,7 +203,7 @@ func (c *ApiService) getNextListAuthorizedConnectAppResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListAuthorizedConnectAppResponse{} + ps := &ListAuthorizedConnectApp200Response{} 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 5cc813f87..a31b0fdb7 100644 --- a/rest/api/v2010/accounts_available_phone_numbers.go +++ b/rest/api/v2010/accounts_available_phone_numbers.go @@ -34,7 +34,6 @@ func (params *FetchAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAcco return params } -// func (c *ApiService) FetchAvailablePhoneNumberCountry(CountryCode string, params *FetchAvailablePhoneNumberCountryParams) (*ApiV2010AvailablePhoneNumberCountry, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json" if params != nil && params.PathAccountSid != nil { @@ -86,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) (*ListAvailablePhoneNumberCountryResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberCountry(params *ListAvailablePhoneNumberCountryParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberCountry200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" if params != nil && params.PathAccountSid != nil { @@ -116,7 +115,7 @@ func (c *ApiService) PageAvailablePhoneNumberCountry(params *ListAvailablePhoneN defer resp.Body.Close() - ps := &ListAvailablePhoneNumberCountryResponse{} + ps := &ListAvailablePhoneNumberCountry200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -162,7 +161,7 @@ func (c *ApiService) StreamAvailablePhoneNumberCountry(params *ListAvailablePhon return recordChannel, errorChannel } -func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePhoneNumberCountryResponse, params *ListAvailablePhoneNumberCountryParams, recordChannel chan ApiV2010AvailablePhoneNumberCountry, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePhoneNumberCountry200Response, params *ListAvailablePhoneNumberCountryParams, recordChannel chan ApiV2010AvailablePhoneNumberCountry, errorChannel chan error) { curRecord := 1 for response != nil { @@ -177,7 +176,7 @@ func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePh } } - record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberCountryResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberCountry200Response) if err != nil { errorChannel <- err break @@ -185,14 +184,14 @@ func (c *ApiService) streamAvailablePhoneNumberCountry(response *ListAvailablePh break } - response = record.(*ListAvailablePhoneNumberCountryResponse) + response = record.(*ListAvailablePhoneNumberCountry200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberCountryResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberCountry200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -203,7 +202,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberCountryResponse(nextPageUrl defer resp.Body.Close() - ps := &ListAvailablePhoneNumberCountryResponse{} + ps := &ListAvailablePhoneNumberCountry200Response{} 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 9d7ffaecf..a844c819a 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) (*ListAvailablePhoneNumberLocalResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberLocal(CountryCode string, params *ListAvailablePhoneNumberLocalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberLocal200Response, 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 := &ListAvailablePhoneNumberLocalResponse{} + ps := &ListAvailablePhoneNumberLocal200Response{} 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 *ListAvailablePhoneNumberLocalResponse, params *ListAvailablePhoneNumberLocalParams, recordChannel chan ApiV2010AvailablePhoneNumberLocal, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhoneNumberLocal200Response, 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.getNextListAvailablePhoneNumberLocalResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberLocal200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberLocal(response *ListAvailablePhon break } - response = record.(*ListAvailablePhoneNumberLocalResponse) + response = record.(*ListAvailablePhoneNumberLocal200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberLocalResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberLocal200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberLocalResponse(nextPageUrl st defer resp.Body.Close() - ps := &ListAvailablePhoneNumberLocalResponse{} + ps := &ListAvailablePhoneNumberLocal200Response{} 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 30f22af46..dac140370 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) (*ListAvailablePhoneNumberMachineToMachineResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberMachineToMachine(CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMachineToMachine200Response, 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 := &ListAvailablePhoneNumberMachineToMachineResponse{} + ps := &ListAvailablePhoneNumberMachineToMachine200Response{} 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 *ListAvailablePhoneNumberMachineToMachineResponse, params *ListAvailablePhoneNumberMachineToMachineParams, recordChannel chan ApiV2010AvailablePhoneNumberMachineToMachine, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAvailablePhoneNumberMachineToMachine200Response, 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.getNextListAvailablePhoneNumberMachineToMachineResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberMachineToMachine200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberMachineToMachine(response *ListAv break } - response = record.(*ListAvailablePhoneNumberMachineToMachineResponse) + response = record.(*ListAvailablePhoneNumberMachineToMachine200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberMachineToMachineResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberMachineToMachine200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberMachineToMachineResponse(nex defer resp.Body.Close() - ps := &ListAvailablePhoneNumberMachineToMachineResponse{} + ps := &ListAvailablePhoneNumberMachineToMachine200Response{} 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 df649b4d0..344d4eab1 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) (*ListAvailablePhoneNumberMobileResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberMobile(CountryCode string, params *ListAvailablePhoneNumberMobileParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberMobile200Response, 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 := &ListAvailablePhoneNumberMobileResponse{} + ps := &ListAvailablePhoneNumberMobile200Response{} 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 *ListAvailablePhoneNumberMobileResponse, params *ListAvailablePhoneNumberMobileParams, recordChannel chan ApiV2010AvailablePhoneNumberMobile, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePhoneNumberMobile200Response, 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.getNextListAvailablePhoneNumberMobileResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberMobile200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberMobile(response *ListAvailablePho break } - response = record.(*ListAvailablePhoneNumberMobileResponse) + response = record.(*ListAvailablePhoneNumberMobile200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberMobileResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberMobile200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberMobileResponse(nextPageUrl s defer resp.Body.Close() - ps := &ListAvailablePhoneNumberMobileResponse{} + ps := &ListAvailablePhoneNumberMobile200Response{} 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 46f936ea2..ea15ce058 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) (*ListAvailablePhoneNumberNationalResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberNational(CountryCode string, params *ListAvailablePhoneNumberNationalParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberNational200Response, 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 := &ListAvailablePhoneNumberNationalResponse{} + ps := &ListAvailablePhoneNumberNational200Response{} 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 *ListAvailablePhoneNumberNationalResponse, params *ListAvailablePhoneNumberNationalParams, recordChannel chan ApiV2010AvailablePhoneNumberNational, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailablePhoneNumberNational200Response, 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.getNextListAvailablePhoneNumberNationalResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberNational200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberNational(response *ListAvailableP break } - response = record.(*ListAvailablePhoneNumberNationalResponse) + response = record.(*ListAvailablePhoneNumberNational200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberNationalResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberNational200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberNationalResponse(nextPageUrl defer resp.Body.Close() - ps := &ListAvailablePhoneNumberNationalResponse{} + ps := &ListAvailablePhoneNumberNational200Response{} 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 9c6abff87..667a75f35 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) (*ListAvailablePhoneNumberSharedCostResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberSharedCost(CountryCode string, params *ListAvailablePhoneNumberSharedCostParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberSharedCost200Response, 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 := &ListAvailablePhoneNumberSharedCostResponse{} + ps := &ListAvailablePhoneNumberSharedCost200Response{} 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 *ListAvailablePhoneNumberSharedCostResponse, params *ListAvailablePhoneNumberSharedCostParams, recordChannel chan ApiV2010AvailablePhoneNumberSharedCost, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailablePhoneNumberSharedCost200Response, 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.getNextListAvailablePhoneNumberSharedCostResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberSharedCost200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberSharedCost(response *ListAvailabl break } - response = record.(*ListAvailablePhoneNumberSharedCostResponse) + response = record.(*ListAvailablePhoneNumberSharedCost200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberSharedCostResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberSharedCost200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberSharedCostResponse(nextPageU defer resp.Body.Close() - ps := &ListAvailablePhoneNumberSharedCostResponse{} + ps := &ListAvailablePhoneNumberSharedCost200Response{} 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 7d4be3c1f..f9a1bdcf6 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) (*ListAvailablePhoneNumberTollFreeResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberTollFree(CountryCode string, params *ListAvailablePhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberTollFree200Response, 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 := &ListAvailablePhoneNumberTollFreeResponse{} + ps := &ListAvailablePhoneNumberTollFree200Response{} 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 *ListAvailablePhoneNumberTollFreeResponse, params *ListAvailablePhoneNumberTollFreeParams, recordChannel chan ApiV2010AvailablePhoneNumberTollFree, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailablePhoneNumberTollFree200Response, 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.getNextListAvailablePhoneNumberTollFreeResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberTollFree200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberTollFree(response *ListAvailableP break } - response = record.(*ListAvailablePhoneNumberTollFreeResponse) + response = record.(*ListAvailablePhoneNumberTollFree200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberTollFreeResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberTollFree200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberTollFreeResponse(nextPageUrl defer resp.Body.Close() - ps := &ListAvailablePhoneNumberTollFreeResponse{} + ps := &ListAvailablePhoneNumberTollFree200Response{} 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 a2534d8e5..0f3595557 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) (*ListAvailablePhoneNumberVoipResponse, error) { +func (c *ApiService) PageAvailablePhoneNumberVoip(CountryCode string, params *ListAvailablePhoneNumberVoipParams, pageToken, pageNumber string) (*ListAvailablePhoneNumberVoip200Response, 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 := &ListAvailablePhoneNumberVoipResponse{} + ps := &ListAvailablePhoneNumberVoip200Response{} 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 *ListAvailablePhoneNumberVoipResponse, params *ListAvailablePhoneNumberVoipParams, recordChannel chan ApiV2010AvailablePhoneNumberVoip, errorChannel chan error) { +func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhoneNumberVoip200Response, 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.getNextListAvailablePhoneNumberVoipResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListAvailablePhoneNumberVoip200Response) if err != nil { errorChannel <- err break @@ -309,14 +309,14 @@ func (c *ApiService) streamAvailablePhoneNumberVoip(response *ListAvailablePhone break } - response = record.(*ListAvailablePhoneNumberVoipResponse) + response = record.(*ListAvailablePhoneNumberVoip200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListAvailablePhoneNumberVoipResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListAvailablePhoneNumberVoip200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -327,7 +327,7 @@ func (c *ApiService) getNextListAvailablePhoneNumberVoipResponse(nextPageUrl str defer resp.Body.Close() - ps := &ListAvailablePhoneNumberVoipResponse{} + ps := &ListAvailablePhoneNumberVoip200Response{} 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 cb5b0cf61..f2dff4a9a 100644 --- a/rest/api/v2010/accounts_calls.go +++ b/rest/api/v2010/accounts_calls.go @@ -469,16 +469,8 @@ type ListCallParams struct { 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. StartTime *time.Time `json:"StartTime,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. - StartTimeBefore *time.Time `json:"StartTime<,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. - StartTimeAfter *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. EndTime *time.Time `json:"EndTime,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. - EndTimeBefore *time.Time `json:"EndTime<,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. - 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. @@ -509,26 +501,10 @@ 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 @@ -539,7 +515,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) (*ListCallResponse, error) { +func (c *ApiService) PageCall(params *ListCallParams, pageToken, pageNumber string) (*ListCall200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" if params != nil && params.PathAccountSid != nil { @@ -566,21 +542,9 @@ 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)) } @@ -599,7 +563,7 @@ func (c *ApiService) PageCall(params *ListCallParams, pageToken, pageNumber stri defer resp.Body.Close() - ps := &ListCallResponse{} + ps := &ListCall200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -645,7 +609,7 @@ func (c *ApiService) StreamCall(params *ListCallParams) (chan ApiV2010Call, chan return recordChannel, errorChannel } -func (c *ApiService) streamCall(response *ListCallResponse, params *ListCallParams, recordChannel chan ApiV2010Call, errorChannel chan error) { +func (c *ApiService) streamCall(response *ListCall200Response, params *ListCallParams, recordChannel chan ApiV2010Call, errorChannel chan error) { curRecord := 1 for response != nil { @@ -660,7 +624,7 @@ func (c *ApiService) streamCall(response *ListCallResponse, params *ListCallPara } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListCall200Response) if err != nil { errorChannel <- err break @@ -668,14 +632,14 @@ func (c *ApiService) streamCall(response *ListCallResponse, params *ListCallPara break } - response = record.(*ListCallResponse) + response = record.(*ListCall200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCall200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -686,7 +650,7 @@ func (c *ApiService) getNextListCallResponse(nextPageUrl string) (interface{}, e defer resp.Body.Close() - ps := &ListCallResponse{} + ps := &ListCall200Response{} 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 07ce9789a..f6349aba2 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) (*ListCallEventResponse, error) { +func (c *ApiService) PageCallEvent(CallSid string, params *ListCallEventParams, pageToken, pageNumber string) (*ListCallEvent200Response, 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 := &ListCallEventResponse{} + ps := &ListCallEvent200Response{} 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 *ListCallEventResponse, params *ListCallEventParams, recordChannel chan ApiV2010CallEvent, errorChannel chan error) { +func (c *ApiService) streamCallEvent(response *ListCallEvent200Response, params *ListCallEventParams, recordChannel chan ApiV2010CallEvent, errorChannel chan error) { curRecord := 1 for response != nil { @@ -139,7 +139,7 @@ func (c *ApiService) streamCallEvent(response *ListCallEventResponse, params *Li } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallEventResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallEvent200Response) if err != nil { errorChannel <- err break @@ -147,14 +147,14 @@ func (c *ApiService) streamCallEvent(response *ListCallEventResponse, params *Li break } - response = record.(*ListCallEventResponse) + response = record.(*ListCallEvent200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallEventResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallEvent200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -165,7 +165,7 @@ func (c *ApiService) getNextListCallEventResponse(nextPageUrl string) (interface defer resp.Body.Close() - ps := &ListCallEventResponse{} + ps := &ListCallEvent200Response{} 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 4004ae82b..9fbc3f5ea 100644 --- a/rest/api/v2010/accounts_calls_notifications.go +++ b/rest/api/v2010/accounts_calls_notifications.go @@ -34,7 +34,6 @@ func (params *FetchCallNotificationParams) SetPathAccountSid(PathAccountSid stri return params } -// func (c *ApiService) FetchCallNotification(CallSid string, Sid string, params *FetchCallNotificationParams) (*ApiV2010CallNotificationInstance, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -111,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) (*ListCallNotificationResponse, error) { +func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotificationParams, pageToken, pageNumber string) (*ListCallNotification200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" if params != nil && params.PathAccountSid != nil { @@ -154,7 +153,7 @@ func (c *ApiService) PageCallNotification(CallSid string, params *ListCallNotifi defer resp.Body.Close() - ps := &ListCallNotificationResponse{} + ps := &ListCallNotification200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -200,7 +199,7 @@ func (c *ApiService) StreamCallNotification(CallSid string, params *ListCallNoti return recordChannel, errorChannel } -func (c *ApiService) streamCallNotification(response *ListCallNotificationResponse, params *ListCallNotificationParams, recordChannel chan ApiV2010CallNotification, errorChannel chan error) { +func (c *ApiService) streamCallNotification(response *ListCallNotification200Response, params *ListCallNotificationParams, recordChannel chan ApiV2010CallNotification, errorChannel chan error) { curRecord := 1 for response != nil { @@ -215,7 +214,7 @@ func (c *ApiService) streamCallNotification(response *ListCallNotificationRespon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallNotificationResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallNotification200Response) if err != nil { errorChannel <- err break @@ -223,14 +222,14 @@ func (c *ApiService) streamCallNotification(response *ListCallNotificationRespon break } - response = record.(*ListCallNotificationResponse) + response = record.(*ListCallNotification200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallNotificationResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallNotification200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -241,7 +240,7 @@ func (c *ApiService) getNextListCallNotificationResponse(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListCallNotificationResponse{} + ps := &ListCallNotification200Response{} 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 955ded6e5..aee57ac0a 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) (*ListCallRecordingResponse, error) { +func (c *ApiService) PageCallRecording(CallSid string, params *ListCallRecordingParams, pageToken, pageNumber string) (*ListCallRecording200Response, 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 := &ListCallRecordingResponse{} + ps := &ListCallRecording200Response{} 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 *ListCallRecordingResponse, params *ListCallRecordingParams, recordChannel chan ApiV2010CallRecording, errorChannel chan error) { +func (c *ApiService) streamCallRecording(response *ListCallRecording200Response, params *ListCallRecordingParams, recordChannel chan ApiV2010CallRecording, errorChannel chan error) { curRecord := 1 for response != nil { @@ -337,7 +337,7 @@ func (c *ApiService) streamCallRecording(response *ListCallRecordingResponse, pa } } - record, err := client.GetNext(c.baseURL, response, c.getNextListCallRecordingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListCallRecording200Response) if err != nil { errorChannel <- err break @@ -345,14 +345,14 @@ func (c *ApiService) streamCallRecording(response *ListCallRecordingResponse, pa break } - response = record.(*ListCallRecordingResponse) + response = record.(*ListCallRecording200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListCallRecordingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListCallRecording200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -363,7 +363,7 @@ func (c *ApiService) getNextListCallRecordingResponse(nextPageUrl string) (inter defer resp.Body.Close() - ps := &ListCallRecordingResponse{} + ps := &ListCallRecording200Response{} 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 2897051e7..0c011a703 100644 --- a/rest/api/v2010/accounts_conferences.go +++ b/rest/api/v2010/accounts_conferences.go @@ -68,16 +68,8 @@ 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`. @@ -96,26 +88,10 @@ 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 @@ -134,7 +110,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) (*ListConferenceResponse, error) { +func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pageNumber string) (*ListConference200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" if params != nil && params.PathAccountSid != nil { @@ -149,21 +125,9 @@ 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) } @@ -188,7 +152,7 @@ func (c *ApiService) PageConference(params *ListConferenceParams, pageToken, pag defer resp.Body.Close() - ps := &ListConferenceResponse{} + ps := &ListConference200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -234,7 +198,7 @@ func (c *ApiService) StreamConference(params *ListConferenceParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamConference(response *ListConferenceResponse, params *ListConferenceParams, recordChannel chan ApiV2010Conference, errorChannel chan error) { +func (c *ApiService) streamConference(response *ListConference200Response, params *ListConferenceParams, recordChannel chan ApiV2010Conference, errorChannel chan error) { curRecord := 1 for response != nil { @@ -249,7 +213,7 @@ func (c *ApiService) streamConference(response *ListConferenceResponse, params * } } - record, err := client.GetNext(c.baseURL, response, c.getNextListConferenceResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListConference200Response) if err != nil { errorChannel <- err break @@ -257,14 +221,14 @@ func (c *ApiService) streamConference(response *ListConferenceResponse, params * break } - response = record.(*ListConferenceResponse) + response = record.(*ListConference200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListConferenceResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListConference200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -275,7 +239,7 @@ func (c *ApiService) getNextListConferenceResponse(nextPageUrl string) (interfac defer resp.Body.Close() - ps := &ListConferenceResponse{} + ps := &ListConference200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -311,7 +275,6 @@ func (params *UpdateConferenceParams) SetAnnounceMethod(AnnounceMethod string) * return params } -// func (c *ApiService) UpdateConference(Sid string, params *UpdateConferenceParams) (*ApiV2010Conference, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_conferences_participants.go b/rest/api/v2010/accounts_conferences_participants.go index 32ba1ec10..51014339f 100644 --- a/rest/api/v2010/accounts_conferences_participants.go +++ b/rest/api/v2010/accounts_conferences_participants.go @@ -322,7 +322,6 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar return params } -// func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" if params != nil && params.PathAccountSid != nil { @@ -620,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) (*ListParticipantResponse, error) { +func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipantParams, pageToken, pageNumber string) (*ListParticipant200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" if params != nil && params.PathAccountSid != nil { @@ -660,7 +659,7 @@ func (c *ApiService) PageParticipant(ConferenceSid string, params *ListParticipa defer resp.Body.Close() - ps := &ListParticipantResponse{} + ps := &ListParticipant200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -706,7 +705,7 @@ func (c *ApiService) StreamParticipant(ConferenceSid string, params *ListPartici return recordChannel, errorChannel } -func (c *ApiService) streamParticipant(response *ListParticipantResponse, params *ListParticipantParams, recordChannel chan ApiV2010Participant, errorChannel chan error) { +func (c *ApiService) streamParticipant(response *ListParticipant200Response, params *ListParticipantParams, recordChannel chan ApiV2010Participant, errorChannel chan error) { curRecord := 1 for response != nil { @@ -721,7 +720,7 @@ func (c *ApiService) streamParticipant(response *ListParticipantResponse, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListParticipantResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListParticipant200Response) if err != nil { errorChannel <- err break @@ -729,14 +728,14 @@ func (c *ApiService) streamParticipant(response *ListParticipantResponse, params break } - response = record.(*ListParticipantResponse) + response = record.(*ListParticipant200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListParticipantResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListParticipant200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -747,7 +746,7 @@ func (c *ApiService) getNextListParticipantResponse(nextPageUrl string) (interfa defer resp.Body.Close() - ps := &ListParticipantResponse{} + ps := &ListParticipant200Response{} 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 4d0783ea1..3435592a4 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) (*ListConferenceRecordingResponse, error) { +func (c *ApiService) PageConferenceRecording(ConferenceSid string, params *ListConferenceRecordingParams, pageToken, pageNumber string) (*ListConferenceRecording200Response, 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 := &ListConferenceRecordingResponse{} + ps := &ListConferenceRecording200Response{} 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 *ListConferenceRecordingResponse, params *ListConferenceRecordingParams, recordChannel chan ApiV2010ConferenceRecording, errorChannel chan error) { +func (c *ApiService) streamConferenceRecording(response *ListConferenceRecording200Response, 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.getNextListConferenceRecordingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListConferenceRecording200Response) if err != nil { errorChannel <- err break @@ -249,14 +249,14 @@ func (c *ApiService) streamConferenceRecording(response *ListConferenceRecording break } - response = record.(*ListConferenceRecordingResponse) + response = record.(*ListConferenceRecording200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListConferenceRecordingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListConferenceRecording200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -267,7 +267,7 @@ func (c *ApiService) getNextListConferenceRecordingResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListConferenceRecordingResponse{} + ps := &ListConferenceRecording200Response{} 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 f37ece34c..00dd664a8 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) (*ListConnectAppResponse, error) { +func (c *ApiService) PageConnectApp(params *ListConnectAppParams, pageToken, pageNumber string) (*ListConnectApp200Response, 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 := &ListConnectAppResponse{} + ps := &ListConnectApp200Response{} 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 *ListConnectAppResponse, params *ListConnectAppParams, recordChannel chan ApiV2010ConnectApp, errorChannel chan error) { +func (c *ApiService) streamConnectApp(response *ListConnectApp200Response, params *ListConnectAppParams, recordChannel chan ApiV2010ConnectApp, errorChannel chan error) { curRecord := 1 for response != nil { @@ -211,7 +211,7 @@ func (c *ApiService) streamConnectApp(response *ListConnectAppResponse, params * } } - record, err := client.GetNext(c.baseURL, response, c.getNextListConnectAppResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListConnectApp200Response) if err != nil { errorChannel <- err break @@ -219,14 +219,14 @@ func (c *ApiService) streamConnectApp(response *ListConnectAppResponse, params * break } - response = record.(*ListConnectAppResponse) + response = record.(*ListConnectApp200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListConnectAppResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListConnectApp200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -237,7 +237,7 @@ func (c *ApiService) getNextListConnectAppResponse(nextPageUrl string) (interfac defer resp.Body.Close() - ps := &ListConnectAppResponse{} + ps := &ListConnectApp200Response{} 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 a97f6e225..b27a2adf3 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) (*ListIncomingPhoneNumberResponse, error) { +func (c *ApiService) PageIncomingPhoneNumber(params *ListIncomingPhoneNumberParams, pageToken, pageNumber string) (*ListIncomingPhoneNumber200Response, 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 := &ListIncomingPhoneNumberResponse{} + ps := &ListIncomingPhoneNumber200Response{} 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 *ListIncomingPhoneNumberResponse, params *ListIncomingPhoneNumberParams, recordChannel chan ApiV2010IncomingPhoneNumber, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumber200Response, 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.getNextListIncomingPhoneNumberResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumber200Response) if err != nil { errorChannel <- err break @@ -510,14 +510,14 @@ func (c *ApiService) streamIncomingPhoneNumber(response *ListIncomingPhoneNumber break } - response = record.(*ListIncomingPhoneNumberResponse) + response = record.(*ListIncomingPhoneNumber200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumber200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -528,7 +528,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListIncomingPhoneNumberResponse{} + ps := &ListIncomingPhoneNumber200Response{} 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 c6ccd00d5..ba236308e 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) (*ListIncomingPhoneNumberAssignedAddOnResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberAssignedAddOn(ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOn200Response, 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 := &ListIncomingPhoneNumberAssignedAddOnResponse{} + ps := &ListIncomingPhoneNumberAssignedAddOn200Response{} 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 *ListIncomingPhoneNumberAssignedAddOnResponse, params *ListIncomingPhoneNumberAssignedAddOnParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOn, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomingPhoneNumberAssignedAddOn200Response, 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.getNextListIncomingPhoneNumberAssignedAddOnResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOn200Response) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOn(response *ListIncomi break } - response = record.(*ListIncomingPhoneNumberAssignedAddOnResponse) + response = record.(*ListIncomingPhoneNumberAssignedAddOn200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOn200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnResponse(nextPag defer resp.Body.Close() - ps := &ListIncomingPhoneNumberAssignedAddOnResponse{} + ps := &ListIncomingPhoneNumberAssignedAddOn200Response{} 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 981b2137a..091cb92d5 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) (*ListIncomingPhoneNumberAssignedAddOnExtensionResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberAssignedAddOnExtension(ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberAssignedAddOnExtension200Response, 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 := &ListIncomingPhoneNumberAssignedAddOnExtensionResponse{} + ps := &ListIncomingPhoneNumberAssignedAddOnExtension200Response{} 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 *ListIncomingPhoneNumberAssignedAddOnExtensionResponse, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams, recordChannel chan ApiV2010IncomingPhoneNumberAssignedAddOnExtension, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *ListIncomingPhoneNumberAssignedAddOnExtension200Response, 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.getNextListIncomingPhoneNumberAssignedAddOnExtensionResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberAssignedAddOnExtension200Response) if err != nil { errorChannel <- err break @@ -189,14 +189,14 @@ func (c *ApiService) streamIncomingPhoneNumberAssignedAddOnExtension(response *L break } - response = record.(*ListIncomingPhoneNumberAssignedAddOnExtensionResponse) + response = record.(*ListIncomingPhoneNumberAssignedAddOnExtension200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnExtensionResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnExtension200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -207,7 +207,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberAssignedAddOnExtensionRespons defer resp.Body.Close() - ps := &ListIncomingPhoneNumberAssignedAddOnExtensionResponse{} + ps := &ListIncomingPhoneNumberAssignedAddOnExtension200Response{} 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 e40f5ff44..f71fd4a8f 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_local.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_local.go @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberLocalParams) SetBundleSid(BundleSid strin return params } -// func (c *ApiService) CreateIncomingPhoneNumberLocal(params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010IncomingPhoneNumberLocal, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" if params != nil && params.PathAccountSid != nil { @@ -317,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) (*ListIncomingPhoneNumberLocalResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberLocal(params *ListIncomingPhoneNumberLocalParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberLocal200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" if params != nil && params.PathAccountSid != nil { @@ -359,7 +358,7 @@ func (c *ApiService) PageIncomingPhoneNumberLocal(params *ListIncomingPhoneNumbe defer resp.Body.Close() - ps := &ListIncomingPhoneNumberLocalResponse{} + ps := &ListIncomingPhoneNumberLocal200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -405,7 +404,7 @@ func (c *ApiService) StreamIncomingPhoneNumberLocal(params *ListIncomingPhoneNum return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneNumberLocalResponse, params *ListIncomingPhoneNumberLocalParams, recordChannel chan ApiV2010IncomingPhoneNumberLocal, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneNumberLocal200Response, params *ListIncomingPhoneNumberLocalParams, recordChannel chan ApiV2010IncomingPhoneNumberLocal, errorChannel chan error) { curRecord := 1 for response != nil { @@ -420,7 +419,7 @@ func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneN } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberLocalResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberLocal200Response) if err != nil { errorChannel <- err break @@ -428,14 +427,14 @@ func (c *ApiService) streamIncomingPhoneNumberLocal(response *ListIncomingPhoneN break } - response = record.(*ListIncomingPhoneNumberLocalResponse) + response = record.(*ListIncomingPhoneNumberLocal200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberLocalResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberLocal200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -446,7 +445,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberLocalResponse(nextPageUrl str defer resp.Body.Close() - ps := &ListIncomingPhoneNumberLocalResponse{} + ps := &ListIncomingPhoneNumberLocal200Response{} 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 feaef417a..e81845799 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberMobileParams) SetBundleSid(BundleSid stri return params } -// func (c *ApiService) CreateIncomingPhoneNumberMobile(params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010IncomingPhoneNumberMobile, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -317,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) (*ListIncomingPhoneNumberMobileResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberMobile(params *ListIncomingPhoneNumberMobileParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberMobile200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" if params != nil && params.PathAccountSid != nil { @@ -359,7 +358,7 @@ func (c *ApiService) PageIncomingPhoneNumberMobile(params *ListIncomingPhoneNumb defer resp.Body.Close() - ps := &ListIncomingPhoneNumberMobileResponse{} + ps := &ListIncomingPhoneNumberMobile200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -405,7 +404,7 @@ func (c *ApiService) StreamIncomingPhoneNumberMobile(params *ListIncomingPhoneNu return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhoneNumberMobileResponse, params *ListIncomingPhoneNumberMobileParams, recordChannel chan ApiV2010IncomingPhoneNumberMobile, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhoneNumberMobile200Response, params *ListIncomingPhoneNumberMobileParams, recordChannel chan ApiV2010IncomingPhoneNumberMobile, errorChannel chan error) { curRecord := 1 for response != nil { @@ -420,7 +419,7 @@ func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhone } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberMobileResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberMobile200Response) if err != nil { errorChannel <- err break @@ -428,14 +427,14 @@ func (c *ApiService) streamIncomingPhoneNumberMobile(response *ListIncomingPhone break } - response = record.(*ListIncomingPhoneNumberMobileResponse) + response = record.(*ListIncomingPhoneNumberMobile200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberMobileResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberMobile200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -446,7 +445,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberMobileResponse(nextPageUrl st defer resp.Body.Close() - ps := &ListIncomingPhoneNumberMobileResponse{} + ps := &ListIncomingPhoneNumberMobile200Response{} 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 f178aed9e..f1c47b086 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberTollFreeParams) SetBundleSid(BundleSid st return params } -// func (c *ApiService) CreateIncomingPhoneNumberTollFree(params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010IncomingPhoneNumberTollFree, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -317,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) (*ListIncomingPhoneNumberTollFreeResponse, error) { +func (c *ApiService) PageIncomingPhoneNumberTollFree(params *ListIncomingPhoneNumberTollFreeParams, pageToken, pageNumber string) (*ListIncomingPhoneNumberTollFree200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" if params != nil && params.PathAccountSid != nil { @@ -359,7 +358,7 @@ func (c *ApiService) PageIncomingPhoneNumberTollFree(params *ListIncomingPhoneNu defer resp.Body.Close() - ps := &ListIncomingPhoneNumberTollFreeResponse{} + ps := &ListIncomingPhoneNumberTollFree200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -405,7 +404,7 @@ func (c *ApiService) StreamIncomingPhoneNumberTollFree(params *ListIncomingPhone return recordChannel, errorChannel } -func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPhoneNumberTollFreeResponse, params *ListIncomingPhoneNumberTollFreeParams, recordChannel chan ApiV2010IncomingPhoneNumberTollFree, errorChannel chan error) { +func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPhoneNumberTollFree200Response, params *ListIncomingPhoneNumberTollFreeParams, recordChannel chan ApiV2010IncomingPhoneNumberTollFree, errorChannel chan error) { curRecord := 1 for response != nil { @@ -420,7 +419,7 @@ func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPho } } - record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberTollFreeResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListIncomingPhoneNumberTollFree200Response) if err != nil { errorChannel <- err break @@ -428,14 +427,14 @@ func (c *ApiService) streamIncomingPhoneNumberTollFree(response *ListIncomingPho break } - response = record.(*ListIncomingPhoneNumberTollFreeResponse) + response = record.(*ListIncomingPhoneNumberTollFree200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListIncomingPhoneNumberTollFreeResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListIncomingPhoneNumberTollFree200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -446,7 +445,7 @@ func (c *ApiService) getNextListIncomingPhoneNumberTollFreeResponse(nextPageUrl defer resp.Body.Close() - ps := &ListIncomingPhoneNumberTollFreeResponse{} + ps := &ListIncomingPhoneNumberTollFree200Response{} 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 47e4335d5..f8b879219 100644 --- a/rest/api/v2010/accounts_keys.go +++ b/rest/api/v2010/accounts_keys.go @@ -40,7 +40,6 @@ func (params *CreateNewKeyParams) SetFriendlyName(FriendlyName string) *CreateNe return params } -// func (c *ApiService) CreateNewKey(params *CreateNewKeyParams) (*ApiV2010NewKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" if params != nil && params.PathAccountSid != nil { @@ -82,7 +81,6 @@ func (params *DeleteKeyParams) SetPathAccountSid(PathAccountSid string) *DeleteK return params } -// func (c *ApiService) DeleteKey(Sid string, params *DeleteKeyParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -116,7 +114,6 @@ func (params *FetchKeyParams) SetPathAccountSid(PathAccountSid string) *FetchKey return params } -// func (c *ApiService) FetchKey(Sid string, params *FetchKeyParams) (*ApiV2010Key, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -168,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) (*ListKeyResponse, error) { +func (c *ApiService) PageKey(params *ListKeyParams, pageToken, pageNumber string) (*ListKey200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" if params != nil && params.PathAccountSid != nil { @@ -198,7 +195,7 @@ func (c *ApiService) PageKey(params *ListKeyParams, pageToken, pageNumber string defer resp.Body.Close() - ps := &ListKeyResponse{} + ps := &ListKey200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -244,7 +241,7 @@ func (c *ApiService) StreamKey(params *ListKeyParams) (chan ApiV2010Key, chan er return recordChannel, errorChannel } -func (c *ApiService) streamKey(response *ListKeyResponse, params *ListKeyParams, recordChannel chan ApiV2010Key, errorChannel chan error) { +func (c *ApiService) streamKey(response *ListKey200Response, params *ListKeyParams, recordChannel chan ApiV2010Key, errorChannel chan error) { curRecord := 1 for response != nil { @@ -259,7 +256,7 @@ func (c *ApiService) streamKey(response *ListKeyResponse, params *ListKeyParams, } } - record, err := client.GetNext(c.baseURL, response, c.getNextListKeyResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListKey200Response) if err != nil { errorChannel <- err break @@ -267,14 +264,14 @@ func (c *ApiService) streamKey(response *ListKeyResponse, params *ListKeyParams, break } - response = record.(*ListKeyResponse) + response = record.(*ListKey200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListKeyResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListKey200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -285,7 +282,7 @@ func (c *ApiService) getNextListKeyResponse(nextPageUrl string) (interface{}, er defer resp.Body.Close() - ps := &ListKeyResponse{} + ps := &ListKey200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -309,7 +306,6 @@ func (params *UpdateKeyParams) SetFriendlyName(FriendlyName string) *UpdateKeyPa return params } -// func (c *ApiService) UpdateKey(Sid string, params *UpdateKeyParams) (*ApiV2010Key, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index f9845a5af..51f6f01d3 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -32,9 +32,9 @@ type CreateMessageParams struct { To *string `json:"To,omitempty"` // The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). StatusCallback *string `json:"StatusCallback,omitempty"` - // The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. + // The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. ApplicationSid *string `json:"ApplicationSid,omitempty"` - // The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`. + // [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. MaxPrice *float32 `json:"MaxPrice,omitempty"` // Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. ProvideFeedback *bool `json:"ProvideFeedback,omitempty"` @@ -357,10 +357,6 @@ 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. @@ -383,14 +379,6 @@ 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 @@ -401,7 +389,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) (*ListMessageResponse, error) { +func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumber string) (*ListMessage200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" if params != nil && params.PathAccountSid != nil { @@ -422,12 +410,6 @@ 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)) } @@ -446,7 +428,7 @@ func (c *ApiService) PageMessage(params *ListMessageParams, pageToken, pageNumbe defer resp.Body.Close() - ps := &ListMessageResponse{} + ps := &ListMessage200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -492,7 +474,7 @@ func (c *ApiService) StreamMessage(params *ListMessageParams) (chan ApiV2010Mess return recordChannel, errorChannel } -func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMessageParams, recordChannel chan ApiV2010Message, errorChannel chan error) { +func (c *ApiService) streamMessage(response *ListMessage200Response, params *ListMessageParams, recordChannel chan ApiV2010Message, errorChannel chan error) { curRecord := 1 for response != nil { @@ -507,7 +489,7 @@ func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMe } } - record, err := client.GetNext(c.baseURL, response, c.getNextListMessageResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListMessage200Response) if err != nil { errorChannel <- err break @@ -515,14 +497,14 @@ func (c *ApiService) streamMessage(response *ListMessageResponse, params *ListMe break } - response = record.(*ListMessageResponse) + response = record.(*ListMessage200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListMessageResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListMessage200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -533,7 +515,7 @@ func (c *ApiService) getNextListMessageResponse(nextPageUrl string) (interface{} defer resp.Body.Close() - ps := &ListMessageResponse{} + ps := &ListMessage200Response{} 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 4f0f81578..51218b382 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) (*ListMediaResponse, error) { +func (c *ApiService) PageMedia(MessageSid string, params *ListMediaParams, pageToken, pageNumber string) (*ListMedia200Response, 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 := &ListMediaResponse{} + ps := &ListMedia200Response{} 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 *ListMediaResponse, params *ListMediaParams, recordChannel chan ApiV2010Media, errorChannel chan error) { +func (c *ApiService) streamMedia(response *ListMedia200Response, params *ListMediaParams, recordChannel chan ApiV2010Media, errorChannel chan error) { curRecord := 1 for response != nil { @@ -242,7 +242,7 @@ func (c *ApiService) streamMedia(response *ListMediaResponse, params *ListMediaP } } - record, err := client.GetNext(c.baseURL, response, c.getNextListMediaResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListMedia200Response) if err != nil { errorChannel <- err break @@ -250,14 +250,14 @@ func (c *ApiService) streamMedia(response *ListMediaResponse, params *ListMediaP break } - response = record.(*ListMediaResponse) + response = record.(*ListMedia200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListMediaResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListMedia200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -268,7 +268,7 @@ func (c *ApiService) getNextListMediaResponse(nextPageUrl string) (interface{}, defer resp.Body.Close() - ps := &ListMediaResponse{} + ps := &ListMedia200Response{} 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 4151a7021..b220a3ebf 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) (*ListNotificationResponse, error) { +func (c *ApiService) PageNotification(params *ListNotificationParams, pageToken, pageNumber string) (*ListNotification200Response, 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 := &ListNotificationResponse{} + ps := &ListNotification200Response{} 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 *ListNotificationResponse, params *ListNotificationParams, recordChannel chan ApiV2010Notification, errorChannel chan error) { +func (c *ApiService) streamNotification(response *ListNotification200Response, params *ListNotificationParams, recordChannel chan ApiV2010Notification, errorChannel chan error) { curRecord := 1 for response != nil { @@ -213,7 +213,7 @@ func (c *ApiService) streamNotification(response *ListNotificationResponse, para } } - record, err := client.GetNext(c.baseURL, response, c.getNextListNotificationResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListNotification200Response) if err != nil { errorChannel <- err break @@ -221,14 +221,14 @@ func (c *ApiService) streamNotification(response *ListNotificationResponse, para break } - response = record.(*ListNotificationResponse) + response = record.(*ListNotification200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListNotificationResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListNotification200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -239,7 +239,7 @@ func (c *ApiService) getNextListNotificationResponse(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListNotificationResponse{} + ps := &ListNotification200Response{} 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 1d91a9389..e4f72ff11 100644 --- a/rest/api/v2010/accounts_outgoing_caller_ids.go +++ b/rest/api/v2010/accounts_outgoing_caller_ids.go @@ -70,7 +70,6 @@ func (params *CreateValidationRequestParams) SetStatusCallbackMethod(StatusCallb return params } -// func (c *ApiService) CreateValidationRequest(params *CreateValidationRequestParams) (*ApiV2010ValidationRequest, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" if params != nil && params.PathAccountSid != nil { @@ -225,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) (*ListOutgoingCallerIdResponse, error) { +func (c *ApiService) PageOutgoingCallerId(params *ListOutgoingCallerIdParams, pageToken, pageNumber string) (*ListOutgoingCallerId200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" if params != nil && params.PathAccountSid != nil { @@ -261,7 +260,7 @@ func (c *ApiService) PageOutgoingCallerId(params *ListOutgoingCallerIdParams, pa defer resp.Body.Close() - ps := &ListOutgoingCallerIdResponse{} + ps := &ListOutgoingCallerId200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -307,7 +306,7 @@ func (c *ApiService) StreamOutgoingCallerId(params *ListOutgoingCallerIdParams) return recordChannel, errorChannel } -func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerIdResponse, params *ListOutgoingCallerIdParams, recordChannel chan ApiV2010OutgoingCallerId, errorChannel chan error) { +func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerId200Response, params *ListOutgoingCallerIdParams, recordChannel chan ApiV2010OutgoingCallerId, errorChannel chan error) { curRecord := 1 for response != nil { @@ -322,7 +321,7 @@ func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerIdRespon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListOutgoingCallerIdResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListOutgoingCallerId200Response) if err != nil { errorChannel <- err break @@ -330,14 +329,14 @@ func (c *ApiService) streamOutgoingCallerId(response *ListOutgoingCallerIdRespon break } - response = record.(*ListOutgoingCallerIdResponse) + response = record.(*ListOutgoingCallerId200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListOutgoingCallerIdResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListOutgoingCallerId200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -348,7 +347,7 @@ func (c *ApiService) getNextListOutgoingCallerIdResponse(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListOutgoingCallerIdResponse{} + ps := &ListOutgoingCallerId200Response{} 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 9f6c3e7b2..aa45e0e86 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) (*ListQueueResponse, error) { +func (c *ApiService) PageQueue(params *ListQueueParams, pageToken, pageNumber string) (*ListQueue200Response, 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 := &ListQueueResponse{} + ps := &ListQueue200Response{} 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 *ListQueueResponse, params *ListQueueParams, recordChannel chan ApiV2010Queue, errorChannel chan error) { +func (c *ApiService) streamQueue(response *ListQueue200Response, params *ListQueueParams, recordChannel chan ApiV2010Queue, errorChannel chan error) { curRecord := 1 for response != nil { @@ -268,7 +268,7 @@ func (c *ApiService) streamQueue(response *ListQueueResponse, params *ListQueueP } } - record, err := client.GetNext(c.baseURL, response, c.getNextListQueueResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListQueue200Response) if err != nil { errorChannel <- err break @@ -276,14 +276,14 @@ func (c *ApiService) streamQueue(response *ListQueueResponse, params *ListQueueP break } - response = record.(*ListQueueResponse) + response = record.(*ListQueue200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListQueueResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListQueue200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -294,7 +294,7 @@ func (c *ApiService) getNextListQueueResponse(nextPageUrl string) (interface{}, defer resp.Body.Close() - ps := &ListQueueResponse{} + ps := &ListQueue200Response{} 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 93a3f0b24..1fa85e954 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) (*ListMemberResponse, error) { +func (c *ApiService) PageMember(QueueSid string, params *ListMemberParams, pageToken, pageNumber string) (*ListMember200Response, 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 := &ListMemberResponse{} + ps := &ListMember200Response{} 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 *ListMemberResponse, params *ListMemberParams, recordChannel chan ApiV2010Member, errorChannel chan error) { +func (c *ApiService) streamMember(response *ListMember200Response, params *ListMemberParams, recordChannel chan ApiV2010Member, errorChannel chan error) { curRecord := 1 for response != nil { @@ -179,7 +179,7 @@ func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemb } } - record, err := client.GetNext(c.baseURL, response, c.getNextListMemberResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListMember200Response) if err != nil { errorChannel <- err break @@ -187,14 +187,14 @@ func (c *ApiService) streamMember(response *ListMemberResponse, params *ListMemb break } - response = record.(*ListMemberResponse) + response = record.(*ListMember200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListMemberResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListMember200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -205,7 +205,7 @@ func (c *ApiService) getNextListMemberResponse(nextPageUrl string) (interface{}, defer resp.Body.Close() - ps := &ListMemberResponse{} + ps := &ListMember200Response{} 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 cae717617..402ef3958 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) (*ListRecordingResponse, error) { +func (c *ApiService) PageRecording(params *ListRecordingParams, pageToken, pageNumber string) (*ListRecording200Response, 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 := &ListRecordingResponse{} + ps := &ListRecording200Response{} 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 *ListRecordingResponse, params *ListRecordingParams, recordChannel chan ApiV2010Recording, errorChannel chan error) { +func (c *ApiService) streamRecording(response *ListRecording200Response, params *ListRecordingParams, recordChannel chan ApiV2010Recording, errorChannel chan error) { curRecord := 1 for response != nil { @@ -276,7 +276,7 @@ func (c *ApiService) streamRecording(response *ListRecordingResponse, params *Li } } - record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecording200Response) if err != nil { errorChannel <- err break @@ -284,14 +284,14 @@ func (c *ApiService) streamRecording(response *ListRecordingResponse, params *Li break } - response = record.(*ListRecordingResponse) + response = record.(*ListRecording200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecording200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -302,7 +302,7 @@ func (c *ApiService) getNextListRecordingResponse(nextPageUrl string) (interface defer resp.Body.Close() - ps := &ListRecordingResponse{} + ps := &ListRecording200Response{} 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 69857f08e..d2249309a 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) (*ListRecordingAddOnResultResponse, error) { +func (c *ApiService) PageRecordingAddOnResult(ReferenceSid string, params *ListRecordingAddOnResultParams, pageToken, pageNumber string) (*ListRecordingAddOnResult200Response, 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 := &ListRecordingAddOnResultResponse{} + ps := &ListRecordingAddOnResult200Response{} 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 *ListRecordingAddOnResultResponse, params *ListRecordingAddOnResultParams, recordChannel chan ApiV2010RecordingAddOnResult, errorChannel chan error) { +func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResult200Response, 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.getNextListRecordingAddOnResultResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingAddOnResult200Response) if err != nil { errorChannel <- err break @@ -222,14 +222,14 @@ func (c *ApiService) streamRecordingAddOnResult(response *ListRecordingAddOnResu break } - response = record.(*ListRecordingAddOnResultResponse) + response = record.(*ListRecordingAddOnResult200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingAddOnResultResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingAddOnResult200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -240,7 +240,7 @@ func (c *ApiService) getNextListRecordingAddOnResultResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListRecordingAddOnResultResponse{} + ps := &ListRecordingAddOnResult200Response{} 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 e9738d49a..ccaa2141d 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) (*ListRecordingAddOnResultPayloadResponse, error) { +func (c *ApiService) PageRecordingAddOnResultPayload(ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams, pageToken, pageNumber string) (*ListRecordingAddOnResultPayload200Response, 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 := &ListRecordingAddOnResultPayloadResponse{} + ps := &ListRecordingAddOnResultPayload200Response{} 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 *ListRecordingAddOnResultPayloadResponse, params *ListRecordingAddOnResultPayloadParams, recordChannel chan ApiV2010RecordingAddOnResultPayload, errorChannel chan error) { +func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAddOnResultPayload200Response, 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.getNextListRecordingAddOnResultPayloadResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingAddOnResultPayload200Response) if err != nil { errorChannel <- err break @@ -225,14 +225,14 @@ func (c *ApiService) streamRecordingAddOnResultPayload(response *ListRecordingAd break } - response = record.(*ListRecordingAddOnResultPayloadResponse) + response = record.(*ListRecordingAddOnResultPayload200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingAddOnResultPayloadResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingAddOnResultPayload200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -243,7 +243,7 @@ func (c *ApiService) getNextListRecordingAddOnResultPayloadResponse(nextPageUrl defer resp.Body.Close() - ps := &ListRecordingAddOnResultPayloadResponse{} + ps := &ListRecordingAddOnResultPayload200Response{} 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 c1ca8d02e..ed0f23311 100644 --- a/rest/api/v2010/accounts_recordings_transcriptions.go +++ b/rest/api/v2010/accounts_recordings_transcriptions.go @@ -34,7 +34,6 @@ func (params *DeleteRecordingTranscriptionParams) SetPathAccountSid(PathAccountS return params } -// func (c *ApiService) DeleteRecordingTranscription(RecordingSid string, Sid string, params *DeleteRecordingTranscriptionParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -69,7 +68,6 @@ func (params *FetchRecordingTranscriptionParams) SetPathAccountSid(PathAccountSi return params } -// func (c *ApiService) FetchRecordingTranscription(RecordingSid string, Sid string, params *FetchRecordingTranscriptionParams) (*ApiV2010RecordingTranscription, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -122,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) (*ListRecordingTranscriptionResponse, error) { +func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *ListRecordingTranscriptionParams, pageToken, pageNumber string) (*ListRecordingTranscription200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" if params != nil && params.PathAccountSid != nil { @@ -153,7 +151,7 @@ func (c *ApiService) PageRecordingTranscription(RecordingSid string, params *Lis defer resp.Body.Close() - ps := &ListRecordingTranscriptionResponse{} + ps := &ListRecordingTranscription200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -199,7 +197,7 @@ func (c *ApiService) StreamRecordingTranscription(RecordingSid string, params *L return recordChannel, errorChannel } -func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscriptionResponse, params *ListRecordingTranscriptionParams, recordChannel chan ApiV2010RecordingTranscription, errorChannel chan error) { +func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscription200Response, params *ListRecordingTranscriptionParams, recordChannel chan ApiV2010RecordingTranscription, errorChannel chan error) { curRecord := 1 for response != nil { @@ -214,7 +212,7 @@ func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscr } } - record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingTranscriptionResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListRecordingTranscription200Response) if err != nil { errorChannel <- err break @@ -222,14 +220,14 @@ func (c *ApiService) streamRecordingTranscription(response *ListRecordingTranscr break } - response = record.(*ListRecordingTranscriptionResponse) + response = record.(*ListRecordingTranscription200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListRecordingTranscriptionResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListRecordingTranscription200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -240,7 +238,7 @@ func (c *ApiService) getNextListRecordingTranscriptionResponse(nextPageUrl strin defer resp.Body.Close() - ps := &ListRecordingTranscriptionResponse{} + ps := &ListRecordingTranscription200Response{} 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 dd1b18853..d4acaf366 100644 --- a/rest/api/v2010/accounts_signing_keys.go +++ b/rest/api/v2010/accounts_signing_keys.go @@ -82,7 +82,6 @@ func (params *DeleteSigningKeyParams) SetPathAccountSid(PathAccountSid string) * return params } -// func (c *ApiService) DeleteSigningKey(Sid string, params *DeleteSigningKeyParams) error { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -116,7 +115,6 @@ func (params *FetchSigningKeyParams) SetPathAccountSid(PathAccountSid string) *F return params } -// func (c *ApiService) FetchSigningKey(Sid string, params *FetchSigningKeyParams) (*ApiV2010SigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -168,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) (*ListSigningKeyResponse, error) { +func (c *ApiService) PageSigningKey(params *ListSigningKeyParams, pageToken, pageNumber string) (*ListSigningKey200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" if params != nil && params.PathAccountSid != nil { @@ -198,7 +196,7 @@ func (c *ApiService) PageSigningKey(params *ListSigningKeyParams, pageToken, pag defer resp.Body.Close() - ps := &ListSigningKeyResponse{} + ps := &ListSigningKey200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -244,7 +242,7 @@ func (c *ApiService) StreamSigningKey(params *ListSigningKeyParams) (chan ApiV20 return recordChannel, errorChannel } -func (c *ApiService) streamSigningKey(response *ListSigningKeyResponse, params *ListSigningKeyParams, recordChannel chan ApiV2010SigningKey, errorChannel chan error) { +func (c *ApiService) streamSigningKey(response *ListSigningKey200Response, params *ListSigningKeyParams, recordChannel chan ApiV2010SigningKey, errorChannel chan error) { curRecord := 1 for response != nil { @@ -259,7 +257,7 @@ func (c *ApiService) streamSigningKey(response *ListSigningKeyResponse, params * } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSigningKeyResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSigningKey200Response) if err != nil { errorChannel <- err break @@ -267,14 +265,14 @@ func (c *ApiService) streamSigningKey(response *ListSigningKeyResponse, params * break } - response = record.(*ListSigningKeyResponse) + response = record.(*ListSigningKey200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSigningKeyResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSigningKey200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -285,7 +283,7 @@ func (c *ApiService) getNextListSigningKeyResponse(nextPageUrl string) (interfac defer resp.Body.Close() - ps := &ListSigningKeyResponse{} + ps := &ListSigningKey200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -309,7 +307,6 @@ func (params *UpdateSigningKeyParams) SetFriendlyName(FriendlyName string) *Upda return params } -// func (c *ApiService) UpdateSigningKey(Sid string, params *UpdateSigningKeyParams) (*ApiV2010SigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" if params != nil && params.PathAccountSid != nil { diff --git a/rest/api/v2010/accounts_sip_credential_lists.go b/rest/api/v2010/accounts_sip_credential_lists.go index 17a523bc0..e04804294 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) (*ListSipCredentialListResponse, error) { +func (c *ApiService) PageSipCredentialList(params *ListSipCredentialListParams, pageToken, pageNumber string) (*ListSipCredentialList200Response, 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 := &ListSipCredentialListResponse{} + ps := &ListSipCredentialList200Response{} 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 *ListSipCredentialListResponse, params *ListSipCredentialListParams, recordChannel chan ApiV2010SipCredentialList, errorChannel chan error) { +func (c *ApiService) streamSipCredentialList(response *ListSipCredentialList200Response, params *ListSipCredentialListParams, recordChannel chan ApiV2010SipCredentialList, errorChannel chan error) { curRecord := 1 for response != nil { @@ -259,7 +259,7 @@ func (c *ApiService) streamSipCredentialList(response *ListSipCredentialListResp } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialListResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialList200Response) if err != nil { errorChannel <- err break @@ -267,14 +267,14 @@ func (c *ApiService) streamSipCredentialList(response *ListSipCredentialListResp break } - response = record.(*ListSipCredentialListResponse) + response = record.(*ListSipCredentialList200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipCredentialListResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipCredentialList200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -285,7 +285,7 @@ func (c *ApiService) getNextListSipCredentialListResponse(nextPageUrl string) (i defer resp.Body.Close() - ps := &ListSipCredentialListResponse{} + ps := &ListSipCredentialList200Response{} 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 e82f254f2..820238a34 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) (*ListSipCredentialResponse, error) { +func (c *ApiService) PageSipCredential(CredentialListSid string, params *ListSipCredentialParams, pageToken, pageNumber string) (*ListSipCredential200Response, 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 := &ListSipCredentialResponse{} + ps := &ListSipCredential200Response{} 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 *ListSipCredentialResponse, params *ListSipCredentialParams, recordChannel chan ApiV2010SipCredential, errorChannel chan error) { +func (c *ApiService) streamSipCredential(response *ListSipCredential200Response, params *ListSipCredentialParams, recordChannel chan ApiV2010SipCredential, errorChannel chan error) { curRecord := 1 for response != nil { @@ -272,7 +272,7 @@ func (c *ApiService) streamSipCredential(response *ListSipCredentialResponse, pa } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredential200Response) if err != nil { errorChannel <- err break @@ -280,14 +280,14 @@ func (c *ApiService) streamSipCredential(response *ListSipCredentialResponse, pa break } - response = record.(*ListSipCredentialResponse) + response = record.(*ListSipCredential200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipCredentialResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipCredential200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -298,7 +298,7 @@ func (c *ApiService) getNextListSipCredentialResponse(nextPageUrl string) (inter defer resp.Body.Close() - ps := &ListSipCredentialResponse{} + ps := &ListSipCredential200Response{} 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 e0868c6f0..afdeb0405 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) (*ListSipDomainResponse, error) { +func (c *ApiService) PageSipDomain(params *ListSipDomainParams, pageToken, pageNumber string) (*ListSipDomain200Response, 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 := &ListSipDomainResponse{} + ps := &ListSipDomain200Response{} 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 *ListSipDomainResponse, params *ListSipDomainParams, recordChannel chan ApiV2010SipDomain, errorChannel chan error) { +func (c *ApiService) streamSipDomain(response *ListSipDomain200Response, params *ListSipDomainParams, recordChannel chan ApiV2010SipDomain, errorChannel chan error) { curRecord := 1 for response != nil { @@ -367,7 +367,7 @@ func (c *ApiService) streamSipDomain(response *ListSipDomainResponse, params *Li } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipDomainResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipDomain200Response) if err != nil { errorChannel <- err break @@ -375,14 +375,14 @@ func (c *ApiService) streamSipDomain(response *ListSipDomainResponse, params *Li break } - response = record.(*ListSipDomainResponse) + response = record.(*ListSipDomain200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipDomainResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipDomain200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -393,7 +393,7 @@ func (c *ApiService) getNextListSipDomainResponse(nextPageUrl string) (interface defer resp.Body.Close() - ps := &ListSipDomainResponse{} + ps := &ListSipDomain200Response{} 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 f3d34690e..41afecbd2 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) (*ListSipAuthCallsCredentialListMappingResponse, error) { +func (c *ApiService) PageSipAuthCallsCredentialListMapping(DomainSid string, params *ListSipAuthCallsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsCredentialListMapping200Response, 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 := &ListSipAuthCallsCredentialListMappingResponse{} + ps := &ListSipAuthCallsCredentialListMapping200Response{} 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 *ListSipAuthCallsCredentialListMappingResponse, params *ListSipAuthCallsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthCallsCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAuthCallsCredentialListMapping200Response, 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.getNextListSipAuthCallsCredentialListMappingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthCallsCredentialListMapping200Response) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipAuthCallsCredentialListMapping(response *ListSipAu break } - response = record.(*ListSipAuthCallsCredentialListMappingResponse) + response = record.(*ListSipAuthCallsCredentialListMapping200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipAuthCallsCredentialListMappingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipAuthCallsCredentialListMapping200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipAuthCallsCredentialListMappingResponse(nextPa defer resp.Body.Close() - ps := &ListSipAuthCallsCredentialListMappingResponse{} + ps := &ListSipAuthCallsCredentialListMapping200Response{} 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 86daa24f0..f24f433c5 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) (*ListSipAuthCallsIpAccessControlListMappingResponse, error) { +func (c *ApiService) PageSipAuthCallsIpAccessControlListMapping(DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipAuthCallsIpAccessControlListMapping200Response, 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 := &ListSipAuthCallsIpAccessControlListMappingResponse{} + ps := &ListSipAuthCallsIpAccessControlListMapping200Response{} 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 *ListSipAuthCallsIpAccessControlListMappingResponse, params *ListSipAuthCallsIpAccessControlListMappingParams, recordChannel chan ApiV2010SipAuthCallsIpAccessControlListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *ListSipAuthCallsIpAccessControlListMapping200Response, 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.getNextListSipAuthCallsIpAccessControlListMappingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthCallsIpAccessControlListMapping200Response) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipAuthCallsIpAccessControlListMapping(response *List break } - response = record.(*ListSipAuthCallsIpAccessControlListMappingResponse) + response = record.(*ListSipAuthCallsIpAccessControlListMapping200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipAuthCallsIpAccessControlListMappingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipAuthCallsIpAccessControlListMapping200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipAuthCallsIpAccessControlListMappingResponse(n defer resp.Body.Close() - ps := &ListSipAuthCallsIpAccessControlListMappingResponse{} + ps := &ListSipAuthCallsIpAccessControlListMapping200Response{} 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 431e5099b..1069034f0 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) (*ListSipAuthRegistrationsCredentialListMappingResponse, error) { +func (c *ApiService) PageSipAuthRegistrationsCredentialListMapping(DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams, pageToken, pageNumber string) (*ListSipAuthRegistrationsCredentialListMapping200Response, 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 := &ListSipAuthRegistrationsCredentialListMappingResponse{} + ps := &ListSipAuthRegistrationsCredentialListMapping200Response{} 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 *ListSipAuthRegistrationsCredentialListMappingResponse, params *ListSipAuthRegistrationsCredentialListMappingParams, recordChannel chan ApiV2010SipAuthRegistrationsCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *ListSipAuthRegistrationsCredentialListMapping200Response, 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.getNextListSipAuthRegistrationsCredentialListMappingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipAuthRegistrationsCredentialListMapping200Response) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipAuthRegistrationsCredentialListMapping(response *L break } - response = record.(*ListSipAuthRegistrationsCredentialListMappingResponse) + response = record.(*ListSipAuthRegistrationsCredentialListMapping200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipAuthRegistrationsCredentialListMappingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipAuthRegistrationsCredentialListMapping200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipAuthRegistrationsCredentialListMappingRespons defer resp.Body.Close() - ps := &ListSipAuthRegistrationsCredentialListMappingResponse{} + ps := &ListSipAuthRegistrationsCredentialListMapping200Response{} 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 09ac9162e..3b19534f1 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) (*ListSipCredentialListMappingResponse, error) { +func (c *ApiService) PageSipCredentialListMapping(DomainSid string, params *ListSipCredentialListMappingParams, pageToken, pageNumber string) (*ListSipCredentialListMapping200Response, 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 := &ListSipCredentialListMappingResponse{} + ps := &ListSipCredentialListMapping200Response{} 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 *ListSipCredentialListMappingResponse, params *ListSipCredentialListMappingParams, recordChannel chan ApiV2010SipCredentialListMapping, errorChannel chan error) { +func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialListMapping200Response, 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.getNextListSipCredentialListMappingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipCredentialListMapping200Response) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipCredentialListMapping(response *ListSipCredentialL break } - response = record.(*ListSipCredentialListMappingResponse) + response = record.(*ListSipCredentialListMapping200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipCredentialListMappingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipCredentialListMapping200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipCredentialListMappingResponse(nextPageUrl str defer resp.Body.Close() - ps := &ListSipCredentialListMappingResponse{} + ps := &ListSipCredentialListMapping200Response{} 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 e42334eb7..32106eec4 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) (*ListSipIpAccessControlListMappingResponse, error) { +func (c *ApiService) PageSipIpAccessControlListMapping(DomainSid string, params *ListSipIpAccessControlListMappingParams, pageToken, pageNumber string) (*ListSipIpAccessControlListMapping200Response, 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 := &ListSipIpAccessControlListMappingResponse{} + ps := &ListSipIpAccessControlListMapping200Response{} 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 *ListSipIpAccessControlListMappingResponse, params *ListSipIpAccessControlListMappingParams, recordChannel chan ApiV2010SipIpAccessControlListMapping, errorChannel chan error) { +func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAccessControlListMapping200Response, 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.getNextListSipIpAccessControlListMappingResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAccessControlListMapping200Response) if err != nil { errorChannel <- err break @@ -271,14 +271,14 @@ func (c *ApiService) streamSipIpAccessControlListMapping(response *ListSipIpAcce break } - response = record.(*ListSipIpAccessControlListMappingResponse) + response = record.(*ListSipIpAccessControlListMapping200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipIpAccessControlListMappingResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipIpAccessControlListMapping200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -289,7 +289,7 @@ func (c *ApiService) getNextListSipIpAccessControlListMappingResponse(nextPageUr defer resp.Body.Close() - ps := &ListSipIpAccessControlListMappingResponse{} + ps := &ListSipIpAccessControlListMapping200Response{} 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 390bcfa25..dee60a45a 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) (*ListSipIpAccessControlListResponse, error) { +func (c *ApiService) PageSipIpAccessControlList(params *ListSipIpAccessControlListParams, pageToken, pageNumber string) (*ListSipIpAccessControlList200Response, 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 := &ListSipIpAccessControlListResponse{} + ps := &ListSipIpAccessControlList200Response{} 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 *ListSipIpAccessControlListResponse, params *ListSipIpAccessControlListParams, recordChannel chan ApiV2010SipIpAccessControlList, errorChannel chan error) { +func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessControlList200Response, 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.getNextListSipIpAccessControlListResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAccessControlList200Response) if err != nil { errorChannel <- err break @@ -267,14 +267,14 @@ func (c *ApiService) streamSipIpAccessControlList(response *ListSipIpAccessContr break } - response = record.(*ListSipIpAccessControlListResponse) + response = record.(*ListSipIpAccessControlList200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipIpAccessControlListResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipIpAccessControlList200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -285,7 +285,7 @@ func (c *ApiService) getNextListSipIpAccessControlListResponse(nextPageUrl strin defer resp.Body.Close() - ps := &ListSipIpAccessControlListResponse{} + ps := &ListSipIpAccessControlList200Response{} 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 0d92df5e6..fe0f32023 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) (*ListSipIpAddressResponse, error) { +func (c *ApiService) PageSipIpAddress(IpAccessControlListSid string, params *ListSipIpAddressParams, pageToken, pageNumber string) (*ListSipIpAddress200Response, 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 := &ListSipIpAddressResponse{} + ps := &ListSipIpAddress200Response{} 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 *ListSipIpAddressResponse, params *ListSipIpAddressParams, recordChannel chan ApiV2010SipIpAddress, errorChannel chan error) { +func (c *ApiService) streamSipIpAddress(response *ListSipIpAddress200Response, params *ListSipIpAddressParams, recordChannel chan ApiV2010SipIpAddress, errorChannel chan error) { curRecord := 1 for response != nil { @@ -281,7 +281,7 @@ func (c *ApiService) streamSipIpAddress(response *ListSipIpAddressResponse, para } } - record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAddressResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListSipIpAddress200Response) if err != nil { errorChannel <- err break @@ -289,14 +289,14 @@ func (c *ApiService) streamSipIpAddress(response *ListSipIpAddressResponse, para break } - response = record.(*ListSipIpAddressResponse) + response = record.(*ListSipIpAddress200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListSipIpAddressResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListSipIpAddress200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -307,7 +307,7 @@ func (c *ApiService) getNextListSipIpAddressResponse(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListSipIpAddressResponse{} + ps := &ListSipIpAddress200Response{} 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 efac7d190..08e3ac44f 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) (*ListShortCodeResponse, error) { +func (c *ApiService) PageShortCode(params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCode200Response, 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 := &ListShortCodeResponse{} + ps := &ListShortCode200Response{} 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 *ListShortCodeResponse, params *ListShortCodeParams, recordChannel chan ApiV2010ShortCode, errorChannel chan error) { +func (c *ApiService) streamShortCode(response *ListShortCode200Response, params *ListShortCodeParams, recordChannel chan ApiV2010ShortCode, errorChannel chan error) { curRecord := 1 for response != nil { @@ -195,7 +195,7 @@ func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *Li } } - record, err := client.GetNext(c.baseURL, response, c.getNextListShortCodeResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListShortCode200Response) if err != nil { errorChannel <- err break @@ -203,14 +203,14 @@ func (c *ApiService) streamShortCode(response *ListShortCodeResponse, params *Li break } - response = record.(*ListShortCodeResponse) + response = record.(*ListShortCode200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListShortCodeResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListShortCode200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -221,7 +221,7 @@ func (c *ApiService) getNextListShortCodeResponse(nextPageUrl string) (interface defer resp.Body.Close() - ps := &ListShortCodeResponse{} + ps := &ListShortCode200Response{} 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 c62183a14..4263a1be7 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) (*ListTranscriptionResponse, error) { +func (c *ApiService) PageTranscription(params *ListTranscriptionParams, pageToken, pageNumber string) (*ListTranscription200Response, 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 := &ListTranscriptionResponse{} + ps := &ListTranscription200Response{} 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 *ListTranscriptionResponse, params *ListTranscriptionParams, recordChannel chan ApiV2010Transcription, errorChannel chan error) { +func (c *ApiService) streamTranscription(response *ListTranscription200Response, params *ListTranscriptionParams, recordChannel chan ApiV2010Transcription, errorChannel chan error) { curRecord := 1 for response != nil { @@ -211,7 +211,7 @@ func (c *ApiService) streamTranscription(response *ListTranscriptionResponse, pa } } - record, err := client.GetNext(c.baseURL, response, c.getNextListTranscriptionResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListTranscription200Response) if err != nil { errorChannel <- err break @@ -219,14 +219,14 @@ func (c *ApiService) streamTranscription(response *ListTranscriptionResponse, pa break } - response = record.(*ListTranscriptionResponse) + response = record.(*ListTranscription200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListTranscriptionResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListTranscription200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -237,7 +237,7 @@ func (c *ApiService) getNextListTranscriptionResponse(nextPageUrl string) (inter defer resp.Body.Close() - ps := &ListTranscriptionResponse{} + ps := &ListTranscription200Response{} 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 d5ed51a3d..c31fa17d6 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) (*ListUsageRecordResponse, error) { +func (c *ApiService) PageUsageRecord(params *ListUsageRecordParams, pageToken, pageNumber string) (*ListUsageRecord200Response, 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 := &ListUsageRecordResponse{} + ps := &ListUsageRecord200Response{} 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 *ListUsageRecordResponse, params *ListUsageRecordParams, recordChannel chan ApiV2010UsageRecord, errorChannel chan error) { +func (c *ApiService) streamUsageRecord(response *ListUsageRecord200Response, params *ListUsageRecordParams, recordChannel chan ApiV2010UsageRecord, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecord200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecord(response *ListUsageRecordResponse, params break } - response = record.(*ListUsageRecordResponse) + response = record.(*ListUsageRecord200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecord200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordResponse(nextPageUrl string) (interfa defer resp.Body.Close() - ps := &ListUsageRecordResponse{} + ps := &ListUsageRecord200Response{} 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 2719f2426..7cba4090d 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) (*ListUsageRecordAllTimeResponse, error) { +func (c *ApiService) PageUsageRecordAllTime(params *ListUsageRecordAllTimeParams, pageToken, pageNumber string) (*ListUsageRecordAllTime200Response, 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 := &ListUsageRecordAllTimeResponse{} + ps := &ListUsageRecordAllTime200Response{} 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 *ListUsageRecordAllTimeResponse, params *ListUsageRecordAllTimeParams, recordChannel chan ApiV2010UsageRecordAllTime, errorChannel chan error) { +func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTime200Response, params *ListUsageRecordAllTimeParams, recordChannel chan ApiV2010UsageRecordAllTime, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTimeRe } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordAllTimeResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordAllTime200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordAllTime(response *ListUsageRecordAllTimeRe break } - response = record.(*ListUsageRecordAllTimeResponse) + response = record.(*ListUsageRecordAllTime200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordAllTimeResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordAllTime200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordAllTimeResponse(nextPageUrl string) ( defer resp.Body.Close() - ps := &ListUsageRecordAllTimeResponse{} + ps := &ListUsageRecordAllTime200Response{} 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 c27a64969..af6e3024a 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) (*ListUsageRecordDailyResponse, error) { +func (c *ApiService) PageUsageRecordDaily(params *ListUsageRecordDailyParams, pageToken, pageNumber string) (*ListUsageRecordDaily200Response, 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 := &ListUsageRecordDailyResponse{} + ps := &ListUsageRecordDaily200Response{} 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 *ListUsageRecordDailyResponse, params *ListUsageRecordDailyParams, recordChannel chan ApiV2010UsageRecordDaily, errorChannel chan error) { +func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDaily200Response, params *ListUsageRecordDailyParams, recordChannel chan ApiV2010UsageRecordDaily, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDailyRespon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordDailyResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordDaily200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordDaily(response *ListUsageRecordDailyRespon break } - response = record.(*ListUsageRecordDailyResponse) + response = record.(*ListUsageRecordDaily200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordDailyResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordDaily200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordDailyResponse(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListUsageRecordDailyResponse{} + ps := &ListUsageRecordDaily200Response{} 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 23ec9b62d..0a8b72e44 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) (*ListUsageRecordLastMonthResponse, error) { +func (c *ApiService) PageUsageRecordLastMonth(params *ListUsageRecordLastMonthParams, pageToken, pageNumber string) (*ListUsageRecordLastMonth200Response, 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 := &ListUsageRecordLastMonthResponse{} + ps := &ListUsageRecordLastMonth200Response{} 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 *ListUsageRecordLastMonthResponse, params *ListUsageRecordLastMonthParams, recordChannel chan ApiV2010UsageRecordLastMonth, errorChannel chan error) { +func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMonth200Response, 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.getNextListUsageRecordLastMonthResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordLastMonth200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordLastMonth(response *ListUsageRecordLastMon break } - response = record.(*ListUsageRecordLastMonthResponse) + response = record.(*ListUsageRecordLastMonth200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordLastMonthResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordLastMonth200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordLastMonthResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListUsageRecordLastMonthResponse{} + ps := &ListUsageRecordLastMonth200Response{} 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 82dc2e4ec..6ca373363 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) (*ListUsageRecordMonthlyResponse, error) { +func (c *ApiService) PageUsageRecordMonthly(params *ListUsageRecordMonthlyParams, pageToken, pageNumber string) (*ListUsageRecordMonthly200Response, 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 := &ListUsageRecordMonthlyResponse{} + ps := &ListUsageRecordMonthly200Response{} 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 *ListUsageRecordMonthlyResponse, params *ListUsageRecordMonthlyParams, recordChannel chan ApiV2010UsageRecordMonthly, errorChannel chan error) { +func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthly200Response, params *ListUsageRecordMonthlyParams, recordChannel chan ApiV2010UsageRecordMonthly, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthlyRe } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordMonthlyResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordMonthly200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordMonthly(response *ListUsageRecordMonthlyRe break } - response = record.(*ListUsageRecordMonthlyResponse) + response = record.(*ListUsageRecordMonthly200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordMonthlyResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordMonthly200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordMonthlyResponse(nextPageUrl string) ( defer resp.Body.Close() - ps := &ListUsageRecordMonthlyResponse{} + ps := &ListUsageRecordMonthly200Response{} 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 b3b79e816..61412d509 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) (*ListUsageRecordThisMonthResponse, error) { +func (c *ApiService) PageUsageRecordThisMonth(params *ListUsageRecordThisMonthParams, pageToken, pageNumber string) (*ListUsageRecordThisMonth200Response, 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 := &ListUsageRecordThisMonthResponse{} + ps := &ListUsageRecordThisMonth200Response{} 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 *ListUsageRecordThisMonthResponse, params *ListUsageRecordThisMonthParams, recordChannel chan ApiV2010UsageRecordThisMonth, errorChannel chan error) { +func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMonth200Response, 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.getNextListUsageRecordThisMonthResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordThisMonth200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordThisMonth(response *ListUsageRecordThisMon break } - response = record.(*ListUsageRecordThisMonthResponse) + response = record.(*ListUsageRecordThisMonth200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordThisMonthResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordThisMonth200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordThisMonthResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListUsageRecordThisMonthResponse{} + ps := &ListUsageRecordThisMonth200Response{} 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 f9ce2c74a..1e2cf3f06 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) (*ListUsageRecordTodayResponse, error) { +func (c *ApiService) PageUsageRecordToday(params *ListUsageRecordTodayParams, pageToken, pageNumber string) (*ListUsageRecordToday200Response, 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 := &ListUsageRecordTodayResponse{} + ps := &ListUsageRecordToday200Response{} 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 *ListUsageRecordTodayResponse, params *ListUsageRecordTodayParams, recordChannel chan ApiV2010UsageRecordToday, errorChannel chan error) { +func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordToday200Response, params *ListUsageRecordTodayParams, recordChannel chan ApiV2010UsageRecordToday, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordTodayRespon } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordTodayResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordToday200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordToday(response *ListUsageRecordTodayRespon break } - response = record.(*ListUsageRecordTodayResponse) + response = record.(*ListUsageRecordToday200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordTodayResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordToday200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordTodayResponse(nextPageUrl string) (in defer resp.Body.Close() - ps := &ListUsageRecordTodayResponse{} + ps := &ListUsageRecordToday200Response{} 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 e601fd804..a4a536c3b 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) (*ListUsageRecordYearlyResponse, error) { +func (c *ApiService) PageUsageRecordYearly(params *ListUsageRecordYearlyParams, pageToken, pageNumber string) (*ListUsageRecordYearly200Response, 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 := &ListUsageRecordYearlyResponse{} + ps := &ListUsageRecordYearly200Response{} 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 *ListUsageRecordYearlyResponse, params *ListUsageRecordYearlyParams, recordChannel chan ApiV2010UsageRecordYearly, errorChannel chan error) { +func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearly200Response, params *ListUsageRecordYearlyParams, recordChannel chan ApiV2010UsageRecordYearly, errorChannel chan error) { curRecord := 1 for response != nil { @@ -174,7 +174,7 @@ func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearlyResp } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYearlyResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYearly200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordYearly(response *ListUsageRecordYearlyResp break } - response = record.(*ListUsageRecordYearlyResponse) + response = record.(*ListUsageRecordYearly200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordYearlyResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordYearly200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordYearlyResponse(nextPageUrl string) (i defer resp.Body.Close() - ps := &ListUsageRecordYearlyResponse{} + ps := &ListUsageRecordYearly200Response{} 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 5293f7a19..d7e8d0141 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) (*ListUsageRecordYesterdayResponse, error) { +func (c *ApiService) PageUsageRecordYesterday(params *ListUsageRecordYesterdayParams, pageToken, pageNumber string) (*ListUsageRecordYesterday200Response, 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 := &ListUsageRecordYesterdayResponse{} + ps := &ListUsageRecordYesterday200Response{} 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 *ListUsageRecordYesterdayResponse, params *ListUsageRecordYesterdayParams, recordChannel chan ApiV2010UsageRecordYesterday, errorChannel chan error) { +func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterday200Response, 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.getNextListUsageRecordYesterdayResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageRecordYesterday200Response) if err != nil { errorChannel <- err break @@ -182,14 +182,14 @@ func (c *ApiService) streamUsageRecordYesterday(response *ListUsageRecordYesterd break } - response = record.(*ListUsageRecordYesterdayResponse) + response = record.(*ListUsageRecordYesterday200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageRecordYesterdayResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageRecordYesterday200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -200,7 +200,7 @@ func (c *ApiService) getNextListUsageRecordYesterdayResponse(nextPageUrl string) defer resp.Body.Close() - ps := &ListUsageRecordYesterdayResponse{} + ps := &ListUsageRecordYesterday200Response{} 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 da4333b3a..61fc26621 100644 --- a/rest/api/v2010/accounts_usage_triggers.go +++ b/rest/api/v2010/accounts_usage_triggers.go @@ -136,7 +136,6 @@ func (params *DeleteUsageTriggerParams) SetPathAccountSid(PathAccountSid string) return params } -// func (c *ApiService) DeleteUsageTrigger(Sid string, params *DeleteUsageTriggerParams) error { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" if params != nil && params.PathAccountSid != nil { @@ -240,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) (*ListUsageTriggerResponse, error) { +func (c *ApiService) PageUsageTrigger(params *ListUsageTriggerParams, pageToken, pageNumber string) (*ListUsageTrigger200Response, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" if params != nil && params.PathAccountSid != nil { @@ -279,7 +278,7 @@ func (c *ApiService) PageUsageTrigger(params *ListUsageTriggerParams, pageToken, defer resp.Body.Close() - ps := &ListUsageTriggerResponse{} + ps := &ListUsageTrigger200Response{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -325,7 +324,7 @@ func (c *ApiService) StreamUsageTrigger(params *ListUsageTriggerParams) (chan Ap return recordChannel, errorChannel } -func (c *ApiService) streamUsageTrigger(response *ListUsageTriggerResponse, params *ListUsageTriggerParams, recordChannel chan ApiV2010UsageTrigger, errorChannel chan error) { +func (c *ApiService) streamUsageTrigger(response *ListUsageTrigger200Response, params *ListUsageTriggerParams, recordChannel chan ApiV2010UsageTrigger, errorChannel chan error) { curRecord := 1 for response != nil { @@ -340,7 +339,7 @@ func (c *ApiService) streamUsageTrigger(response *ListUsageTriggerResponse, para } } - record, err := client.GetNext(c.baseURL, response, c.getNextListUsageTriggerResponse) + record, err := client.GetNext(c.baseURL, response, c.getNextListUsageTrigger200Response) if err != nil { errorChannel <- err break @@ -348,14 +347,14 @@ func (c *ApiService) streamUsageTrigger(response *ListUsageTriggerResponse, para break } - response = record.(*ListUsageTriggerResponse) + response = record.(*ListUsageTrigger200Response) } close(recordChannel) close(errorChannel) } -func (c *ApiService) getNextListUsageTriggerResponse(nextPageUrl string) (interface{}, error) { +func (c *ApiService) getNextListUsageTrigger200Response(nextPageUrl string) (interface{}, error) { if nextPageUrl == "" { return nil, nil } @@ -366,7 +365,7 @@ func (c *ApiService) getNextListUsageTriggerResponse(nextPageUrl string) (interf defer resp.Body.Close() - ps := &ListUsageTriggerResponse{} + ps := &ListUsageTrigger200Response{} 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 7663af185..f3aa9ad1e 100644 --- a/rest/api/v2010/docs/AccountsCallsApi.md +++ b/rest/api/v2010/docs/AccountsCallsApi.md @@ -197,11 +197,7 @@ Name | Type | Description **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. -**StartTimeBefore** | **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. -**StartTimeAfter** | **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. -**EndTimeBefore** | **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. -**EndTimeAfter** | **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. **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 ad8fba342..5dfa10106 100644 --- a/rest/api/v2010/docs/AccountsConferencesApi.md +++ b/rest/api/v2010/docs/AccountsConferencesApi.md @@ -74,11 +74,7 @@ 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 b26c045bf..3996f1008 100644 --- a/rest/api/v2010/docs/AccountsMessagesApi.md +++ b/rest/api/v2010/docs/AccountsMessagesApi.md @@ -34,8 +34,8 @@ Name | Type | Description **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) creating the Message resource. **To** | **string** | The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`. **StatusCallback** | **string** | The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). -**ApplicationSid** | **string** | The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. -**MaxPrice** | **float32** | The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`. +**ApplicationSid** | **string** | The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. +**MaxPrice** | **float32** | [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. **ProvideFeedback** | **bool** | Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. **Attempt** | **int** | Total number of attempts made (including this request) to send the message regardless of the provider used **ValidityPeriod** | **int** | The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) @@ -183,8 +183,6 @@ 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/ListAccount200Response.md b/rest/api/v2010/docs/ListAccount200Response.md new file mode 100644 index 000000000..d594c7d9f --- /dev/null +++ b/rest/api/v2010/docs/ListAccount200Response.md @@ -0,0 +1,19 @@ +# ListAccount200Response + +## Properties + +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/ListAccount200ResponseAllOf.md b/rest/api/v2010/docs/ListAccount200ResponseAllOf.md new file mode 100644 index 000000000..da001310a --- /dev/null +++ b/rest/api/v2010/docs/ListAccount200ResponseAllOf.md @@ -0,0 +1,18 @@ +# ListAccount200ResponseAllOf + +## Properties + +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] + +[[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 8583afac0..e6a3c8e00 100644 --- a/rest/api/v2010/docs/ListAccountResponse.md +++ b/rest/api/v2010/docs/ListAccountResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Accounts** | [**[]ApiV2010Account**](ApiV2010Account.md) | |[optional] -**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] [[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/ListAddress200Response.md b/rest/api/v2010/docs/ListAddress200Response.md new file mode 100644 index 000000000..80d84442b --- /dev/null +++ b/rest/api/v2010/docs/ListAddress200Response.md @@ -0,0 +1,19 @@ +# ListAddress200Response + +## Properties + +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/ListAddressResponse.md b/rest/api/v2010/docs/ListAddressResponse.md index ba1f9c76d..8ce768b2a 100644 --- a/rest/api/v2010/docs/ListAddressResponse.md +++ b/rest/api/v2010/docs/ListAddressResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Addresses** | [**[]ApiV2010Address**](ApiV2010Address.md) | |[optional] -**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] [[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/ListApplication200Response.md b/rest/api/v2010/docs/ListApplication200Response.md new file mode 100644 index 000000000..b74b5b6c9 --- /dev/null +++ b/rest/api/v2010/docs/ListApplication200Response.md @@ -0,0 +1,19 @@ +# ListApplication200Response + +## Properties + +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/ListApplicationResponse.md b/rest/api/v2010/docs/ListApplicationResponse.md index 5b79ec971..2bb189484 100644 --- a/rest/api/v2010/docs/ListApplicationResponse.md +++ b/rest/api/v2010/docs/ListApplicationResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Applications** | [**[]ApiV2010Application**](ApiV2010Application.md) | |[optional] -**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] [[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/ListAuthorizedConnectApp200Response.md b/rest/api/v2010/docs/ListAuthorizedConnectApp200Response.md new file mode 100644 index 000000000..c6e62c5fd --- /dev/null +++ b/rest/api/v2010/docs/ListAuthorizedConnectApp200Response.md @@ -0,0 +1,19 @@ +# ListAuthorizedConnectApp200Response + +## Properties + +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/ListAuthorizedConnectAppResponse.md b/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md index cd10fe821..c5fb00bbb 100644 --- a/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md +++ b/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AuthorizedConnectApps** | [**[]ApiV2010AuthorizedConnectApp**](ApiV2010AuthorizedConnectApp.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberCountry200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberCountry200Response.md new file mode 100644 index 000000000..d9ee018af --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberCountry200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberCountry200Response + +## Properties + +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/ListAvailablePhoneNumberCountryResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md index e4c88661e..a59c857bd 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Countries** | [**[]ApiV2010AvailablePhoneNumberCountry**](ApiV2010AvailablePhoneNumberCountry.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberLocal200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberLocal200Response.md new file mode 100644 index 000000000..af0e36725 --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberLocal200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberLocal200Response + +## Properties + +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/ListAvailablePhoneNumberLocalResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md index dd1c41695..205e18881 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberLocal**](ApiV2010AvailablePhoneNumberLocal.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberMachineToMachine200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachine200Response.md new file mode 100644 index 000000000..832bda62b --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachine200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberMachineToMachine200Response + +## Properties + +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/ListAvailablePhoneNumberMachineToMachineResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md index 64b39d024..57e9aaec6 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberMachineToMachine**](ApiV2010AvailablePhoneNumberMachineToMachine.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberMobile200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMobile200Response.md new file mode 100644 index 000000000..c560361ac --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMobile200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberMobile200Response + +## Properties + +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/ListAvailablePhoneNumberMobileResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md index 5a186753a..aac528f74 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberMobile**](ApiV2010AvailablePhoneNumberMobile.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberNational200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberNational200Response.md new file mode 100644 index 000000000..a07c644b0 --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberNational200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberNational200Response + +## Properties + +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/ListAvailablePhoneNumberNationalResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md index 6843e6cdf..da7940cc6 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberNational**](ApiV2010AvailablePhoneNumberNational.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberSharedCost200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCost200Response.md new file mode 100644 index 000000000..d0d9c5835 --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCost200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberSharedCost200Response + +## Properties + +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/ListAvailablePhoneNumberSharedCostResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md index 9e7c1e540..d478f1678 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberSharedCost**](ApiV2010AvailablePhoneNumberSharedCost.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberTollFree200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFree200Response.md new file mode 100644 index 000000000..71808cf7b --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFree200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberTollFree200Response + +## Properties + +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/ListAvailablePhoneNumberTollFreeResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md index f3b5babda..56e9d5c17 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberTollFree**](ApiV2010AvailablePhoneNumberTollFree.md) | |[optional] -**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] [[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/ListAvailablePhoneNumberVoip200Response.md b/rest/api/v2010/docs/ListAvailablePhoneNumberVoip200Response.md new file mode 100644 index 000000000..fda814da4 --- /dev/null +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberVoip200Response.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberVoip200Response + +## Properties + +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/ListAvailablePhoneNumberVoipResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md index c91b53f8e..5ffd2b60b 100644 --- a/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailablePhoneNumbers** | [**[]ApiV2010AvailablePhoneNumberVoip**](ApiV2010AvailablePhoneNumberVoip.md) | |[optional] -**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] [[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/ListCall200Response.md b/rest/api/v2010/docs/ListCall200Response.md new file mode 100644 index 000000000..5a904f20c --- /dev/null +++ b/rest/api/v2010/docs/ListCall200Response.md @@ -0,0 +1,19 @@ +# ListCall200Response + +## Properties + +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/ListCallEvent200Response.md b/rest/api/v2010/docs/ListCallEvent200Response.md new file mode 100644 index 000000000..d978e1f80 --- /dev/null +++ b/rest/api/v2010/docs/ListCallEvent200Response.md @@ -0,0 +1,19 @@ +# ListCallEvent200Response + +## Properties + +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/ListCallEventResponse.md b/rest/api/v2010/docs/ListCallEventResponse.md index 9e1911973..793e6ed97 100644 --- a/rest/api/v2010/docs/ListCallEventResponse.md +++ b/rest/api/v2010/docs/ListCallEventResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Events** | [**[]ApiV2010CallEvent**](ApiV2010CallEvent.md) | |[optional] -**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] [[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/ListCallNotification200Response.md b/rest/api/v2010/docs/ListCallNotification200Response.md new file mode 100644 index 000000000..e8780feaa --- /dev/null +++ b/rest/api/v2010/docs/ListCallNotification200Response.md @@ -0,0 +1,19 @@ +# ListCallNotification200Response + +## Properties + +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/ListCallNotificationResponse.md b/rest/api/v2010/docs/ListCallNotificationResponse.md index 1b1cdf266..87efec158 100644 --- a/rest/api/v2010/docs/ListCallNotificationResponse.md +++ b/rest/api/v2010/docs/ListCallNotificationResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Notifications** | [**[]ApiV2010CallNotification**](ApiV2010CallNotification.md) | |[optional] -**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] [[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/ListCallRecording200Response.md b/rest/api/v2010/docs/ListCallRecording200Response.md new file mode 100644 index 000000000..c6cefc9d7 --- /dev/null +++ b/rest/api/v2010/docs/ListCallRecording200Response.md @@ -0,0 +1,19 @@ +# ListCallRecording200Response + +## Properties + +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/ListCallRecordingResponse.md b/rest/api/v2010/docs/ListCallRecordingResponse.md index a0db218d3..615ba5b39 100644 --- a/rest/api/v2010/docs/ListCallRecordingResponse.md +++ b/rest/api/v2010/docs/ListCallRecordingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Recordings** | [**[]ApiV2010CallRecording**](ApiV2010CallRecording.md) | |[optional] -**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] [[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 9f346bc47..a917dd8e4 100644 --- a/rest/api/v2010/docs/ListCallResponse.md +++ b/rest/api/v2010/docs/ListCallResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Calls** | [**[]ApiV2010Call**](ApiV2010Call.md) | |[optional] -**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] [[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/ListConference200Response.md b/rest/api/v2010/docs/ListConference200Response.md new file mode 100644 index 000000000..97e731704 --- /dev/null +++ b/rest/api/v2010/docs/ListConference200Response.md @@ -0,0 +1,19 @@ +# ListConference200Response + +## Properties + +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/ListConferenceRecording200Response.md b/rest/api/v2010/docs/ListConferenceRecording200Response.md new file mode 100644 index 000000000..8dd6328ad --- /dev/null +++ b/rest/api/v2010/docs/ListConferenceRecording200Response.md @@ -0,0 +1,19 @@ +# ListConferenceRecording200Response + +## Properties + +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/ListConferenceRecordingResponse.md b/rest/api/v2010/docs/ListConferenceRecordingResponse.md index afb481967..b770d73de 100644 --- a/rest/api/v2010/docs/ListConferenceRecordingResponse.md +++ b/rest/api/v2010/docs/ListConferenceRecordingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Recordings** | [**[]ApiV2010ConferenceRecording**](ApiV2010ConferenceRecording.md) | |[optional] -**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] [[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 b4072c544..27af5be73 100644 --- a/rest/api/v2010/docs/ListConferenceResponse.md +++ b/rest/api/v2010/docs/ListConferenceResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Conferences** | [**[]ApiV2010Conference**](ApiV2010Conference.md) | |[optional] -**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] [[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/ListConnectApp200Response.md b/rest/api/v2010/docs/ListConnectApp200Response.md new file mode 100644 index 000000000..956f03f67 --- /dev/null +++ b/rest/api/v2010/docs/ListConnectApp200Response.md @@ -0,0 +1,19 @@ +# ListConnectApp200Response + +## Properties + +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/ListConnectAppResponse.md b/rest/api/v2010/docs/ListConnectAppResponse.md index 5cc1f66e5..b6f04bb19 100644 --- a/rest/api/v2010/docs/ListConnectAppResponse.md +++ b/rest/api/v2010/docs/ListConnectAppResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConnectApps** | [**[]ApiV2010ConnectApp**](ApiV2010ConnectApp.md) | |[optional] -**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] [[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/ListDependentPhoneNumber200Response.md b/rest/api/v2010/docs/ListDependentPhoneNumber200Response.md new file mode 100644 index 000000000..e620dbb76 --- /dev/null +++ b/rest/api/v2010/docs/ListDependentPhoneNumber200Response.md @@ -0,0 +1,19 @@ +# ListDependentPhoneNumber200Response + +## Properties + +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/ListDependentPhoneNumberResponse.md b/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md index d2685e0c6..111ef25c9 100644 --- a/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md +++ b/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DependentPhoneNumbers** | [**[]ApiV2010DependentPhoneNumber**](ApiV2010DependentPhoneNumber.md) | |[optional] -**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] [[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/ListIncomingPhoneNumber200Response.md b/rest/api/v2010/docs/ListIncomingPhoneNumber200Response.md new file mode 100644 index 000000000..50058f710 --- /dev/null +++ b/rest/api/v2010/docs/ListIncomingPhoneNumber200Response.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumber200Response + +## Properties + +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/ListIncomingPhoneNumberAssignedAddOn200Response.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOn200Response.md new file mode 100644 index 000000000..ad44ade81 --- /dev/null +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOn200Response.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberAssignedAddOn200Response + +## Properties + +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/ListIncomingPhoneNumberAssignedAddOnExtension200Response.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtension200Response.md new file mode 100644 index 000000000..7d90c2b78 --- /dev/null +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtension200Response.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberAssignedAddOnExtension200Response + +## Properties + +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/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md index 599e88c54..6c801e56a 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Extensions** | [**[]ApiV2010IncomingPhoneNumberAssignedAddOnExtension**](ApiV2010IncomingPhoneNumberAssignedAddOnExtension.md) | |[optional] -**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] [[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 941ec5a40..3c837a67c 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AssignedAddOns** | [**[]ApiV2010IncomingPhoneNumberAssignedAddOn**](ApiV2010IncomingPhoneNumberAssignedAddOn.md) | |[optional] -**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] [[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/ListIncomingPhoneNumberLocal200Response.md b/rest/api/v2010/docs/ListIncomingPhoneNumberLocal200Response.md new file mode 100644 index 000000000..07143474c --- /dev/null +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberLocal200Response.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberLocal200Response + +## Properties + +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/ListIncomingPhoneNumberLocalResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md index c61aa508c..b99c4929f 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumberLocal**](ApiV2010IncomingPhoneNumberLocal.md) | |[optional] -**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] [[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/ListIncomingPhoneNumberMobile200Response.md b/rest/api/v2010/docs/ListIncomingPhoneNumberMobile200Response.md new file mode 100644 index 000000000..382559b30 --- /dev/null +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberMobile200Response.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberMobile200Response + +## Properties + +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/ListIncomingPhoneNumberMobileResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md index 656059bf1..05139c706 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumberMobile**](ApiV2010IncomingPhoneNumberMobile.md) | |[optional] -**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] [[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 55ff62dc5..f121b0ddc 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumber**](ApiV2010IncomingPhoneNumber.md) | |[optional] -**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] [[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/ListIncomingPhoneNumberTollFree200Response.md b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFree200Response.md new file mode 100644 index 000000000..5275b487a --- /dev/null +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFree200Response.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberTollFree200Response + +## Properties + +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/ListIncomingPhoneNumberTollFreeResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md index 7aac66dab..3d4cc587d 100644 --- a/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IncomingPhoneNumbers** | [**[]ApiV2010IncomingPhoneNumberTollFree**](ApiV2010IncomingPhoneNumberTollFree.md) | |[optional] -**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] [[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/ListKey200Response.md b/rest/api/v2010/docs/ListKey200Response.md new file mode 100644 index 000000000..77e3c2a99 --- /dev/null +++ b/rest/api/v2010/docs/ListKey200Response.md @@ -0,0 +1,19 @@ +# ListKey200Response + +## Properties + +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/ListKeyResponse.md b/rest/api/v2010/docs/ListKeyResponse.md index dadacd46e..ec9d7e138 100644 --- a/rest/api/v2010/docs/ListKeyResponse.md +++ b/rest/api/v2010/docs/ListKeyResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Keys** | [**[]ApiV2010Key**](ApiV2010Key.md) | |[optional] -**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] [[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/ListMedia200Response.md b/rest/api/v2010/docs/ListMedia200Response.md new file mode 100644 index 000000000..53c1fa2e9 --- /dev/null +++ b/rest/api/v2010/docs/ListMedia200Response.md @@ -0,0 +1,19 @@ +# ListMedia200Response + +## Properties + +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/ListMediaResponse.md b/rest/api/v2010/docs/ListMediaResponse.md index c639f1c2e..2304bf156 100644 --- a/rest/api/v2010/docs/ListMediaResponse.md +++ b/rest/api/v2010/docs/ListMediaResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MediaList** | [**[]ApiV2010Media**](ApiV2010Media.md) | |[optional] -**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] [[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/ListMember200Response.md b/rest/api/v2010/docs/ListMember200Response.md new file mode 100644 index 000000000..c7f6a5152 --- /dev/null +++ b/rest/api/v2010/docs/ListMember200Response.md @@ -0,0 +1,19 @@ +# ListMember200Response + +## Properties + +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/ListMemberResponse.md b/rest/api/v2010/docs/ListMemberResponse.md index f852d57c0..e6940c29d 100644 --- a/rest/api/v2010/docs/ListMemberResponse.md +++ b/rest/api/v2010/docs/ListMemberResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **QueueMembers** | [**[]ApiV2010Member**](ApiV2010Member.md) | |[optional] -**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] [[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/ListMessage200Response.md b/rest/api/v2010/docs/ListMessage200Response.md new file mode 100644 index 000000000..09f9fcfe9 --- /dev/null +++ b/rest/api/v2010/docs/ListMessage200Response.md @@ -0,0 +1,19 @@ +# ListMessage200Response + +## Properties + +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/ListMessageResponse.md b/rest/api/v2010/docs/ListMessageResponse.md index 4509b98ae..3661913c8 100644 --- a/rest/api/v2010/docs/ListMessageResponse.md +++ b/rest/api/v2010/docs/ListMessageResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Messages** | [**[]ApiV2010Message**](ApiV2010Message.md) | |[optional] -**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] [[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/ListNotification200Response.md b/rest/api/v2010/docs/ListNotification200Response.md new file mode 100644 index 000000000..78329ec4f --- /dev/null +++ b/rest/api/v2010/docs/ListNotification200Response.md @@ -0,0 +1,19 @@ +# ListNotification200Response + +## Properties + +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/ListNotificationResponse.md b/rest/api/v2010/docs/ListNotificationResponse.md index e1fa75b9a..fb9ff98c6 100644 --- a/rest/api/v2010/docs/ListNotificationResponse.md +++ b/rest/api/v2010/docs/ListNotificationResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Notifications** | [**[]ApiV2010Notification**](ApiV2010Notification.md) | |[optional] -**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] [[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/ListOutgoingCallerId200Response.md b/rest/api/v2010/docs/ListOutgoingCallerId200Response.md new file mode 100644 index 000000000..1e9ba67d2 --- /dev/null +++ b/rest/api/v2010/docs/ListOutgoingCallerId200Response.md @@ -0,0 +1,19 @@ +# ListOutgoingCallerId200Response + +## Properties + +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/ListOutgoingCallerIdResponse.md b/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md index 23197daf6..cdd919a4b 100644 --- a/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md +++ b/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **OutgoingCallerIds** | [**[]ApiV2010OutgoingCallerId**](ApiV2010OutgoingCallerId.md) | |[optional] -**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] [[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/ListParticipant200Response.md b/rest/api/v2010/docs/ListParticipant200Response.md new file mode 100644 index 000000000..3414e7273 --- /dev/null +++ b/rest/api/v2010/docs/ListParticipant200Response.md @@ -0,0 +1,19 @@ +# ListParticipant200Response + +## Properties + +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/ListParticipantResponse.md b/rest/api/v2010/docs/ListParticipantResponse.md index 66c4f739d..97008441c 100644 --- a/rest/api/v2010/docs/ListParticipantResponse.md +++ b/rest/api/v2010/docs/ListParticipantResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Participants** | [**[]ApiV2010Participant**](ApiV2010Participant.md) | |[optional] -**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] [[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/ListQueue200Response.md b/rest/api/v2010/docs/ListQueue200Response.md new file mode 100644 index 000000000..45e468bfd --- /dev/null +++ b/rest/api/v2010/docs/ListQueue200Response.md @@ -0,0 +1,19 @@ +# ListQueue200Response + +## Properties + +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/ListQueueResponse.md b/rest/api/v2010/docs/ListQueueResponse.md index 7ef1364a8..85a3e4780 100644 --- a/rest/api/v2010/docs/ListQueueResponse.md +++ b/rest/api/v2010/docs/ListQueueResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Queues** | [**[]ApiV2010Queue**](ApiV2010Queue.md) | |[optional] -**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] [[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/ListRecording200Response.md b/rest/api/v2010/docs/ListRecording200Response.md new file mode 100644 index 000000000..044a2f1aa --- /dev/null +++ b/rest/api/v2010/docs/ListRecording200Response.md @@ -0,0 +1,19 @@ +# ListRecording200Response + +## Properties + +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/ListRecordingAddOnResult200Response.md b/rest/api/v2010/docs/ListRecordingAddOnResult200Response.md new file mode 100644 index 000000000..cf7634b42 --- /dev/null +++ b/rest/api/v2010/docs/ListRecordingAddOnResult200Response.md @@ -0,0 +1,19 @@ +# ListRecordingAddOnResult200Response + +## Properties + +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/ListRecordingAddOnResultPayload200Response.md b/rest/api/v2010/docs/ListRecordingAddOnResultPayload200Response.md new file mode 100644 index 000000000..072bb9e0f --- /dev/null +++ b/rest/api/v2010/docs/ListRecordingAddOnResultPayload200Response.md @@ -0,0 +1,19 @@ +# ListRecordingAddOnResultPayload200Response + +## Properties + +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/ListRecordingAddOnResultPayloadResponse.md b/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md index 567d1c870..5a72717bf 100644 --- a/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md +++ b/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Payloads** | [**[]ApiV2010RecordingAddOnResultPayload**](ApiV2010RecordingAddOnResultPayload.md) | |[optional] -**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] [[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 4a90f6eea..67341e14f 100644 --- a/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md +++ b/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AddOnResults** | [**[]ApiV2010RecordingAddOnResult**](ApiV2010RecordingAddOnResult.md) | |[optional] -**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] [[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 75121fbae..260ed3f81 100644 --- a/rest/api/v2010/docs/ListRecordingResponse.md +++ b/rest/api/v2010/docs/ListRecordingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Recordings** | [**[]ApiV2010Recording**](ApiV2010Recording.md) | |[optional] -**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] [[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/ListRecordingTranscription200Response.md b/rest/api/v2010/docs/ListRecordingTranscription200Response.md new file mode 100644 index 000000000..6303cdc9a --- /dev/null +++ b/rest/api/v2010/docs/ListRecordingTranscription200Response.md @@ -0,0 +1,19 @@ +# ListRecordingTranscription200Response + +## Properties + +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/ListRecordingTranscriptionResponse.md b/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md index 9c30747bc..63bd727a4 100644 --- a/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md +++ b/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Transcriptions** | [**[]ApiV2010RecordingTranscription**](ApiV2010RecordingTranscription.md) | |[optional] -**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] [[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/ListShortCode200Response.md b/rest/api/v2010/docs/ListShortCode200Response.md new file mode 100644 index 000000000..905e27af6 --- /dev/null +++ b/rest/api/v2010/docs/ListShortCode200Response.md @@ -0,0 +1,19 @@ +# ListShortCode200Response + +## Properties + +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/ListShortCodeResponse.md b/rest/api/v2010/docs/ListShortCodeResponse.md index 99b0ea7e9..dd7d8b7c3 100644 --- a/rest/api/v2010/docs/ListShortCodeResponse.md +++ b/rest/api/v2010/docs/ListShortCodeResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ShortCodes** | [**[]ApiV2010ShortCode**](ApiV2010ShortCode.md) | |[optional] -**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] [[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/ListSigningKey200Response.md b/rest/api/v2010/docs/ListSigningKey200Response.md new file mode 100644 index 000000000..124d3d473 --- /dev/null +++ b/rest/api/v2010/docs/ListSigningKey200Response.md @@ -0,0 +1,19 @@ +# ListSigningKey200Response + +## Properties + +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/ListSigningKeyResponse.md b/rest/api/v2010/docs/ListSigningKeyResponse.md index 9aaed2ac3..c3f98c7d2 100644 --- a/rest/api/v2010/docs/ListSigningKeyResponse.md +++ b/rest/api/v2010/docs/ListSigningKeyResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SigningKeys** | [**[]ApiV2010SigningKey**](ApiV2010SigningKey.md) | |[optional] -**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] [[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/ListSipAuthCallsCredentialListMapping200Response.md b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMapping200Response.md new file mode 100644 index 000000000..af0e77476 --- /dev/null +++ b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMapping200Response.md @@ -0,0 +1,19 @@ +# ListSipAuthCallsCredentialListMapping200Response + +## Properties + +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/ListSipAuthCallsCredentialListMappingResponse.md b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md index 52af20198..6bd9d82c8 100644 --- a/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Contents** | [**[]ApiV2010SipAuthCallsCredentialListMapping**](ApiV2010SipAuthCallsCredentialListMapping.md) | |[optional] -**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] [[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/ListSipAuthCallsIpAccessControlListMapping200Response.md b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMapping200Response.md new file mode 100644 index 000000000..ac82690fb --- /dev/null +++ b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMapping200Response.md @@ -0,0 +1,19 @@ +# ListSipAuthCallsIpAccessControlListMapping200Response + +## Properties + +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/ListSipAuthCallsIpAccessControlListMappingResponse.md b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md index 04901fec1..3ce1a2001 100644 --- a/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Contents** | [**[]ApiV2010SipAuthCallsIpAccessControlListMapping**](ApiV2010SipAuthCallsIpAccessControlListMapping.md) | |[optional] -**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] [[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/ListSipAuthRegistrationsCredentialListMapping200Response.md b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMapping200Response.md new file mode 100644 index 000000000..8929f0ce2 --- /dev/null +++ b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMapping200Response.md @@ -0,0 +1,19 @@ +# ListSipAuthRegistrationsCredentialListMapping200Response + +## Properties + +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/ListSipAuthRegistrationsCredentialListMappingResponse.md b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md index cd3ba7923..3b666dba7 100644 --- a/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Contents** | [**[]ApiV2010SipAuthRegistrationsCredentialListMapping**](ApiV2010SipAuthRegistrationsCredentialListMapping.md) | |[optional] -**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] [[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/ListSipCredential200Response.md b/rest/api/v2010/docs/ListSipCredential200Response.md new file mode 100644 index 000000000..45033dd57 --- /dev/null +++ b/rest/api/v2010/docs/ListSipCredential200Response.md @@ -0,0 +1,19 @@ +# ListSipCredential200Response + +## Properties + +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/ListSipCredentialList200Response.md b/rest/api/v2010/docs/ListSipCredentialList200Response.md new file mode 100644 index 000000000..0573652f6 --- /dev/null +++ b/rest/api/v2010/docs/ListSipCredentialList200Response.md @@ -0,0 +1,19 @@ +# ListSipCredentialList200Response + +## Properties + +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/ListSipCredentialListMapping200Response.md b/rest/api/v2010/docs/ListSipCredentialListMapping200Response.md new file mode 100644 index 000000000..422199ac2 --- /dev/null +++ b/rest/api/v2010/docs/ListSipCredentialListMapping200Response.md @@ -0,0 +1,19 @@ +# ListSipCredentialListMapping200Response + +## Properties + +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/ListSipCredentialListMappingResponse.md b/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md index 1b1054f75..ee4d3834a 100644 --- a/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CredentialListMappings** | [**[]ApiV2010SipCredentialListMapping**](ApiV2010SipCredentialListMapping.md) | |[optional] -**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] [[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 73fde3257..3fffc9f82 100644 --- a/rest/api/v2010/docs/ListSipCredentialListResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialListResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CredentialLists** | [**[]ApiV2010SipCredentialList**](ApiV2010SipCredentialList.md) | |[optional] -**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] [[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 cc6116732..e33491550 100644 --- a/rest/api/v2010/docs/ListSipCredentialResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]ApiV2010SipCredential**](ApiV2010SipCredential.md) | |[optional] -**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] [[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/ListSipDomain200Response.md b/rest/api/v2010/docs/ListSipDomain200Response.md new file mode 100644 index 000000000..40775aa76 --- /dev/null +++ b/rest/api/v2010/docs/ListSipDomain200Response.md @@ -0,0 +1,19 @@ +# ListSipDomain200Response + +## Properties + +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/ListSipDomainResponse.md b/rest/api/v2010/docs/ListSipDomainResponse.md index 0a136c0e3..b190ef19b 100644 --- a/rest/api/v2010/docs/ListSipDomainResponse.md +++ b/rest/api/v2010/docs/ListSipDomainResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Domains** | [**[]ApiV2010SipDomain**](ApiV2010SipDomain.md) | |[optional] -**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] [[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/ListSipIpAccessControlList200Response.md b/rest/api/v2010/docs/ListSipIpAccessControlList200Response.md new file mode 100644 index 000000000..a73383643 --- /dev/null +++ b/rest/api/v2010/docs/ListSipIpAccessControlList200Response.md @@ -0,0 +1,19 @@ +# ListSipIpAccessControlList200Response + +## Properties + +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/ListSipIpAccessControlListMapping200Response.md b/rest/api/v2010/docs/ListSipIpAccessControlListMapping200Response.md new file mode 100644 index 000000000..c603a9726 --- /dev/null +++ b/rest/api/v2010/docs/ListSipIpAccessControlListMapping200Response.md @@ -0,0 +1,19 @@ +# ListSipIpAccessControlListMapping200Response + +## Properties + +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/ListSipIpAccessControlListMappingResponse.md b/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md index 5110f4680..9a80f3cf2 100644 --- a/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md +++ b/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IpAccessControlListMappings** | [**[]ApiV2010SipIpAccessControlListMapping**](ApiV2010SipIpAccessControlListMapping.md) | |[optional] -**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] [[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 3d86a4003..15f958cc9 100644 --- a/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md +++ b/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IpAccessControlLists** | [**[]ApiV2010SipIpAccessControlList**](ApiV2010SipIpAccessControlList.md) | |[optional] -**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] [[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/ListSipIpAddress200Response.md b/rest/api/v2010/docs/ListSipIpAddress200Response.md new file mode 100644 index 000000000..6a0055054 --- /dev/null +++ b/rest/api/v2010/docs/ListSipIpAddress200Response.md @@ -0,0 +1,19 @@ +# ListSipIpAddress200Response + +## Properties + +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/ListSipIpAddressResponse.md b/rest/api/v2010/docs/ListSipIpAddressResponse.md index 888b3ffb2..b2cc77bcc 100644 --- a/rest/api/v2010/docs/ListSipIpAddressResponse.md +++ b/rest/api/v2010/docs/ListSipIpAddressResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IpAddresses** | [**[]ApiV2010SipIpAddress**](ApiV2010SipIpAddress.md) | |[optional] -**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] [[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/ListTranscription200Response.md b/rest/api/v2010/docs/ListTranscription200Response.md new file mode 100644 index 000000000..56187a9fe --- /dev/null +++ b/rest/api/v2010/docs/ListTranscription200Response.md @@ -0,0 +1,19 @@ +# ListTranscription200Response + +## Properties + +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/ListTranscriptionResponse.md b/rest/api/v2010/docs/ListTranscriptionResponse.md index ef3673ed0..0372e9ab2 100644 --- a/rest/api/v2010/docs/ListTranscriptionResponse.md +++ b/rest/api/v2010/docs/ListTranscriptionResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Transcriptions** | [**[]ApiV2010Transcription**](ApiV2010Transcription.md) | |[optional] -**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] [[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/ListUsageRecord200Response.md b/rest/api/v2010/docs/ListUsageRecord200Response.md new file mode 100644 index 000000000..766783559 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecord200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecord200Response + +## Properties + +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/ListUsageRecordAllTime200Response.md b/rest/api/v2010/docs/ListUsageRecordAllTime200Response.md new file mode 100644 index 000000000..63ab8dc43 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordAllTime200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordAllTime200Response + +## Properties + +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/ListUsageRecordAllTimeResponse.md b/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md index e45b9b66b..442428c0b 100644 --- a/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordAllTime**](ApiV2010UsageRecordAllTime.md) | |[optional] -**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] [[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/ListUsageRecordDaily200Response.md b/rest/api/v2010/docs/ListUsageRecordDaily200Response.md new file mode 100644 index 000000000..08029e53d --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordDaily200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordDaily200Response + +## Properties + +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/ListUsageRecordDailyResponse.md b/rest/api/v2010/docs/ListUsageRecordDailyResponse.md index 8e6530b49..b6ededb47 100644 --- a/rest/api/v2010/docs/ListUsageRecordDailyResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordDailyResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordDaily**](ApiV2010UsageRecordDaily.md) | |[optional] -**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] [[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/ListUsageRecordLastMonth200Response.md b/rest/api/v2010/docs/ListUsageRecordLastMonth200Response.md new file mode 100644 index 000000000..411710f3e --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordLastMonth200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordLastMonth200Response + +## Properties + +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/ListUsageRecordLastMonthResponse.md b/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md index 024bdf1c7..ecf09a90b 100644 --- a/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordLastMonth**](ApiV2010UsageRecordLastMonth.md) | |[optional] -**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] [[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/ListUsageRecordMonthly200Response.md b/rest/api/v2010/docs/ListUsageRecordMonthly200Response.md new file mode 100644 index 000000000..f95914899 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordMonthly200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordMonthly200Response + +## Properties + +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/ListUsageRecordMonthlyResponse.md b/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md index 65159f022..129a7b527 100644 --- a/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordMonthly**](ApiV2010UsageRecordMonthly.md) | |[optional] -**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] [[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 47acd196b..c9ca61377 100644 --- a/rest/api/v2010/docs/ListUsageRecordResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecord**](ApiV2010UsageRecord.md) | |[optional] -**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] [[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/ListUsageRecordThisMonth200Response.md b/rest/api/v2010/docs/ListUsageRecordThisMonth200Response.md new file mode 100644 index 000000000..0dcbc7213 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordThisMonth200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordThisMonth200Response + +## Properties + +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/ListUsageRecordThisMonthResponse.md b/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md index 777690251..9434eb160 100644 --- a/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordThisMonth**](ApiV2010UsageRecordThisMonth.md) | |[optional] -**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] [[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/ListUsageRecordToday200Response.md b/rest/api/v2010/docs/ListUsageRecordToday200Response.md new file mode 100644 index 000000000..5be728100 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordToday200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordToday200Response + +## Properties + +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/ListUsageRecordTodayResponse.md b/rest/api/v2010/docs/ListUsageRecordTodayResponse.md index 3e7280643..94c939cc9 100644 --- a/rest/api/v2010/docs/ListUsageRecordTodayResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordTodayResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordToday**](ApiV2010UsageRecordToday.md) | |[optional] -**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] [[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/ListUsageRecordYearly200Response.md b/rest/api/v2010/docs/ListUsageRecordYearly200Response.md new file mode 100644 index 000000000..c10c7f389 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordYearly200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordYearly200Response + +## Properties + +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/ListUsageRecordYearlyResponse.md b/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md index 512165e7e..7baf3c32a 100644 --- a/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordYearly**](ApiV2010UsageRecordYearly.md) | |[optional] -**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] [[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/ListUsageRecordYesterday200Response.md b/rest/api/v2010/docs/ListUsageRecordYesterday200Response.md new file mode 100644 index 000000000..c21529558 --- /dev/null +++ b/rest/api/v2010/docs/ListUsageRecordYesterday200Response.md @@ -0,0 +1,19 @@ +# ListUsageRecordYesterday200Response + +## Properties + +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/ListUsageRecordYesterdayResponse.md b/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md index f148b91aa..a1905cdaf 100644 --- a/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageRecords** | [**[]ApiV2010UsageRecordYesterday**](ApiV2010UsageRecordYesterday.md) | |[optional] -**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] [[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/ListUsageTrigger200Response.md b/rest/api/v2010/docs/ListUsageTrigger200Response.md new file mode 100644 index 000000000..950dee50c --- /dev/null +++ b/rest/api/v2010/docs/ListUsageTrigger200Response.md @@ -0,0 +1,19 @@ +# ListUsageTrigger200Response + +## Properties + +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/docs/ListUsageTriggerResponse.md b/rest/api/v2010/docs/ListUsageTriggerResponse.md index 105a935fe..ad8d36f60 100644 --- a/rest/api/v2010/docs/ListUsageTriggerResponse.md +++ b/rest/api/v2010/docs/ListUsageTriggerResponse.md @@ -5,14 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UsageTriggers** | [**[]ApiV2010UsageTrigger**](ApiV2010UsageTrigger.md) | |[optional] -**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] [[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_list_account_200_response.go b/rest/api/v2010/model_list_account_200_response.go new file mode 100644 index 000000000..36092d85d --- /dev/null +++ b/rest/api/v2010/model_list_account_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAccount200Response struct for ListAccount200Response +type ListAccount200Response 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"` + Accounts []ApiV2010Account `json:"accounts,omitempty"` +} diff --git a/rest/api/v2010/model_list_account_200_response_all_of.go b/rest/api/v2010/model_list_account_200_response_all_of.go new file mode 100644 index 000000000..7f9ee5192 --- /dev/null +++ b/rest/api/v2010/model_list_account_200_response_all_of.go @@ -0,0 +1,27 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAccount200ResponseAllOf struct for ListAccount200ResponseAllOf +type ListAccount200ResponseAllOf 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"` +} diff --git a/rest/api/v2010/model_list_account_response.go b/rest/api/v2010/model_list_account_response.go index 4150b3a2b..17b90332e 100644 --- a/rest/api/v2010/model_list_account_response.go +++ b/rest/api/v2010/model_list_account_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_address_200_response.go new file mode 100644 index 000000000..68ba44d42 --- /dev/null +++ b/rest/api/v2010/model_list_address_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAddress200Response struct for ListAddress200Response +type ListAddress200Response 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"` + Addresses []ApiV2010Address `json:"addresses,omitempty"` +} diff --git a/rest/api/v2010/model_list_address_response.go b/rest/api/v2010/model_list_address_response.go index 73401ca65..c0a411f7c 100644 --- a/rest/api/v2010/model_list_address_response.go +++ b/rest/api/v2010/model_list_address_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_application_200_response.go new file mode 100644 index 000000000..b96addff2 --- /dev/null +++ b/rest/api/v2010/model_list_application_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListApplication200Response struct for ListApplication200Response +type ListApplication200Response 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"` + Applications []ApiV2010Application `json:"applications,omitempty"` +} diff --git a/rest/api/v2010/model_list_application_response.go b/rest/api/v2010/model_list_application_response.go index 846988f8b..66cd3c8bf 100644 --- a/rest/api/v2010/model_list_application_response.go +++ b/rest/api/v2010/model_list_application_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_authorized_connect_app_200_response.go new file mode 100644 index 000000000..e40bba69d --- /dev/null +++ b/rest/api/v2010/model_list_authorized_connect_app_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAuthorizedConnectApp200Response struct for ListAuthorizedConnectApp200Response +type ListAuthorizedConnectApp200Response 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_authorized_connect_app_response.go b/rest/api/v2010/model_list_authorized_connect_app_response.go index 5a93cbbeb..c05e3fc48 100644 --- a/rest/api/v2010/model_list_authorized_connect_app_response.go +++ b/rest/api/v2010/model_list_authorized_connect_app_response.go @@ -17,12 +17,4 @@ package openapi // ListAuthorizedConnectAppResponse struct for ListAuthorizedConnectAppResponse type ListAuthorizedConnectAppResponse struct { AuthorizedConnectApps []ApiV2010AuthorizedConnectApp `json:"authorized_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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_country_200_response.go b/rest/api/v2010/model_list_available_phone_number_country_200_response.go new file mode 100644 index 000000000..b313d5545 --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_country_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberCountry200Response struct for ListAvailablePhoneNumberCountry200Response +type ListAvailablePhoneNumberCountry200Response 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"` + Countries []ApiV2010AvailablePhoneNumberCountry `json:"countries,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 9f7c452f7..db275caaf 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_available_phone_number_local_200_response.go new file mode 100644 index 000000000..c42fd582e --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_local_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberLocal200Response struct for ListAvailablePhoneNumberLocal200Response +type ListAvailablePhoneNumberLocal200Response 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_local_response.go b/rest/api/v2010/model_list_available_phone_number_local_response.go index f6bb02248..86578631b 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberLocalResponse struct for ListAvailablePhoneNumberLocalResponse type ListAvailablePhoneNumberLocalResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberLocal `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_machine_to_machine_200_response.go b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_200_response.go new file mode 100644 index 000000000..6e5fb9a46 --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberMachineToMachine200Response struct for ListAvailablePhoneNumberMachineToMachine200Response +type ListAvailablePhoneNumberMachineToMachine200Response 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_machine_to_machine_response.go b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go index 5ccf592dd..64f21a52c 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberMachineToMachineResponse struct for ListAvailablePhoneNumberMachineToMachineResponse type ListAvailablePhoneNumberMachineToMachineResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberMachineToMachine `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_mobile_200_response.go b/rest/api/v2010/model_list_available_phone_number_mobile_200_response.go new file mode 100644 index 000000000..b4eeb0d22 --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_mobile_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberMobile200Response struct for ListAvailablePhoneNumberMobile200Response +type ListAvailablePhoneNumberMobile200Response 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_mobile_response.go b/rest/api/v2010/model_list_available_phone_number_mobile_response.go index abe65de84..94f68f593 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberMobileResponse struct for ListAvailablePhoneNumberMobileResponse type ListAvailablePhoneNumberMobileResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberMobile `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_national_200_response.go b/rest/api/v2010/model_list_available_phone_number_national_200_response.go new file mode 100644 index 000000000..d4b72271a --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_national_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberNational200Response struct for ListAvailablePhoneNumberNational200Response +type ListAvailablePhoneNumberNational200Response 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_national_response.go b/rest/api/v2010/model_list_available_phone_number_national_response.go index ae58f2e32..6a21f9c5a 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberNationalResponse struct for ListAvailablePhoneNumberNationalResponse type ListAvailablePhoneNumberNationalResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberNational `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_shared_cost_200_response.go b/rest/api/v2010/model_list_available_phone_number_shared_cost_200_response.go new file mode 100644 index 000000000..f2c05c5c8 --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_shared_cost_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberSharedCost200Response struct for ListAvailablePhoneNumberSharedCost200Response +type ListAvailablePhoneNumberSharedCost200Response 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_shared_cost_response.go b/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go index 6a1875669..0bc2e4309 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberSharedCostResponse struct for ListAvailablePhoneNumberSharedCostResponse type ListAvailablePhoneNumberSharedCostResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberSharedCost `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_toll_free_200_response.go b/rest/api/v2010/model_list_available_phone_number_toll_free_200_response.go new file mode 100644 index 000000000..2a22cd0b6 --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_toll_free_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberTollFree200Response struct for ListAvailablePhoneNumberTollFree200Response +type ListAvailablePhoneNumberTollFree200Response 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_toll_free_response.go b/rest/api/v2010/model_list_available_phone_number_toll_free_response.go index 64c3033ae..9f70e1749 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberTollFreeResponse struct for ListAvailablePhoneNumberTollFreeResponse type ListAvailablePhoneNumberTollFreeResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberTollFree `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_available_phone_number_voip_200_response.go b/rest/api/v2010/model_list_available_phone_number_voip_200_response.go new file mode 100644 index 000000000..e787b3402 --- /dev/null +++ b/rest/api/v2010/model_list_available_phone_number_voip_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListAvailablePhoneNumberVoip200Response struct for ListAvailablePhoneNumberVoip200Response +type ListAvailablePhoneNumberVoip200Response 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_available_phone_number_voip_response.go b/rest/api/v2010/model_list_available_phone_number_voip_response.go index fcc19968a..1f5194502 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 @@ -17,12 +17,4 @@ package openapi // ListAvailablePhoneNumberVoipResponse struct for ListAvailablePhoneNumberVoipResponse type ListAvailablePhoneNumberVoipResponse struct { AvailablePhoneNumbers []ApiV2010AvailablePhoneNumberVoip `json:"available_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_call_200_response.go b/rest/api/v2010/model_list_call_200_response.go new file mode 100644 index 000000000..b5375d9d3 --- /dev/null +++ b/rest/api/v2010/model_list_call_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListCall200Response struct for ListCall200Response +type ListCall200Response 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"` + Calls []ApiV2010Call `json:"calls,omitempty"` +} diff --git a/rest/api/v2010/model_list_call_event_200_response.go b/rest/api/v2010/model_list_call_event_200_response.go new file mode 100644 index 000000000..0656905cd --- /dev/null +++ b/rest/api/v2010/model_list_call_event_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListCallEvent200Response struct for ListCallEvent200Response +type ListCallEvent200Response 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"` + Events []ApiV2010CallEvent `json:"events,omitempty"` +} diff --git a/rest/api/v2010/model_list_call_event_response.go b/rest/api/v2010/model_list_call_event_response.go index 377073f2d..39b43c2df 100644 --- a/rest/api/v2010/model_list_call_event_response.go +++ b/rest/api/v2010/model_list_call_event_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_call_notification_200_response.go new file mode 100644 index 000000000..80d8d495e --- /dev/null +++ b/rest/api/v2010/model_list_call_notification_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListCallNotification200Response struct for ListCallNotification200Response +type ListCallNotification200Response 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"` + Notifications []ApiV2010CallNotification `json:"notifications,omitempty"` +} diff --git a/rest/api/v2010/model_list_call_notification_response.go b/rest/api/v2010/model_list_call_notification_response.go index eb1e47e3c..496068a77 100644 --- a/rest/api/v2010/model_list_call_notification_response.go +++ b/rest/api/v2010/model_list_call_notification_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_call_recording_200_response.go new file mode 100644 index 000000000..019ebd9b0 --- /dev/null +++ b/rest/api/v2010/model_list_call_recording_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListCallRecording200Response struct for ListCallRecording200Response +type ListCallRecording200Response 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"` + Recordings []ApiV2010CallRecording `json:"recordings,omitempty"` +} diff --git a/rest/api/v2010/model_list_call_recording_response.go b/rest/api/v2010/model_list_call_recording_response.go index 0ba3ac1c0..c5fb106b8 100644 --- a/rest/api/v2010/model_list_call_recording_response.go +++ b/rest/api/v2010/model_list_call_recording_response.go @@ -16,13 +16,5 @@ 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 d8bc900f6..db8afc866 100644 --- a/rest/api/v2010/model_list_call_response.go +++ b/rest/api/v2010/model_list_call_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_conference_200_response.go new file mode 100644 index 000000000..8ea468796 --- /dev/null +++ b/rest/api/v2010/model_list_conference_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListConference200Response struct for ListConference200Response +type ListConference200Response 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"` + Conferences []ApiV2010Conference `json:"conferences,omitempty"` +} diff --git a/rest/api/v2010/model_list_conference_recording_200_response.go b/rest/api/v2010/model_list_conference_recording_200_response.go new file mode 100644 index 000000000..f9e4f6322 --- /dev/null +++ b/rest/api/v2010/model_list_conference_recording_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListConferenceRecording200Response struct for ListConferenceRecording200Response +type ListConferenceRecording200Response 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"` + Recordings []ApiV2010ConferenceRecording `json:"recordings,omitempty"` +} diff --git a/rest/api/v2010/model_list_conference_recording_response.go b/rest/api/v2010/model_list_conference_recording_response.go index 772d9c575..cb1ca5460 100644 --- a/rest/api/v2010/model_list_conference_recording_response.go +++ b/rest/api/v2010/model_list_conference_recording_response.go @@ -16,13 +16,5 @@ 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 65f1a7955..526f63648 100644 --- a/rest/api/v2010/model_list_conference_response.go +++ b/rest/api/v2010/model_list_conference_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_connect_app_200_response.go new file mode 100644 index 000000000..f1edb9841 --- /dev/null +++ b/rest/api/v2010/model_list_connect_app_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListConnectApp200Response struct for ListConnectApp200Response +type ListConnectApp200Response 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"` + ConnectApps []ApiV2010ConnectApp `json:"connect_apps,omitempty"` +} diff --git a/rest/api/v2010/model_list_connect_app_response.go b/rest/api/v2010/model_list_connect_app_response.go index ecb2e5038..116859b10 100644 --- a/rest/api/v2010/model_list_connect_app_response.go +++ b/rest/api/v2010/model_list_connect_app_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_dependent_phone_number_200_response.go new file mode 100644 index 000000000..dcfe1ce67 --- /dev/null +++ b/rest/api/v2010/model_list_dependent_phone_number_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListDependentPhoneNumber200Response struct for ListDependentPhoneNumber200Response +type ListDependentPhoneNumber200Response 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_dependent_phone_number_response.go b/rest/api/v2010/model_list_dependent_phone_number_response.go index 31dc22ad8..fd06a535f 100644 --- a/rest/api/v2010/model_list_dependent_phone_number_response.go +++ b/rest/api/v2010/model_list_dependent_phone_number_response.go @@ -17,12 +17,4 @@ package openapi // ListDependentPhoneNumberResponse struct for ListDependentPhoneNumberResponse type ListDependentPhoneNumberResponse struct { DependentPhoneNumbers []ApiV2010DependentPhoneNumber `json:"dependent_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_200_response.go b/rest/api/v2010/model_list_incoming_phone_number_200_response.go new file mode 100644 index 000000000..b3ec88d37 --- /dev/null +++ b/rest/api/v2010/model_list_incoming_phone_number_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListIncomingPhoneNumber200Response struct for ListIncomingPhoneNumber200Response +type ListIncomingPhoneNumber200Response 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_assigned_add_on_200_response.go b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_200_response.go new file mode 100644 index 000000000..367dc5c2e --- /dev/null +++ b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListIncomingPhoneNumberAssignedAddOn200Response struct for ListIncomingPhoneNumberAssignedAddOn200Response +type ListIncomingPhoneNumberAssignedAddOn200Response 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"` + AssignedAddOns []ApiV2010IncomingPhoneNumberAssignedAddOn `json:"assigned_add_ons,omitempty"` +} diff --git a/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_200_response.go b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_200_response.go new file mode 100644 index 000000000..b61feb9e7 --- /dev/null +++ b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListIncomingPhoneNumberAssignedAddOnExtension200Response struct for ListIncomingPhoneNumberAssignedAddOnExtension200Response +type ListIncomingPhoneNumberAssignedAddOnExtension200Response 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"` + Extensions []ApiV2010IncomingPhoneNumberAssignedAddOnExtension `json:"extensions,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 5af790e23..40263e9d6 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,13 +16,5 @@ 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 0cc23ec03..9e8235432 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_incoming_phone_number_local_200_response.go new file mode 100644 index 000000000..d07e23637 --- /dev/null +++ b/rest/api/v2010/model_list_incoming_phone_number_local_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListIncomingPhoneNumberLocal200Response struct for ListIncomingPhoneNumberLocal200Response +type ListIncomingPhoneNumberLocal200Response 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_local_response.go b/rest/api/v2010/model_list_incoming_phone_number_local_response.go index 3c178537d..ec9612088 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 @@ -17,12 +17,4 @@ package openapi // ListIncomingPhoneNumberLocalResponse struct for ListIncomingPhoneNumberLocalResponse type ListIncomingPhoneNumberLocalResponse struct { IncomingPhoneNumbers []ApiV2010IncomingPhoneNumberLocal `json:"incoming_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_mobile_200_response.go b/rest/api/v2010/model_list_incoming_phone_number_mobile_200_response.go new file mode 100644 index 000000000..0d66457f2 --- /dev/null +++ b/rest/api/v2010/model_list_incoming_phone_number_mobile_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListIncomingPhoneNumberMobile200Response struct for ListIncomingPhoneNumberMobile200Response +type ListIncomingPhoneNumberMobile200Response 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_mobile_response.go b/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go index 5f8b980e3..f931f651f 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 @@ -17,12 +17,4 @@ package openapi // ListIncomingPhoneNumberMobileResponse struct for ListIncomingPhoneNumberMobileResponse type ListIncomingPhoneNumberMobileResponse struct { IncomingPhoneNumbers []ApiV2010IncomingPhoneNumberMobile `json:"incoming_phone_numbers,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"` } 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 081afb0b2..e18972c59 100644 --- a/rest/api/v2010/model_list_incoming_phone_number_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_response.go @@ -17,12 +17,4 @@ package openapi // ListIncomingPhoneNumberResponse struct for ListIncomingPhoneNumberResponse type ListIncomingPhoneNumberResponse struct { IncomingPhoneNumbers []ApiV2010IncomingPhoneNumber `json:"incoming_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_incoming_phone_number_toll_free_200_response.go b/rest/api/v2010/model_list_incoming_phone_number_toll_free_200_response.go new file mode 100644 index 000000000..1c8ed53ba --- /dev/null +++ b/rest/api/v2010/model_list_incoming_phone_number_toll_free_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListIncomingPhoneNumberTollFree200Response struct for ListIncomingPhoneNumberTollFree200Response +type ListIncomingPhoneNumberTollFree200Response 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_incoming_phone_number_toll_free_response.go b/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go index 416be708b..736055375 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 @@ -17,12 +17,4 @@ package openapi // ListIncomingPhoneNumberTollFreeResponse struct for ListIncomingPhoneNumberTollFreeResponse type ListIncomingPhoneNumberTollFreeResponse struct { IncomingPhoneNumbers []ApiV2010IncomingPhoneNumberTollFree `json:"incoming_phone_numbers,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"` } diff --git a/rest/api/v2010/model_list_key_200_response.go b/rest/api/v2010/model_list_key_200_response.go new file mode 100644 index 000000000..5f533ea28 --- /dev/null +++ b/rest/api/v2010/model_list_key_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListKey200Response struct for ListKey200Response +type ListKey200Response 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"` + Keys []ApiV2010Key `json:"keys,omitempty"` +} diff --git a/rest/api/v2010/model_list_key_response.go b/rest/api/v2010/model_list_key_response.go index 8c9a50789..64d262400 100644 --- a/rest/api/v2010/model_list_key_response.go +++ b/rest/api/v2010/model_list_key_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_media_200_response.go new file mode 100644 index 000000000..2c2685636 --- /dev/null +++ b/rest/api/v2010/model_list_media_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListMedia200Response struct for ListMedia200Response +type ListMedia200Response 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"` + MediaList []ApiV2010Media `json:"media_list,omitempty"` +} diff --git a/rest/api/v2010/model_list_media_response.go b/rest/api/v2010/model_list_media_response.go index 8a7dee440..49b2993de 100644 --- a/rest/api/v2010/model_list_media_response.go +++ b/rest/api/v2010/model_list_media_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_member_200_response.go new file mode 100644 index 000000000..f77d5d889 --- /dev/null +++ b/rest/api/v2010/model_list_member_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListMember200Response struct for ListMember200Response +type ListMember200Response 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"` + QueueMembers []ApiV2010Member `json:"queue_members,omitempty"` +} diff --git a/rest/api/v2010/model_list_member_response.go b/rest/api/v2010/model_list_member_response.go index ec994467d..c3ed6d7cc 100644 --- a/rest/api/v2010/model_list_member_response.go +++ b/rest/api/v2010/model_list_member_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_message_200_response.go new file mode 100644 index 000000000..1a514433b --- /dev/null +++ b/rest/api/v2010/model_list_message_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListMessage200Response struct for ListMessage200Response +type ListMessage200Response 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"` + Messages []ApiV2010Message `json:"messages,omitempty"` +} diff --git a/rest/api/v2010/model_list_message_response.go b/rest/api/v2010/model_list_message_response.go index 8c6d5da81..bda6f38fa 100644 --- a/rest/api/v2010/model_list_message_response.go +++ b/rest/api/v2010/model_list_message_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_notification_200_response.go new file mode 100644 index 000000000..2a31fe1a2 --- /dev/null +++ b/rest/api/v2010/model_list_notification_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListNotification200Response struct for ListNotification200Response +type ListNotification200Response 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"` + Notifications []ApiV2010Notification `json:"notifications,omitempty"` +} diff --git a/rest/api/v2010/model_list_notification_response.go b/rest/api/v2010/model_list_notification_response.go index 36c830127..f01255a65 100644 --- a/rest/api/v2010/model_list_notification_response.go +++ b/rest/api/v2010/model_list_notification_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_outgoing_caller_id_200_response.go new file mode 100644 index 000000000..a55b1c7c4 --- /dev/null +++ b/rest/api/v2010/model_list_outgoing_caller_id_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListOutgoingCallerId200Response struct for ListOutgoingCallerId200Response +type ListOutgoingCallerId200Response 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_outgoing_caller_id_response.go b/rest/api/v2010/model_list_outgoing_caller_id_response.go index 87cbc0cb4..6c59f46ca 100644 --- a/rest/api/v2010/model_list_outgoing_caller_id_response.go +++ b/rest/api/v2010/model_list_outgoing_caller_id_response.go @@ -17,12 +17,4 @@ package openapi // ListOutgoingCallerIdResponse struct for ListOutgoingCallerIdResponse type ListOutgoingCallerIdResponse struct { OutgoingCallerIds []ApiV2010OutgoingCallerId `json:"outgoing_caller_ids,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"` } diff --git a/rest/api/v2010/model_list_participant_200_response.go b/rest/api/v2010/model_list_participant_200_response.go new file mode 100644 index 000000000..abb82751b --- /dev/null +++ b/rest/api/v2010/model_list_participant_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListParticipant200Response struct for ListParticipant200Response +type ListParticipant200Response 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"` + Participants []ApiV2010Participant `json:"participants,omitempty"` +} diff --git a/rest/api/v2010/model_list_participant_response.go b/rest/api/v2010/model_list_participant_response.go index 1c4255699..b3cd4cc67 100644 --- a/rest/api/v2010/model_list_participant_response.go +++ b/rest/api/v2010/model_list_participant_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_queue_200_response.go new file mode 100644 index 000000000..e68269a20 --- /dev/null +++ b/rest/api/v2010/model_list_queue_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListQueue200Response struct for ListQueue200Response +type ListQueue200Response 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"` + Queues []ApiV2010Queue `json:"queues,omitempty"` +} diff --git a/rest/api/v2010/model_list_queue_response.go b/rest/api/v2010/model_list_queue_response.go index 68d9f7e90..f834a8344 100644 --- a/rest/api/v2010/model_list_queue_response.go +++ b/rest/api/v2010/model_list_queue_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_recording_200_response.go new file mode 100644 index 000000000..2751e1aa0 --- /dev/null +++ b/rest/api/v2010/model_list_recording_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListRecording200Response struct for ListRecording200Response +type ListRecording200Response 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"` + Recordings []ApiV2010Recording `json:"recordings,omitempty"` +} diff --git a/rest/api/v2010/model_list_recording_add_on_result_200_response.go b/rest/api/v2010/model_list_recording_add_on_result_200_response.go new file mode 100644 index 000000000..aa6202553 --- /dev/null +++ b/rest/api/v2010/model_list_recording_add_on_result_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListRecordingAddOnResult200Response struct for ListRecordingAddOnResult200Response +type ListRecordingAddOnResult200Response 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"` + AddOnResults []ApiV2010RecordingAddOnResult `json:"add_on_results,omitempty"` +} diff --git a/rest/api/v2010/model_list_recording_add_on_result_payload_200_response.go b/rest/api/v2010/model_list_recording_add_on_result_payload_200_response.go new file mode 100644 index 000000000..3d7f79dcb --- /dev/null +++ b/rest/api/v2010/model_list_recording_add_on_result_payload_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListRecordingAddOnResultPayload200Response struct for ListRecordingAddOnResultPayload200Response +type ListRecordingAddOnResultPayload200Response 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"` + Payloads []ApiV2010RecordingAddOnResultPayload `json:"payloads,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 05216d15a..f345b521a 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,13 +16,5 @@ 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 34827b9f5..14a051875 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,13 +16,5 @@ 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 23123590c..9f3ca4d2d 100644 --- a/rest/api/v2010/model_list_recording_response.go +++ b/rest/api/v2010/model_list_recording_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_recording_transcription_200_response.go new file mode 100644 index 000000000..4e9114255 --- /dev/null +++ b/rest/api/v2010/model_list_recording_transcription_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListRecordingTranscription200Response struct for ListRecordingTranscription200Response +type ListRecordingTranscription200Response 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"` + Transcriptions []ApiV2010RecordingTranscription `json:"transcriptions,omitempty"` +} diff --git a/rest/api/v2010/model_list_recording_transcription_response.go b/rest/api/v2010/model_list_recording_transcription_response.go index 16ab144a5..5570dd41b 100644 --- a/rest/api/v2010/model_list_recording_transcription_response.go +++ b/rest/api/v2010/model_list_recording_transcription_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_short_code_200_response.go new file mode 100644 index 000000000..34c01d806 --- /dev/null +++ b/rest/api/v2010/model_list_short_code_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListShortCode200Response struct for ListShortCode200Response +type ListShortCode200Response 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"` + ShortCodes []ApiV2010ShortCode `json:"short_codes,omitempty"` +} diff --git a/rest/api/v2010/model_list_short_code_response.go b/rest/api/v2010/model_list_short_code_response.go index 408938f16..14c431002 100644 --- a/rest/api/v2010/model_list_short_code_response.go +++ b/rest/api/v2010/model_list_short_code_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_signing_key_200_response.go new file mode 100644 index 000000000..aef11921d --- /dev/null +++ b/rest/api/v2010/model_list_signing_key_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSigningKey200Response struct for ListSigningKey200Response +type ListSigningKey200Response 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"` + SigningKeys []ApiV2010SigningKey `json:"signing_keys,omitempty"` +} diff --git a/rest/api/v2010/model_list_signing_key_response.go b/rest/api/v2010/model_list_signing_key_response.go index cd1c7edd9..64d3f4e35 100644 --- a/rest/api/v2010/model_list_signing_key_response.go +++ b/rest/api/v2010/model_list_signing_key_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_200_response.go new file mode 100644 index 000000000..a5c660af8 --- /dev/null +++ b/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipAuthCallsCredentialListMapping200Response struct for ListSipAuthCallsCredentialListMapping200Response +type ListSipAuthCallsCredentialListMapping200Response 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"` + Contents []ApiV2010SipAuthCallsCredentialListMapping `json:"contents,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 2489b3b22..51632e9b0 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_200_response.go new file mode 100644 index 000000000..feb43d0a6 --- /dev/null +++ b/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipAuthCallsIpAccessControlListMapping200Response struct for ListSipAuthCallsIpAccessControlListMapping200Response +type ListSipAuthCallsIpAccessControlListMapping200Response 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"` + Contents []ApiV2010SipAuthCallsIpAccessControlListMapping `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 0a2615d2a..e5338a2a3 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_200_response.go new file mode 100644 index 000000000..c934f5040 --- /dev/null +++ b/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipAuthRegistrationsCredentialListMapping200Response struct for ListSipAuthRegistrationsCredentialListMapping200Response +type ListSipAuthRegistrationsCredentialListMapping200Response 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"` + Contents []ApiV2010SipAuthRegistrationsCredentialListMapping `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 73f8b93e7..0bcc95306 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_sip_credential_200_response.go new file mode 100644 index 000000000..54b2bc31f --- /dev/null +++ b/rest/api/v2010/model_list_sip_credential_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipCredential200Response struct for ListSipCredential200Response +type ListSipCredential200Response 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"` + Credentials []ApiV2010SipCredential `json:"credentials,omitempty"` +} diff --git a/rest/api/v2010/model_list_sip_credential_list_200_response.go b/rest/api/v2010/model_list_sip_credential_list_200_response.go new file mode 100644 index 000000000..16791b109 --- /dev/null +++ b/rest/api/v2010/model_list_sip_credential_list_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipCredentialList200Response struct for ListSipCredentialList200Response +type ListSipCredentialList200Response 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_list_mapping_200_response.go b/rest/api/v2010/model_list_sip_credential_list_mapping_200_response.go new file mode 100644 index 000000000..c1427aa0a --- /dev/null +++ b/rest/api/v2010/model_list_sip_credential_list_mapping_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipCredentialListMapping200Response struct for ListSipCredentialListMapping200Response +type ListSipCredentialListMapping200Response 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_mapping_response.go b/rest/api/v2010/model_list_sip_credential_list_mapping_response.go index 4a73b162b..c7f01b59e 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 @@ -17,12 +17,4 @@ package openapi // ListSipCredentialListMappingResponse struct for ListSipCredentialListMappingResponse type ListSipCredentialListMappingResponse struct { CredentialListMappings []ApiV2010SipCredentialListMapping `json:"credential_list_mappings,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"` } 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 23cb57b12..da0f7996e 100644 --- a/rest/api/v2010/model_list_sip_credential_list_response.go +++ b/rest/api/v2010/model_list_sip_credential_list_response.go @@ -17,12 +17,4 @@ package openapi // ListSipCredentialListResponse struct for ListSipCredentialListResponse type ListSipCredentialListResponse struct { CredentialLists []ApiV2010SipCredentialList `json:"credential_lists,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"` } diff --git a/rest/api/v2010/model_list_sip_credential_response.go b/rest/api/v2010/model_list_sip_credential_response.go index 6e79cba1d..f6455a390 100644 --- a/rest/api/v2010/model_list_sip_credential_response.go +++ b/rest/api/v2010/model_list_sip_credential_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_sip_domain_200_response.go new file mode 100644 index 000000000..a3f6d6d80 --- /dev/null +++ b/rest/api/v2010/model_list_sip_domain_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipDomain200Response struct for ListSipDomain200Response +type ListSipDomain200Response 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"` + Domains []ApiV2010SipDomain `json:"domains,omitempty"` +} diff --git a/rest/api/v2010/model_list_sip_domain_response.go b/rest/api/v2010/model_list_sip_domain_response.go index 539e1350d..cf07f0fb7 100644 --- a/rest/api/v2010/model_list_sip_domain_response.go +++ b/rest/api/v2010/model_list_sip_domain_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_200_response.go new file mode 100644 index 000000000..bf52a4b88 --- /dev/null +++ b/rest/api/v2010/model_list_sip_ip_access_control_list_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipIpAccessControlList200Response struct for ListSipIpAccessControlList200Response +type ListSipIpAccessControlList200Response 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_access_control_list_mapping_200_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_200_response.go new file mode 100644 index 000000000..a928d7cb4 --- /dev/null +++ b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipIpAccessControlListMapping200Response struct for ListSipIpAccessControlListMapping200Response +type ListSipIpAccessControlListMapping200Response 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_mapping_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go index 9621ce8cf..53c70a119 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 @@ -17,12 +17,4 @@ package openapi // ListSipIpAccessControlListMappingResponse struct for ListSipIpAccessControlListMappingResponse type ListSipIpAccessControlListMappingResponse struct { IpAccessControlListMappings []ApiV2010SipIpAccessControlListMapping `json:"ip_access_control_list_mappings,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"` } 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 0d5b2cbea..584097f9b 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 @@ -17,12 +17,4 @@ package openapi // ListSipIpAccessControlListResponse struct for ListSipIpAccessControlListResponse type ListSipIpAccessControlListResponse struct { IpAccessControlLists []ApiV2010SipIpAccessControlList `json:"ip_access_control_lists,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"` } diff --git a/rest/api/v2010/model_list_sip_ip_address_200_response.go b/rest/api/v2010/model_list_sip_ip_address_200_response.go new file mode 100644 index 000000000..8ff39a7fa --- /dev/null +++ b/rest/api/v2010/model_list_sip_ip_address_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListSipIpAddress200Response struct for ListSipIpAddress200Response +type ListSipIpAddress200Response 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"` + IpAddresses []ApiV2010SipIpAddress `json:"ip_addresses,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 b0c13f486..5eb10e5d2 100644 --- a/rest/api/v2010/model_list_sip_ip_address_response.go +++ b/rest/api/v2010/model_list_sip_ip_address_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_transcription_200_response.go new file mode 100644 index 000000000..83eff279a --- /dev/null +++ b/rest/api/v2010/model_list_transcription_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListTranscription200Response struct for ListTranscription200Response +type ListTranscription200Response 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"` + Transcriptions []ApiV2010Transcription `json:"transcriptions,omitempty"` +} diff --git a/rest/api/v2010/model_list_transcription_response.go b/rest/api/v2010/model_list_transcription_response.go index 24cc34ecc..91935b23a 100644 --- a/rest/api/v2010/model_list_transcription_response.go +++ b/rest/api/v2010/model_list_transcription_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_200_response.go new file mode 100644 index 000000000..3ea3878c9 --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecord200Response struct for ListUsageRecord200Response +type ListUsageRecord200Response 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"` + UsageRecords []ApiV2010UsageRecord `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_list_usage_record_all_time_200_response.go b/rest/api/v2010/model_list_usage_record_all_time_200_response.go new file mode 100644 index 000000000..5cfb25a2d --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_all_time_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordAllTime200Response struct for ListUsageRecordAllTime200Response +type ListUsageRecordAllTime200Response 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"` + UsageRecords []ApiV2010UsageRecordAllTime `json:"usage_records,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 669ec58ef..500c50ff0 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_daily_200_response.go new file mode 100644 index 000000000..238b4906b --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_daily_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordDaily200Response struct for ListUsageRecordDaily200Response +type ListUsageRecordDaily200Response 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"` + UsageRecords []ApiV2010UsageRecordDaily `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 2ba82669a..6ad4c8fea 100644 --- a/rest/api/v2010/model_list_usage_record_daily_response.go +++ b/rest/api/v2010/model_list_usage_record_daily_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_last_month_200_response.go new file mode 100644 index 000000000..8914fcc68 --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_last_month_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordLastMonth200Response struct for ListUsageRecordLastMonth200Response +type ListUsageRecordLastMonth200Response 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"` + UsageRecords []ApiV2010UsageRecordLastMonth `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 3bec92618..df45c4549 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_monthly_200_response.go new file mode 100644 index 000000000..fd7e3531c --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_monthly_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordMonthly200Response struct for ListUsageRecordMonthly200Response +type ListUsageRecordMonthly200Response 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"` + UsageRecords []ApiV2010UsageRecordMonthly `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 3781c88ee..a493a6b4d 100644 --- a/rest/api/v2010/model_list_usage_record_monthly_response.go +++ b/rest/api/v2010/model_list_usage_record_monthly_response.go @@ -16,13 +16,5 @@ 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 4a31e5cad..70012afc2 100644 --- a/rest/api/v2010/model_list_usage_record_response.go +++ b/rest/api/v2010/model_list_usage_record_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_this_month_200_response.go new file mode 100644 index 000000000..11f4f6deb --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_this_month_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordThisMonth200Response struct for ListUsageRecordThisMonth200Response +type ListUsageRecordThisMonth200Response 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"` + UsageRecords []ApiV2010UsageRecordThisMonth `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 295841eba..27cdbd16f 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,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_today_200_response.go new file mode 100644 index 000000000..8c041269a --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_today_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordToday200Response struct for ListUsageRecordToday200Response +type ListUsageRecordToday200Response 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"` + UsageRecords []ApiV2010UsageRecordToday `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 95ec1a7ed..ac910da82 100644 --- a/rest/api/v2010/model_list_usage_record_today_response.go +++ b/rest/api/v2010/model_list_usage_record_today_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_yearly_200_response.go new file mode 100644 index 000000000..9dd932497 --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_yearly_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordYearly200Response struct for ListUsageRecordYearly200Response +type ListUsageRecordYearly200Response 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"` + UsageRecords []ApiV2010UsageRecordYearly `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 992a7f7de..a93c4f5ab 100644 --- a/rest/api/v2010/model_list_usage_record_yearly_response.go +++ b/rest/api/v2010/model_list_usage_record_yearly_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_record_yesterday_200_response.go new file mode 100644 index 000000000..700720787 --- /dev/null +++ b/rest/api/v2010/model_list_usage_record_yesterday_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageRecordYesterday200Response struct for ListUsageRecordYesterday200Response +type ListUsageRecordYesterday200Response 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"` + UsageRecords []ApiV2010UsageRecordYesterday `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 fca198a20..40744bcde 100644 --- a/rest/api/v2010/model_list_usage_record_yesterday_response.go +++ b/rest/api/v2010/model_list_usage_record_yesterday_response.go @@ -16,13 +16,5 @@ 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_200_response.go b/rest/api/v2010/model_list_usage_trigger_200_response.go new file mode 100644 index 000000000..713be19cb --- /dev/null +++ b/rest/api/v2010/model_list_usage_trigger_200_response.go @@ -0,0 +1,28 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * 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 + +// ListUsageTrigger200Response struct for ListUsageTrigger200Response +type ListUsageTrigger200Response 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"` + UsageTriggers []ApiV2010UsageTrigger `json:"usage_triggers,omitempty"` +} diff --git a/rest/api/v2010/model_list_usage_trigger_response.go b/rest/api/v2010/model_list_usage_trigger_response.go index 87228b9cd..0c599ab77 100644 --- a/rest/api/v2010/model_list_usage_trigger_response.go +++ b/rest/api/v2010/model_list_usage_trigger_response.go @@ -16,13 +16,5 @@ 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/README.md b/rest/bulkexports/v1/README.md index 7b4faa955..8026bf71b 100644 --- a/rest/bulkexports/v1/README.md +++ b/rest/bulkexports/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/bulkexports/v1/docs/ListDayResponseMeta.md b/rest/bulkexports/v1/docs/ListDayResponseMeta.md index 8cd1847b3..cc6ae2357 100644 --- a/rest/bulkexports/v1/docs/ListDayResponseMeta.md +++ b/rest/bulkexports/v1/docs/ListDayResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/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/bulkexports/v1/model_list_day_response_meta.go b/rest/bulkexports/v1/model_list_day_response_meta.go index a2a6c591a..b8e4fd9c2 100644 --- a/rest/bulkexports/v1/model_list_day_response_meta.go +++ b/rest/bulkexports/v1/model_list_day_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListDayResponseMeta struct for ListDayResponseMeta type ListDayResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/chat/v1/README.md b/rest/chat/v1/README.md index 856738b78..dfcf96e3b 100644 --- a/rest/chat/v1/README.md +++ b/rest/chat/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListChannelResponseMeta.md b/rest/chat/v1/docs/ListChannelResponseMeta.md index d507879b9..b007fb5e6 100644 --- a/rest/chat/v1/docs/ListChannelResponseMeta.md +++ b/rest/chat/v1/docs/ListChannelResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/chat/v1/model_list_channel_response_meta.go b/rest/chat/v1/model_list_channel_response_meta.go index 7d1a5e11d..178bf41b4 100644 --- a/rest/chat/v1/model_list_channel_response_meta.go +++ b/rest/chat/v1/model_list_channel_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListChannelResponseMeta struct for ListChannelResponseMeta type ListChannelResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/chat/v2/README.md index 5c2f1a5c2..71a6bdf0b 100644 --- a/rest/chat/v2/README.md +++ b/rest/chat/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListBindingResponseMeta.md b/rest/chat/v2/docs/ListBindingResponseMeta.md index f40b7bc19..fcd580e38 100644 --- a/rest/chat/v2/docs/ListBindingResponseMeta.md +++ b/rest/chat/v2/docs/ListBindingResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/chat/v2/model_list_binding_response_meta.go b/rest/chat/v2/model_list_binding_response_meta.go index 6cf840e20..244d066ca 100644 --- a/rest/chat/v2/model_list_binding_response_meta.go +++ b/rest/chat/v2/model_list_binding_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBindingResponseMeta struct for ListBindingResponseMeta type ListBindingResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/chat/v3/README.md b/rest/chat/v3/README.md index 2b4426eeb..e8dd1a60f 100644 --- a/rest/chat/v3/README.md +++ b/rest/chat/v3/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/content/v1/README.md b/rest/content/v1/README.md index cdeb31c34..2b51d8c8e 100644 --- a/rest/content/v1/README.md +++ b/rest/content/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- API version: 1.1.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) @@ -31,22 +31,46 @@ All URIs are relative to *https://content.twilio.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*ContentApi* | [**CreateContent**](docs/ContentApi.md#createcontent) | **Post** /v1/Content | *ContentApi* | [**DeleteContent**](docs/ContentApi.md#deletecontent) | **Delete** /v1/Content/{Sid} | *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* | [**FetchApprovalFetch**](docs/ContentApprovalRequestsApi.md#fetchapprovalfetch) | **Get** /v1/Content/{Sid}/ApprovalRequests | +*ContentApprovalRequestsApi* | [**FetchApproval**](docs/ContentApprovalRequestsApi.md#fetchapproval) | **Get** /v1/Content/{Sid}/ApprovalRequests | +*ContentApprovalRequestsWhatsappApi* | [**CreateContentApprovalRequest**](docs/ContentApprovalRequestsWhatsappApi.md#createcontentapprovalrequest) | **Post** /v1/Content/{Sid}/ApprovalRequests/whatsapp | *LegacyContentApi* | [**ListLegacyContent**](docs/LegacyContentApi.md#listlegacycontent) | **Get** /v1/LegacyContent | ## Documentation For Models - - [ListLegacyContentResponse](docs/ListLegacyContentResponse.md) - - [ContentV1ContentAndApprovals](docs/ContentV1ContentAndApprovals.md) + - [TwilioCard](docs/TwilioCard.md) + - [ContentV1ApprovalCreate](docs/ContentV1ApprovalCreate.md) + - [CallToActionActionType](docs/CallToActionActionType.md) + - [QuickReplyActionType](docs/QuickReplyActionType.md) - [ContentV1ApprovalFetch](docs/ContentV1ApprovalFetch.md) - - [ContentV1Content](docs/ContentV1Content.md) + - [QuickReplyAction](docs/QuickReplyAction.md) + - [CardActionType](docs/CardActionType.md) + - [ContentV1ContentAndApprovals](docs/ContentV1ContentAndApprovals.md) + - [TwilioLocation](docs/TwilioLocation.md) + - [ContentCreateRequest](docs/ContentCreateRequest.md) + - [TwilioListPicker](docs/TwilioListPicker.md) - [ListContentResponseMeta](docs/ListContentResponseMeta.md) + - [TwilioText](docs/TwilioText.md) + - [WhatsappAuthentication](docs/WhatsappAuthentication.md) + - [WhatsappCard](docs/WhatsappCard.md) + - [ListLegacyContentResponse](docs/ListLegacyContentResponse.md) + - [ListItem](docs/ListItem.md) + - [TwilioMedia](docs/TwilioMedia.md) + - [Types](docs/Types.md) + - [CallToActionAction](docs/CallToActionAction.md) + - [TwilioQuickReply](docs/TwilioQuickReply.md) + - [ContentApprovalRequest](docs/ContentApprovalRequest.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) - [ContentV1LegacyContent](docs/ContentV1LegacyContent.md) - [ListContentAndApprovalsResponse](docs/ListContentAndApprovalsResponse.md) diff --git a/rest/content/v1/content.go b/rest/content/v1/content.go index 316fe37bf..67403f917 100644 --- a/rest/content/v1/content.go +++ b/rest/content/v1/content.go @@ -23,6 +23,50 @@ import ( "github.com/twilio/twilio-go/client" ) +// Optional parameters for the method 'CreateContent' +type CreateContentParams struct { + // + ContentCreateRequest *ContentCreateRequest `json:"ContentCreateRequest,omitempty"` +} + +func (params *CreateContentParams) SetContentCreateRequest(ContentCreateRequest ContentCreateRequest) *CreateContentParams { + params.ContentCreateRequest = &ContentCreateRequest + return params +} + +// Create a Content resource +func (c *ApiService) CreateContent(params *CreateContentParams) (*ContentV1Content, error) { + path := "/v1/Content" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.ContentCreateRequest != nil { + b, err := json.Marshal(*params.ContentCreateRequest) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ContentV1Content{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + // Deletes a Content resource func (c *ApiService) DeleteContent(Sid string) error { path := "/v1/Content/{Sid}" diff --git a/rest/content/v1/content_approval_requests.go b/rest/content/v1/content_approval_requests.go index 8810e823c..636ede04a 100644 --- a/rest/content/v1/content_approval_requests.go +++ b/rest/content/v1/content_approval_requests.go @@ -21,7 +21,7 @@ import ( ) // Fetch a Content resource's approval status by its unique Content Sid -func (c *ApiService) FetchApprovalFetch(Sid string) (*ContentV1ApprovalFetch, error) { +func (c *ApiService) FetchApproval(Sid string) (*ContentV1ApprovalFetch, error) { path := "/v1/Content/{Sid}/ApprovalRequests" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) diff --git a/rest/content/v1/content_approval_requests_whatsapp.go b/rest/content/v1/content_approval_requests_whatsapp.go new file mode 100644 index 000000000..986ddfe46 --- /dev/null +++ b/rest/content/v1/content_approval_requests_whatsapp.go @@ -0,0 +1,65 @@ +/* + * 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" + "net/url" + "strings" +) + +// Optional parameters for the method 'CreateContentApprovalRequest' +type CreateContentApprovalRequestParams struct { + // + ContentApprovalRequest *ContentApprovalRequest `json:"ContentApprovalRequest,omitempty"` +} + +func (params *CreateContentApprovalRequestParams) SetContentApprovalRequest(ContentApprovalRequest ContentApprovalRequest) *CreateContentApprovalRequestParams { + params.ContentApprovalRequest = &ContentApprovalRequest + 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) + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.ContentApprovalRequest != nil { + b, err := json.Marshal(*params.ContentApprovalRequest) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ContentV1ApprovalCreate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/content/v1/docs/AuthenticationAction.md b/rest/content/v1/docs/AuthenticationAction.md new file mode 100644 index 000000000..b0c9eb1ea --- /dev/null +++ b/rest/content/v1/docs/AuthenticationAction.md @@ -0,0 +1,12 @@ +# AuthenticationAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**AuthenticationActionType**](AuthenticationActionType.md) | | +**CopyCodeText** | **string** | | + +[[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/AuthenticationActionType.md b/rest/content/v1/docs/AuthenticationActionType.md new file mode 100644 index 000000000..9de666ab0 --- /dev/null +++ b/rest/content/v1/docs/AuthenticationActionType.md @@ -0,0 +1,12 @@ +# AuthenticationActionType + +## Enum + +Name | Type | Notes +------------ | ------------- | ------------- +**COPY_CODE** | string | (value: `"COPY_CODE"`) + + +[[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/CallToActionAction.md b/rest/content/v1/docs/CallToActionAction.md new file mode 100644 index 000000000..2c0e56f74 --- /dev/null +++ b/rest/content/v1/docs/CallToActionAction.md @@ -0,0 +1,15 @@ +# CallToActionAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**CallToActionActionType**](CallToActionActionType.md) | | +**Title** | **string** | | +**Url** | **string** | |[optional] +**Phone** | **string** | |[optional] +**Id** | **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/CallToActionActionType.md b/rest/content/v1/docs/CallToActionActionType.md new file mode 100644 index 000000000..29e8bab0e --- /dev/null +++ b/rest/content/v1/docs/CallToActionActionType.md @@ -0,0 +1,13 @@ +# CallToActionActionType + +## Enum + +Name | Type | Notes +------------ | ------------- | ------------- +**URL** | string | (value: `"URL"`) +**PHONE_NUMBER** | string | (value: `"PHONE_NUMBER"`) + + +[[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/CardAction.md b/rest/content/v1/docs/CardAction.md new file mode 100644 index 000000000..7c655863b --- /dev/null +++ b/rest/content/v1/docs/CardAction.md @@ -0,0 +1,15 @@ +# CardAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**CardActionType**](CardActionType.md) | | +**Title** | **string** | | +**Url** | **string** | |[optional] +**Phone** | **string** | |[optional] +**Id** | **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/CardActionType.md b/rest/content/v1/docs/CardActionType.md new file mode 100644 index 000000000..17f71a350 --- /dev/null +++ b/rest/content/v1/docs/CardActionType.md @@ -0,0 +1,14 @@ +# CardActionType + +## Enum + +Name | Type | Notes +------------ | ------------- | ------------- +**URL** | string | (value: `"URL"`) +**PHONE_NUMBER** | string | (value: `"PHONE_NUMBER"`) +**QUICK_REPLY** | string | (value: `"QUICK_REPLY"`) + + +[[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/ContentApi.md b/rest/content/v1/docs/ContentApi.md index 71c8bcc70..0effa74ba 100644 --- a/rest/content/v1/docs/ContentApi.md +++ b/rest/content/v1/docs/ContentApi.md @@ -4,12 +4,52 @@ All URIs are relative to *https://content.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateContent**](ContentApi.md#CreateContent) | **Post** /v1/Content | [**DeleteContent**](ContentApi.md#DeleteContent) | **Delete** /v1/Content/{Sid} | [**FetchContent**](ContentApi.md#FetchContent) | **Get** /v1/Content/{Sid} | [**ListContent**](ContentApi.md#ListContent) | **Get** /v1/Content | +## CreateContent + +> ContentV1Content CreateContent(ctx, optional) + + + +Create a Content resource + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateContentParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**ContentCreateRequest** | [**ContentCreateRequest**](ContentCreateRequest.md) | + +### Return type + +[**ContentV1Content**](ContentV1Content.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## DeleteContent > DeleteContent(ctx, Sid) diff --git a/rest/content/v1/docs/ContentApprovalRequest.md b/rest/content/v1/docs/ContentApprovalRequest.md new file mode 100644 index 000000000..1a63219b6 --- /dev/null +++ b/rest/content/v1/docs/ContentApprovalRequest.md @@ -0,0 +1,12 @@ +# ContentApprovalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the template. | +**Category** | **string** | A WhatsApp recognized template category. | + +[[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 5ee953aa0..18af3ba37 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 ------------- | ------------- | ------------- -[**FetchApprovalFetch**](ContentApprovalRequestsApi.md#FetchApprovalFetch) | **Get** /v1/Content/{Sid}/ApprovalRequests | +[**FetchApproval**](ContentApprovalRequestsApi.md#FetchApproval) | **Get** /v1/Content/{Sid}/ApprovalRequests | -## FetchApprovalFetch +## FetchApproval -> ContentV1ApprovalFetch FetchApprovalFetch(ctx, Sid) +> ContentV1ApprovalFetch FetchApproval(ctx, Sid) @@ -26,7 +26,7 @@ Name | Type | Description ### Other Parameters -Other parameters are passed through a pointer to a FetchApprovalFetchParams struct +Other parameters are passed through a pointer to a FetchApprovalParams struct Name | Type | Description diff --git a/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md b/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md new file mode 100644 index 000000000..2e5c2ae10 --- /dev/null +++ b/rest/content/v1/docs/ContentApprovalRequestsWhatsappApi.md @@ -0,0 +1,52 @@ +# ContentApprovalRequestsWhatsappApi + +All URIs are relative to *https://content.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateContentApprovalRequest**](ContentApprovalRequestsWhatsappApi.md#CreateContentApprovalRequest) | **Post** /v1/Content/{Sid}/ApprovalRequests/whatsapp | + + + +## CreateContentApprovalRequest + +> ContentV1ApprovalCreate CreateContentApprovalRequest(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | + +### Other Parameters + +Other parameters are passed through a pointer to a CreateContentApprovalRequestParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**ContentApprovalRequest** | [**ContentApprovalRequest**](ContentApprovalRequest.md) | + +### Return type + +[**ContentV1ApprovalCreate**](ContentV1ApprovalCreate.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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/content/v1/docs/ContentCreateRequest.md b/rest/content/v1/docs/ContentCreateRequest.md new file mode 100644 index 000000000..93a22deb6 --- /dev/null +++ b/rest/content/v1/docs/ContentCreateRequest.md @@ -0,0 +1,14 @@ +# ContentCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | User defined name of the content |[optional] +**Variables** | **map[string]string** | Key value pairs of variable name to value |[optional] +**Language** | **string** | Language code for the content | +**Types** | [**Types**](Types.md) | | + +[[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/ContentV1ApprovalCreate.md b/rest/content/v1/docs/ContentV1ApprovalCreate.md new file mode 100644 index 000000000..f63ef98db --- /dev/null +++ b/rest/content/v1/docs/ContentV1ApprovalCreate.md @@ -0,0 +1,16 @@ +# ContentV1ApprovalCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | +**Category** | Pointer to **string** | | +**ContentType** | Pointer to **string** | | +**Status** | Pointer to **string** | | +**RejectionReason** | Pointer to **string** | | +**AllowCategoryChange** | Pointer to **bool** | | + +[[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/ContentV1Content.md b/rest/content/v1/docs/ContentV1Content.md index 77a3d6cd3..a2e1f012c 100644 --- a/rest/content/v1/docs/ContentV1Content.md +++ b/rest/content/v1/docs/ContentV1Content.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **FriendlyName** | Pointer to **string** | A string name used to describe the Content resource. Not visible to the end recipient. | **Language** | Pointer to **string** | Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. | **Variables** | Pointer to **interface{}** | Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. | -**Types** | Pointer to **interface{}** | The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource. | +**Types** | Pointer to **interface{}** | The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. | **Url** | Pointer to **string** | The URL of the resource, relative to `https://content.twilio.com`. | **Links** | Pointer to **map[string]interface{}** | A list of links related to the Content resource, such as approval_fetch and approval_create | diff --git a/rest/content/v1/docs/ContentV1ContentAndApprovals.md b/rest/content/v1/docs/ContentV1ContentAndApprovals.md index 75792fa60..9d5370b6e 100644 --- a/rest/content/v1/docs/ContentV1ContentAndApprovals.md +++ b/rest/content/v1/docs/ContentV1ContentAndApprovals.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **FriendlyName** | Pointer to **string** | A string name used to describe the Content resource. Not visible to the end recipient. | **Language** | Pointer to **string** | Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. | **Variables** | Pointer to **interface{}** | Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. | -**Types** | Pointer to **interface{}** | The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource. | +**Types** | Pointer to **interface{}** | The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. | **ApprovalRequests** | Pointer to **interface{}** | The submitted information and approval request status of the Content 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/content/v1/docs/ContentV1LegacyContent.md b/rest/content/v1/docs/ContentV1LegacyContent.md index 1d536cae4..847e48a41 100644 --- a/rest/content/v1/docs/ContentV1LegacyContent.md +++ b/rest/content/v1/docs/ContentV1LegacyContent.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **FriendlyName** | Pointer to **string** | A string name used to describe the Content resource. Not visible to the end recipient. | **Language** | Pointer to **string** | Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. | **Variables** | Pointer to **interface{}** | Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. | -**Types** | Pointer to **interface{}** | The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource. | +**Types** | Pointer to **interface{}** | The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. | **LegacyTemplateName** | Pointer to **string** | The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed | **LegacyBody** | Pointer to **string** | The string body field of the legacy content template associated with this Content resource | **Url** | Pointer to **string** | The URL of the resource, relative to `https://content.twilio.com`. | diff --git a/rest/content/v1/docs/ListContentResponseMeta.md b/rest/content/v1/docs/ListContentResponseMeta.md index 849b6c232..256f9aee7 100644 --- a/rest/content/v1/docs/ListContentResponseMeta.md +++ b/rest/content/v1/docs/ListContentResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/ListItem.md b/rest/content/v1/docs/ListItem.md new file mode 100644 index 000000000..3e9222ae6 --- /dev/null +++ b/rest/content/v1/docs/ListItem.md @@ -0,0 +1,13 @@ +# ListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Item** | **string** | | +**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/QuickReplyAction.md b/rest/content/v1/docs/QuickReplyAction.md new file mode 100644 index 000000000..0c26f115b --- /dev/null +++ b/rest/content/v1/docs/QuickReplyAction.md @@ -0,0 +1,13 @@ +# QuickReplyAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**QuickReplyActionType**](QuickReplyActionType.md) | | +**Title** | **string** | | +**Id** | **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/QuickReplyActionType.md b/rest/content/v1/docs/QuickReplyActionType.md new file mode 100644 index 000000000..083186775 --- /dev/null +++ b/rest/content/v1/docs/QuickReplyActionType.md @@ -0,0 +1,12 @@ +# QuickReplyActionType + +## Enum + +Name | Type | Notes +------------ | ------------- | ------------- +**QUICK_REPLY** | string | (value: `"QUICK_REPLY"`) + + +[[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/TwilioCallToAction.md b/rest/content/v1/docs/TwilioCallToAction.md new file mode 100644 index 000000000..d423c1251 --- /dev/null +++ b/rest/content/v1/docs/TwilioCallToAction.md @@ -0,0 +1,12 @@ +# TwilioCallToAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | |[optional] +**Actions** | [**[]CallToActionAction**](CallToActionAction.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/content/v1/docs/TwilioCard.md b/rest/content/v1/docs/TwilioCard.md new file mode 100644 index 000000000..9e297e8f9 --- /dev/null +++ b/rest/content/v1/docs/TwilioCard.md @@ -0,0 +1,14 @@ +# TwilioCard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | | +**Subtitle** | **string** | |[optional] +**Media** | **[]string** | |[optional] +**Actions** | [**[]CardAction**](CardAction.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/content/v1/docs/TwilioListPicker.md b/rest/content/v1/docs/TwilioListPicker.md new file mode 100644 index 000000000..1cce180de --- /dev/null +++ b/rest/content/v1/docs/TwilioListPicker.md @@ -0,0 +1,13 @@ +# TwilioListPicker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | | +**Button** | **string** | | +**Items** | [**[]ListItem**](ListItem.md) | | + +[[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/TwilioLocation.md b/rest/content/v1/docs/TwilioLocation.md new file mode 100644 index 000000000..e6bed165a --- /dev/null +++ b/rest/content/v1/docs/TwilioLocation.md @@ -0,0 +1,13 @@ +# TwilioLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **float32** | | +**Longitude** | **float32** | | +**Label** | **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/api/v2010/docs/FetchHealthCheck200Response.md b/rest/content/v1/docs/TwilioMedia.md similarity index 75% rename from rest/api/v2010/docs/FetchHealthCheck200Response.md rename to rest/content/v1/docs/TwilioMedia.md index dc0da12ef..66617f6e9 100644 --- a/rest/api/v2010/docs/FetchHealthCheck200Response.md +++ b/rest/content/v1/docs/TwilioMedia.md @@ -1,10 +1,11 @@ -# FetchHealthCheck200Response +# TwilioMedia ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | **string** | HealthCheck status |[optional] +**Body** | **string** | |[optional] +**Media** | **[]string** | | [[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/TwilioQuickReply.md b/rest/content/v1/docs/TwilioQuickReply.md new file mode 100644 index 000000000..191f000e3 --- /dev/null +++ b/rest/content/v1/docs/TwilioQuickReply.md @@ -0,0 +1,12 @@ +# TwilioQuickReply + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | | +**Actions** | [**[]QuickReplyAction**](QuickReplyAction.md) | | + +[[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/TwilioText.md b/rest/content/v1/docs/TwilioText.md new file mode 100644 index 000000000..e20d44fc5 --- /dev/null +++ b/rest/content/v1/docs/TwilioText.md @@ -0,0 +1,11 @@ +# TwilioText + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | | + +[[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 new file mode 100644 index 000000000..93d8aae48 --- /dev/null +++ b/rest/content/v1/docs/Types.md @@ -0,0 +1,19 @@ +# Types + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TwilioText** | Pointer to [**TwilioText**](TwilioText.md) | | +**TwilioMedia** | Pointer to [**TwilioMedia**](TwilioMedia.md) | | +**TwilioLocation** | Pointer to [**TwilioLocation**](TwilioLocation.md) | | +**TwilioListPicker** | Pointer to [**TwilioListPicker**](TwilioListPicker.md) | | +**TwilioCallToAction** | Pointer to [**TwilioCallToAction**](TwilioCallToAction.md) | | +**TwilioQuickReply** | Pointer to [**TwilioQuickReply**](TwilioQuickReply.md) | | +**TwilioCard** | Pointer to [**TwilioCard**](TwilioCard.md) | | +**WhatsappCard** | Pointer to [**WhatsappCard**](WhatsappCard.md) | | +**WhatsappAuthentication** | Pointer to [**WhatsappAuthentication**](WhatsappAuthentication.md) | | + +[[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/WhatsappAuthentication.md b/rest/content/v1/docs/WhatsappAuthentication.md new file mode 100644 index 000000000..952012392 --- /dev/null +++ b/rest/content/v1/docs/WhatsappAuthentication.md @@ -0,0 +1,13 @@ +# WhatsappAuthentication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddSecurityRecommendation** | **bool** | |[optional] +**CodeExpirationMinutes** | **float32** | |[optional] +**Actions** | [**[]AuthenticationAction**](AuthenticationAction.md) | | + +[[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/WhatsappCard.md b/rest/content/v1/docs/WhatsappCard.md new file mode 100644 index 000000000..d0853af2e --- /dev/null +++ b/rest/content/v1/docs/WhatsappCard.md @@ -0,0 +1,15 @@ +# WhatsappCard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | | +**Footer** | **string** | |[optional] +**Media** | **[]string** | |[optional] +**HeaderText** | **string** | |[optional] +**Actions** | [**[]CardAction**](CardAction.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/content/v1/model_authentication_action.go b/rest/content/v1/model_authentication_action.go new file mode 100644 index 000000000..84514509c --- /dev/null +++ b/rest/content/v1/model_authentication_action.go @@ -0,0 +1,21 @@ +/* + * 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 + +// AuthenticationAction struct for AuthenticationAction +type AuthenticationAction struct { + Type AuthenticationActionType `json:"type"` + CopyCodeText string `json:"copy_code_text"` +} diff --git a/rest/content/v1/model_authentication_action_type.go b/rest/content/v1/model_authentication_action_type.go new file mode 100644 index 000000000..e20e730d1 --- /dev/null +++ b/rest/content/v1/model_authentication_action_type.go @@ -0,0 +1,23 @@ +/* + * 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 + +// AuthenticationActionType the model 'AuthenticationActionType' +type AuthenticationActionType string + +// List of authenticationActionType +const ( + AUTHENTICATIONACTIONTYPE_COPY_CODE AuthenticationActionType = "COPY_CODE" +) diff --git a/rest/content/v1/model_call_to_action_action.go b/rest/content/v1/model_call_to_action_action.go new file mode 100644 index 000000000..af30ccca0 --- /dev/null +++ b/rest/content/v1/model_call_to_action_action.go @@ -0,0 +1,24 @@ +/* + * 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 + +// CallToActionAction struct for CallToActionAction +type CallToActionAction struct { + Type CallToActionActionType `json:"type"` + Title string `json:"title"` + Url string `json:"url,omitempty"` + Phone string `json:"phone,omitempty"` + Id string `json:"id,omitempty"` +} diff --git a/rest/content/v1/model_call_to_action_action_type.go b/rest/content/v1/model_call_to_action_action_type.go new file mode 100644 index 000000000..7f145e7ce --- /dev/null +++ b/rest/content/v1/model_call_to_action_action_type.go @@ -0,0 +1,24 @@ +/* + * 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 + +// CallToActionActionType the model 'CallToActionActionType' +type CallToActionActionType string + +// List of callToActionActionType +const ( + CALLTOACTIONACTIONTYPE_URL CallToActionActionType = "URL" + CALLTOACTIONACTIONTYPE_PHONE_NUMBER CallToActionActionType = "PHONE_NUMBER" +) diff --git a/rest/content/v1/model_card_action.go b/rest/content/v1/model_card_action.go new file mode 100644 index 000000000..9148759dc --- /dev/null +++ b/rest/content/v1/model_card_action.go @@ -0,0 +1,24 @@ +/* + * 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 + +// CardAction struct for CardAction +type CardAction struct { + Type CardActionType `json:"type"` + Title string `json:"title"` + Url string `json:"url,omitempty"` + Phone string `json:"phone,omitempty"` + Id string `json:"id,omitempty"` +} diff --git a/rest/content/v1/model_card_action_type.go b/rest/content/v1/model_card_action_type.go new file mode 100644 index 000000000..971bc992f --- /dev/null +++ b/rest/content/v1/model_card_action_type.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 + +// CardActionType the model 'CardActionType' +type CardActionType string + +// List of cardActionType +const ( + CARDACTIONTYPE_URL CardActionType = "URL" + CARDACTIONTYPE_PHONE_NUMBER CardActionType = "PHONE_NUMBER" + CARDACTIONTYPE_QUICK_REPLY CardActionType = "QUICK_REPLY" +) diff --git a/rest/content/v1/model_content_approval_request.go b/rest/content/v1/model_content_approval_request.go new file mode 100644 index 000000000..a52bc7dc0 --- /dev/null +++ b/rest/content/v1/model_content_approval_request.go @@ -0,0 +1,23 @@ +/* + * 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 + +// ContentApprovalRequest Content approval request body +type ContentApprovalRequest struct { + // Name of the template. + Name string `json:"name"` + // A WhatsApp recognized template category. + Category string `json:"category"` +} diff --git a/rest/content/v1/model_content_create_request.go b/rest/content/v1/model_content_create_request.go new file mode 100644 index 000000000..81640273d --- /dev/null +++ b/rest/content/v1/model_content_create_request.go @@ -0,0 +1,26 @@ +/* + * 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 + +// ContentCreateRequest Content creation request body +type ContentCreateRequest struct { + // User defined name of the content + FriendlyName string `json:"friendly_name,omitempty"` + // Key value pairs of variable name to value + Variables map[string]string `json:"variables,omitempty"` + // Language code for the content + Language string `json:"language"` + Types Types `json:"types"` +} diff --git a/rest/content/v1/model_content_v1_approval_create.go b/rest/content/v1/model_content_v1_approval_create.go new file mode 100644 index 000000000..21263c762 --- /dev/null +++ b/rest/content/v1/model_content_v1_approval_create.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 + +// ContentV1ApprovalCreate struct for ContentV1ApprovalCreate +type ContentV1ApprovalCreate struct { + Name *string `json:"name,omitempty"` + Category *string `json:"category,omitempty"` + ContentType *string `json:"content_type,omitempty"` + Status *string `json:"status,omitempty"` + RejectionReason *string `json:"rejection_reason,omitempty"` + AllowCategoryChange *bool `json:"allow_category_change,omitempty"` +} diff --git a/rest/content/v1/model_content_v1_content.go b/rest/content/v1/model_content_v1_content.go index 20b199d6d..08fcc257d 100644 --- a/rest/content/v1/model_content_v1_content.go +++ b/rest/content/v1/model_content_v1_content.go @@ -34,7 +34,7 @@ type ContentV1Content struct { Language *string `json:"language,omitempty"` // Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. Variables *interface{} `json:"variables,omitempty"` - // The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource. + // The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. Types *interface{} `json:"types,omitempty"` // The URL of the resource, relative to `https://content.twilio.com`. Url *string `json:"url,omitempty"` diff --git a/rest/content/v1/model_content_v1_content_and_approvals.go b/rest/content/v1/model_content_v1_content_and_approvals.go index b17273ec8..8844a4465 100644 --- a/rest/content/v1/model_content_v1_content_and_approvals.go +++ b/rest/content/v1/model_content_v1_content_and_approvals.go @@ -34,7 +34,7 @@ type ContentV1ContentAndApprovals struct { Language *string `json:"language,omitempty"` // Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. Variables *interface{} `json:"variables,omitempty"` - // The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource. + // The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. Types *interface{} `json:"types,omitempty"` // The submitted information and approval request status of the Content resource. ApprovalRequests *interface{} `json:"approval_requests,omitempty"` diff --git a/rest/content/v1/model_content_v1_legacy_content.go b/rest/content/v1/model_content_v1_legacy_content.go index f9acc2ba9..aa0b6afc5 100644 --- a/rest/content/v1/model_content_v1_legacy_content.go +++ b/rest/content/v1/model_content_v1_legacy_content.go @@ -34,7 +34,7 @@ type ContentV1LegacyContent struct { Language *string `json:"language,omitempty"` // Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. Variables *interface{} `json:"variables,omitempty"` - // The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource. + // The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. Types *interface{} `json:"types,omitempty"` // The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed LegacyTemplateName *string `json:"legacy_template_name,omitempty"` diff --git a/rest/content/v1/model_list_content_response_meta.go b/rest/content/v1/model_list_content_response_meta.go index 572cc8343..0b5a4c946 100644 --- a/rest/content/v1/model_list_content_response_meta.go +++ b/rest/content/v1/model_list_content_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListContentResponseMeta struct for ListContentResponseMeta type ListContentResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/api/v2010/model_fetch_health_check_200_response.go b/rest/content/v1/model_list_item.go similarity index 72% rename from rest/api/v2010/model_fetch_health_check_200_response.go rename to rest/content/v1/model_list_item.go index c7211a542..ccf102af5 100644 --- a/rest/api/v2010/model_fetch_health_check_200_response.go +++ b/rest/content/v1/model_list_item.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Api + * Twilio - Content * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -14,8 +14,9 @@ package openapi -// FetchHealthCheck200Response struct for FetchHealthCheck200Response -type FetchHealthCheck200Response struct { - // HealthCheck status - Status string `json:"status,omitempty"` +// ListItem struct for ListItem +type ListItem struct { + Id string `json:"id"` + Item string `json:"item"` + Description string `json:"description,omitempty"` } diff --git a/rest/content/v1/model_quick_reply_action.go b/rest/content/v1/model_quick_reply_action.go new file mode 100644 index 000000000..41dd0f204 --- /dev/null +++ b/rest/content/v1/model_quick_reply_action.go @@ -0,0 +1,22 @@ +/* + * 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 + +// QuickReplyAction struct for QuickReplyAction +type QuickReplyAction struct { + Type QuickReplyActionType `json:"type"` + Title string `json:"title"` + Id string `json:"id,omitempty"` +} diff --git a/rest/content/v1/model_quick_reply_action_type.go b/rest/content/v1/model_quick_reply_action_type.go new file mode 100644 index 000000000..936faf6ac --- /dev/null +++ b/rest/content/v1/model_quick_reply_action_type.go @@ -0,0 +1,23 @@ +/* + * 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 + +// QuickReplyActionType the model 'QuickReplyActionType' +type QuickReplyActionType string + +// List of quickReplyActionType +const ( + QUICKREPLYACTIONTYPE_QUICK_REPLY QuickReplyActionType = "QUICK_REPLY" +) diff --git a/rest/content/v1/model_twilio_call_to_action.go b/rest/content/v1/model_twilio_call_to_action.go new file mode 100644 index 000000000..fd04a06d6 --- /dev/null +++ b/rest/content/v1/model_twilio_call_to_action.go @@ -0,0 +1,21 @@ +/* + * 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 + +// TwilioCallToAction twilio/call-to-action buttons let recipients tap to trigger actions such as launching a website or making a phone call. +type TwilioCallToAction struct { + Body string `json:"body,omitempty"` + Actions []CallToActionAction `json:"actions,omitempty"` +} diff --git a/rest/content/v1/model_twilio_card.go b/rest/content/v1/model_twilio_card.go new file mode 100644 index 000000000..263323814 --- /dev/null +++ b/rest/content/v1/model_twilio_card.go @@ -0,0 +1,23 @@ +/* + * 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 + +// TwilioCard twilio/card is a structured template which can be used to send a series of related information. It must include a title and at least one additional field. +type TwilioCard struct { + Title string `json:"title"` + Subtitle string `json:"subtitle,omitempty"` + Media []string `json:"media,omitempty"` + Actions []CardAction `json:"actions,omitempty"` +} diff --git a/rest/content/v1/model_twilio_list_picker.go b/rest/content/v1/model_twilio_list_picker.go new file mode 100644 index 000000000..fe2fc0126 --- /dev/null +++ b/rest/content/v1/model_twilio_list_picker.go @@ -0,0 +1,22 @@ +/* + * 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 + +// TwilioListPicker twilio/list-picker includes a menu of up to 10 options, which offers a simple way for users to make a selection. +type TwilioListPicker struct { + Body string `json:"body"` + Button string `json:"button"` + Items []ListItem `json:"items"` +} diff --git a/rest/content/v1/model_twilio_location.go b/rest/content/v1/model_twilio_location.go new file mode 100644 index 000000000..c9a487c64 --- /dev/null +++ b/rest/content/v1/model_twilio_location.go @@ -0,0 +1,58 @@ +/* + * 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" +) + +// TwilioLocation twilio/location type contains a location pin and an optional label, which can be used to enhance delivery notifications or connect recipients to physical experiences you offer. +type TwilioLocation struct { + Latitude float32 `json:"latitude"` + Longitude float32 `json:"longitude"` + Label string `json:"label,omitempty"` +} + +func (response *TwilioLocation) UnmarshalJSON(bytes []byte) (err error) { + raw := struct { + Latitude interface{} `json:"latitude"` + Longitude interface{} `json:"longitude"` + Label string `json:"label"` + }{} + + if err = json.Unmarshal(bytes, &raw); err != nil { + return err + } + + *response = TwilioLocation{ + Label: raw.Label, + } + + responseLatitude, err := client.UnmarshalFloat32(&raw.Latitude) + if err != nil { + return err + } + response.Latitude = *responseLatitude + + responseLongitude, err := client.UnmarshalFloat32(&raw.Longitude) + if err != nil { + return err + } + response.Longitude = *responseLongitude + + return +} diff --git a/rest/content/v1/model_twilio_media.go b/rest/content/v1/model_twilio_media.go new file mode 100644 index 000000000..343d90022 --- /dev/null +++ b/rest/content/v1/model_twilio_media.go @@ -0,0 +1,21 @@ +/* + * 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 + +// TwilioMedia twilio/media is used to send file attachments, or to send long text via MMS in the US and Canada. As such, the twilio/media type must contain at least ONE of text or media content. +type TwilioMedia struct { + Body string `json:"body,omitempty"` + Media []string `json:"media"` +} diff --git a/rest/content/v1/model_twilio_quick_reply.go b/rest/content/v1/model_twilio_quick_reply.go new file mode 100644 index 000000000..ec112e4a9 --- /dev/null +++ b/rest/content/v1/model_twilio_quick_reply.go @@ -0,0 +1,21 @@ +/* + * 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 + +// TwilioQuickReply twilio/quick-reply templates let recipients tap, rather than type, to respond to the message. +type TwilioQuickReply struct { + Body string `json:"body"` + Actions []QuickReplyAction `json:"actions"` +} diff --git a/rest/content/v1/model_twilio_text.go b/rest/content/v1/model_twilio_text.go new file mode 100644 index 000000000..6d0396e76 --- /dev/null +++ b/rest/content/v1/model_twilio_text.go @@ -0,0 +1,20 @@ +/* + * 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 + +// TwilioText Type containing only plain text-based content +type TwilioText struct { + Body string `json:"body"` +} diff --git a/rest/content/v1/model_types.go b/rest/content/v1/model_types.go new file mode 100644 index 000000000..a3c7c4625 --- /dev/null +++ b/rest/content/v1/model_types.go @@ -0,0 +1,28 @@ +/* + * 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 + +// Types Content types +type Types struct { + TwilioText *TwilioText `json:"twilio/text,omitempty"` + TwilioMedia *TwilioMedia `json:"twilio/media,omitempty"` + TwilioLocation *TwilioLocation `json:"twilio/location,omitempty"` + TwilioListPicker *TwilioListPicker `json:"twilio/list-picker,omitempty"` + TwilioCallToAction *TwilioCallToAction `json:"twilio/call-to-action,omitempty"` + TwilioQuickReply *TwilioQuickReply `json:"twilio/quick-reply,omitempty"` + TwilioCard *TwilioCard `json:"twilio/card,omitempty"` + WhatsappCard *WhatsappCard `json:"whatsapp/card,omitempty"` + WhatsappAuthentication *WhatsappAuthentication `json:"whatsapp/authentication,omitempty"` +} diff --git a/rest/content/v1/model_whatsapp_authentication.go b/rest/content/v1/model_whatsapp_authentication.go new file mode 100644 index 000000000..33eecdcda --- /dev/null +++ b/rest/content/v1/model_whatsapp_authentication.go @@ -0,0 +1,53 @@ +/* + * 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" +) + +// WhatsappAuthentication whatsApp/authentication templates let companies deliver WA approved one-time-password button. +type WhatsappAuthentication struct { + AddSecurityRecommendation bool `json:"add_security_recommendation,omitempty"` + CodeExpirationMinutes float32 `json:"code_expiration_minutes,omitempty"` + Actions []AuthenticationAction `json:"actions"` +} + +func (response *WhatsappAuthentication) UnmarshalJSON(bytes []byte) (err error) { + raw := struct { + AddSecurityRecommendation bool `json:"add_security_recommendation"` + CodeExpirationMinutes interface{} `json:"code_expiration_minutes"` + Actions []AuthenticationAction `json:"actions"` + }{} + + if err = json.Unmarshal(bytes, &raw); err != nil { + return err + } + + *response = WhatsappAuthentication{ + AddSecurityRecommendation: raw.AddSecurityRecommendation, + Actions: raw.Actions, + } + + responseCodeExpirationMinutes, err := client.UnmarshalFloat32(&raw.CodeExpirationMinutes) + if err != nil { + return err + } + response.CodeExpirationMinutes = *responseCodeExpirationMinutes + + return +} diff --git a/rest/content/v1/model_whatsapp_card.go b/rest/content/v1/model_whatsapp_card.go new file mode 100644 index 000000000..e62aa164b --- /dev/null +++ b/rest/content/v1/model_whatsapp_card.go @@ -0,0 +1,24 @@ +/* + * 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 + +// WhatsappCard whatsapp/card is a structured template which can be used to send a series of related information. It must include a body and at least one additional field. +type WhatsappCard struct { + Body string `json:"body"` + Footer string `json:"footer,omitempty"` + Media []string `json:"media,omitempty"` + HeaderText string `json:"header_text,omitempty"` + Actions []CardAction `json:"actions,omitempty"` +} diff --git a/rest/conversations/v1/README.md b/rest/conversations/v1/README.md index ca9c0432a..a2da1b920 100644 --- a/rest/conversations/v1/README.md +++ b/rest/conversations/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/ListConfigurationAddressResponseMeta.md b/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md index bf85cc36d..8d5b7e65c 100644 --- a/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md +++ b/rest/conversations/v1/docs/ListConfigurationAddressResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/conversations/v1/model_list_configuration_address_response_meta.go b/rest/conversations/v1/model_list_configuration_address_response_meta.go index 8bea5db50..cd100f004 100644 --- a/rest/conversations/v1/model_list_configuration_address_response_meta.go +++ b/rest/conversations/v1/model_list_configuration_address_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListConfigurationAddressResponseMeta struct for ListConfigurationAddressResponseMeta type ListConfigurationAddressResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/events/v1/README.md b/rest/events/v1/README.md index 604f42e29..780e7040b 100644 --- a/rest/events/v1/README.md +++ b/rest/events/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/events/v1/docs/ListEventTypeResponseMeta.md b/rest/events/v1/docs/ListEventTypeResponseMeta.md index d7efddb60..0951793c9 100644 --- a/rest/events/v1/docs/ListEventTypeResponseMeta.md +++ b/rest/events/v1/docs/ListEventTypeResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/events/v1/model_list_event_type_response_meta.go b/rest/events/v1/model_list_event_type_response_meta.go index 16567c764..4bf84af97 100644 --- a/rest/events/v1/model_list_event_type_response_meta.go +++ b/rest/events/v1/model_list_event_type_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListEventTypeResponseMeta struct for ListEventTypeResponseMeta type ListEventTypeResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md index 2b4745104..3b44e1f8b 100644 --- a/rest/flex/v1/README.md +++ b/rest/flex/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) @@ -37,6 +37,7 @@ Class | Method | HTTP request | Description *ChannelsApi* | [**FetchChannel**](docs/ChannelsApi.md#fetchchannel) | **Get** /v1/Channels/{Sid} | *ChannelsApi* | [**ListChannel**](docs/ChannelsApi.md#listchannel) | **Get** /v1/Channels | *ConfigurationApi* | [**FetchConfiguration**](docs/ConfigurationApi.md#fetchconfiguration) | **Get** /v1/Configuration | +*ConfigurationApi* | [**UpdateConfiguration**](docs/ConfigurationApi.md#updateconfiguration) | **Post** /v1/Configuration | *FlexFlowsApi* | [**CreateFlexFlow**](docs/FlexFlowsApi.md#createflexflow) | **Post** /v1/FlexFlows | *FlexFlowsApi* | [**DeleteFlexFlow**](docs/FlexFlowsApi.md#deleteflexflow) | **Delete** /v1/FlexFlows/{Sid} | *FlexFlowsApi* | [**FetchFlexFlow**](docs/FlexFlowsApi.md#fetchflexflow) | **Get** /v1/FlexFlows/{Sid} | @@ -76,6 +77,24 @@ Class | Method | HTTP request | Description *InteractionsChannelsParticipantsApi* | [**CreateInteractionChannelParticipant**](docs/InteractionsChannelsParticipantsApi.md#createinteractionchannelparticipant) | **Post** /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants | *InteractionsChannelsParticipantsApi* | [**ListInteractionChannelParticipant**](docs/InteractionsChannelsParticipantsApi.md#listinteractionchannelparticipant) | **Get** /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants | *InteractionsChannelsParticipantsApi* | [**UpdateInteractionChannelParticipant**](docs/InteractionsChannelsParticipantsApi.md#updateinteractionchannelparticipant) | **Post** /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants/{Sid} | +*PluginServiceConfigurationsApi* | [**CreatePluginConfiguration**](docs/PluginServiceConfigurationsApi.md#createpluginconfiguration) | **Post** /v1/PluginService/Configurations | +*PluginServiceConfigurationsApi* | [**FetchPluginConfiguration**](docs/PluginServiceConfigurationsApi.md#fetchpluginconfiguration) | **Get** /v1/PluginService/Configurations/{Sid} | +*PluginServiceConfigurationsApi* | [**ListPluginConfiguration**](docs/PluginServiceConfigurationsApi.md#listpluginconfiguration) | **Get** /v1/PluginService/Configurations | +*PluginServiceConfigurationsArchiveApi* | [**UpdatePluginConfigurationArchive**](docs/PluginServiceConfigurationsArchiveApi.md#updatepluginconfigurationarchive) | **Post** /v1/PluginService/Configurations/{Sid}/Archive | +*PluginServiceConfigurationsPluginsApi* | [**FetchConfiguredPlugin**](docs/PluginServiceConfigurationsPluginsApi.md#fetchconfiguredplugin) | **Get** /v1/PluginService/Configurations/{ConfigurationSid}/Plugins/{PluginSid} | +*PluginServiceConfigurationsPluginsApi* | [**ListConfiguredPlugin**](docs/PluginServiceConfigurationsPluginsApi.md#listconfiguredplugin) | **Get** /v1/PluginService/Configurations/{ConfigurationSid}/Plugins | +*PluginServicePluginsApi* | [**CreatePlugin**](docs/PluginServicePluginsApi.md#createplugin) | **Post** /v1/PluginService/Plugins | +*PluginServicePluginsApi* | [**FetchPlugin**](docs/PluginServicePluginsApi.md#fetchplugin) | **Get** /v1/PluginService/Plugins/{Sid} | +*PluginServicePluginsApi* | [**ListPlugin**](docs/PluginServicePluginsApi.md#listplugin) | **Get** /v1/PluginService/Plugins | +*PluginServicePluginsApi* | [**UpdatePlugin**](docs/PluginServicePluginsApi.md#updateplugin) | **Post** /v1/PluginService/Plugins/{Sid} | +*PluginServicePluginsArchiveApi* | [**UpdatePluginArchive**](docs/PluginServicePluginsArchiveApi.md#updatepluginarchive) | **Post** /v1/PluginService/Plugins/{Sid}/Archive | +*PluginServicePluginsVersionsApi* | [**CreatePluginVersion**](docs/PluginServicePluginsVersionsApi.md#createpluginversion) | **Post** /v1/PluginService/Plugins/{PluginSid}/Versions | +*PluginServicePluginsVersionsApi* | [**FetchPluginVersion**](docs/PluginServicePluginsVersionsApi.md#fetchpluginversion) | **Get** /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid} | +*PluginServicePluginsVersionsApi* | [**ListPluginVersion**](docs/PluginServicePluginsVersionsApi.md#listpluginversion) | **Get** /v1/PluginService/Plugins/{PluginSid}/Versions | +*PluginServicePluginsVersionsArchiveApi* | [**UpdatePluginVersionArchive**](docs/PluginServicePluginsVersionsArchiveApi.md#updatepluginversionarchive) | **Post** /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}/Archive | +*PluginServiceReleasesApi* | [**CreatePluginRelease**](docs/PluginServiceReleasesApi.md#createpluginrelease) | **Post** /v1/PluginService/Releases | +*PluginServiceReleasesApi* | [**FetchPluginRelease**](docs/PluginServiceReleasesApi.md#fetchpluginrelease) | **Get** /v1/PluginService/Releases/{Sid} | +*PluginServiceReleasesApi* | [**ListPluginRelease**](docs/PluginServiceReleasesApi.md#listpluginrelease) | **Get** /v1/PluginService/Releases | *WebChannelsApi* | [**CreateWebChannel**](docs/WebChannelsApi.md#createwebchannel) | **Post** /v1/WebChannels | *WebChannelsApi* | [**DeleteWebChannel**](docs/WebChannelsApi.md#deletewebchannel) | **Delete** /v1/WebChannels/{Sid} | *WebChannelsApi* | [**FetchWebChannel**](docs/WebChannelsApi.md#fetchwebchannel) | **Get** /v1/WebChannels/{Sid} | @@ -93,21 +112,31 @@ Class | Method | HTTP request | Description - [ListChannelResponse](docs/ListChannelResponse.md) - [FlexV1InteractionChannelParticipant](docs/FlexV1InteractionChannelParticipant.md) - [ListInsightsQuestionnairesCategoryResponse](docs/ListInsightsQuestionnairesCategoryResponse.md) + - [ListPluginConfigurationResponse](docs/ListPluginConfigurationResponse.md) - [ListInsightsQuestionnairesResponse](docs/ListInsightsQuestionnairesResponse.md) - [FlexV1InsightsQuestionnaires](docs/FlexV1InsightsQuestionnaires.md) + - [FlexV1ConfiguredPlugin](docs/FlexV1ConfiguredPlugin.md) - [FlexV1Interaction](docs/FlexV1Interaction.md) - [ListInsightsConversationsResponse](docs/ListInsightsConversationsResponse.md) - [FlexV1InsightsQuestionnairesQuestion](docs/FlexV1InsightsQuestionnairesQuestion.md) - [ListFlexFlowResponse](docs/ListFlexFlowResponse.md) + - [ListConfiguredPluginResponse](docs/ListConfiguredPluginResponse.md) - [FlexV1InsightsAssessmentsComment](docs/FlexV1InsightsAssessmentsComment.md) - [FlexV1InteractionChannelInvite](docs/FlexV1InteractionChannelInvite.md) - [FlexV1InsightsUserRoles](docs/FlexV1InsightsUserRoles.md) + - [ListPluginResponse](docs/ListPluginResponse.md) + - [ListPluginReleaseResponse](docs/ListPluginReleaseResponse.md) - [FlexV1Channel](docs/FlexV1Channel.md) - [ListInsightsAssessmentsResponse](docs/ListInsightsAssessmentsResponse.md) + - [FlexV1PluginRelease](docs/FlexV1PluginRelease.md) - [FlexV1InsightsSettingsComment](docs/FlexV1InsightsSettingsComment.md) - [ListInsightsSegmentsResponse](docs/ListInsightsSegmentsResponse.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) - [ListInteractionChannelParticipantResponse](docs/ListInteractionChannelParticipantResponse.md) - [FlexV1FlexFlow](docs/FlexV1FlexFlow.md) - [ListInsightsAssessmentsCommentResponse](docs/ListInsightsAssessmentsCommentResponse.md) @@ -116,7 +145,10 @@ Class | Method | HTTP request | Description - [FlexV1InsightsAssessments](docs/FlexV1InsightsAssessments.md) - [FlexV1InsightsConversations](docs/FlexV1InsightsConversations.md) - [FlexV1InsightsQuestionnairesCategory](docs/FlexV1InsightsQuestionnairesCategory.md) + - [ListPluginVersionResponse](docs/ListPluginVersionResponse.md) - [FlexV1ProvisioningStatus](docs/FlexV1ProvisioningStatus.md) + - [FlexV1Plugin](docs/FlexV1Plugin.md) + - [FlexV1PluginVersionArchive](docs/FlexV1PluginVersionArchive.md) - [ListChannelResponseMeta](docs/ListChannelResponseMeta.md) - [ListInteractionChannelInviteResponse](docs/ListInteractionChannelInviteResponse.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/configuration.go b/rest/flex/v1/configuration.go index a106cb399..180e69eda 100644 --- a/rest/flex/v1/configuration.go +++ b/rest/flex/v1/configuration.go @@ -30,7 +30,6 @@ func (params *FetchConfigurationParams) SetUiVersion(UiVersion string) *FetchCon return params } -// func (c *ApiService) FetchConfiguration(params *FetchConfigurationParams) (*FlexV1Configuration, error) { path := "/v1/Configuration" @@ -55,3 +54,46 @@ func (c *ApiService) FetchConfiguration(params *FetchConfigurationParams) (*Flex return ps, err } + +// Optional parameters for the method 'UpdateConfiguration' +type UpdateConfigurationParams struct { + // + Body *map[string]interface{} `json:"body,omitempty"` +} + +func (params *UpdateConfigurationParams) SetBody(Body map[string]interface{}) *UpdateConfigurationParams { + params.Body = &Body + return params +} + +func (c *ApiService) UpdateConfiguration(params *UpdateConfigurationParams) (*FlexV1Configuration, error) { + path := "/v1/Configuration" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.Body != nil { + b, err := json.Marshal(*params.Body) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/flex/v1/docs/ConfigurationApi.md b/rest/flex/v1/docs/ConfigurationApi.md index 587f244f9..7153f6627 100644 --- a/rest/flex/v1/docs/ConfigurationApi.md +++ b/rest/flex/v1/docs/ConfigurationApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://flex-api.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**FetchConfiguration**](ConfigurationApi.md#FetchConfiguration) | **Get** /v1/Configuration | +[**UpdateConfiguration**](ConfigurationApi.md#UpdateConfiguration) | **Post** /v1/Configuration | @@ -46,3 +47,42 @@ Name | Type | Description [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## UpdateConfiguration + +> FlexV1Configuration UpdateConfiguration(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdateConfigurationParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**Body** | **map[string]interface{}** | + +### Return type + +[**FlexV1Configuration**](FlexV1Configuration.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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/flex/v1/docs/FlexV1ConfiguredPlugin.md b/rest/flex/v1/docs/FlexV1ConfiguredPlugin.md new file mode 100644 index 000000000..91d72357c --- /dev/null +++ b/rest/flex/v1/docs/FlexV1ConfiguredPlugin.md @@ -0,0 +1,26 @@ +# FlexV1ConfiguredPlugin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Flex Plugin resource is installed for. | +**ConfigurationSid** | Pointer to **string** | The SID of the Flex Plugin Configuration that this Flex Plugin belongs to. | +**PluginSid** | Pointer to **string** | The SID of the Flex Plugin. | +**PluginVersionSid** | Pointer to **string** | The SID of the Flex Plugin Version. | +**Phase** | Pointer to **int** | The phase this Flex Plugin would initialize at runtime. | +**PluginUrl** | Pointer to **string** | The URL of where the Flex Plugin Version JavaScript bundle is hosted on. | +**UniqueName** | Pointer to **string** | The name that uniquely identifies this Flex Plugin resource. | +**FriendlyName** | Pointer to **string** | The friendly name of this Flex Plugin resource. | +**Description** | Pointer to **string** | A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long | +**PluginArchived** | Pointer to **bool** | Whether the Flex Plugin is archived. The default value is false. | +**Version** | Pointer to **string** | The latest version of this Flex Plugin Version. | +**Changelog** | Pointer to **string** | A changelog that describes the changes this Flex Plugin Version brings. | +**PluginVersionArchived** | Pointer to **bool** | Whether the Flex Plugin Version is archived. The default value is false. | +**Private** | Pointer to **bool** | Whether to validate the request is authorized to access the Flex Plugin Version. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin was installed specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin 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/flex/v1/docs/FlexV1Plugin.md b/rest/flex/v1/docs/FlexV1Plugin.md new file mode 100644 index 000000000..29ac7178b --- /dev/null +++ b/rest/flex/v1/docs/FlexV1Plugin.md @@ -0,0 +1,20 @@ +# FlexV1Plugin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Flex Plugin resource. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin resource and owns this resource. | +**UniqueName** | Pointer to **string** | The name that uniquely identifies this Flex Plugin resource. | +**FriendlyName** | Pointer to **string** | The friendly name this Flex Plugin resource. | +**Description** | Pointer to **string** | A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long | +**Archived** | Pointer to **bool** | Whether the Flex Plugin is archived. The default value is false. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT-7 when the Flex Plugin 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-7 when the Flex Plugin was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin resource. | +**Links** | Pointer to **map[string]interface{}** | | + +[[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/flex/v1/docs/FlexV1PluginArchive.md b/rest/flex/v1/docs/FlexV1PluginArchive.md new file mode 100644 index 000000000..12b591fa2 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1PluginArchive.md @@ -0,0 +1,19 @@ +# FlexV1PluginArchive + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Flex Plugin resource. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin resource and owns this resource. | +**UniqueName** | Pointer to **string** | The name that uniquely identifies this Flex Plugin resource. | +**FriendlyName** | Pointer to **string** | The friendly name this Flex Plugin resource. | +**Description** | Pointer to **string** | A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long | +**Archived** | Pointer to **bool** | Whether the Flex Plugin is archived. The default value is false. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin 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 Flex Plugin was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin 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/flex/v1/docs/FlexV1PluginConfiguration.md b/rest/flex/v1/docs/FlexV1PluginConfiguration.md new file mode 100644 index 000000000..86ad385f3 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1PluginConfiguration.md @@ -0,0 +1,18 @@ +# FlexV1PluginConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Flex Plugin Configuration resource. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Configuration resource and owns this resource. | +**Name** | Pointer to **string** | The name of this Flex Plugin Configuration. | +**Description** | Pointer to **string** | The description of the Flex Plugin Configuration resource. | +**Archived** | Pointer to **bool** | Whether the Flex Plugin Configuration is archived. The default value is false. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin Configuration was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin Configuration resource. | +**Links** | Pointer to **map[string]interface{}** | | + +[[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/flex/v1/docs/FlexV1PluginConfigurationArchive.md b/rest/flex/v1/docs/FlexV1PluginConfigurationArchive.md new file mode 100644 index 000000000..aaa192c8d --- /dev/null +++ b/rest/flex/v1/docs/FlexV1PluginConfigurationArchive.md @@ -0,0 +1,17 @@ +# FlexV1PluginConfigurationArchive + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Flex Plugin Configuration resource. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Configuration resource and owns this resource. | +**Name** | Pointer to **string** | The name of this Flex Plugin Configuration. | +**Description** | Pointer to **string** | The description of the Flex Plugin Configuration resource. | +**Archived** | Pointer to **bool** | Whether the Flex Plugin Configuration is archived. The default value is false. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin Configuration was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin Configuration 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/flex/v1/docs/FlexV1PluginRelease.md b/rest/flex/v1/docs/FlexV1PluginRelease.md new file mode 100644 index 000000000..b74095b80 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1PluginRelease.md @@ -0,0 +1,15 @@ +# FlexV1PluginRelease + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Plugin Release resource. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Plugin Release resource and owns this resource. | +**ConfigurationSid** | Pointer to **string** | The SID of the Plugin Configuration resource to release. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin Release was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Plugin Release 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/flex/v1/docs/FlexV1PluginVersion.md b/rest/flex/v1/docs/FlexV1PluginVersion.md new file mode 100644 index 000000000..28168b53b --- /dev/null +++ b/rest/flex/v1/docs/FlexV1PluginVersion.md @@ -0,0 +1,20 @@ +# FlexV1PluginVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Flex Plugin Version resource. | +**PluginSid** | Pointer to **string** | The SID of the Flex Plugin resource this Flex Plugin Version belongs to. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Version resource and owns this resource. | +**Version** | Pointer to **string** | The unique version of this Flex Plugin Version. | +**PluginUrl** | Pointer to **string** | The URL of where the Flex Plugin Version JavaScript bundle is hosted on. | +**Changelog** | Pointer to **string** | A changelog that describes the changes this Flex Plugin Version brings. | +**Private** | Pointer to **bool** | Whether to inject credentials while accessing this Plugin Version. The default value is false. | +**Archived** | Pointer to **bool** | Whether the Flex Plugin Version is archived. The default value is false. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin Version 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/flex/v1/docs/FlexV1PluginVersionArchive.md b/rest/flex/v1/docs/FlexV1PluginVersionArchive.md new file mode 100644 index 000000000..f9769b172 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1PluginVersionArchive.md @@ -0,0 +1,20 @@ +# FlexV1PluginVersionArchive + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | Pointer to **string** | The unique string that we created to identify the Flex Plugin Version resource. | +**PluginSid** | Pointer to **string** | The SID of the Flex Plugin resource this Flex Plugin Version belongs to. | +**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Version resource and owns this resource. | +**Version** | Pointer to **string** | The unique version of this Flex Plugin Version. | +**PluginUrl** | Pointer to **string** | The URL of where the Flex Plugin Version JavaScript bundle is hosted on. | +**Changelog** | Pointer to **string** | A changelog that describes the changes this Flex Plugin Version brings. | +**Private** | Pointer to **bool** | Whether to inject credentials while accessing this Plugin Version. The default value is false. | +**Archived** | Pointer to **bool** | Whether the Flex Plugin Version is archived. The default value is false. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | +**Url** | Pointer to **string** | The absolute URL of the Flex Plugin Version 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/flex/v1/docs/ListChannelResponseMeta.md b/rest/flex/v1/docs/ListChannelResponseMeta.md index d507879b9..b007fb5e6 100644 --- a/rest/flex/v1/docs/ListChannelResponseMeta.md +++ b/rest/flex/v1/docs/ListChannelResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/flex/v1/docs/ListConfiguredPluginResponse.md b/rest/flex/v1/docs/ListConfiguredPluginResponse.md new file mode 100644 index 000000000..d6ad491ff --- /dev/null +++ b/rest/flex/v1/docs/ListConfiguredPluginResponse.md @@ -0,0 +1,12 @@ +# ListConfiguredPluginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Plugins** | [**[]FlexV1ConfiguredPlugin**](FlexV1ConfiguredPlugin.md) | |[optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponseMeta.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/flex/v1/docs/ListPluginConfigurationResponse.md b/rest/flex/v1/docs/ListPluginConfigurationResponse.md new file mode 100644 index 000000000..75f80cca7 --- /dev/null +++ b/rest/flex/v1/docs/ListPluginConfigurationResponse.md @@ -0,0 +1,12 @@ +# ListPluginConfigurationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configurations** | [**[]FlexV1PluginConfiguration**](FlexV1PluginConfiguration.md) | |[optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponseMeta.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/flex/v1/docs/ListPluginReleaseResponse.md b/rest/flex/v1/docs/ListPluginReleaseResponse.md new file mode 100644 index 000000000..698df63ba --- /dev/null +++ b/rest/flex/v1/docs/ListPluginReleaseResponse.md @@ -0,0 +1,12 @@ +# ListPluginReleaseResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Releases** | [**[]FlexV1PluginRelease**](FlexV1PluginRelease.md) | |[optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponseMeta.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/flex/v1/docs/ListPluginResponse.md b/rest/flex/v1/docs/ListPluginResponse.md new file mode 100644 index 000000000..b17aa2e63 --- /dev/null +++ b/rest/flex/v1/docs/ListPluginResponse.md @@ -0,0 +1,12 @@ +# ListPluginResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Plugins** | [**[]FlexV1Plugin**](FlexV1Plugin.md) | |[optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponseMeta.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/flex/v1/docs/ListPluginVersionResponse.md b/rest/flex/v1/docs/ListPluginVersionResponse.md new file mode 100644 index 000000000..df6aed951 --- /dev/null +++ b/rest/flex/v1/docs/ListPluginVersionResponse.md @@ -0,0 +1,12 @@ +# ListPluginVersionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PluginVersions** | [**[]FlexV1PluginVersion**](FlexV1PluginVersion.md) | |[optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponseMeta.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/flex/v1/docs/PluginServiceConfigurationsApi.md b/rest/flex/v1/docs/PluginServiceConfigurationsApi.md new file mode 100644 index 000000000..7d4136eb6 --- /dev/null +++ b/rest/flex/v1/docs/PluginServiceConfigurationsApi.md @@ -0,0 +1,137 @@ +# PluginServiceConfigurationsApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePluginConfiguration**](PluginServiceConfigurationsApi.md#CreatePluginConfiguration) | **Post** /v1/PluginService/Configurations | +[**FetchPluginConfiguration**](PluginServiceConfigurationsApi.md#FetchPluginConfiguration) | **Get** /v1/PluginService/Configurations/{Sid} | +[**ListPluginConfiguration**](PluginServiceConfigurationsApi.md#ListPluginConfiguration) | **Get** /v1/PluginService/Configurations | + + + +## CreatePluginConfiguration + +> FlexV1PluginConfiguration CreatePluginConfiguration(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreatePluginConfigurationParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**Name** | **string** | The Flex Plugin Configuration's name. +**Plugins** | **[]interface{}** | A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version. +**Description** | **string** | The Flex Plugin Configuration's description. + +### Return type + +[**FlexV1PluginConfiguration**](FlexV1PluginConfiguration.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) + + +## FetchPluginConfiguration + +> FlexV1PluginConfiguration FetchPluginConfiguration(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The SID of the Flex Plugin Configuration resource to fetch. + +### Other Parameters + +Other parameters are passed through a pointer to a FetchPluginConfigurationParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1PluginConfiguration**](FlexV1PluginConfiguration.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) + + +## ListPluginConfiguration + +> []FlexV1PluginConfiguration ListPluginConfiguration(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a ListPluginConfigurationParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**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. + +### Return type + +[**[]FlexV1PluginConfiguration**](FlexV1PluginConfiguration.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/flex/v1/docs/PluginServiceConfigurationsArchiveApi.md b/rest/flex/v1/docs/PluginServiceConfigurationsArchiveApi.md new file mode 100644 index 000000000..52ef898f8 --- /dev/null +++ b/rest/flex/v1/docs/PluginServiceConfigurationsArchiveApi.md @@ -0,0 +1,52 @@ +# PluginServiceConfigurationsArchiveApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UpdatePluginConfigurationArchive**](PluginServiceConfigurationsArchiveApi.md#UpdatePluginConfigurationArchive) | **Post** /v1/PluginService/Configurations/{Sid}/Archive | + + + +## UpdatePluginConfigurationArchive + +> FlexV1PluginConfigurationArchive UpdatePluginConfigurationArchive(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The SID of the Flex Plugin Configuration resource to archive. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdatePluginConfigurationArchiveParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1PluginConfigurationArchive**](FlexV1PluginConfigurationArchive.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/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md b/rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md new file mode 100644 index 000000000..e39a960d8 --- /dev/null +++ b/rest/flex/v1/docs/PluginServiceConfigurationsPluginsApi.md @@ -0,0 +1,99 @@ +# PluginServiceConfigurationsPluginsApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchConfiguredPlugin**](PluginServiceConfigurationsPluginsApi.md#FetchConfiguredPlugin) | **Get** /v1/PluginService/Configurations/{ConfigurationSid}/Plugins/{PluginSid} | +[**ListConfiguredPlugin**](PluginServiceConfigurationsPluginsApi.md#ListConfiguredPlugin) | **Get** /v1/PluginService/Configurations/{ConfigurationSid}/Plugins | + + + +## FetchConfiguredPlugin + +> FlexV1ConfiguredPlugin FetchConfiguredPlugin(ctx, ConfigurationSidPluginSidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ConfigurationSid** | **string** | The SID of the Flex Plugin Configuration the resource to belongs to. +**PluginSid** | **string** | The unique string that we created to identify the Flex Plugin resource. + +### Other Parameters + +Other parameters are passed through a pointer to a FetchConfiguredPluginParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1ConfiguredPlugin**](FlexV1ConfiguredPlugin.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) + + +## ListConfiguredPlugin + +> []FlexV1ConfiguredPlugin ListConfiguredPlugin(ctx, ConfigurationSidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ConfigurationSid** | **string** | The SID of the Flex Plugin Configuration the resource to belongs to. + +### Other Parameters + +Other parameters are passed through a pointer to a ListConfiguredPluginParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**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. + +### Return type + +[**[]FlexV1ConfiguredPlugin**](FlexV1ConfiguredPlugin.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/flex/v1/docs/PluginServicePluginsApi.md b/rest/flex/v1/docs/PluginServicePluginsApi.md new file mode 100644 index 000000000..69b9ceb98 --- /dev/null +++ b/rest/flex/v1/docs/PluginServicePluginsApi.md @@ -0,0 +1,183 @@ +# PluginServicePluginsApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePlugin**](PluginServicePluginsApi.md#CreatePlugin) | **Post** /v1/PluginService/Plugins | +[**FetchPlugin**](PluginServicePluginsApi.md#FetchPlugin) | **Get** /v1/PluginService/Plugins/{Sid} | +[**ListPlugin**](PluginServicePluginsApi.md#ListPlugin) | **Get** /v1/PluginService/Plugins | +[**UpdatePlugin**](PluginServicePluginsApi.md#UpdatePlugin) | **Post** /v1/PluginService/Plugins/{Sid} | + + + +## CreatePlugin + +> FlexV1Plugin CreatePlugin(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreatePluginParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**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 + +### Return type + +[**FlexV1Plugin**](FlexV1Plugin.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) + + +## FetchPlugin + +> FlexV1Plugin FetchPlugin(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The SID of the Flex Plugin resource to fetch. + +### Other Parameters + +Other parameters are passed through a pointer to a FetchPluginParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1Plugin**](FlexV1Plugin.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) + + +## ListPlugin + +> []FlexV1Plugin ListPlugin(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a ListPluginParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**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. + +### Return type + +[**[]FlexV1Plugin**](FlexV1Plugin.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) + + +## UpdatePlugin + +> FlexV1Plugin UpdatePlugin(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The SID of the Flex Plugin resource to update. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdatePluginParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**FriendlyName** | **string** | The Flex Plugin's friendly name. +**Description** | **string** | A descriptive string that you update to describe the plugin resource. It can be up to 500 characters long + +### Return type + +[**FlexV1Plugin**](FlexV1Plugin.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/flex/v1/docs/PluginServicePluginsArchiveApi.md b/rest/flex/v1/docs/PluginServicePluginsArchiveApi.md new file mode 100644 index 000000000..4a1031823 --- /dev/null +++ b/rest/flex/v1/docs/PluginServicePluginsArchiveApi.md @@ -0,0 +1,52 @@ +# PluginServicePluginsArchiveApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UpdatePluginArchive**](PluginServicePluginsArchiveApi.md#UpdatePluginArchive) | **Post** /v1/PluginService/Plugins/{Sid}/Archive | + + + +## UpdatePluginArchive + +> FlexV1PluginArchive UpdatePluginArchive(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The SID of the Flex Plugin resource to archive. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdatePluginArchiveParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1PluginArchive**](FlexV1PluginArchive.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/flex/v1/docs/PluginServicePluginsVersionsApi.md b/rest/flex/v1/docs/PluginServicePluginsVersionsApi.md new file mode 100644 index 000000000..db7e496cc --- /dev/null +++ b/rest/flex/v1/docs/PluginServicePluginsVersionsApi.md @@ -0,0 +1,147 @@ +# PluginServicePluginsVersionsApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePluginVersion**](PluginServicePluginsVersionsApi.md#CreatePluginVersion) | **Post** /v1/PluginService/Plugins/{PluginSid}/Versions | +[**FetchPluginVersion**](PluginServicePluginsVersionsApi.md#FetchPluginVersion) | **Get** /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid} | +[**ListPluginVersion**](PluginServicePluginsVersionsApi.md#ListPluginVersion) | **Get** /v1/PluginService/Plugins/{PluginSid}/Versions | + + + +## CreatePluginVersion + +> FlexV1PluginVersion CreatePluginVersion(ctx, PluginSidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**PluginSid** | **string** | The SID of the Flex Plugin the resource to belongs to. + +### Other Parameters + +Other parameters are passed through a pointer to a CreatePluginVersionParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**Version** | **string** | The Flex Plugin Version's version. +**PluginUrl** | **string** | The URL of the Flex Plugin Version bundle +**Changelog** | **string** | The changelog of the Flex Plugin Version. +**Private** | **bool** | Whether this Flex Plugin Version requires authorization. + +### Return type + +[**FlexV1PluginVersion**](FlexV1PluginVersion.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) + + +## FetchPluginVersion + +> FlexV1PluginVersion FetchPluginVersion(ctx, PluginSidSidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**PluginSid** | **string** | The SID of the Flex Plugin the resource to belongs to. +**Sid** | **string** | The SID of the Flex Plugin Version resource to fetch. + +### Other Parameters + +Other parameters are passed through a pointer to a FetchPluginVersionParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1PluginVersion**](FlexV1PluginVersion.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) + + +## ListPluginVersion + +> []FlexV1PluginVersion ListPluginVersion(ctx, PluginSidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**PluginSid** | **string** | The SID of the Flex Plugin the resource to belongs to. + +### Other Parameters + +Other parameters are passed through a pointer to a ListPluginVersionParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**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. + +### Return type + +[**[]FlexV1PluginVersion**](FlexV1PluginVersion.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/flex/v1/docs/PluginServicePluginsVersionsArchiveApi.md b/rest/flex/v1/docs/PluginServicePluginsVersionsArchiveApi.md new file mode 100644 index 000000000..bdd59b33f --- /dev/null +++ b/rest/flex/v1/docs/PluginServicePluginsVersionsArchiveApi.md @@ -0,0 +1,53 @@ +# PluginServicePluginsVersionsArchiveApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UpdatePluginVersionArchive**](PluginServicePluginsVersionsArchiveApi.md#UpdatePluginVersionArchive) | **Post** /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}/Archive | + + + +## UpdatePluginVersionArchive + +> FlexV1PluginVersionArchive UpdatePluginVersionArchive(ctx, PluginSidSidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**PluginSid** | **string** | The SID of the Flex Plugin the resource to belongs to. +**Sid** | **string** | The SID of the Flex Plugin Version resource to archive. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdatePluginVersionArchiveParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1PluginVersionArchive**](FlexV1PluginVersionArchive.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/flex/v1/docs/PluginServiceReleasesApi.md b/rest/flex/v1/docs/PluginServiceReleasesApi.md new file mode 100644 index 000000000..55bd20f03 --- /dev/null +++ b/rest/flex/v1/docs/PluginServiceReleasesApi.md @@ -0,0 +1,135 @@ +# PluginServiceReleasesApi + +All URIs are relative to *https://flex-api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePluginRelease**](PluginServiceReleasesApi.md#CreatePluginRelease) | **Post** /v1/PluginService/Releases | +[**FetchPluginRelease**](PluginServiceReleasesApi.md#FetchPluginRelease) | **Get** /v1/PluginService/Releases/{Sid} | +[**ListPluginRelease**](PluginServiceReleasesApi.md#ListPluginRelease) | **Get** /v1/PluginService/Releases | + + + +## CreatePluginRelease + +> FlexV1PluginRelease CreatePluginRelease(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreatePluginReleaseParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**ConfigurationId** | **string** | The SID or the Version of the Flex Plugin Configuration to release. + +### Return type + +[**FlexV1PluginRelease**](FlexV1PluginRelease.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) + + +## FetchPluginRelease + +> FlexV1PluginRelease FetchPluginRelease(ctx, Sidoptional) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The SID of the Flex Plugin Release resource to fetch. + +### Other Parameters + +Other parameters are passed through a pointer to a FetchPluginReleaseParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header + +### Return type + +[**FlexV1PluginRelease**](FlexV1PluginRelease.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) + + +## ListPluginRelease + +> []FlexV1PluginRelease ListPluginRelease(ctx, optional) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a ListPluginReleaseParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**FlexMetadata** | **string** | The Flex-Metadata HTTP request header +**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. + +### Return type + +[**[]FlexV1PluginRelease**](FlexV1PluginRelease.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/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/model_flex_v1_configured_plugin.go b/rest/flex/v1/model_flex_v1_configured_plugin.go new file mode 100644 index 000000000..20dde1385 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_configured_plugin.go @@ -0,0 +1,55 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1ConfiguredPlugin struct for FlexV1ConfiguredPlugin +type FlexV1ConfiguredPlugin struct { + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Flex Plugin resource is installed for. + AccountSid *string `json:"account_sid,omitempty"` + // The SID of the Flex Plugin Configuration that this Flex Plugin belongs to. + ConfigurationSid *string `json:"configuration_sid,omitempty"` + // The SID of the Flex Plugin. + PluginSid *string `json:"plugin_sid,omitempty"` + // The SID of the Flex Plugin Version. + PluginVersionSid *string `json:"plugin_version_sid,omitempty"` + // The phase this Flex Plugin would initialize at runtime. + Phase *int `json:"phase,omitempty"` + // The URL of where the Flex Plugin Version JavaScript bundle is hosted on. + PluginUrl *string `json:"plugin_url,omitempty"` + // The name that uniquely identifies this Flex Plugin resource. + UniqueName *string `json:"unique_name,omitempty"` + // The friendly name of this Flex Plugin resource. + FriendlyName *string `json:"friendly_name,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"` + // Whether the Flex Plugin is archived. The default value is false. + PluginArchived *bool `json:"plugin_archived,omitempty"` + // The latest version of this Flex Plugin Version. + Version *string `json:"version,omitempty"` + // A changelog that describes the changes this Flex Plugin Version brings. + Changelog *string `json:"changelog,omitempty"` + // Whether the Flex Plugin Version is archived. The default value is false. + PluginVersionArchived *bool `json:"plugin_version_archived,omitempty"` + // Whether to validate the request is authorized to access the Flex Plugin Version. + Private *bool `json:"private,omitempty"` + // The date and time in GMT when the Flex Plugin was installed specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The absolute URL of the Flex Plugin resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin.go b/rest/flex/v1/model_flex_v1_plugin.go new file mode 100644 index 000000000..a8f3d6429 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin.go @@ -0,0 +1,42 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1Plugin struct for FlexV1Plugin +type FlexV1Plugin struct { + // The unique string that we created to identify the Flex Plugin resource. + Sid *string `json:"sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The name that uniquely identifies this Flex Plugin resource. + UniqueName *string `json:"unique_name,omitempty"` + // The friendly name this Flex Plugin resource. + FriendlyName *string `json:"friendly_name,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"` + // Whether the Flex Plugin is archived. The default value is false. + Archived *bool `json:"archived,omitempty"` + // The date and time in GMT-7 when the Flex Plugin was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The date and time in GMT-7 when the Flex Plugin 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 Flex Plugin resource. + Url *string `json:"url,omitempty"` + Links *map[string]interface{} `json:"links,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin_archive.go b/rest/flex/v1/model_flex_v1_plugin_archive.go new file mode 100644 index 000000000..da1719362 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin_archive.go @@ -0,0 +1,41 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1PluginArchive struct for FlexV1PluginArchive +type FlexV1PluginArchive struct { + // The unique string that we created to identify the Flex Plugin resource. + Sid *string `json:"sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The name that uniquely identifies this Flex Plugin resource. + UniqueName *string `json:"unique_name,omitempty"` + // The friendly name this Flex Plugin resource. + FriendlyName *string `json:"friendly_name,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"` + // Whether the Flex Plugin is archived. The default value is false. + Archived *bool `json:"archived,omitempty"` + // The date and time in GMT when the Flex Plugin was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The date and time in GMT when the Flex Plugin 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 Flex Plugin resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin_configuration.go b/rest/flex/v1/model_flex_v1_plugin_configuration.go new file mode 100644 index 000000000..b841dbee8 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin_configuration.go @@ -0,0 +1,38 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1PluginConfiguration struct for FlexV1PluginConfiguration +type FlexV1PluginConfiguration struct { + // The unique string that we created to identify the Flex Plugin Configuration resource. + Sid *string `json:"sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Configuration resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The name of this Flex Plugin Configuration. + Name *string `json:"name,omitempty"` + // The description of the Flex Plugin Configuration resource. + Description *string `json:"description,omitempty"` + // Whether the Flex Plugin Configuration is archived. The default value is false. + Archived *bool `json:"archived,omitempty"` + // The date and time in GMT when the Flex Plugin Configuration was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The absolute URL of the Flex Plugin Configuration resource. + Url *string `json:"url,omitempty"` + Links *map[string]interface{} `json:"links,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin_configuration_archive.go b/rest/flex/v1/model_flex_v1_plugin_configuration_archive.go new file mode 100644 index 000000000..6bdad70b0 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin_configuration_archive.go @@ -0,0 +1,37 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1PluginConfigurationArchive struct for FlexV1PluginConfigurationArchive +type FlexV1PluginConfigurationArchive struct { + // The unique string that we created to identify the Flex Plugin Configuration resource. + Sid *string `json:"sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Configuration resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The name of this Flex Plugin Configuration. + Name *string `json:"name,omitempty"` + // The description of the Flex Plugin Configuration resource. + Description *string `json:"description,omitempty"` + // Whether the Flex Plugin Configuration is archived. The default value is false. + Archived *bool `json:"archived,omitempty"` + // The date and time in GMT when the Flex Plugin Configuration was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The absolute URL of the Flex Plugin Configuration resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin_release.go b/rest/flex/v1/model_flex_v1_plugin_release.go new file mode 100644 index 000000000..de63c61a0 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin_release.go @@ -0,0 +1,33 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1PluginRelease struct for FlexV1PluginRelease +type FlexV1PluginRelease struct { + // The unique string that we created to identify the Plugin Release resource. + Sid *string `json:"sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Plugin Release resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The SID of the Plugin Configuration resource to release. + ConfigurationSid *string `json:"configuration_sid,omitempty"` + // The date and time in GMT when the Flex Plugin Release was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The absolute URL of the Plugin Release resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin_version.go b/rest/flex/v1/model_flex_v1_plugin_version.go new file mode 100644 index 000000000..1c86e0199 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin_version.go @@ -0,0 +1,43 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1PluginVersion struct for FlexV1PluginVersion +type FlexV1PluginVersion struct { + // The unique string that we created to identify the Flex Plugin Version resource. + Sid *string `json:"sid,omitempty"` + // The SID of the Flex Plugin resource this Flex Plugin Version belongs to. + PluginSid *string `json:"plugin_sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Version resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The unique version of this Flex Plugin Version. + Version *string `json:"version,omitempty"` + // The URL of where the Flex Plugin Version JavaScript bundle is hosted on. + PluginUrl *string `json:"plugin_url,omitempty"` + // A changelog that describes the changes this Flex Plugin Version brings. + Changelog *string `json:"changelog,omitempty"` + // Whether to inject credentials while accessing this Plugin Version. The default value is false. + Private *bool `json:"private,omitempty"` + // Whether the Flex Plugin Version is archived. The default value is false. + Archived *bool `json:"archived,omitempty"` + // The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The absolute URL of the Flex Plugin Version resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_plugin_version_archive.go b/rest/flex/v1/model_flex_v1_plugin_version_archive.go new file mode 100644 index 000000000..ea645f08a --- /dev/null +++ b/rest/flex/v1/model_flex_v1_plugin_version_archive.go @@ -0,0 +1,43 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 ( + "time" +) + +// FlexV1PluginVersionArchive struct for FlexV1PluginVersionArchive +type FlexV1PluginVersionArchive struct { + // The unique string that we created to identify the Flex Plugin Version resource. + Sid *string `json:"sid,omitempty"` + // The SID of the Flex Plugin resource this Flex Plugin Version belongs to. + PluginSid *string `json:"plugin_sid,omitempty"` + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Version resource and owns this resource. + AccountSid *string `json:"account_sid,omitempty"` + // The unique version of this Flex Plugin Version. + Version *string `json:"version,omitempty"` + // The URL of where the Flex Plugin Version JavaScript bundle is hosted on. + PluginUrl *string `json:"plugin_url,omitempty"` + // A changelog that describes the changes this Flex Plugin Version brings. + Changelog *string `json:"changelog,omitempty"` + // Whether to inject credentials while accessing this Plugin Version. The default value is false. + Private *bool `json:"private,omitempty"` + // Whether the Flex Plugin Version is archived. The default value is false. + Archived *bool `json:"archived,omitempty"` + // The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + DateCreated *time.Time `json:"date_created,omitempty"` + // The absolute URL of the Flex Plugin Version resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_list_channel_response_meta.go b/rest/flex/v1/model_list_channel_response_meta.go index 1be9de7f3..c4bfb6d8f 100644 --- a/rest/flex/v1/model_list_channel_response_meta.go +++ b/rest/flex/v1/model_list_channel_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListChannelResponseMeta struct for ListChannelResponseMeta type ListChannelResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/flex/v1/model_list_configured_plugin_response.go b/rest/flex/v1/model_list_configured_plugin_response.go new file mode 100644 index 000000000..1de1b7d78 --- /dev/null +++ b/rest/flex/v1/model_list_configured_plugin_response.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 + +// ListConfiguredPluginResponse struct for ListConfiguredPluginResponse +type ListConfiguredPluginResponse struct { + Plugins []FlexV1ConfiguredPlugin `json:"plugins,omitempty"` + Meta ListChannelResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_list_plugin_configuration_response.go b/rest/flex/v1/model_list_plugin_configuration_response.go new file mode 100644 index 000000000..1542e6c4e --- /dev/null +++ b/rest/flex/v1/model_list_plugin_configuration_response.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 + +// ListPluginConfigurationResponse struct for ListPluginConfigurationResponse +type ListPluginConfigurationResponse struct { + Configurations []FlexV1PluginConfiguration `json:"configurations,omitempty"` + Meta ListChannelResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_list_plugin_release_response.go b/rest/flex/v1/model_list_plugin_release_response.go new file mode 100644 index 000000000..a6f29f74c --- /dev/null +++ b/rest/flex/v1/model_list_plugin_release_response.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 + +// ListPluginReleaseResponse struct for ListPluginReleaseResponse +type ListPluginReleaseResponse struct { + Releases []FlexV1PluginRelease `json:"releases,omitempty"` + Meta ListChannelResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_list_plugin_response.go b/rest/flex/v1/model_list_plugin_response.go new file mode 100644 index 000000000..6095ab459 --- /dev/null +++ b/rest/flex/v1/model_list_plugin_response.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 + +// ListPluginResponse struct for ListPluginResponse +type ListPluginResponse struct { + Plugins []FlexV1Plugin `json:"plugins,omitempty"` + Meta ListChannelResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_list_plugin_version_response.go b/rest/flex/v1/model_list_plugin_version_response.go new file mode 100644 index 000000000..ba693affb --- /dev/null +++ b/rest/flex/v1/model_list_plugin_version_response.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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 + +// ListPluginVersionResponse struct for ListPluginVersionResponse +type ListPluginVersionResponse struct { + PluginVersions []FlexV1PluginVersion `json:"plugin_versions,omitempty"` + Meta ListChannelResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/plugin_service_configurations.go b/rest/flex/v1/plugin_service_configurations.go new file mode 100644 index 000000000..cdda4f3b3 --- /dev/null +++ b/rest/flex/v1/plugin_service_configurations.go @@ -0,0 +1,273 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "fmt" + "net/url" + "strings" + + "github.com/twilio/twilio-go/client" +) + +// Optional parameters for the method 'CreatePluginConfiguration' +type CreatePluginConfigurationParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` + // The Flex Plugin Configuration's name. + Name *string `json:"Name,omitempty"` + // A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version. + Plugins *[]interface{} `json:"Plugins,omitempty"` + // The Flex Plugin Configuration's description. + Description *string `json:"Description,omitempty"` +} + +func (params *CreatePluginConfigurationParams) SetFlexMetadata(FlexMetadata string) *CreatePluginConfigurationParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *CreatePluginConfigurationParams) SetName(Name string) *CreatePluginConfigurationParams { + params.Name = &Name + return params +} +func (params *CreatePluginConfigurationParams) SetPlugins(Plugins []interface{}) *CreatePluginConfigurationParams { + params.Plugins = &Plugins + return params +} +func (params *CreatePluginConfigurationParams) SetDescription(Description string) *CreatePluginConfigurationParams { + params.Description = &Description + return params +} + +func (c *ApiService) CreatePluginConfiguration(params *CreatePluginConfigurationParams) (*FlexV1PluginConfiguration, error) { + path := "/v1/PluginService/Configurations" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Name != nil { + data.Set("Name", *params.Name) + } + if params != nil && params.Plugins != nil { + for _, item := range *params.Plugins { + v, err := json.Marshal(item) + + if err != nil { + return nil, err + } + + data.Add("Plugins", string(v)) + } + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'FetchPluginConfiguration' +type FetchPluginConfigurationParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *FetchPluginConfigurationParams) SetFlexMetadata(FlexMetadata string) *FetchPluginConfigurationParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) FetchPluginConfiguration(Sid string, params *FetchPluginConfigurationParams) (*FlexV1PluginConfiguration, error) { + path := "/v1/PluginService/Configurations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'ListPluginConfiguration' +type ListPluginConfigurationParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,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 *ListPluginConfigurationParams) SetFlexMetadata(FlexMetadata string) *ListPluginConfigurationParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *ListPluginConfigurationParams) SetPageSize(PageSize int) *ListPluginConfigurationParams { + params.PageSize = &PageSize + return params +} +func (params *ListPluginConfigurationParams) SetLimit(Limit int) *ListPluginConfigurationParams { + params.Limit = &Limit + return params +} + +// Retrieve a single page of PluginConfiguration records from the API. Request is executed immediately. +func (c *ApiService) PagePluginConfiguration(params *ListPluginConfigurationParams, pageToken, pageNumber string) (*ListPluginConfigurationResponse, error) { + path := "/v1/PluginService/Configurations" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + if pageToken != "" { + data.Set("PageToken", pageToken) + } + if pageNumber != "" { + data.Set("Page", pageNumber) + } + + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginConfigurationResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Lists PluginConfiguration records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. +func (c *ApiService) ListPluginConfiguration(params *ListPluginConfigurationParams) ([]FlexV1PluginConfiguration, error) { + response, errors := c.StreamPluginConfiguration(params) + + records := make([]FlexV1PluginConfiguration, 0) + for record := range response { + records = append(records, record) + } + + if err := <-errors; err != nil { + return nil, err + } + + return records, nil +} + +// Streams PluginConfiguration records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. +func (c *ApiService) StreamPluginConfiguration(params *ListPluginConfigurationParams) (chan FlexV1PluginConfiguration, chan error) { + if params == nil { + params = &ListPluginConfigurationParams{} + } + params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit)) + + recordChannel := make(chan FlexV1PluginConfiguration, 1) + errorChannel := make(chan error, 1) + + response, err := c.PagePluginConfiguration(params, "", "") + if err != nil { + errorChannel <- err + close(recordChannel) + close(errorChannel) + } else { + go c.streamPluginConfiguration(response, params, recordChannel, errorChannel) + } + + return recordChannel, errorChannel +} + +func (c *ApiService) streamPluginConfiguration(response *ListPluginConfigurationResponse, params *ListPluginConfigurationParams, recordChannel chan FlexV1PluginConfiguration, errorChannel chan error) { + curRecord := 1 + + for response != nil { + responseRecords := response.Configurations + for item := range responseRecords { + recordChannel <- responseRecords[item] + curRecord += 1 + if params.Limit != nil && *params.Limit < curRecord { + close(recordChannel) + close(errorChannel) + return + } + } + + record, err := client.GetNext(c.baseURL, response, c.getNextListPluginConfigurationResponse) + if err != nil { + errorChannel <- err + break + } else if record == nil { + break + } + + response = record.(*ListPluginConfigurationResponse) + } + + close(recordChannel) + close(errorChannel) +} + +func (c *ApiService) getNextListPluginConfigurationResponse(nextPageUrl string) (interface{}, error) { + if nextPageUrl == "" { + return nil, nil + } + resp, err := c.requestHandler.Get(nextPageUrl, nil, nil) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginConfigurationResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + return ps, nil +} diff --git a/rest/flex/v1/plugin_service_configurations_archive.go b/rest/flex/v1/plugin_service_configurations_archive.go new file mode 100644 index 000000000..88404fe36 --- /dev/null +++ b/rest/flex/v1/plugin_service_configurations_archive.go @@ -0,0 +1,57 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "strings" +) + +// Optional parameters for the method 'UpdatePluginConfigurationArchive' +type UpdatePluginConfigurationArchiveParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *UpdatePluginConfigurationArchiveParams) SetFlexMetadata(FlexMetadata string) *UpdatePluginConfigurationArchiveParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) UpdatePluginConfigurationArchive(Sid string, params *UpdatePluginConfigurationArchiveParams) (*FlexV1PluginConfigurationArchive, error) { + path := "/v1/PluginService/Configurations/{Sid}/Archive" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginConfigurationArchive{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/flex/v1/plugin_service_configurations_plugins.go b/rest/flex/v1/plugin_service_configurations_plugins.go new file mode 100644 index 000000000..30fe9cdb3 --- /dev/null +++ b/rest/flex/v1/plugin_service_configurations_plugins.go @@ -0,0 +1,205 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "fmt" + "net/url" + "strings" + + "github.com/twilio/twilio-go/client" +) + +// Optional parameters for the method 'FetchConfiguredPlugin' +type FetchConfiguredPluginParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *FetchConfiguredPluginParams) SetFlexMetadata(FlexMetadata string) *FetchConfiguredPluginParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) FetchConfiguredPlugin(ConfigurationSid string, PluginSid string, params *FetchConfiguredPluginParams) (*FlexV1ConfiguredPlugin, error) { + path := "/v1/PluginService/Configurations/{ConfigurationSid}/Plugins/{PluginSid}" + path = strings.Replace(path, "{"+"ConfigurationSid"+"}", ConfigurationSid, -1) + path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1ConfiguredPlugin{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'ListConfiguredPlugin' +type ListConfiguredPluginParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,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 *ListConfiguredPluginParams) SetFlexMetadata(FlexMetadata string) *ListConfiguredPluginParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *ListConfiguredPluginParams) SetPageSize(PageSize int) *ListConfiguredPluginParams { + params.PageSize = &PageSize + return params +} +func (params *ListConfiguredPluginParams) SetLimit(Limit int) *ListConfiguredPluginParams { + params.Limit = &Limit + return params +} + +// Retrieve a single page of ConfiguredPlugin records from the API. Request is executed immediately. +func (c *ApiService) PageConfiguredPlugin(ConfigurationSid string, params *ListConfiguredPluginParams, pageToken, pageNumber string) (*ListConfiguredPluginResponse, error) { + path := "/v1/PluginService/Configurations/{ConfigurationSid}/Plugins" + + path = strings.Replace(path, "{"+"ConfigurationSid"+"}", ConfigurationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + if pageToken != "" { + data.Set("PageToken", pageToken) + } + if pageNumber != "" { + data.Set("Page", pageNumber) + } + + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListConfiguredPluginResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Lists ConfiguredPlugin records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. +func (c *ApiService) ListConfiguredPlugin(ConfigurationSid string, params *ListConfiguredPluginParams) ([]FlexV1ConfiguredPlugin, error) { + response, errors := c.StreamConfiguredPlugin(ConfigurationSid, params) + + records := make([]FlexV1ConfiguredPlugin, 0) + for record := range response { + records = append(records, record) + } + + if err := <-errors; err != nil { + return nil, err + } + + return records, nil +} + +// Streams ConfiguredPlugin records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. +func (c *ApiService) StreamConfiguredPlugin(ConfigurationSid string, params *ListConfiguredPluginParams) (chan FlexV1ConfiguredPlugin, chan error) { + if params == nil { + params = &ListConfiguredPluginParams{} + } + params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit)) + + recordChannel := make(chan FlexV1ConfiguredPlugin, 1) + errorChannel := make(chan error, 1) + + response, err := c.PageConfiguredPlugin(ConfigurationSid, params, "", "") + if err != nil { + errorChannel <- err + close(recordChannel) + close(errorChannel) + } else { + go c.streamConfiguredPlugin(response, params, recordChannel, errorChannel) + } + + return recordChannel, errorChannel +} + +func (c *ApiService) streamConfiguredPlugin(response *ListConfiguredPluginResponse, params *ListConfiguredPluginParams, recordChannel chan FlexV1ConfiguredPlugin, errorChannel chan error) { + curRecord := 1 + + for response != nil { + responseRecords := response.Plugins + for item := range responseRecords { + recordChannel <- responseRecords[item] + curRecord += 1 + if params.Limit != nil && *params.Limit < curRecord { + close(recordChannel) + close(errorChannel) + return + } + } + + record, err := client.GetNext(c.baseURL, response, c.getNextListConfiguredPluginResponse) + if err != nil { + errorChannel <- err + break + } else if record == nil { + break + } + + response = record.(*ListConfiguredPluginResponse) + } + + close(recordChannel) + close(errorChannel) +} + +func (c *ApiService) getNextListConfiguredPluginResponse(nextPageUrl string) (interface{}, error) { + if nextPageUrl == "" { + return nil, nil + } + resp, err := c.requestHandler.Get(nextPageUrl, nil, nil) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListConfiguredPluginResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + return ps, nil +} diff --git a/rest/flex/v1/plugin_service_plugins.go b/rest/flex/v1/plugin_service_plugins.go new file mode 100644 index 000000000..5c33170d0 --- /dev/null +++ b/rest/flex/v1/plugin_service_plugins.go @@ -0,0 +1,320 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "fmt" + "net/url" + "strings" + + "github.com/twilio/twilio-go/client" +) + +// Optional parameters for the method 'CreatePlugin' +type CreatePluginParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` + // The Flex Plugin's unique name. + UniqueName *string `json:"UniqueName,omitempty"` + // The Flex Plugin's friendly name. + 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"` +} + +func (params *CreatePluginParams) SetFlexMetadata(FlexMetadata string) *CreatePluginParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *CreatePluginParams) SetUniqueName(UniqueName string) *CreatePluginParams { + params.UniqueName = &UniqueName + return params +} +func (params *CreatePluginParams) SetFriendlyName(FriendlyName string) *CreatePluginParams { + params.FriendlyName = &FriendlyName + return params +} +func (params *CreatePluginParams) SetDescription(Description string) *CreatePluginParams { + params.Description = &Description + return params +} + +func (c *ApiService) CreatePlugin(params *CreatePluginParams) (*FlexV1Plugin, error) { + path := "/v1/PluginService/Plugins" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Plugin{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'FetchPlugin' +type FetchPluginParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *FetchPluginParams) SetFlexMetadata(FlexMetadata string) *FetchPluginParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) FetchPlugin(Sid string, params *FetchPluginParams) (*FlexV1Plugin, error) { + path := "/v1/PluginService/Plugins/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Plugin{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'ListPlugin' +type ListPluginParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,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 *ListPluginParams) SetFlexMetadata(FlexMetadata string) *ListPluginParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *ListPluginParams) SetPageSize(PageSize int) *ListPluginParams { + params.PageSize = &PageSize + return params +} +func (params *ListPluginParams) SetLimit(Limit int) *ListPluginParams { + params.Limit = &Limit + return params +} + +// Retrieve a single page of Plugin records from the API. Request is executed immediately. +func (c *ApiService) PagePlugin(params *ListPluginParams, pageToken, pageNumber string) (*ListPluginResponse, error) { + path := "/v1/PluginService/Plugins" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + if pageToken != "" { + data.Set("PageToken", pageToken) + } + if pageNumber != "" { + data.Set("Page", pageNumber) + } + + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Lists Plugin records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. +func (c *ApiService) ListPlugin(params *ListPluginParams) ([]FlexV1Plugin, error) { + response, errors := c.StreamPlugin(params) + + records := make([]FlexV1Plugin, 0) + for record := range response { + records = append(records, record) + } + + if err := <-errors; err != nil { + return nil, err + } + + return records, nil +} + +// Streams Plugin records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. +func (c *ApiService) StreamPlugin(params *ListPluginParams) (chan FlexV1Plugin, chan error) { + if params == nil { + params = &ListPluginParams{} + } + params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit)) + + recordChannel := make(chan FlexV1Plugin, 1) + errorChannel := make(chan error, 1) + + response, err := c.PagePlugin(params, "", "") + if err != nil { + errorChannel <- err + close(recordChannel) + close(errorChannel) + } else { + go c.streamPlugin(response, params, recordChannel, errorChannel) + } + + return recordChannel, errorChannel +} + +func (c *ApiService) streamPlugin(response *ListPluginResponse, params *ListPluginParams, recordChannel chan FlexV1Plugin, errorChannel chan error) { + curRecord := 1 + + for response != nil { + responseRecords := response.Plugins + for item := range responseRecords { + recordChannel <- responseRecords[item] + curRecord += 1 + if params.Limit != nil && *params.Limit < curRecord { + close(recordChannel) + close(errorChannel) + return + } + } + + record, err := client.GetNext(c.baseURL, response, c.getNextListPluginResponse) + if err != nil { + errorChannel <- err + break + } else if record == nil { + break + } + + response = record.(*ListPluginResponse) + } + + close(recordChannel) + close(errorChannel) +} + +func (c *ApiService) getNextListPluginResponse(nextPageUrl string) (interface{}, error) { + if nextPageUrl == "" { + return nil, nil + } + resp, err := c.requestHandler.Get(nextPageUrl, nil, nil) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + return ps, nil +} + +// Optional parameters for the method 'UpdatePlugin' +type UpdatePluginParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` + // The Flex Plugin's friendly name. + FriendlyName *string `json:"FriendlyName,omitempty"` + // A descriptive string that you update to describe the plugin resource. It can be up to 500 characters long + Description *string `json:"Description,omitempty"` +} + +func (params *UpdatePluginParams) SetFlexMetadata(FlexMetadata string) *UpdatePluginParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *UpdatePluginParams) SetFriendlyName(FriendlyName string) *UpdatePluginParams { + params.FriendlyName = &FriendlyName + return params +} +func (params *UpdatePluginParams) SetDescription(Description string) *UpdatePluginParams { + params.Description = &Description + return params +} + +func (c *ApiService) UpdatePlugin(Sid string, params *UpdatePluginParams) (*FlexV1Plugin, error) { + path := "/v1/PluginService/Plugins/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Plugin{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/flex/v1/plugin_service_plugins_archive.go b/rest/flex/v1/plugin_service_plugins_archive.go new file mode 100644 index 000000000..967a26816 --- /dev/null +++ b/rest/flex/v1/plugin_service_plugins_archive.go @@ -0,0 +1,57 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "strings" +) + +// Optional parameters for the method 'UpdatePluginArchive' +type UpdatePluginArchiveParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *UpdatePluginArchiveParams) SetFlexMetadata(FlexMetadata string) *UpdatePluginArchiveParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) UpdatePluginArchive(Sid string, params *UpdatePluginArchiveParams) (*FlexV1PluginArchive, error) { + path := "/v1/PluginService/Plugins/{Sid}/Archive" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginArchive{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/flex/v1/plugin_service_plugins_versions.go b/rest/flex/v1/plugin_service_plugins_versions.go new file mode 100644 index 000000000..1b1bb1368 --- /dev/null +++ b/rest/flex/v1/plugin_service_plugins_versions.go @@ -0,0 +1,278 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "fmt" + "net/url" + "strings" + + "github.com/twilio/twilio-go/client" +) + +// Optional parameters for the method 'CreatePluginVersion' +type CreatePluginVersionParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` + // The Flex Plugin Version's version. + Version *string `json:"Version,omitempty"` + // The URL of the Flex Plugin Version bundle + PluginUrl *string `json:"PluginUrl,omitempty"` + // The changelog of the Flex Plugin Version. + Changelog *string `json:"Changelog,omitempty"` + // Whether this Flex Plugin Version requires authorization. + Private *bool `json:"Private,omitempty"` +} + +func (params *CreatePluginVersionParams) SetFlexMetadata(FlexMetadata string) *CreatePluginVersionParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *CreatePluginVersionParams) SetVersion(Version string) *CreatePluginVersionParams { + params.Version = &Version + return params +} +func (params *CreatePluginVersionParams) SetPluginUrl(PluginUrl string) *CreatePluginVersionParams { + params.PluginUrl = &PluginUrl + return params +} +func (params *CreatePluginVersionParams) SetChangelog(Changelog string) *CreatePluginVersionParams { + params.Changelog = &Changelog + return params +} +func (params *CreatePluginVersionParams) SetPrivate(Private bool) *CreatePluginVersionParams { + params.Private = &Private + return params +} + +func (c *ApiService) CreatePluginVersion(PluginSid string, params *CreatePluginVersionParams) (*FlexV1PluginVersion, error) { + path := "/v1/PluginService/Plugins/{PluginSid}/Versions" + path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Version != nil { + data.Set("Version", *params.Version) + } + if params != nil && params.PluginUrl != nil { + data.Set("PluginUrl", *params.PluginUrl) + } + if params != nil && params.Changelog != nil { + data.Set("Changelog", *params.Changelog) + } + if params != nil && params.Private != nil { + data.Set("Private", fmt.Sprint(*params.Private)) + } + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'FetchPluginVersion' +type FetchPluginVersionParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *FetchPluginVersionParams) SetFlexMetadata(FlexMetadata string) *FetchPluginVersionParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) FetchPluginVersion(PluginSid string, Sid string, params *FetchPluginVersionParams) (*FlexV1PluginVersion, error) { + path := "/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}" + path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'ListPluginVersion' +type ListPluginVersionParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,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 *ListPluginVersionParams) SetFlexMetadata(FlexMetadata string) *ListPluginVersionParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *ListPluginVersionParams) SetPageSize(PageSize int) *ListPluginVersionParams { + params.PageSize = &PageSize + return params +} +func (params *ListPluginVersionParams) SetLimit(Limit int) *ListPluginVersionParams { + params.Limit = &Limit + return params +} + +// Retrieve a single page of PluginVersion records from the API. Request is executed immediately. +func (c *ApiService) PagePluginVersion(PluginSid string, params *ListPluginVersionParams, pageToken, pageNumber string) (*ListPluginVersionResponse, error) { + path := "/v1/PluginService/Plugins/{PluginSid}/Versions" + + path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + if pageToken != "" { + data.Set("PageToken", pageToken) + } + if pageNumber != "" { + data.Set("Page", pageNumber) + } + + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginVersionResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Lists PluginVersion records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. +func (c *ApiService) ListPluginVersion(PluginSid string, params *ListPluginVersionParams) ([]FlexV1PluginVersion, error) { + response, errors := c.StreamPluginVersion(PluginSid, params) + + records := make([]FlexV1PluginVersion, 0) + for record := range response { + records = append(records, record) + } + + if err := <-errors; err != nil { + return nil, err + } + + return records, nil +} + +// Streams PluginVersion records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. +func (c *ApiService) StreamPluginVersion(PluginSid string, params *ListPluginVersionParams) (chan FlexV1PluginVersion, chan error) { + if params == nil { + params = &ListPluginVersionParams{} + } + params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit)) + + recordChannel := make(chan FlexV1PluginVersion, 1) + errorChannel := make(chan error, 1) + + response, err := c.PagePluginVersion(PluginSid, params, "", "") + if err != nil { + errorChannel <- err + close(recordChannel) + close(errorChannel) + } else { + go c.streamPluginVersion(response, params, recordChannel, errorChannel) + } + + return recordChannel, errorChannel +} + +func (c *ApiService) streamPluginVersion(response *ListPluginVersionResponse, params *ListPluginVersionParams, recordChannel chan FlexV1PluginVersion, errorChannel chan error) { + curRecord := 1 + + for response != nil { + responseRecords := response.PluginVersions + for item := range responseRecords { + recordChannel <- responseRecords[item] + curRecord += 1 + if params.Limit != nil && *params.Limit < curRecord { + close(recordChannel) + close(errorChannel) + return + } + } + + record, err := client.GetNext(c.baseURL, response, c.getNextListPluginVersionResponse) + if err != nil { + errorChannel <- err + break + } else if record == nil { + break + } + + response = record.(*ListPluginVersionResponse) + } + + close(recordChannel) + close(errorChannel) +} + +func (c *ApiService) getNextListPluginVersionResponse(nextPageUrl string) (interface{}, error) { + if nextPageUrl == "" { + return nil, nil + } + resp, err := c.requestHandler.Get(nextPageUrl, nil, nil) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginVersionResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + return ps, nil +} diff --git a/rest/flex/v1/plugin_service_plugins_versions_archive.go b/rest/flex/v1/plugin_service_plugins_versions_archive.go new file mode 100644 index 000000000..08576ea71 --- /dev/null +++ b/rest/flex/v1/plugin_service_plugins_versions_archive.go @@ -0,0 +1,58 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "strings" +) + +// Optional parameters for the method 'UpdatePluginVersionArchive' +type UpdatePluginVersionArchiveParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *UpdatePluginVersionArchiveParams) SetFlexMetadata(FlexMetadata string) *UpdatePluginVersionArchiveParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) UpdatePluginVersionArchive(PluginSid string, Sid string, params *UpdatePluginVersionArchiveParams) (*FlexV1PluginVersionArchive, error) { + path := "/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}/Archive" + path = strings.Replace(path, "{"+"PluginSid"+"}", PluginSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginVersionArchive{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/flex/v1/plugin_service_releases.go b/rest/flex/v1/plugin_service_releases.go new file mode 100644 index 000000000..83aad8a30 --- /dev/null +++ b/rest/flex/v1/plugin_service_releases.go @@ -0,0 +1,247 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Flex + * 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" + "fmt" + "net/url" + "strings" + + "github.com/twilio/twilio-go/client" +) + +// Optional parameters for the method 'CreatePluginRelease' +type CreatePluginReleaseParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` + // The SID or the Version of the Flex Plugin Configuration to release. + ConfigurationId *string `json:"ConfigurationId,omitempty"` +} + +func (params *CreatePluginReleaseParams) SetFlexMetadata(FlexMetadata string) *CreatePluginReleaseParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *CreatePluginReleaseParams) SetConfigurationId(ConfigurationId string) *CreatePluginReleaseParams { + params.ConfigurationId = &ConfigurationId + return params +} + +func (c *ApiService) CreatePluginRelease(params *CreatePluginReleaseParams) (*FlexV1PluginRelease, error) { + path := "/v1/PluginService/Releases" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.ConfigurationId != nil { + data.Set("ConfigurationId", *params.ConfigurationId) + } + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginRelease{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'FetchPluginRelease' +type FetchPluginReleaseParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,omitempty"` +} + +func (params *FetchPluginReleaseParams) SetFlexMetadata(FlexMetadata string) *FetchPluginReleaseParams { + params.FlexMetadata = &FlexMetadata + return params +} + +func (c *ApiService) FetchPluginRelease(Sid string, params *FetchPluginReleaseParams) (*FlexV1PluginRelease, error) { + path := "/v1/PluginService/Releases/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.FlexMetadata != nil { + headers["Flex-Metadata"] = *params.FlexMetadata + } + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1PluginRelease{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'ListPluginRelease' +type ListPluginReleaseParams struct { + // The Flex-Metadata HTTP request header + FlexMetadata *string `json:"Flex-Metadata,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 *ListPluginReleaseParams) SetFlexMetadata(FlexMetadata string) *ListPluginReleaseParams { + params.FlexMetadata = &FlexMetadata + return params +} +func (params *ListPluginReleaseParams) SetPageSize(PageSize int) *ListPluginReleaseParams { + params.PageSize = &PageSize + return params +} +func (params *ListPluginReleaseParams) SetLimit(Limit int) *ListPluginReleaseParams { + params.Limit = &Limit + return params +} + +// Retrieve a single page of PluginRelease records from the API. Request is executed immediately. +func (c *ApiService) PagePluginRelease(params *ListPluginReleaseParams, pageToken, pageNumber string) (*ListPluginReleaseResponse, error) { + path := "/v1/PluginService/Releases" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + if pageToken != "" { + data.Set("PageToken", pageToken) + } + if pageNumber != "" { + data.Set("Page", pageNumber) + } + + resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginReleaseResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Lists PluginRelease records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning. +func (c *ApiService) ListPluginRelease(params *ListPluginReleaseParams) ([]FlexV1PluginRelease, error) { + response, errors := c.StreamPluginRelease(params) + + records := make([]FlexV1PluginRelease, 0) + for record := range response { + records = append(records, record) + } + + if err := <-errors; err != nil { + return nil, err + } + + return records, nil +} + +// Streams PluginRelease records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached. +func (c *ApiService) StreamPluginRelease(params *ListPluginReleaseParams) (chan FlexV1PluginRelease, chan error) { + if params == nil { + params = &ListPluginReleaseParams{} + } + params.SetPageSize(client.ReadLimits(params.PageSize, params.Limit)) + + recordChannel := make(chan FlexV1PluginRelease, 1) + errorChannel := make(chan error, 1) + + response, err := c.PagePluginRelease(params, "", "") + if err != nil { + errorChannel <- err + close(recordChannel) + close(errorChannel) + } else { + go c.streamPluginRelease(response, params, recordChannel, errorChannel) + } + + return recordChannel, errorChannel +} + +func (c *ApiService) streamPluginRelease(response *ListPluginReleaseResponse, params *ListPluginReleaseParams, recordChannel chan FlexV1PluginRelease, errorChannel chan error) { + curRecord := 1 + + for response != nil { + responseRecords := response.Releases + for item := range responseRecords { + recordChannel <- responseRecords[item] + curRecord += 1 + if params.Limit != nil && *params.Limit < curRecord { + close(recordChannel) + close(errorChannel) + return + } + } + + record, err := client.GetNext(c.baseURL, response, c.getNextListPluginReleaseResponse) + if err != nil { + errorChannel <- err + break + } else if record == nil { + break + } + + response = record.(*ListPluginReleaseResponse) + } + + close(recordChannel) + close(errorChannel) +} + +func (c *ApiService) getNextListPluginReleaseResponse(nextPageUrl string) (interface{}, error) { + if nextPageUrl == "" { + return nil, nil + } + resp, err := c.requestHandler.Get(nextPageUrl, nil, nil) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListPluginReleaseResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + return ps, nil +} 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/README.md b/rest/flex/v2/README.md index 6aea6ff7c..0499c7fe7 100644 --- a/rest/flex/v2/README.md +++ b/rest/flex/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/frontline/v1/README.md b/rest/frontline/v1/README.md index d3ec8331c..923bf9a0f 100644 --- a/rest/frontline/v1/README.md +++ b/rest/frontline/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/insights/v1/README.md b/rest/insights/v1/README.md index 356d1db10..652d3a7a9 100644 --- a/rest/insights/v1/README.md +++ b/rest/insights/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/insights/v1/docs/ListCallSummariesResponseMeta.md b/rest/insights/v1/docs/ListCallSummariesResponseMeta.md index 1f578fc6b..604e70eb6 100644 --- a/rest/insights/v1/docs/ListCallSummariesResponseMeta.md +++ b/rest/insights/v1/docs/ListCallSummariesResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/insights/v1/model_list_call_summaries_response_meta.go b/rest/insights/v1/model_list_call_summaries_response_meta.go index d3445fb5c..8c3c6e25f 100644 --- a/rest/insights/v1/model_list_call_summaries_response_meta.go +++ b/rest/insights/v1/model_list_call_summaries_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCallSummariesResponseMeta struct for ListCallSummariesResponseMeta type ListCallSummariesResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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 152d3b380..4d452dc98 100644 --- a/rest/intelligence/v2/README.md +++ b/rest/intelligence/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/intelligence/v2/docs/ListOperatorResultResponseMeta.md b/rest/intelligence/v2/docs/ListOperatorResultResponseMeta.md index 7c91b03f2..f0dbaff2c 100644 --- a/rest/intelligence/v2/docs/ListOperatorResultResponseMeta.md +++ b/rest/intelligence/v2/docs/ListOperatorResultResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/intelligence/v2/model_list_operator_result_response_meta.go b/rest/intelligence/v2/model_list_operator_result_response_meta.go index d9445c31c..ca8eb4b1f 100644 --- a/rest/intelligence/v2/model_list_operator_result_response_meta.go +++ b/rest/intelligence/v2/model_list_operator_result_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListOperatorResultResponseMeta struct for ListOperatorResultResponseMeta type ListOperatorResultResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/ip_messaging/v1/README.md b/rest/ip_messaging/v1/README.md index 3e58a3648..ed4d7d00d 100644 --- a/rest/ip_messaging/v1/README.md +++ b/rest/ip_messaging/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListChannelResponseMeta.md b/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md index d507879b9..b007fb5e6 100644 --- a/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md +++ b/rest/ip_messaging/v1/docs/ListChannelResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/ip_messaging/v1/model_list_channel_response_meta.go b/rest/ip_messaging/v1/model_list_channel_response_meta.go index 4e3849511..2ffc954bb 100644 --- a/rest/ip_messaging/v1/model_list_channel_response_meta.go +++ b/rest/ip_messaging/v1/model_list_channel_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListChannelResponseMeta struct for ListChannelResponseMeta type ListChannelResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/ip_messaging/v2/README.md index 8928f2741..5f05893a7 100644 --- a/rest/ip_messaging/v2/README.md +++ b/rest/ip_messaging/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListBindingResponseMeta.md b/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md index f40b7bc19..fcd580e38 100644 --- a/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md +++ b/rest/ip_messaging/v2/docs/ListBindingResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/ip_messaging/v2/model_list_binding_response_meta.go b/rest/ip_messaging/v2/model_list_binding_response_meta.go index 8e97c4e4b..da247aa64 100644 --- a/rest/ip_messaging/v2/model_list_binding_response_meta.go +++ b/rest/ip_messaging/v2/model_list_binding_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBindingResponseMeta struct for ListBindingResponseMeta type ListBindingResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/lookups/v1/README.md index 18e735072..0fe57e708 100644 --- a/rest/lookups/v1/README.md +++ b/rest/lookups/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/README.md b/rest/lookups/v2/README.md index 8dd01c06b..068d2972c 100644 --- a/rest/lookups/v2/README.md +++ b/rest/lookups/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/README.md b/rest/media/v1/README.md index ecca8fc53..6c73a7819 100644 --- a/rest/media/v1/README.md +++ b/rest/media/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/media/v1/docs/ListMediaProcessorResponseMeta.md b/rest/media/v1/docs/ListMediaProcessorResponseMeta.md index b978b181b..85fb22ec7 100644 --- a/rest/media/v1/docs/ListMediaProcessorResponseMeta.md +++ b/rest/media/v1/docs/ListMediaProcessorResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/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/model_list_media_processor_response_meta.go b/rest/media/v1/model_list_media_processor_response_meta.go index 46a4b9cbf..16c6f90b4 100644 --- a/rest/media/v1/model_list_media_processor_response_meta.go +++ b/rest/media/v1/model_list_media_processor_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListMediaProcessorResponseMeta struct for ListMediaProcessorResponseMeta type ListMediaProcessorResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/messaging/v1/README.md index cc77268e0..5b4163bb3 100644 --- a/rest/messaging/v1/README.md +++ b/rest/messaging/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListAlphaSenderResponseMeta.md b/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md index 81405dccd..2b8f0b215 100644 --- a/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md +++ b/rest/messaging/v1/docs/ListAlphaSenderResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/messaging/v1/docs/MessagingV1BrandRegistrations.md b/rest/messaging/v1/docs/MessagingV1BrandRegistrations.md index 15db01307..b83ed3fe2 100644 --- a/rest/messaging/v1/docs/MessagingV1BrandRegistrations.md +++ b/rest/messaging/v1/docs/MessagingV1BrandRegistrations.md @@ -13,10 +13,11 @@ Name | Type | Description | Notes **BrandType** | Pointer to **string** | Type of brand. One of: \"STANDARD\", \"SOLE_PROPRIETOR\". SOLE_PROPRIETOR is for the low volume, SOLE_PROPRIETOR campaign use case. There can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR brand. STANDARD is for all other campaign use cases. Multiple campaign use cases can be created per STANDARD brand. | **Status** | Pointer to [**string**](BrandRegistrationsEnumStatus.md) | | **TcrId** | Pointer to **string** | Campaign Registry (TCR) Brand ID. Assigned only after successful brand registration. | -**FailureReason** | Pointer to **string** | A reason why brand registration has failed. Only applicable when status is FAILED. | +**FailureReason** | Pointer to **string** | DEPRECATED. A reason why brand registration has failed. Only applicable when status is FAILED. | +**Errors** | Pointer to **[]interface{}** | A list of errors that occurred during the brand registration process. | **Url** | Pointer to **string** | The absolute URL of the Brand Registration resource. | **BrandScore** | Pointer to **int** | The secondary vetting score if it was done. Otherwise, it will be the brand score if it's returned from TCR. It may be null if no score is available. | -**BrandFeedback** | Pointer to [**[]string**](BrandRegistrationsEnumBrandFeedback.md) | Feedback on how to improve brand score | +**BrandFeedback** | Pointer to [**[]string**](BrandRegistrationsEnumBrandFeedback.md) | DEPRECATED. Feedback on how to improve brand score | **IdentityStatus** | Pointer to [**string**](BrandRegistrationsEnumIdentityStatus.md) | | **Russell3000** | Pointer to **bool** | Publicly traded company identified in the Russell 3000 Index | **GovernmentEntity** | Pointer to **bool** | Identified as a government entity | 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/model_list_alpha_sender_response_meta.go b/rest/messaging/v1/model_list_alpha_sender_response_meta.go index 0e16d9067..8d552af55 100644 --- a/rest/messaging/v1/model_list_alpha_sender_response_meta.go +++ b/rest/messaging/v1/model_list_alpha_sender_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAlphaSenderResponseMeta struct for ListAlphaSenderResponseMeta type ListAlphaSenderResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_brand_registrations.go b/rest/messaging/v1/model_messaging_v1_brand_registrations.go index 3fef6d4b3..957752c73 100644 --- a/rest/messaging/v1/model_messaging_v1_brand_registrations.go +++ b/rest/messaging/v1/model_messaging_v1_brand_registrations.go @@ -37,13 +37,15 @@ type MessagingV1BrandRegistrations struct { Status *string `json:"status,omitempty"` // Campaign Registry (TCR) Brand ID. Assigned only after successful brand registration. TcrId *string `json:"tcr_id,omitempty"` - // A reason why brand registration has failed. Only applicable when status is FAILED. + // DEPRECATED. A reason why brand registration has failed. Only applicable when status is FAILED. FailureReason *string `json:"failure_reason,omitempty"` + // A list of errors that occurred during the brand registration process. + Errors *[]interface{} `json:"errors,omitempty"` // The absolute URL of the Brand Registration resource. Url *string `json:"url,omitempty"` // The secondary vetting score if it was done. Otherwise, it will be the brand score if it's returned from TCR. It may be null if no score is available. BrandScore *int `json:"brand_score,omitempty"` - // Feedback on how to improve brand score + // DEPRECATED. Feedback on how to improve brand score BrandFeedback *[]string `json:"brand_feedback,omitempty"` IdentityStatus *string `json:"identity_status,omitempty"` // Publicly traded company identified in the Russell 3000 Index 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/microvisor/v1/README.md b/rest/microvisor/v1/README.md index b7e72e9b8..f38d4e9fa 100644 --- a/rest/microvisor/v1/README.md +++ b/rest/microvisor/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md b/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md index 5e7a4ede0..779a1d466 100644 --- a/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md +++ b/rest/microvisor/v1/docs/ListAccountConfigResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/microvisor/v1/model_list_account_config_response_meta.go b/rest/microvisor/v1/model_list_account_config_response_meta.go index 734126b35..729c64d9b 100644 --- a/rest/microvisor/v1/model_list_account_config_response_meta.go +++ b/rest/microvisor/v1/model_list_account_config_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAccountConfigResponseMeta struct for ListAccountConfigResponseMeta type ListAccountConfigResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/monitor/v1/README.md b/rest/monitor/v1/README.md index 19226435b..afba156ea 100644 --- a/rest/monitor/v1/README.md +++ b/rest/monitor/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListAlertResponseMeta.md b/rest/monitor/v1/docs/ListAlertResponseMeta.md index dcc1226e3..d1149f4ee 100644 --- a/rest/monitor/v1/docs/ListAlertResponseMeta.md +++ b/rest/monitor/v1/docs/ListAlertResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/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/monitor/v1/model_list_alert_response_meta.go b/rest/monitor/v1/model_list_alert_response_meta.go index cfbc0259c..a5c2f674b 100644 --- a/rest/monitor/v1/model_list_alert_response_meta.go +++ b/rest/monitor/v1/model_list_alert_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAlertResponseMeta struct for ListAlertResponseMeta type ListAlertResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/notify/v1/README.md b/rest/notify/v1/README.md index c4620808d..1c41c200a 100644 --- a/rest/notify/v1/README.md +++ b/rest/notify/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListBindingResponseMeta.md b/rest/notify/v1/docs/ListBindingResponseMeta.md index f40b7bc19..fcd580e38 100644 --- a/rest/notify/v1/docs/ListBindingResponseMeta.md +++ b/rest/notify/v1/docs/ListBindingResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/notify/v1/model_list_binding_response_meta.go b/rest/notify/v1/model_list_binding_response_meta.go index 4da24841c..aec528bf7 100644 --- a/rest/notify/v1/model_list_binding_response_meta.go +++ b/rest/notify/v1/model_list_binding_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBindingResponseMeta struct for ListBindingResponseMeta type ListBindingResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/numbers/v1/README.md index 0d6836fd8..e3855fabf 100644 --- a/rest/numbers/v1/README.md +++ b/rest/numbers/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) @@ -31,7 +31,10 @@ All URIs are relative to *https://numbers.twilio.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*HostedNumberEligibilityApi* | [**CreateEligibility**](docs/HostedNumberEligibilityApi.md#createeligibility) | **Post** /v1/HostedNumber/Eligibility | +*HostedNumberEligibilityBulkApi* | [**CreateBulkEligibility**](docs/HostedNumberEligibilityBulkApi.md#createbulkeligibility) | **Post** /v1/HostedNumber/Eligibility/Bulk | *HostedNumberEligibilityBulkApi* | [**FetchBulkEligibility**](docs/HostedNumberEligibilityBulkApi.md#fetchbulkeligibility) | **Get** /v1/HostedNumber/Eligibility/Bulk/{RequestId} | +*PortingPortInApi* | [**CreatePortingPortIn**](docs/PortingPortInApi.md#createportingportin) | **Post** /v1/Porting/PortIn | *PortingPortInApi* | [**FetchPortingPortInFetch**](docs/PortingPortInApi.md#fetchportingportinfetch) | **Get** /v1/Porting/PortIn/{PortInRequestSid} | *PortingPortabilityApi* | [**CreatePortingBulkPortability**](docs/PortingPortabilityApi.md#createportingbulkportability) | **Post** /v1/Porting/Portability | *PortingPortabilityApi* | [**FetchPortingBulkPortability**](docs/PortingPortabilityApi.md#fetchportingbulkportability) | **Get** /v1/Porting/Portability/{Sid} | diff --git a/rest/numbers/v1/docs/HostedNumberEligibilityApi.md b/rest/numbers/v1/docs/HostedNumberEligibilityApi.md new file mode 100644 index 000000000..7e599404e --- /dev/null +++ b/rest/numbers/v1/docs/HostedNumberEligibilityApi.md @@ -0,0 +1,48 @@ +# HostedNumberEligibilityApi + +All URIs are relative to *https://numbers.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEligibility**](HostedNumberEligibilityApi.md#CreateEligibility) | **Post** /v1/HostedNumber/Eligibility | + + + +## CreateEligibility + +> NumbersV1Eligibility CreateEligibility(ctx, optional) + + + +Create an eligibility check for a number that you want to host in Twilio. + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateEligibilityParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**Body** | **map[string]interface{}** | + +### Return type + +[**NumbersV1Eligibility**](NumbersV1Eligibility.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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/numbers/v1/docs/HostedNumberEligibilityBulkApi.md b/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md index ea60f15fb..ea7489e93 100644 --- a/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md +++ b/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md @@ -4,10 +4,50 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateBulkEligibility**](HostedNumberEligibilityBulkApi.md#CreateBulkEligibility) | **Post** /v1/HostedNumber/Eligibility/Bulk | [**FetchBulkEligibility**](HostedNumberEligibilityBulkApi.md#FetchBulkEligibility) | **Get** /v1/HostedNumber/Eligibility/Bulk/{RequestId} | +## CreateBulkEligibility + +> NumbersV1BulkEligibility CreateBulkEligibility(ctx, optional) + + + +Create a bulk eligibility check for a set of numbers that you want to host in Twilio. + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateBulkEligibilityParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**Body** | **map[string]interface{}** | + +### Return type + +[**NumbersV1BulkEligibility**](NumbersV1BulkEligibility.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## FetchBulkEligibility > NumbersV1BulkEligibility FetchBulkEligibility(ctx, RequestId) diff --git a/rest/numbers/v1/docs/PortingPortInApi.md b/rest/numbers/v1/docs/PortingPortInApi.md index d443c139e..fdfb970df 100644 --- a/rest/numbers/v1/docs/PortingPortInApi.md +++ b/rest/numbers/v1/docs/PortingPortInApi.md @@ -4,10 +4,50 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreatePortingPortIn**](PortingPortInApi.md#CreatePortingPortIn) | **Post** /v1/Porting/PortIn | [**FetchPortingPortInFetch**](PortingPortInApi.md#FetchPortingPortInFetch) | **Get** /v1/Porting/PortIn/{PortInRequestSid} | +## CreatePortingPortIn + +> NumbersV1PortingPortIn CreatePortingPortIn(ctx, optional) + + + +Allows to create a new port in request + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreatePortingPortInParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**Body** | **map[string]interface{}** | + +### Return type + +[**NumbersV1PortingPortIn**](NumbersV1PortingPortIn.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## FetchPortingPortInFetch > NumbersV1PortingPortInFetch FetchPortingPortInFetch(ctx, PortInRequestSid) diff --git a/rest/numbers/v1/hosted_number_eligibility.go b/rest/numbers/v1/hosted_number_eligibility.go new file mode 100644 index 000000000..98a13f849 --- /dev/null +++ b/rest/numbers/v1/hosted_number_eligibility.go @@ -0,0 +1,64 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Numbers + * 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 'CreateEligibility' +type CreateEligibilityParams struct { + // + Body *map[string]interface{} `json:"body,omitempty"` +} + +func (params *CreateEligibilityParams) SetBody(Body map[string]interface{}) *CreateEligibilityParams { + params.Body = &Body + return params +} + +// Create an eligibility check for a number that you want to host in Twilio. +func (c *ApiService) CreateEligibility(params *CreateEligibilityParams) (*NumbersV1Eligibility, error) { + path := "/v1/HostedNumber/Eligibility" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.Body != nil { + b, err := json.Marshal(*params.Body) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV1Eligibility{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/numbers/v1/hosted_number_eligibility_bulk.go b/rest/numbers/v1/hosted_number_eligibility_bulk.go index 9bdfdaa90..043370f95 100644 --- a/rest/numbers/v1/hosted_number_eligibility_bulk.go +++ b/rest/numbers/v1/hosted_number_eligibility_bulk.go @@ -20,6 +20,50 @@ import ( "strings" ) +// Optional parameters for the method 'CreateBulkEligibility' +type CreateBulkEligibilityParams struct { + // + Body *map[string]interface{} `json:"body,omitempty"` +} + +func (params *CreateBulkEligibilityParams) SetBody(Body map[string]interface{}) *CreateBulkEligibilityParams { + params.Body = &Body + return params +} + +// Create a bulk eligibility check for a set of numbers that you want to host in Twilio. +func (c *ApiService) CreateBulkEligibility(params *CreateBulkEligibilityParams) (*NumbersV1BulkEligibility, error) { + path := "/v1/HostedNumber/Eligibility/Bulk" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.Body != nil { + b, err := json.Marshal(*params.Body) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV1BulkEligibility{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + // Fetch an eligibility bulk check that you requested to host in Twilio. func (c *ApiService) FetchBulkEligibility(RequestId string) (*NumbersV1BulkEligibility, error) { path := "/v1/HostedNumber/Eligibility/Bulk/{RequestId}" diff --git a/rest/numbers/v1/porting_port_in.go b/rest/numbers/v1/porting_port_in.go index 06060c37a..f437eaaa8 100644 --- a/rest/numbers/v1/porting_port_in.go +++ b/rest/numbers/v1/porting_port_in.go @@ -20,6 +20,50 @@ import ( "strings" ) +// Optional parameters for the method 'CreatePortingPortIn' +type CreatePortingPortInParams struct { + // + Body *map[string]interface{} `json:"body,omitempty"` +} + +func (params *CreatePortingPortInParams) SetBody(Body map[string]interface{}) *CreatePortingPortInParams { + params.Body = &Body + return params +} + +// Allows to create a new port in request +func (c *ApiService) CreatePortingPortIn(params *CreatePortingPortInParams) (*NumbersV1PortingPortIn, error) { + path := "/v1/Porting/PortIn" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.Body != nil { + b, err := json.Marshal(*params.Body) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV1PortingPortIn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + // Fetch a port in request by SID func (c *ApiService) FetchPortingPortInFetch(PortInRequestSid string) (*NumbersV1PortingPortInFetch, error) { path := "/v1/Porting/PortIn/{PortInRequestSid}" diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md index 581bf98bc..3318f9450 100644 --- a/rest/numbers/v2/README.md +++ b/rest/numbers/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) @@ -40,6 +40,7 @@ Class | Method | HTTP request | Description *HostedNumberOrdersApi* | [**DeleteHostedNumberOrder**](docs/HostedNumberOrdersApi.md#deletehostednumberorder) | **Delete** /v2/HostedNumber/Orders/{Sid} | *HostedNumberOrdersApi* | [**FetchHostedNumberOrder**](docs/HostedNumberOrdersApi.md#fetchhostednumberorder) | **Get** /v2/HostedNumber/Orders/{Sid} | *HostedNumberOrdersApi* | [**ListHostedNumberOrder**](docs/HostedNumberOrdersApi.md#listhostednumberorder) | **Get** /v2/HostedNumber/Orders | +*HostedNumberOrdersBulkApi* | [**CreateBulkHostedNumberOrder**](docs/HostedNumberOrdersBulkApi.md#createbulkhostednumberorder) | **Post** /v2/HostedNumber/Orders/Bulk | *HostedNumberOrdersBulkApi* | [**FetchBulkHostedNumberOrder**](docs/HostedNumberOrdersBulkApi.md#fetchbulkhostednumberorder) | **Get** /v2/HostedNumber/Orders/Bulk/{BulkHostingSid} | *RegulatoryComplianceBundlesApi* | [**CreateBundle**](docs/RegulatoryComplianceBundlesApi.md#createbundle) | **Post** /v2/RegulatoryCompliance/Bundles | *RegulatoryComplianceBundlesApi* | [**DeleteBundle**](docs/RegulatoryComplianceBundlesApi.md#deletebundle) | **Delete** /v2/RegulatoryCompliance/Bundles/{Sid} | diff --git a/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md b/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md index fbbcd3450..2674757ec 100644 --- a/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md +++ b/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md @@ -4,10 +4,50 @@ All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateBulkHostedNumberOrder**](HostedNumberOrdersBulkApi.md#CreateBulkHostedNumberOrder) | **Post** /v2/HostedNumber/Orders/Bulk | [**FetchBulkHostedNumberOrder**](HostedNumberOrdersBulkApi.md#FetchBulkHostedNumberOrder) | **Get** /v2/HostedNumber/Orders/Bulk/{BulkHostingSid} | +## CreateBulkHostedNumberOrder + +> NumbersV2BulkHostedNumberOrder CreateBulkHostedNumberOrder(ctx, optional) + + + +Host multiple phone numbers on Twilio's platform. + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateBulkHostedNumberOrderParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**Body** | **map[string]interface{}** | + +### Return type + +[**NumbersV2BulkHostedNumberOrder**](NumbersV2BulkHostedNumberOrder.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## FetchBulkHostedNumberOrder > NumbersV2BulkHostedNumberOrder FetchBulkHostedNumberOrder(ctx, BulkHostingSidoptional) diff --git a/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md b/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md index e26545bdd..326d23ece 100644 --- a/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md +++ b/rest/numbers/v2/docs/ListAuthorizationDocumentResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/numbers/v2/docs/RegulatoryComplianceBundlesApi.md b/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md index 3d98a3d96..99f7bb401 100644 --- a/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md +++ b/rest/numbers/v2/docs/RegulatoryComplianceBundlesApi.md @@ -169,8 +169,6 @@ 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/hosted_number_orders_bulk.go b/rest/numbers/v2/hosted_number_orders_bulk.go index 341c7eee2..4cecf1269 100644 --- a/rest/numbers/v2/hosted_number_orders_bulk.go +++ b/rest/numbers/v2/hosted_number_orders_bulk.go @@ -20,6 +20,50 @@ import ( "strings" ) +// Optional parameters for the method 'CreateBulkHostedNumberOrder' +type CreateBulkHostedNumberOrderParams struct { + // + Body *map[string]interface{} `json:"body,omitempty"` +} + +func (params *CreateBulkHostedNumberOrderParams) SetBody(Body map[string]interface{}) *CreateBulkHostedNumberOrderParams { + params.Body = &Body + return params +} + +// Host multiple phone numbers on Twilio's platform. +func (c *ApiService) CreateBulkHostedNumberOrder(params *CreateBulkHostedNumberOrderParams) (*NumbersV2BulkHostedNumberOrder, error) { + path := "/v2/HostedNumber/Orders/Bulk" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.Body != nil { + b, err := json.Marshal(*params.Body) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2BulkHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + // Optional parameters for the method 'FetchBulkHostedNumberOrder' type FetchBulkHostedNumberOrderParams struct { // Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'. diff --git a/rest/numbers/v2/model_list_authorization_document_response_meta.go b/rest/numbers/v2/model_list_authorization_document_response_meta.go index 65a29879e..67286527a 100644 --- a/rest/numbers/v2/model_list_authorization_document_response_meta.go +++ b/rest/numbers/v2/model_list_authorization_document_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAuthorizationDocumentResponseMeta struct for ListAuthorizationDocumentResponseMeta type ListAuthorizationDocumentResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/numbers/v2/regulatory_compliance_bundles.go b/rest/numbers/v2/regulatory_compliance_bundles.go index cd0a3c8d2..f0b191016 100644 --- a/rest/numbers/v2/regulatory_compliance_bundles.go +++ b/rest/numbers/v2/regulatory_compliance_bundles.go @@ -176,10 +176,6 @@ 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. @@ -222,14 +218,6 @@ 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 @@ -273,12 +261,6 @@ 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/preview_messaging/v1/README.md b/rest/preview_messaging/v1/README.md new file mode 100644 index 000000000..0063bcda0 --- /dev/null +++ b/rest/preview_messaging/v1/README.md @@ -0,0 +1,67 @@ +# Go API client for openapi + +Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + +## 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-alpha.1 +- 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://preview.messaging.twilio.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*BroadcastsApi* | [**CreateBroadcast**](docs/BroadcastsApi.md#createbroadcast) | **Post** /v1/Broadcasts | +*MessagesApi* | [**CreateMessages**](docs/MessagesApi.md#createmessages) | **Post** /v1/Messages | + + +## Documentation For Models + + - [MessagingV1MessageReceipt](docs/MessagingV1MessageReceipt.md) + - [MessagingV1BroadcastExecutionDetails](docs/MessagingV1BroadcastExecutionDetails.md) + - [MessagingV1Message](docs/MessagingV1Message.md) + - [MessagingV1FailedMessageReceipt](docs/MessagingV1FailedMessageReceipt.md) + - [MessagingV1CreateMessagesResult](docs/MessagingV1CreateMessagesResult.md) + - [CreateMessagesRequest](docs/CreateMessagesRequest.md) + - [MessagingV1Error](docs/MessagingV1Error.md) + - [MessagingV1Broadcast](docs/MessagingV1Broadcast.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/preview_messaging/v1/api_service.go b/rest/preview_messaging/v1/api_service.go new file mode 100644 index 000000000..2d4d02796 --- /dev/null +++ b/rest/preview_messaging/v1/api_service.go @@ -0,0 +1,35 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * 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: "", + } +} + +func NewApiServiceWithClient(client twilio.BaseClient) *ApiService { + return NewApiService(twilio.NewRequestHandler(client)) +} diff --git a/rest/preview_messaging/v1/broadcasts.go b/rest/preview_messaging/v1/broadcasts.go new file mode 100644 index 000000000..25297c6fc --- /dev/null +++ b/rest/preview_messaging/v1/broadcasts.go @@ -0,0 +1,56 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * 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 'CreateBroadcast' +type CreateBroadcastParams struct { + // Idempotency key provided by the client + XTwilioRequestKey *string `json:"X-Twilio-Request-Key,omitempty"` +} + +func (params *CreateBroadcastParams) SetXTwilioRequestKey(XTwilioRequestKey string) *CreateBroadcastParams { + params.XTwilioRequestKey = &XTwilioRequestKey + return params +} + +// Create a new Broadcast +func (c *ApiService) CreateBroadcast(params *CreateBroadcastParams) (*MessagingV1Broadcast, error) { + path := "/v1/Broadcasts" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.XTwilioRequestKey != nil { + headers["X-Twilio-Request-Key"] = *params.XTwilioRequestKey + } + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1Broadcast{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/preview_messaging/v1/docs/BroadcastsApi.md b/rest/preview_messaging/v1/docs/BroadcastsApi.md new file mode 100644 index 000000000..fd7eb553a --- /dev/null +++ b/rest/preview_messaging/v1/docs/BroadcastsApi.md @@ -0,0 +1,48 @@ +# BroadcastsApi + +All URIs are relative to *https://preview.messaging.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateBroadcast**](BroadcastsApi.md#CreateBroadcast) | **Post** /v1/Broadcasts | + + + +## CreateBroadcast + +> MessagingV1Broadcast CreateBroadcast(ctx, optional) + + + +Create a new Broadcast + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateBroadcastParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**XTwilioRequestKey** | **string** | Idempotency key provided by the client + +### Return type + +[**MessagingV1Broadcast**](MessagingV1Broadcast.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/preview_messaging/v1/docs/CreateMessagesRequest.md b/rest/preview_messaging/v1/docs/CreateMessagesRequest.md new file mode 100644 index 000000000..c77e3a19a --- /dev/null +++ b/rest/preview_messaging/v1/docs/CreateMessagesRequest.md @@ -0,0 +1,27 @@ +# CreateMessagesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]MessagingV1Message**](MessagingV1Message.md) | |[optional] +**From** | **string** | A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. |[optional] +**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery. |[optional] +**Body** | **string** | The text of the message you want to send. Can be up to 1,600 characters in length. |[optional] +**ContentSid** | **string** | The SID of the preconfigured [Content Template](https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template) you want to associate with the Message. Must be used in conjuction with a preconfigured [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) When this parameter is set, Twilio will use your configured content template and the provided `ContentVariables`. This Twilio product is currently in Private Beta. |[optional] +**MediaUrl** | **[]string** | The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada. |[optional] +**StatusCallback** | **string** | The URL we should call using the \"status_callback_method\" to send status information to your application. If specified, we POST these message status changes to the URL - queued, failed, sent, delivered, or undelivered. Twilio will POST its [standard request parameters](https://www.twilio.com/docs/messaging/twiml#request-parameters) as well as some additional parameters including \"MessageSid\", \"MessageStatus\", and \"ErrorCode\". If you include this parameter with the \"messaging_service_sid\", we use this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api). URLs must contain a valid hostname and underscores are not allowed. |[optional] +**ValidityPeriod** | **int** | How long in seconds the message can remain in our outgoing message queue. After this period elapses, the message fails and we call your status callback. Can be between 1 and the default value of 14,400 seconds. After a message has been accepted by a carrier, however, we cannot guarantee that the message will not be queued after this period. We recommend that this value be at least 5 seconds. |[optional] +**SendAt** | **string** | The time at which Twilio will send the message. This parameter can be used to schedule a message to be sent at a particular time. Must be in ISO 8601 format. |[optional] +**ScheduleType** | **string** | This parameter indicates your intent to schedule a message. Pass the value `fixed` to schedule a message at a fixed time. This parameter works in conjuction with the `SendAt` parameter. |[optional] +**ShortenUrls** | **bool** | Determines the usage of Click Tracking. Setting it to `true` will instruct Twilio to replace all links in the Message with a shortened version based on the associated Domain Sid and track clicks on them. If this parameter is not set on an API call, we will use the value set on the Messaging Service. If this parameter is not set and the value is not configured on the Messaging Service used this will default to `false`. |[optional] +**SendAsMms** | **bool** | If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. |[optional] +**MaxPrice** | **float32** | The maximum total price in US dollars that you will pay for the message to be delivered. Can be a decimal value that has up to 4 decimal places. All messages are queued for delivery and the message cost is checked before the message is sent. If the cost exceeds max_price, the message will fail and a status of Failed is sent to the status callback. If MaxPrice is not set, the message cost is not checked. |[optional] +**Attempt** | **int** | Total number of attempts made ( including this ) to send out the message regardless of the provider used |[optional] +**SmartEncoded** | **bool** | This parameter indicates whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be true or false. |[optional] +**ForceDelivery** | **bool** | This parameter allows Twilio to send SMS traffic to carriers without checking/caring whether the destination number is a mobile or a landline. |[optional] +**ApplicationSid** | **string** | The SID of the application that should receive message status. We POST a message_sid parameter and a message_status parameter with a value of sent or failed to the application's message_status_callback. If a status_callback parameter is also passed, it will be ignored and the application's message_status_callback parameter will be used. |[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/preview_messaging/v1/docs/MessagesApi.md b/rest/preview_messaging/v1/docs/MessagesApi.md new file mode 100644 index 000000000..e9da3cbe7 --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagesApi.md @@ -0,0 +1,48 @@ +# MessagesApi + +All URIs are relative to *https://preview.messaging.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateMessages**](MessagesApi.md#CreateMessages) | **Post** /v1/Messages | + + + +## CreateMessages + +> MessagingV1CreateMessagesResult CreateMessages(ctx, optional) + + + +Send messages to multiple recipients + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateMessagesParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**CreateMessagesRequest** | [**CreateMessagesRequest**](CreateMessagesRequest.md) | + +### Return type + +[**MessagingV1CreateMessagesResult**](MessagingV1CreateMessagesResult.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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/preview_messaging/v1/docs/MessagingV1Broadcast.md b/rest/preview_messaging/v1/docs/MessagingV1Broadcast.md new file mode 100644 index 000000000..1ac44bb5c --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1Broadcast.md @@ -0,0 +1,16 @@ +# MessagingV1Broadcast + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BroadcastSid** | **string** | Numeric ID indentifying individual Broadcast requests |[optional] +**CreatedDate** | [**time.Time**](time.Time.md) | Timestamp of when the Broadcast was created |[optional] +**UpdatedDate** | [**time.Time**](time.Time.md) | Timestamp of when the Broadcast was last updated |[optional] +**BroadcastStatus** | **string** | Status of the Broadcast request. Valid values are None, Pending-Upload, Uploaded, Queued, Executing, Execution-Failure, Execution-Completed, Cancelation-Requested, and Canceled |[optional] +**ExecutionDetails** | [**MessagingV1BroadcastExecutionDetails**](MessagingV1BroadcastExecutionDetails.md) | |[optional] +**ResultsFile** | **string** | Path to a file detailing successful requests and errors from Broadcast execution |[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/preview_messaging/v1/docs/MessagingV1BroadcastExecutionDetails.md b/rest/preview_messaging/v1/docs/MessagingV1BroadcastExecutionDetails.md new file mode 100644 index 000000000..c5078a2c3 --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1BroadcastExecutionDetails.md @@ -0,0 +1,13 @@ +# MessagingV1BroadcastExecutionDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalRecords** | **int** | Number of recipients in the Broadcast request |[optional] +**TotalCompleted** | **int** | Number of recipients with messages successfully sent to them |[optional] +**TotalErrors** | **int** | Number of recipients with messages unsuccessfully sent to them, producing an error |[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/preview_messaging/v1/docs/MessagingV1CreateMessagesResult.md b/rest/preview_messaging/v1/docs/MessagingV1CreateMessagesResult.md new file mode 100644 index 000000000..267d5d840 --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1CreateMessagesResult.md @@ -0,0 +1,15 @@ +# MessagingV1CreateMessagesResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalMessageCount** | **int** | The number of Messages processed in the request, equal to the sum of success_count and error_count. |[optional] +**SuccessCount** | **int** | The number of Messages successfully created. |[optional] +**ErrorCount** | **int** | The number of Messages unsuccessfully processed in the request. |[optional] +**MessageReceipts** | [**[]MessagingV1MessageReceipt**](MessagingV1MessageReceipt.md) | |[optional] +**FailedMessageReceipts** | [**[]MessagingV1FailedMessageReceipt**](MessagingV1FailedMessageReceipt.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/preview_messaging/v1/docs/MessagingV1Error.md b/rest/preview_messaging/v1/docs/MessagingV1Error.md new file mode 100644 index 000000000..ea38dc558 --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1Error.md @@ -0,0 +1,14 @@ +# MessagingV1Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **int** | The Twilio error code |[optional] +**Message** | **string** | The error message details |[optional] +**Status** | **int** | The HTTP status code |[optional] +**MoreInfo** | **string** | More information on the error |[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/preview_messaging/v1/docs/MessagingV1FailedMessageReceipt.md b/rest/preview_messaging/v1/docs/MessagingV1FailedMessageReceipt.md new file mode 100644 index 000000000..e48476b16 --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1FailedMessageReceipt.md @@ -0,0 +1,13 @@ +# MessagingV1FailedMessageReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The recipient phone number |[optional] +**ErrorMessage** | **string** | The description of the error_code |[optional] +**ErrorCode** | **int** | The error code associated with the message creation attempt |[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/preview_messaging/v1/docs/MessagingV1Message.md b/rest/preview_messaging/v1/docs/MessagingV1Message.md new file mode 100644 index 000000000..0bb0457ec --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1Message.md @@ -0,0 +1,13 @@ +# MessagingV1Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The destination phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format for SMS/MMS or [Channel user address](https://www.twilio.com/docs/sms/channels#channel-addresses) for other 3rd-party channels. |[optional] +**Body** | **string** | The text of the message you want to send. Can be up to 1,600 characters in length. Overrides the request-level body and content template if provided. |[optional] +**ContentVariables** | **map[string]string** | Key-value pairs of variable names to substitution values. Refer to the [Twilio Content API Resources](https://www.twilio.com/docs/content-api/content-api-resources#send-a-message-with-preconfigured-content) for more details. |[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/preview_messaging/v1/docs/MessagingV1MessageReceipt.md b/rest/preview_messaging/v1/docs/MessagingV1MessageReceipt.md new file mode 100644 index 000000000..a1d5678e2 --- /dev/null +++ b/rest/preview_messaging/v1/docs/MessagingV1MessageReceipt.md @@ -0,0 +1,12 @@ +# MessagingV1MessageReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | Pointer to **string** | The recipient phone number | +**Sid** | Pointer to **string** | The unique string that identifies the 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/preview_messaging/v1/messages.go b/rest/preview_messaging/v1/messages.go new file mode 100644 index 000000000..5b8766a88 --- /dev/null +++ b/rest/preview_messaging/v1/messages.go @@ -0,0 +1,64 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * 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 'CreateMessages' +type CreateMessagesParams struct { + // + CreateMessagesRequest *CreateMessagesRequest `json:"CreateMessagesRequest,omitempty"` +} + +func (params *CreateMessagesParams) SetCreateMessagesRequest(CreateMessagesRequest CreateMessagesRequest) *CreateMessagesParams { + params.CreateMessagesRequest = &CreateMessagesRequest + return params +} + +// Send messages to multiple recipients +func (c *ApiService) CreateMessages(params *CreateMessagesParams) (*MessagingV1CreateMessagesResult, error) { + path := "/v1/Messages" + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.CreateMessagesRequest != nil { + b, err := json.Marshal(*params.CreateMessagesRequest) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1CreateMessagesResult{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/preview_messaging/v1/model_create_messages_request.go b/rest/preview_messaging/v1/model_create_messages_request.go new file mode 100644 index 000000000..e8ab5db86 --- /dev/null +++ b/rest/preview_messaging/v1/model_create_messages_request.go @@ -0,0 +1,111 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * 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" +) + +// CreateMessagesRequest struct for CreateMessagesRequest +type CreateMessagesRequest struct { + Messages []MessagingV1Message `json:"Messages,omitempty"` + // A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. + From string `json:"From,omitempty"` + // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + // The text of the message you want to send. Can be up to 1,600 characters in length. + Body string `json:"Body,omitempty"` + // The SID of the preconfigured [Content Template](https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template) you want to associate with the Message. Must be used in conjuction with a preconfigured [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) When this parameter is set, Twilio will use your configured content template and the provided `ContentVariables`. This Twilio product is currently in Private Beta. + ContentSid string `json:"ContentSid,omitempty"` + // The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada. + MediaUrl []string `json:"MediaUrl,omitempty"` + // The URL we should call using the \"status_callback_method\" to send status information to your application. If specified, we POST these message status changes to the URL - queued, failed, sent, delivered, or undelivered. Twilio will POST its [standard request parameters](https://www.twilio.com/docs/messaging/twiml#request-parameters) as well as some additional parameters including \"MessageSid\", \"MessageStatus\", and \"ErrorCode\". If you include this parameter with the \"messaging_service_sid\", we use this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api). URLs must contain a valid hostname and underscores are not allowed. + StatusCallback string `json:"StatusCallback,omitempty"` + // How long in seconds the message can remain in our outgoing message queue. After this period elapses, the message fails and we call your status callback. Can be between 1 and the default value of 14,400 seconds. After a message has been accepted by a carrier, however, we cannot guarantee that the message will not be queued after this period. We recommend that this value be at least 5 seconds. + ValidityPeriod int `json:"ValidityPeriod,omitempty"` + // The time at which Twilio will send the message. This parameter can be used to schedule a message to be sent at a particular time. Must be in ISO 8601 format. + SendAt string `json:"SendAt,omitempty"` + // This parameter indicates your intent to schedule a message. Pass the value `fixed` to schedule a message at a fixed time. This parameter works in conjuction with the `SendAt` parameter. + ScheduleType string `json:"ScheduleType,omitempty"` + // Determines the usage of Click Tracking. Setting it to `true` will instruct Twilio to replace all links in the Message with a shortened version based on the associated Domain Sid and track clicks on them. If this parameter is not set on an API call, we will use the value set on the Messaging Service. If this parameter is not set and the value is not configured on the Messaging Service used this will default to `false`. + ShortenUrls bool `json:"ShortenUrls,omitempty"` + // If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. + SendAsMms bool `json:"SendAsMms,omitempty"` + // The maximum total price in US dollars that you will pay for the message to be delivered. Can be a decimal value that has up to 4 decimal places. All messages are queued for delivery and the message cost is checked before the message is sent. If the cost exceeds max_price, the message will fail and a status of Failed is sent to the status callback. If MaxPrice is not set, the message cost is not checked. + MaxPrice float32 `json:"MaxPrice,omitempty"` + // Total number of attempts made ( including this ) to send out the message regardless of the provider used + Attempt int `json:"Attempt,omitempty"` + // This parameter indicates whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be true or false. + SmartEncoded bool `json:"SmartEncoded,omitempty"` + // This parameter allows Twilio to send SMS traffic to carriers without checking/caring whether the destination number is a mobile or a landline. + ForceDelivery bool `json:"ForceDelivery,omitempty"` + // The SID of the application that should receive message status. We POST a message_sid parameter and a message_status parameter with a value of sent or failed to the application's message_status_callback. If a status_callback parameter is also passed, it will be ignored and the application's message_status_callback parameter will be used. + ApplicationSid string `json:"ApplicationSid,omitempty"` +} + +func (response *CreateMessagesRequest) UnmarshalJSON(bytes []byte) (err error) { + raw := struct { + Messages []MessagingV1Message `json:"Messages"` + From string `json:"From"` + MessagingServiceSid string `json:"MessagingServiceSid"` + Body string `json:"Body"` + ContentSid string `json:"ContentSid"` + MediaUrl []string `json:"MediaUrl"` + StatusCallback string `json:"StatusCallback"` + ValidityPeriod int `json:"ValidityPeriod"` + SendAt string `json:"SendAt"` + ScheduleType string `json:"ScheduleType"` + ShortenUrls bool `json:"ShortenUrls"` + SendAsMms bool `json:"SendAsMms"` + MaxPrice interface{} `json:"MaxPrice"` + Attempt int `json:"Attempt"` + SmartEncoded bool `json:"SmartEncoded"` + ForceDelivery bool `json:"ForceDelivery"` + ApplicationSid string `json:"ApplicationSid"` + }{} + + if err = json.Unmarshal(bytes, &raw); err != nil { + return err + } + + *response = CreateMessagesRequest{ + Messages: raw.Messages, + From: raw.From, + MessagingServiceSid: raw.MessagingServiceSid, + Body: raw.Body, + ContentSid: raw.ContentSid, + MediaUrl: raw.MediaUrl, + StatusCallback: raw.StatusCallback, + ValidityPeriod: raw.ValidityPeriod, + SendAt: raw.SendAt, + ScheduleType: raw.ScheduleType, + ShortenUrls: raw.ShortenUrls, + SendAsMms: raw.SendAsMms, + Attempt: raw.Attempt, + SmartEncoded: raw.SmartEncoded, + ForceDelivery: raw.ForceDelivery, + ApplicationSid: raw.ApplicationSid, + } + + responseMaxPrice, err := client.UnmarshalFloat32(&raw.MaxPrice) + if err != nil { + return err + } + response.MaxPrice = *responseMaxPrice + + return +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_broadcast.go b/rest/preview_messaging/v1/model_messaging_v1_broadcast.go new file mode 100644 index 000000000..2a299b688 --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_broadcast.go @@ -0,0 +1,34 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "time" +) + +// MessagingV1Broadcast Details of a Broadcast +type MessagingV1Broadcast struct { + // Numeric ID indentifying individual Broadcast requests + BroadcastSid string `json:"broadcast_sid,omitempty"` + // Timestamp of when the Broadcast was created + CreatedDate time.Time `json:"created_date,omitempty"` + // Timestamp of when the Broadcast was last updated + UpdatedDate time.Time `json:"updated_date,omitempty"` + // Status of the Broadcast request. Valid values are None, Pending-Upload, Uploaded, Queued, Executing, Execution-Failure, Execution-Completed, Cancelation-Requested, and Canceled + BroadcastStatus string `json:"broadcast_status,omitempty"` + ExecutionDetails MessagingV1BroadcastExecutionDetails `json:"execution_details,omitempty"` + // Path to a file detailing successful requests and errors from Broadcast execution + ResultsFile string `json:"results_file,omitempty"` +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_broadcast_execution_details.go b/rest/preview_messaging/v1/model_messaging_v1_broadcast_execution_details.go new file mode 100644 index 000000000..a87badb20 --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_broadcast_execution_details.go @@ -0,0 +1,25 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// MessagingV1BroadcastExecutionDetails Details on the statuses of messages sent to recipients +type MessagingV1BroadcastExecutionDetails struct { + // Number of recipients in the Broadcast request + TotalRecords int `json:"total_records,omitempty"` + // Number of recipients with messages successfully sent to them + TotalCompleted int `json:"total_completed,omitempty"` + // Number of recipients with messages unsuccessfully sent to them, producing an error + TotalErrors int `json:"total_errors,omitempty"` +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_create_messages_result.go b/rest/preview_messaging/v1/model_messaging_v1_create_messages_result.go new file mode 100644 index 000000000..0d50771eb --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_create_messages_result.go @@ -0,0 +1,27 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// MessagingV1CreateMessagesResult struct for MessagingV1CreateMessagesResult +type MessagingV1CreateMessagesResult struct { + // The number of Messages processed in the request, equal to the sum of success_count and error_count. + TotalMessageCount int `json:"total_message_count,omitempty"` + // The number of Messages successfully created. + SuccessCount int `json:"success_count,omitempty"` + // The number of Messages unsuccessfully processed in the request. + ErrorCount int `json:"error_count,omitempty"` + MessageReceipts []MessagingV1MessageReceipt `json:"message_receipts,omitempty"` + FailedMessageReceipts []MessagingV1FailedMessageReceipt `json:"failed_message_receipts,omitempty"` +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_error.go b/rest/preview_messaging/v1/model_messaging_v1_error.go new file mode 100644 index 000000000..661580d97 --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_error.go @@ -0,0 +1,27 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// MessagingV1Error Standard Error Body +type MessagingV1Error struct { + // The Twilio error code + Code int `json:"code,omitempty"` + // The error message details + Message string `json:"message,omitempty"` + // The HTTP status code + Status int `json:"status,omitempty"` + // More information on the error + MoreInfo string `json:"more_info,omitempty"` +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_failed_message_receipt.go b/rest/preview_messaging/v1/model_messaging_v1_failed_message_receipt.go new file mode 100644 index 000000000..6ce3b54cd --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_failed_message_receipt.go @@ -0,0 +1,25 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// MessagingV1FailedMessageReceipt struct for MessagingV1FailedMessageReceipt +type MessagingV1FailedMessageReceipt struct { + // The recipient phone number + To string `json:"to,omitempty"` + // The description of the error_code + ErrorMessage string `json:"error_message,omitempty"` + // The error code associated with the message creation attempt + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_message.go b/rest/preview_messaging/v1/model_messaging_v1_message.go new file mode 100644 index 000000000..ea111236c --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_message.go @@ -0,0 +1,25 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// MessagingV1Message struct for MessagingV1Message +type MessagingV1Message struct { + // The destination phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format for SMS/MMS or [Channel user address](https://www.twilio.com/docs/sms/channels#channel-addresses) for other 3rd-party channels. + To string `json:"To,omitempty"` + // The text of the message you want to send. Can be up to 1,600 characters in length. Overrides the request-level body and content template if provided. + Body string `json:"Body,omitempty"` + // Key-value pairs of variable names to substitution values. Refer to the [Twilio Content API Resources](https://www.twilio.com/docs/content-api/content-api-resources#send-a-message-with-preconfigured-content) for more details. + ContentVariables map[string]string `json:"ContentVariables,omitempty"` +} diff --git a/rest/preview_messaging/v1/model_messaging_v1_message_receipt.go b/rest/preview_messaging/v1/model_messaging_v1_message_receipt.go new file mode 100644 index 000000000..4cf7c3fe3 --- /dev/null +++ b/rest/preview_messaging/v1/model_messaging_v1_message_receipt.go @@ -0,0 +1,23 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Bulk Messaging and Broadcast + * Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// MessagingV1MessageReceipt struct for MessagingV1MessageReceipt +type MessagingV1MessageReceipt struct { + // The recipient phone number + To *string `json:"to,omitempty"` + // The unique string that identifies the resource + Sid *string `json:"sid,omitempty"` +} diff --git a/rest/pricing/v1/README.md b/rest/pricing/v1/README.md index fde9047b5..995972d62 100644 --- a/rest/pricing/v1/README.md +++ b/rest/pricing/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md b/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md index 05b515649..d98948f79 100644 --- a/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md +++ b/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/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/model_list_messaging_country_response_meta.go b/rest/pricing/v1/model_list_messaging_country_response_meta.go index aedea6d4a..855c24c00 100644 --- a/rest/pricing/v1/model_list_messaging_country_response_meta.go +++ b/rest/pricing/v1/model_list_messaging_country_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListMessagingCountryResponseMeta struct for ListMessagingCountryResponseMeta type ListMessagingCountryResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/pricing/v2/README.md b/rest/pricing/v2/README.md index 54d16c8b0..3b917e764 100644 --- a/rest/pricing/v2/README.md +++ b/rest/pricing/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md b/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md index 4b6e3a465..3979c487c 100644 --- a/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md +++ b/rest/pricing/v2/docs/ListTrunkingCountryResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/pricing/v2/model_list_trunking_country_response_meta.go b/rest/pricing/v2/model_list_trunking_country_response_meta.go index 7e9ddbbcf..ff4842363 100644 --- a/rest/pricing/v2/model_list_trunking_country_response_meta.go +++ b/rest/pricing/v2/model_list_trunking_country_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListTrunkingCountryResponseMeta struct for ListTrunkingCountryResponseMeta type ListTrunkingCountryResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/proxy/v1/README.md b/rest/proxy/v1/README.md index 3eb2e9d6a..867c70ca0 100644 --- a/rest/proxy/v1/README.md +++ b/rest/proxy/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/proxy/v1/docs/ListInteractionResponseMeta.md b/rest/proxy/v1/docs/ListInteractionResponseMeta.md index 61f940442..61b92d9ec 100644 --- a/rest/proxy/v1/docs/ListInteractionResponseMeta.md +++ b/rest/proxy/v1/docs/ListInteractionResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/proxy/v1/model_list_interaction_response_meta.go b/rest/proxy/v1/model_list_interaction_response_meta.go index 44ffdf711..ea6515f13 100644 --- a/rest/proxy/v1/model_list_interaction_response_meta.go +++ b/rest/proxy/v1/model_list_interaction_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListInteractionResponseMeta struct for ListInteractionResponseMeta type ListInteractionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/routes/v2/README.md index 0dff3e1c3..549c32cdf 100644 --- a/rest/routes/v2/README.md +++ b/rest/routes/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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 0976ea027..530ab2524 100644 --- a/rest/serverless/v1/README.md +++ b/rest/serverless/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/serverless/v1/docs/ListAssetResponseMeta.md b/rest/serverless/v1/docs/ListAssetResponseMeta.md index afc73efd8..481498612 100644 --- a/rest/serverless/v1/docs/ListAssetResponseMeta.md +++ b/rest/serverless/v1/docs/ListAssetResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/serverless/v1/model_list_asset_response_meta.go b/rest/serverless/v1/model_list_asset_response_meta.go index 7296a5abb..a3e982340 100644 --- a/rest/serverless/v1/model_list_asset_response_meta.go +++ b/rest/serverless/v1/model_list_asset_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAssetResponseMeta struct for ListAssetResponseMeta type ListAssetResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/studio/v1/README.md b/rest/studio/v1/README.md index d503575fa..20d27dcb4 100644 --- a/rest/studio/v1/README.md +++ b/rest/studio/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/studio/v1/docs/ListEngagementResponseMeta.md b/rest/studio/v1/docs/ListEngagementResponseMeta.md index 2abe5911d..4abc6bede 100644 --- a/rest/studio/v1/docs/ListEngagementResponseMeta.md +++ b/rest/studio/v1/docs/ListEngagementResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/studio/v1/model_list_engagement_response_meta.go b/rest/studio/v1/model_list_engagement_response_meta.go index 8e09cc6e2..365a3456e 100644 --- a/rest/studio/v1/model_list_engagement_response_meta.go +++ b/rest/studio/v1/model_list_engagement_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListEngagementResponseMeta struct for ListEngagementResponseMeta type ListEngagementResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/studio/v2/README.md b/rest/studio/v2/README.md index 5b7e82129..bf57ca87d 100644 --- a/rest/studio/v2/README.md +++ b/rest/studio/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/studio/v2/docs/ListExecutionResponseMeta.md b/rest/studio/v2/docs/ListExecutionResponseMeta.md index 107384286..48b614247 100644 --- a/rest/studio/v2/docs/ListExecutionResponseMeta.md +++ b/rest/studio/v2/docs/ListExecutionResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/studio/v2/model_list_execution_response_meta.go b/rest/studio/v2/model_list_execution_response_meta.go index ee5ece689..ee49e50a7 100644 --- a/rest/studio/v2/model_list_execution_response_meta.go +++ b/rest/studio/v2/model_list_execution_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListExecutionResponseMeta struct for ListExecutionResponseMeta type ListExecutionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/supersim/v1/README.md b/rest/supersim/v1/README.md index b2ce7b5c6..f2f2b88ec 100644 --- a/rest/supersim/v1/README.md +++ b/rest/supersim/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md b/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md index 4f3032e54..d0ef3d794 100644 --- a/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md +++ b/rest/supersim/v1/docs/ListBillingPeriodResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/supersim/v1/model_list_billing_period_response_meta.go b/rest/supersim/v1/model_list_billing_period_response_meta.go index d7bc08a1e..bb26e594e 100644 --- a/rest/supersim/v1/model_list_billing_period_response_meta.go +++ b/rest/supersim/v1/model_list_billing_period_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBillingPeriodResponseMeta struct for ListBillingPeriodResponseMeta type ListBillingPeriodResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/sync/v1/README.md b/rest/sync/v1/README.md index 04e9dea88..662595f2a 100644 --- a/rest/sync/v1/README.md +++ b/rest/sync/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/sync/v1/docs/ListDocumentResponseMeta.md b/rest/sync/v1/docs/ListDocumentResponseMeta.md index 721c3be61..bf061ca09 100644 --- a/rest/sync/v1/docs/ListDocumentResponseMeta.md +++ b/rest/sync/v1/docs/ListDocumentResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/sync/v1/model_list_document_response_meta.go b/rest/sync/v1/model_list_document_response_meta.go index 03cd5f437..7529232e1 100644 --- a/rest/sync/v1/model_list_document_response_meta.go +++ b/rest/sync/v1/model_list_document_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListDocumentResponseMeta struct for ListDocumentResponseMeta type ListDocumentResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/taskrouter/v1/README.md index 6663b6dbb..15f6f834f 100644 --- a/rest/taskrouter/v1/README.md +++ b/rest/taskrouter/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) @@ -57,6 +57,7 @@ Class | Method | HTTP request | Description *WorkspacesTaskQueuesApi* | [**ListTaskQueue**](docs/WorkspacesTaskQueuesApi.md#listtaskqueue) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues | *WorkspacesTaskQueuesApi* | [**UpdateTaskQueue**](docs/WorkspacesTaskQueuesApi.md#updatetaskqueue) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | *WorkspacesTaskQueuesCumulativeStatisticsApi* | [**FetchTaskQueueCumulativeStatistics**](docs/WorkspacesTaskQueuesCumulativeStatisticsApi.md#fetchtaskqueuecumulativestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics | +*WorkspacesTaskQueuesRealTimeStatisticsApi* | [**CreateTaskQueueBulkRealTimeStatistics**](docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md#createtaskqueuebulkrealtimestatistics) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics | *WorkspacesTaskQueuesRealTimeStatisticsApi* | [**FetchTaskQueueRealTimeStatistics**](docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md#fetchtaskqueuerealtimestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics | *WorkspacesTaskQueuesStatisticsApi* | [**FetchTaskQueueStatistics**](docs/WorkspacesTaskQueuesStatisticsApi.md#fetchtaskqueuestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics | *WorkspacesTaskQueuesStatisticsApi* | [**ListTaskQueuesStatistics**](docs/WorkspacesTaskQueuesStatisticsApi.md#listtaskqueuesstatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics | diff --git a/rest/taskrouter/v1/docs/ListActivityResponseMeta.md b/rest/taskrouter/v1/docs/ListActivityResponseMeta.md index 49a6ec885..757ae1515 100644 --- a/rest/taskrouter/v1/docs/ListActivityResponseMeta.md +++ b/rest/taskrouter/v1/docs/ListActivityResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md index ec87f6c1d..b38ac1563 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md @@ -4,10 +4,54 @@ All URIs are relative to *https://taskrouter.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateTaskQueueBulkRealTimeStatistics**](WorkspacesTaskQueuesRealTimeStatisticsApi.md#CreateTaskQueueBulkRealTimeStatistics) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics | [**FetchTaskQueueRealTimeStatistics**](WorkspacesTaskQueuesRealTimeStatisticsApi.md#FetchTaskQueueRealTimeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics | +## CreateTaskQueueBulkRealTimeStatistics + +> TaskrouterV1TaskQueueBulkRealTimeStatistics CreateTaskQueueBulkRealTimeStatistics(ctx, WorkspaceSidoptional) + + + +Fetch a Task Queue Real Time Statistics in bulk for the array of TaskQueue SIDs, support upto 50 in a request. + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**WorkspaceSid** | **string** | The unique SID identifier of the Workspace. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateTaskQueueBulkRealTimeStatisticsParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**Body** | **map[string]interface{}** | + +### Return type + +[**TaskrouterV1TaskQueueBulkRealTimeStatistics**](TaskrouterV1TaskQueueBulkRealTimeStatistics.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## FetchTaskQueueRealTimeStatistics > TaskrouterV1TaskQueueRealTimeStatistics FetchTaskQueueRealTimeStatistics(ctx, WorkspaceSidTaskQueueSidoptional) diff --git a/rest/taskrouter/v1/model_list_activity_response_meta.go b/rest/taskrouter/v1/model_list_activity_response_meta.go index 31c21b0c5..d281fabe8 100644 --- a/rest/taskrouter/v1/model_list_activity_response_meta.go +++ b/rest/taskrouter/v1/model_list_activity_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListActivityResponseMeta struct for ListActivityResponseMeta type ListActivityResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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_real_time_statistics.go b/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go index b1605a619..fed482892 100644 --- a/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go +++ b/rest/taskrouter/v1/workspaces_task_queues_real_time_statistics.go @@ -20,6 +20,51 @@ import ( "strings" ) +// Optional parameters for the method 'CreateTaskQueueBulkRealTimeStatistics' +type CreateTaskQueueBulkRealTimeStatisticsParams struct { + // + Body *map[string]interface{} `json:"body,omitempty"` +} + +func (params *CreateTaskQueueBulkRealTimeStatisticsParams) SetBody(Body map[string]interface{}) *CreateTaskQueueBulkRealTimeStatisticsParams { + params.Body = &Body + return params +} + +// Fetch a Task Queue Real Time Statistics in bulk for the array of TaskQueue SIDs, support upto 50 in a request. +func (c *ApiService) CreateTaskQueueBulkRealTimeStatistics(WorkspaceSid string, params *CreateTaskQueueBulkRealTimeStatisticsParams) (*TaskrouterV1TaskQueueBulkRealTimeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/json", + } + + body := []byte{} + if params != nil && params.Body != nil { + b, err := json.Marshal(*params.Body) + if err != nil { + return nil, err + } + body = b + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers, body...) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1TaskQueueBulkRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + // Optional parameters for the method 'FetchTaskQueueRealTimeStatistics' type FetchTaskQueueRealTimeStatisticsParams struct { // The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @@ -31,7 +76,6 @@ func (params *FetchTaskQueueRealTimeStatisticsParams) SetTaskChannel(TaskChannel return params } -// func (c *ApiService) FetchTaskQueueRealTimeStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueRealTimeStatisticsParams) (*TaskrouterV1TaskQueueRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics" 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 191d2d780..b8a7707a1 100644 --- a/rest/trunking/v1/README.md +++ b/rest/trunking/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/trunking/v1/docs/ListCredentialListResponseMeta.md b/rest/trunking/v1/docs/ListCredentialListResponseMeta.md index 02409fba2..940c52bdd 100644 --- a/rest/trunking/v1/docs/ListCredentialListResponseMeta.md +++ b/rest/trunking/v1/docs/ListCredentialListResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/trunking/v1/model_list_credential_list_response_meta.go b/rest/trunking/v1/model_list_credential_list_response_meta.go index 570982f7a..b11874a93 100644 --- a/rest/trunking/v1/model_list_credential_list_response_meta.go +++ b/rest/trunking/v1/model_list_credential_list_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCredentialListResponseMeta struct for ListCredentialListResponseMeta type ListCredentialListResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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 e7d6ff8d7..7214a4937 100644 --- a/rest/trusthub/v1/README.md +++ b/rest/trusthub/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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 e6e94ffef..09a439a4a 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 @@ -94,6 +94,10 @@ type CreateComplianceRegistrationParams struct { IndividualPhone *string `json:"IndividualPhone,omitempty"` // Indicates if the inquiry is being started from an ISV embedded component. IsIsvEmbed *bool `json:"IsIsvEmbed,omitempty"` + // Indicates if the isv registering for self or tenant. + IsvRegisteringForSelfOrTenant *string `json:"IsvRegisteringForSelfOrTenant,omitempty"` + // The url we call to inform you of bundle changes. + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` } func (params *CreateComplianceRegistrationParams) SetEndUserType(EndUserType string) *CreateComplianceRegistrationParams { @@ -240,6 +244,14 @@ func (params *CreateComplianceRegistrationParams) SetIsIsvEmbed(IsIsvEmbed bool) params.IsIsvEmbed = &IsIsvEmbed return params } +func (params *CreateComplianceRegistrationParams) SetIsvRegisteringForSelfOrTenant(IsvRegisteringForSelfOrTenant string) *CreateComplianceRegistrationParams { + params.IsvRegisteringForSelfOrTenant = &IsvRegisteringForSelfOrTenant + return params +} +func (params *CreateComplianceRegistrationParams) SetStatusCallbackUrl(StatusCallbackUrl string) *CreateComplianceRegistrationParams { + params.StatusCallbackUrl = &StatusCallbackUrl + 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) { @@ -356,6 +368,12 @@ func (c *ApiService) CreateComplianceRegistration(params *CreateComplianceRegist if params != nil && params.IsIsvEmbed != nil { data.Set("IsIsvEmbed", fmt.Sprint(*params.IsIsvEmbed)) } + if params != nil && params.IsvRegisteringForSelfOrTenant != nil { + data.Set("IsvRegisteringForSelfOrTenant", *params.IsvRegisteringForSelfOrTenant) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { diff --git a/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md b/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md index 8024e1f9b..147306ae5 100644 --- a/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md +++ b/rest/trusthub/v1/docs/ComplianceInquiriesRegistrationRegulatoryComplianceGBInitializeApi.md @@ -63,6 +63,8 @@ Name | Type | Description **IndividualEmail** | **string** | The email address of the Individual User. **IndividualPhone** | **string** | The phone number of the Individual User. **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. ### Return type diff --git a/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md b/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md index 39e75d704..8c80c7490 100644 --- a/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md +++ b/rest/trusthub/v1/docs/ListCustomerProfileResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/trusthub/v1/model_list_customer_profile_response_meta.go b/rest/trusthub/v1/model_list_customer_profile_response_meta.go index a3592289a..a29e19770 100644 --- a/rest/trusthub/v1/model_list_customer_profile_response_meta.go +++ b/rest/trusthub/v1/model_list_customer_profile_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCustomerProfileResponseMeta struct for ListCustomerProfileResponseMeta type ListCustomerProfileResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md index de9e49b30..2c29002ff 100644 --- a/rest/verify/v2/README.md +++ b/rest/verify/v2/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/verify/v2/docs/ListBucketResponseMeta.md b/rest/verify/v2/docs/ListBucketResponseMeta.md index 43e65a61c..648b2b04e 100644 --- a/rest/verify/v2/docs/ListBucketResponseMeta.md +++ b/rest/verify/v2/docs/ListBucketResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/verify/v2/model_list_bucket_response_meta.go b/rest/verify/v2/model_list_bucket_response_meta.go index 749697319..c22d9e4b9 100644 --- a/rest/verify/v2/model_list_bucket_response_meta.go +++ b/rest/verify/v2/model_list_bucket_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListBucketResponseMeta struct for ListBucketResponseMeta type ListBucketResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/video/v1/README.md index 80808f3fe..75ddbc8ea 100644 --- a/rest/video/v1/README.md +++ b/rest/video/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListCompositionResponseMeta.md b/rest/video/v1/docs/ListCompositionResponseMeta.md index d1b1a753d..54b852310 100644 --- a/rest/video/v1/docs/ListCompositionResponseMeta.md +++ b/rest/video/v1/docs/ListCompositionResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/video/v1/model_list_composition_response_meta.go b/rest/video/v1/model_list_composition_response_meta.go index 06c6c69c9..372a4513c 100644 --- a/rest/video/v1/model_list_composition_response_meta.go +++ b/rest/video/v1/model_list_composition_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListCompositionResponseMeta struct for ListCompositionResponseMeta type ListCompositionResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/voice/v1/README.md index 5a65ab3a3..c6796474a 100644 --- a/rest/voice/v1/README.md +++ b/rest/voice/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) 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/docs/ListByocTrunkResponseMeta.md b/rest/voice/v1/docs/ListByocTrunkResponseMeta.md index 667b85c77..475eded29 100644 --- a/rest/voice/v1/docs/ListByocTrunkResponseMeta.md +++ b/rest/voice/v1/docs/ListByocTrunkResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/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/model_list_byoc_trunk_response_meta.go b/rest/voice/v1/model_list_byoc_trunk_response_meta.go index a87c8964a..a18237018 100644 --- a/rest/voice/v1/model_list_byoc_trunk_response_meta.go +++ b/rest/voice/v1/model_list_byoc_trunk_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListByocTrunkResponseMeta struct for ListByocTrunkResponseMeta type ListByocTrunkResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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/README.md b/rest/wireless/v1/README.md index 9b7ba004a..175b6fb77 100644 --- a/rest/wireless/v1/README.md +++ b/rest/wireless/v1/README.md @@ -5,7 +5,7 @@ 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.55.0 +- 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) diff --git a/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md b/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md index e734ccacc..84a867933 100644 --- a/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md +++ b/rest/wireless/v1/docs/ListAccountUsageRecordResponseMeta.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FirstPageUrl** | **string** | |[optional] +**Key** | **string** | |[optional] **NextPageUrl** | Pointer to **string** | | **Page** | **int** | |[optional] **PageSize** | **int** | |[optional] **PreviousPageUrl** | Pointer to **string** | | **Url** | **string** | |[optional] -**Key** | **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/wireless/v1/model_list_account_usage_record_response_meta.go b/rest/wireless/v1/model_list_account_usage_record_response_meta.go index 41221e5fe..77e9106cf 100644 --- a/rest/wireless/v1/model_list_account_usage_record_response_meta.go +++ b/rest/wireless/v1/model_list_account_usage_record_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAccountUsageRecordResponseMeta struct for ListAccountUsageRecordResponseMeta type ListAccountUsageRecordResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` - Key string `json:"key,omitempty"` } 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) From 10abdbc8298f3298dca0f5699c2e636200d04561 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Mon, 11 Mar 2024 18:16:38 +0530 Subject: [PATCH 3/3] feat!: modified twilio.go --- twilio.go | 85 ++++++++++++++++---------------- twiml/messaging_response.go | 10 ++-- twiml/voice_response.go | 96 ++++++++++++++++++------------------- 3 files changed, 97 insertions(+), 94 deletions(-) diff --git a/twilio.go b/twilio.go index cd882f56c..c0ee450dc 100644 --- a/twilio.go +++ b/twilio.go @@ -41,6 +41,7 @@ import ( NotifyV1 "github.com/twilio/twilio-go/rest/notify/v1" NumbersV1 "github.com/twilio/twilio-go/rest/numbers/v1" NumbersV2 "github.com/twilio/twilio-go/rest/numbers/v2" + PreviewMessagingV1 "github.com/twilio/twilio-go/rest/preview_messaging/v1" PricingV1 "github.com/twilio/twilio-go/rest/pricing/v1" PricingV2 "github.com/twilio/twilio-go/rest/pricing/v2" ProxyV1 "github.com/twilio/twilio-go/rest/proxy/v1" @@ -62,47 +63,48 @@ import ( // RestClient provides access to Twilio services. type RestClient struct { *client.RequestHandler - AccountsV1 *AccountsV1.ApiService - Api *Api.ApiService - BulkexportsV1 *BulkexportsV1.ApiService - ChatV1 *ChatV1.ApiService - ChatV2 *ChatV2.ApiService - ChatV3 *ChatV3.ApiService - ContentV1 *ContentV1.ApiService - ConversationsV1 *ConversationsV1.ApiService - EventsV1 *EventsV1.ApiService - FlexV1 *FlexV1.ApiService - FlexV2 *FlexV2.ApiService - FrontlineV1 *FrontlineV1.ApiService - InsightsV1 *InsightsV1.ApiService - IntelligenceV2 *IntelligenceV2.ApiService - IpMessagingV1 *IpMessagingV1.ApiService - IpMessagingV2 *IpMessagingV2.ApiService - LookupsV1 *LookupsV1.ApiService - LookupsV2 *LookupsV2.ApiService - MediaV1 *MediaV1.ApiService - MessagingV1 *MessagingV1.ApiService - MicrovisorV1 *MicrovisorV1.ApiService - MonitorV1 *MonitorV1.ApiService - NotifyV1 *NotifyV1.ApiService - NumbersV1 *NumbersV1.ApiService - NumbersV2 *NumbersV2.ApiService - PricingV1 *PricingV1.ApiService - PricingV2 *PricingV2.ApiService - ProxyV1 *ProxyV1.ApiService - RoutesV2 *RoutesV2.ApiService - ServerlessV1 *ServerlessV1.ApiService - StudioV1 *StudioV1.ApiService - StudioV2 *StudioV2.ApiService - SupersimV1 *SupersimV1.ApiService - SyncV1 *SyncV1.ApiService - TaskrouterV1 *TaskrouterV1.ApiService - TrunkingV1 *TrunkingV1.ApiService - TrusthubV1 *TrusthubV1.ApiService - VerifyV2 *VerifyV2.ApiService - VideoV1 *VideoV1.ApiService - VoiceV1 *VoiceV1.ApiService - WirelessV1 *WirelessV1.ApiService + AccountsV1 *AccountsV1.ApiService + Api *Api.ApiService + BulkexportsV1 *BulkexportsV1.ApiService + ChatV1 *ChatV1.ApiService + ChatV2 *ChatV2.ApiService + ChatV3 *ChatV3.ApiService + ContentV1 *ContentV1.ApiService + ConversationsV1 *ConversationsV1.ApiService + EventsV1 *EventsV1.ApiService + FlexV1 *FlexV1.ApiService + FlexV2 *FlexV2.ApiService + FrontlineV1 *FrontlineV1.ApiService + InsightsV1 *InsightsV1.ApiService + IntelligenceV2 *IntelligenceV2.ApiService + IpMessagingV1 *IpMessagingV1.ApiService + IpMessagingV2 *IpMessagingV2.ApiService + LookupsV1 *LookupsV1.ApiService + LookupsV2 *LookupsV2.ApiService + MediaV1 *MediaV1.ApiService + PreviewMessagingV1 *PreviewMessagingV1.ApiService + MessagingV1 *MessagingV1.ApiService + MicrovisorV1 *MicrovisorV1.ApiService + MonitorV1 *MonitorV1.ApiService + NotifyV1 *NotifyV1.ApiService + NumbersV1 *NumbersV1.ApiService + NumbersV2 *NumbersV2.ApiService + PricingV1 *PricingV1.ApiService + PricingV2 *PricingV2.ApiService + ProxyV1 *ProxyV1.ApiService + RoutesV2 *RoutesV2.ApiService + ServerlessV1 *ServerlessV1.ApiService + StudioV1 *StudioV1.ApiService + StudioV2 *StudioV2.ApiService + SupersimV1 *SupersimV1.ApiService + SyncV1 *SyncV1.ApiService + TaskrouterV1 *TaskrouterV1.ApiService + TrunkingV1 *TrunkingV1.ApiService + TrusthubV1 *TrusthubV1.ApiService + VerifyV2 *VerifyV2.ApiService + VideoV1 *VideoV1.ApiService + VoiceV1 *VoiceV1.ApiService + WirelessV1 *WirelessV1.ApiService } // Meta holds relevant pagination resources. @@ -174,6 +176,7 @@ func NewRestClientWithParams(params ClientParams) *RestClient { c.LookupsV1 = LookupsV1.NewApiService(c.RequestHandler) c.LookupsV2 = LookupsV2.NewApiService(c.RequestHandler) c.MediaV1 = MediaV1.NewApiService(c.RequestHandler) + c.PreviewMessagingV1 = PreviewMessagingV1.NewApiService(c.RequestHandler) c.MessagingV1 = MessagingV1.NewApiService(c.RequestHandler) c.MicrovisorV1 = MicrovisorV1.NewApiService(c.RequestHandler) c.MonitorV1 = MonitorV1.NewApiService(c.RequestHandler) diff --git a/twiml/messaging_response.go b/twiml/messaging_response.go index ab2f40ffd..06a6ba772 100644 --- a/twiml/messaging_response.go +++ b/twiml/messaging_response.go @@ -13,7 +13,7 @@ func Messages(verbs []Element) (string, error) { return ToXML(doc) } -//MessagingRedirect TwiML Verb +// MessagingRedirect TwiML Verb type MessagingRedirect struct { // url: Redirect URL // method: Redirect URL method @@ -43,12 +43,12 @@ func (m MessagingRedirect) GetInnerElements() []Element { return m.InnerElements } -//MessagingMessage TwiML Verb +// MessagingMessage TwiML Verb type MessagingMessage struct { // body: Message Body // to: Phone Number to send Message to // from: Phone Number to send Message from - // action: Action URL + // action: A URL specifying where Twilio should send status callbacks for the created outbound message. // method: Action URL Method // status_callback: Status callback URL. Deprecated in favor of action. // OptionalAttributes: additional attributes @@ -85,7 +85,7 @@ func (m MessagingMessage) GetInnerElements() []Element { return m.InnerElements } -//MessagingMedia TwiML Noun +// MessagingMedia TwiML Noun type MessagingMedia struct { // url: Media URL // OptionalAttributes: additional attributes @@ -110,7 +110,7 @@ func (m MessagingMedia) GetInnerElements() []Element { return m.InnerElements } -//MessagingBody TwiML Noun +// MessagingBody TwiML Noun type MessagingBody struct { // message: Message Body // OptionalAttributes: additional attributes 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