diff --git a/CHANGES.md b/CHANGES.md index 7d5ff8443..36a197818 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,68 @@ twilio-go changelog ==================== +[2023-12-07] Version 2.0.0-rc.1 +------------------------------- +**Library - Feature** +- [PR #213](https://github.com/twilio/twilio-go/pull/213): Support JSON payload in HTTP requests. Thanks to [@AsabuHere](https://github.com/AsabuHere)! + +**Accounts** +- Updated Safelist metadata to correct the docs. +- Add Global SafeList API changes + +**Api** +- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)** +- Update documentation to reflect RiskCheck GA +- Added optional parameter `CallToken` for create participant api + +**Events** +- Marked as GA + +**Flex** +- Adding `provisioning_status` for Email Manager +- Adding `offline_config` to Flex Configuration + +**Insights** +- decommission voice-qualitystats-endpoint role + +**Intelligence** +- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection. +- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)** + +**Lookups** +- Add new `phone_number_quality_score` package to the lookup response +- Remove `disposable_phone_number_risk` package **(breaking change)** + +**Messaging** +- Add tollfree edit_allowed and edit_reason fields +- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation +- Add DELETE support to Tollfree Verification resource +- Update US App To Person documentation with current `message_samples` requirements + +**Serverless** +- Add node18 as a valid Build runtime + +**Taskrouter** +- Add container attribute to task_queue_bulk_real_time_statistics endpoint +- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint +- Add `virtual_start_time` property to tasks +- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)** + +**Trusthub** +- Add additional optional fields in compliance_tollfree_inquiry.json +- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json +- Add new optional field notification_email to compliance_tollfree_inquiry.json + +**Verify** +- Remove `Tags` from Public Docs **(breaking change)** +- Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints. +- Add `Tags` optional parameter on Verification creation. +- Update Verify TOTP maturity to GA. + + +[2023-11-22] Version 2.0.0-rc.0 +--------------------------- +- Release Candidate preparation + [2023-10-05] Version 1.14.1 --------------------------- **Library - Chore** diff --git a/UPGRADE.md b/UPGRADE.md index ae2248ef4..df694a209 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -2,6 +2,13 @@ _All `MAJOR` version bumps will have upgrade notes posted here._ +## [2023-11-22] 1.x.x to 2.x.x-rc.x +### Overview + +#### Twilio Go Helper Library’s major version 2.0.0-rc.x is now available. We ensured that you can upgrade to Go helper Library 2.0.0-rc.x version without any breaking changes + +Support for JSON payloads has been added 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..3469453ab 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{}, queryParams url.Values, body ...byte) (*http.Response, error) } diff --git a/client/client.go b/client/client.go index b7b8f874a..f2b38061d 100644 --- a/client/client.go +++ b/client/client.go @@ -2,6 +2,7 @@ package client import ( + "bytes" "encoding/json" "fmt" "net/http" @@ -56,10 +57,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) { @@ -89,7 +100,10 @@ func (c *Client) doWithErr(req *http.Request) (*http.Response, 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{}, queryParams url.Values, body ...byte) (*http.Response, error) { + + contentType := extractContentTypeHeader(headers) + u, err := url.Parse(rawURL) if err != nil { return nil, err @@ -97,24 +111,37 @@ 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 { - if data != nil { - v, _ := form.EncodeToStringWith(data, delimiter, escapee, keepZeros) - regex := regexp.MustCompile(`\.\d+`) - s := regex.ReplaceAllString(v, "") + if queryParams != nil { + v, _ := form.EncodeToStringWith(queryParams, delimiter, escapee, keepZeros) + regex := regexp.MustCompile(`\.\d+`) + s := regex.ReplaceAllString(v, "") + u.RawQuery = s + } - u.RawQuery = s + //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()) + } + req, err = http.NewRequest(method, u.String(), valueReader) + if err != nil { + return nil, err } - } - if method == http.MethodPost { - valueReader = strings.NewReader(data.Encode()) } - 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()) @@ -128,14 +155,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 d1e7d88aa..a71a4783a 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -272,7 +272,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..411649f61 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{}, queryParams url.Values, 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, queryParams, body...) } // BuildUrl builds the target host string taking into account region and edge configurations. @@ -83,14 +82,14 @@ 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{}, queryParams url.Values, body ...byte) (*http.Response, error) { + return c.sendRequest(http.MethodPost, path, bodyData, headers, queryParams, body...) } -func (c *RequestHandler) Get(path string, queryData url.Values, headers map[string]interface{}) (*http.Response, error) { - return c.sendRequest(http.MethodGet, path, queryData, headers) +func (c *RequestHandler) Get(path string, queryData url.Values, headers map[string]interface{}, queryParams url.Values) (*http.Response, error) { + return c.sendRequest(http.MethodGet, path, queryData, headers, queryParams) } -func (c *RequestHandler) Delete(path string, nothing url.Values, headers map[string]interface{}) (*http.Response, error) { - return c.sendRequest(http.MethodDelete, path, nil, headers) +func (c *RequestHandler) Delete(path string, nothing url.Values, headers map[string]interface{}, queryParams url.Values) (*http.Response, error) { + return c.sendRequest(http.MethodDelete, path, nil, headers, queryParams) } diff --git a/client/version.go b/client/version.go index 2dd1ceceb..c35d3cb7d 100644 --- a/client/version.go +++ b/client/version.go @@ -2,4 +2,4 @@ package client // LibraryVersion specifies the current version of twilio-go. -const LibraryVersion = "1.14.1" +const LibraryVersion = "2.0.0-rc.1" diff --git a/rest/accounts/v1/README.md b/rest/accounts/v1/README.md index 7b2ca519f..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.50.1 +- 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) @@ -44,6 +44,9 @@ Class | Method | HTTP request | Description *CredentialsPublicKeysApi* | [**FetchCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#fetchcredentialpublickey) | **Get** /v1/Credentials/PublicKeys/{Sid} | *CredentialsPublicKeysApi* | [**ListCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#listcredentialpublickey) | **Get** /v1/Credentials/PublicKeys | *CredentialsPublicKeysApi* | [**UpdateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#updatecredentialpublickey) | **Post** /v1/Credentials/PublicKeys/{Sid} | +*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /v1/SafeList/Numbers | +*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /v1/SafeList/Numbers | +*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /v1/SafeList/Numbers | ## Documentation For Models @@ -54,6 +57,7 @@ Class | Method | HTTP request | Description - [AccountsV1AuthTokenPromotion](docs/AccountsV1AuthTokenPromotion.md) - [AccountsV1CredentialAws](docs/AccountsV1CredentialAws.md) - [AccountsV1CredentialPublicKey](docs/AccountsV1CredentialPublicKey.md) + - [AccountsV1Safelist](docs/AccountsV1Safelist.md) - [ListCredentialAwsResponseMeta](docs/ListCredentialAwsResponseMeta.md) diff --git a/rest/api/v2010/docs/ApiV2010Safelist.md b/rest/accounts/v1/docs/AccountsV1Safelist.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010Safelist.md rename to rest/accounts/v1/docs/AccountsV1Safelist.md index 9d249db35..d19c4eb8d 100644 --- a/rest/api/v2010/docs/ApiV2010Safelist.md +++ b/rest/accounts/v1/docs/AccountsV1Safelist.md @@ -1,4 +1,4 @@ -# ApiV2010Safelist +# AccountsV1Safelist ## Properties 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/api/v2010/docs/SafeListNumbersApi.md b/rest/accounts/v1/docs/SafeListNumbersApi.md similarity index 88% rename from rest/api/v2010/docs/SafeListNumbersApi.md rename to rest/accounts/v1/docs/SafeListNumbersApi.md index 1b7cdaeaa..e941b034b 100644 --- a/rest/api/v2010/docs/SafeListNumbersApi.md +++ b/rest/accounts/v1/docs/SafeListNumbersApi.md @@ -1,18 +1,18 @@ # SafeListNumbersApi -All URIs are relative to *https://api.twilio.com* +All URIs are relative to *https://accounts.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateSafelist**](SafeListNumbersApi.md#CreateSafelist) | **Post** /2010-04-01/SafeList/Numbers.json | -[**DeleteSafelist**](SafeListNumbersApi.md#DeleteSafelist) | **Delete** /2010-04-01/SafeList/Numbers.json | -[**FetchSafelist**](SafeListNumbersApi.md#FetchSafelist) | **Get** /2010-04-01/SafeList/Numbers.json | +[**CreateSafelist**](SafeListNumbersApi.md#CreateSafelist) | **Post** /v1/SafeList/Numbers | +[**DeleteSafelist**](SafeListNumbersApi.md#DeleteSafelist) | **Delete** /v1/SafeList/Numbers | +[**FetchSafelist**](SafeListNumbersApi.md#FetchSafelist) | **Get** /v1/SafeList/Numbers | ## CreateSafelist -> ApiV2010Safelist CreateSafelist(ctx, optional) +> AccountsV1Safelist CreateSafelist(ctx, optional) @@ -33,7 +33,7 @@ Name | Type | Description ### Return type -[**ApiV2010Safelist**](ApiV2010Safelist.md) +[**AccountsV1Safelist**](AccountsV1Safelist.md) ### Authorization @@ -90,7 +90,7 @@ Name | Type | Description ## FetchSafelist -> ApiV2010Safelist FetchSafelist(ctx, optional) +> AccountsV1Safelist FetchSafelist(ctx, optional) @@ -111,7 +111,7 @@ Name | Type | Description ### Return type -[**ApiV2010Safelist**](ApiV2010Safelist.md) +[**AccountsV1Safelist**](AccountsV1Safelist.md) ### Authorization diff --git a/rest/api/v2010/model_api_v2010_safelist.go b/rest/accounts/v1/model_accounts_v1_safelist.go similarity index 86% rename from rest/api/v2010/model_api_v2010_safelist.go rename to rest/accounts/v1/model_accounts_v1_safelist.go index 2aa6eae12..45b1f3813 100644 --- a/rest/api/v2010/model_api_v2010_safelist.go +++ b/rest/accounts/v1/model_accounts_v1_safelist.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Api + * Twilio - Accounts * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -14,8 +14,8 @@ package openapi -// ApiV2010Safelist struct for ApiV2010Safelist -type ApiV2010Safelist struct { +// AccountsV1Safelist struct for AccountsV1Safelist +type AccountsV1Safelist struct { // The unique string that we created to identify the SafeList resource. Sid *string `json:"sid,omitempty"` // The phone number in SafeList. 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/safe_list_numbers.go b/rest/accounts/v1/safe_list_numbers.go similarity index 92% rename from rest/api/v2010/safe_list_numbers.go rename to rest/accounts/v1/safe_list_numbers.go index 12a6e866c..a15dd6c53 100644 --- a/rest/api/v2010/safe_list_numbers.go +++ b/rest/accounts/v1/safe_list_numbers.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Api + * Twilio - Accounts * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -31,8 +31,8 @@ func (params *CreateSafelistParams) SetPhoneNumber(PhoneNumber string) *CreateSa } // Add a new phone number to SafeList. -func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*ApiV2010Safelist, error) { - path := "/2010-04-01/SafeList/Numbers.json" +func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*AccountsV1Safelist, error) { + path := "/v1/SafeList/Numbers" data := url.Values{} headers := make(map[string]interface{}) @@ -48,7 +48,7 @@ func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*ApiV2010Safe defer resp.Body.Close() - ps := &ApiV2010Safelist{} + ps := &AccountsV1Safelist{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -69,7 +69,7 @@ func (params *DeleteSafelistParams) SetPhoneNumber(PhoneNumber string) *DeleteSa // Remove a phone number from SafeList. func (c *ApiService) DeleteSafelist(params *DeleteSafelistParams) error { - path := "/2010-04-01/SafeList/Numbers.json" + path := "/v1/SafeList/Numbers" data := url.Values{} headers := make(map[string]interface{}) @@ -100,8 +100,8 @@ func (params *FetchSafelistParams) SetPhoneNumber(PhoneNumber string) *FetchSafe } // Check if a phone number exists in SafeList. -func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*ApiV2010Safelist, error) { - path := "/2010-04-01/SafeList/Numbers.json" +func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*AccountsV1Safelist, error) { + path := "/v1/SafeList/Numbers" data := url.Values{} headers := make(map[string]interface{}) @@ -117,7 +117,7 @@ func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*ApiV2010Safeli defer resp.Body.Close() - ps := &ApiV2010Safelist{} + ps := &AccountsV1Safelist{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index 5add6f665..f33624587 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.50.1 +- 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) @@ -230,137 +230,103 @@ Class | Method | HTTP request | Description *AccountsUsageTriggersApi* | [**FetchUsageTrigger**](docs/AccountsUsageTriggersApi.md#fetchusagetrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | *AccountsUsageTriggersApi* | [**ListUsageTrigger**](docs/AccountsUsageTriggersApi.md#listusagetrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | *AccountsUsageTriggersApi* | [**UpdateUsageTrigger**](docs/AccountsUsageTriggersApi.md#updateusagetrigger) | **Post** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | -*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /2010-04-01/SafeList/Numbers.json | -*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /2010-04-01/SafeList/Numbers.json | -*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /2010-04-01/SafeList/Numbers.json | ## 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) - [ApiV2010CallFeedback](docs/ApiV2010CallFeedback.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) - - [ApiV2010Safelist](docs/ApiV2010Safelist.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) - [ApiV2010CallFeedbackSummary](docs/ApiV2010CallFeedbackSummary.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) @@ -368,16 +334,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) + - [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..569a009eb 100644 --- a/rest/api/v2010/accounts_addresses.go +++ b/rest/api/v2010/accounts_addresses.go @@ -267,7 +267,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 +306,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 +352,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 +367,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 +375,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 +393,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 } 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..9169ab89b 100644 --- a/rest/api/v2010/accounts_available_phone_numbers.go +++ b/rest/api/v2010/accounts_available_phone_numbers.go @@ -86,7 +86,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 +116,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 +162,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 +177,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 +185,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 +203,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..aa8eb1945 100644 --- a/rest/api/v2010/accounts_calls_notifications.go +++ b/rest/api/v2010/accounts_calls_notifications.go @@ -111,7 +111,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 +154,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 +200,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 +215,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 +223,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 +241,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..9db7ee565 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 } diff --git a/rest/api/v2010/accounts_conferences_participants.go b/rest/api/v2010/accounts_conferences_participants.go index c51728231..19cf9ec79 100644 --- a/rest/api/v2010/accounts_conferences_participants.go +++ b/rest/api/v2010/accounts_conferences_participants.go @@ -121,6 +121,8 @@ type CreateParticipantParams struct { AmdStatusCallbackMethod *string `json:"AmdStatusCallbackMethod,omitempty"` // Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. Trim *string `json:"Trim,omitempty"` + // A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. + CallToken *string `json:"CallToken,omitempty"` } func (params *CreateParticipantParams) SetPathAccountSid(PathAccountSid string) *CreateParticipantParams { @@ -315,6 +317,10 @@ func (params *CreateParticipantParams) SetTrim(Trim string) *CreateParticipantPa params.Trim = &Trim return params } +func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreateParticipantParams { + params.CallToken = &CallToken + return params +} // func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) { @@ -478,6 +484,9 @@ func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParti if params != nil && params.Trim != nil { data.Set("Trim", *params.Trim) } + if params != nil && params.CallToken != nil { + data.Set("CallToken", *params.CallToken) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { @@ -611,7 +620,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 { @@ -651,7 +660,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 } @@ -697,7 +706,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 { @@ -712,7 +721,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 @@ -720,14 +729,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 } @@ -738,7 +747,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..9101b0b45 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_local.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_local.go @@ -317,7 +317,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 +359,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 +405,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 +420,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 +428,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 +446,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..55a5955b8 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_mobile.go @@ -317,7 +317,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 +359,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 +405,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 +420,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 +428,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 +446,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..d9ed40ba4 100644 --- a/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go +++ b/rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go @@ -317,7 +317,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 +359,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 +405,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 +420,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 +428,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 +446,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..08d96643e 100644 --- a/rest/api/v2010/accounts_keys.go +++ b/rest/api/v2010/accounts_keys.go @@ -168,7 +168,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 +198,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 +244,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 +259,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 +267,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 +285,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 } diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index f17580642..2713732e7 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -52,7 +52,7 @@ type CreateMessageParams struct { SmartEncoded *bool `json:"SmartEncoded,omitempty"` // Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). PersistentAction *[]string `json:"PersistentAction,omitempty"` - // For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. + // For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. ShortenUrls *bool `json:"ShortenUrls,omitempty"` // ScheduleType *string `json:"ScheduleType,omitempty"` @@ -64,13 +64,13 @@ type CreateMessageParams struct { ContentVariables *string `json:"ContentVariables,omitempty"` // RiskCheck *string `json:"RiskCheck,omitempty"` - // The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool. + // The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool. From *string `json:"From,omitempty"` // The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` // The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). Body *string `json:"Body,omitempty"` - // The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. + // The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. MediaUrl *[]string `json:"MediaUrl,omitempty"` // For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). ContentSid *string `json:"ContentSid,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..c19d7bf2e 100644 --- a/rest/api/v2010/accounts_outgoing_caller_ids.go +++ b/rest/api/v2010/accounts_outgoing_caller_ids.go @@ -225,7 +225,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 +261,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 +307,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 +322,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 +330,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 +348,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..14d11a569 100644 --- a/rest/api/v2010/accounts_recordings_transcriptions.go +++ b/rest/api/v2010/accounts_recordings_transcriptions.go @@ -122,7 +122,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 +153,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 +199,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 +214,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 +222,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 +240,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..23fd57386 100644 --- a/rest/api/v2010/accounts_signing_keys.go +++ b/rest/api/v2010/accounts_signing_keys.go @@ -168,7 +168,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 +198,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 +244,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 +259,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 +267,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 +285,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 } 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..1877c0da8 100644 --- a/rest/api/v2010/accounts_usage_triggers.go +++ b/rest/api/v2010/accounts_usage_triggers.go @@ -240,7 +240,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 +279,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 +325,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 +340,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 +348,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 +366,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/AccountsConferencesParticipantsApi.md b/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md index b320a3dd3..b32a1daa1 100644 --- a/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md +++ b/rest/api/v2010/docs/AccountsConferencesParticipantsApi.md @@ -83,6 +83,7 @@ Name | Type | Description **AmdStatusCallback** | **string** | The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. **AmdStatusCallbackMethod** | **string** | The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. **Trim** | **string** | Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. +**CallToken** | **string** | A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. ### Return type diff --git a/rest/api/v2010/docs/AccountsMessagesApi.md b/rest/api/v2010/docs/AccountsMessagesApi.md index 191dde1c4..5f39e3f3c 100644 --- a/rest/api/v2010/docs/AccountsMessagesApi.md +++ b/rest/api/v2010/docs/AccountsMessagesApi.md @@ -44,16 +44,16 @@ Name | Type | Description **AddressRetention** | **string** | **SmartEncoded** | **bool** | Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. **PersistentAction** | **[]string** | Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). -**ShortenUrls** | **bool** | For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. +**ShortenUrls** | **bool** | For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. **ScheduleType** | **string** | **SendAt** | **time.Time** | The time that Twilio will send the message. Must be in ISO 8601 format. **SendAsMms** | **bool** | If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. **ContentVariables** | **string** | For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. **RiskCheck** | **string** | -**From** | **string** | The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool. +**From** | **string** | The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool. **MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. **Body** | **string** | The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). -**MediaUrl** | **[]string** | The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. +**MediaUrl** | **[]string** | The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. **ContentSid** | **string** | For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). ### Return type @@ -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/ApiV2010Message.md b/rest/api/v2010/docs/ApiV2010Message.md index 7515aa336..fe5a5ed5e 100644 --- a/rest/api/v2010/docs/ApiV2010Message.md +++ b/rest/api/v2010/docs/ApiV2010Message.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Body** | Pointer to **string** | The text content of the message | **NumSegments** | Pointer to **string** | The number of segments that make up the complete message. SMS message bodies that exceed the [character limit](https://www.twilio.com/docs/glossary/what-sms-character-limit) are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, `num_segments` is initially `0`, since a sender hasn't yet been assigned. | **Direction** | Pointer to [**string**](MessageEnumDirection.md) | | -**From** | Pointer to **string** | The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent. | +**From** | Pointer to **string** | The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent. | **To** | Pointer to **string** | The recipient's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format) or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g. `whatsapp:+15552229999`) | **DateUpdated** | Pointer to **string** | The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was last updated | **Price** | Pointer to **string** | The amount billed for the message in the currency specified by `price_unit`. The `price` is populated after the message has been sent/received, and may not be immediately availalble. View the [Pricing page](https://www.twilio.com/en-us/pricing) for more details. | 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_api_v2010_message.go b/rest/api/v2010/model_api_v2010_message.go index 53b4f74ae..a83ac7720 100644 --- a/rest/api/v2010/model_api_v2010_message.go +++ b/rest/api/v2010/model_api_v2010_message.go @@ -21,7 +21,7 @@ type ApiV2010Message struct { // The number of segments that make up the complete message. SMS message bodies that exceed the [character limit](https://www.twilio.com/docs/glossary/what-sms-character-limit) are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, `num_segments` is initially `0`, since a sender hasn't yet been assigned. NumSegments *string `json:"num_segments,omitempty"` Direction *string `json:"direction,omitempty"` - // The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent. + // The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent. From *string `json:"from,omitempty"` // The recipient's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format) or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g. `whatsapp:+15552229999`) To *string `json:"to,omitempty"` 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/autopilot/v1/README.md b/rest/autopilot/v1/README.md index 946ae5d7c..a94fb11a0 100644 --- a/rest/autopilot/v1/README.md +++ b/rest/autopilot/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.50.1 +- 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/autopilot/v1/docs/ListAssistantResponseMeta.md b/rest/autopilot/v1/docs/ListAssistantResponseMeta.md index e31e71960..f267e1e42 100644 --- a/rest/autopilot/v1/docs/ListAssistantResponseMeta.md +++ b/rest/autopilot/v1/docs/ListAssistantResponseMeta.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/autopilot/v1/model_list_assistant_response_meta.go b/rest/autopilot/v1/model_list_assistant_response_meta.go index 738b0a261..e1b87ac6f 100644 --- a/rest/autopilot/v1/model_list_assistant_response_meta.go +++ b/rest/autopilot/v1/model_list_assistant_response_meta.go @@ -17,10 +17,10 @@ package openapi // ListAssistantResponseMeta struct for ListAssistantResponseMeta type ListAssistantResponseMeta 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/bulkexports/v1/README.md b/rest/bulkexports/v1/README.md index 24bc2a4e1..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.50.1 +- 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/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 2dbc0a06e..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.50.1 +- 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/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/v2/README.md b/rest/chat/v2/README.md index 79a41c2b5..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.50.1 +- 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/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_channels.go b/rest/chat/v2/services_channels.go index 56b59eb66..66ebff7d7 100644 --- a/rest/chat/v2/services_channels.go +++ b/rest/chat/v2/services_channels.go @@ -110,7 +110,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -149,7 +148,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *Delete if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -411,7 +409,6 @@ func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *Update if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/chat/v2/services_channels_members.go b/rest/chat/v2/services_channels_members.go index c0cefe5e9..015ed0684 100644 --- a/rest/chat/v2/services_channels_members.go +++ b/rest/chat/v2/services_channels_members.go @@ -111,7 +111,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params * if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -151,7 +150,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -416,7 +414,6 @@ func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid stri if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/chat/v2/services_channels_messages.go b/rest/chat/v2/services_channels_messages.go index ca4ddb383..3cca69276 100644 --- a/rest/chat/v2/services_channels_messages.go +++ b/rest/chat/v2/services_channels_messages.go @@ -111,7 +111,6 @@ func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -151,7 +150,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -414,7 +412,6 @@ func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid str if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/chat/v2/services_users.go b/rest/chat/v2/services_users.go index a7e8298bf..8ed504420 100644 --- a/rest/chat/v2/services_users.go +++ b/rest/chat/v2/services_users.go @@ -82,7 +82,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*C if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -330,7 +329,6 @@ func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUse if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/chat/v2/services_users_channels.go b/rest/chat/v2/services_users_channels.go index 7cd5b90e6..2545d1270 100644 --- a/rest/chat/v2/services_users_channels.go +++ b/rest/chat/v2/services_users_channels.go @@ -48,7 +48,6 @@ func (c *ApiService) DeleteUserChannel(ServiceSid string, UserSid string, Channe if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err diff --git a/rest/chat/v3/README.md b/rest/chat/v3/README.md index 205f1677a..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.50.1 +- 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/v3/services_channels.go b/rest/chat/v3/services_channels.go index 4a6e82462..f9c7a1dae 100644 --- a/rest/chat/v3/services_channels.go +++ b/rest/chat/v3/services_channels.go @@ -62,7 +62,6 @@ func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *Update if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/content/v1/README.md b/rest/content/v1/README.md index 26c20e1d4..3b7c94363 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.50.1 +- 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/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/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/conversations/v1/README.md b/rest/conversations/v1/README.md index 8cda383ff..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.50.1 +- 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/conversations.go b/rest/conversations/v1/conversations.go index 02ab5a2bc..c3f7c3b7a 100644 --- a/rest/conversations/v1/conversations.go +++ b/rest/conversations/v1/conversations.go @@ -145,7 +145,6 @@ func (c *ApiService) CreateConversation(params *CreateConversationParams) (*Conv if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -183,7 +182,6 @@ func (c *ApiService) DeleteConversation(Sid string, params *DeleteConversationPa if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -502,7 +500,6 @@ func (c *ApiService) UpdateConversation(Sid string, params *UpdateConversationPa if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/conversations/v1/conversations_messages.go b/rest/conversations/v1/conversations_messages.go index 04c750436..d6fd689ce 100644 --- a/rest/conversations/v1/conversations_messages.go +++ b/rest/conversations/v1/conversations_messages.go @@ -128,7 +128,6 @@ func (c *ApiService) CreateConversationMessage(ConversationSid string, params *C if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -167,7 +166,6 @@ func (c *ApiService) DeleteConversationMessage(ConversationSid string, Sid strin if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -427,7 +425,6 @@ func (c *ApiService) UpdateConversationMessage(ConversationSid string, Sid strin if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/conversations/v1/conversations_participants.go b/rest/conversations/v1/conversations_participants.go index 85dc93b09..bd3ebb455 100644 --- a/rest/conversations/v1/conversations_participants.go +++ b/rest/conversations/v1/conversations_participants.go @@ -119,7 +119,6 @@ func (c *ApiService) CreateConversationParticipant(ConversationSid string, param if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -158,7 +157,6 @@ func (c *ApiService) DeleteConversationParticipant(ConversationSid string, Sid s if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -436,7 +434,6 @@ func (c *ApiService) UpdateConversationParticipant(ConversationSid string, Sid s if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err 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/conversations/v1/services_conversations.go b/rest/conversations/v1/services_conversations.go index 219bb97d5..5ad76e3d2 100644 --- a/rest/conversations/v1/services_conversations.go +++ b/rest/conversations/v1/services_conversations.go @@ -146,7 +146,6 @@ func (c *ApiService) CreateServiceConversation(ChatServiceSid string, params *Cr if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -185,7 +184,6 @@ func (c *ApiService) DeleteServiceConversation(ChatServiceSid string, Sid string if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -508,7 +506,6 @@ func (c *ApiService) UpdateServiceConversation(ChatServiceSid string, Sid string if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/conversations/v1/services_conversations_messages.go b/rest/conversations/v1/services_conversations_messages.go index be944b1fc..f9fa14c53 100644 --- a/rest/conversations/v1/services_conversations_messages.go +++ b/rest/conversations/v1/services_conversations_messages.go @@ -129,7 +129,6 @@ func (c *ApiService) CreateServiceConversationMessage(ChatServiceSid string, Con if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -169,7 +168,6 @@ func (c *ApiService) DeleteServiceConversationMessage(ChatServiceSid string, Con if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -432,7 +430,6 @@ func (c *ApiService) UpdateServiceConversationMessage(ChatServiceSid string, Con if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/conversations/v1/services_conversations_participants.go b/rest/conversations/v1/services_conversations_participants.go index 170a3536c..4357eb6bc 100644 --- a/rest/conversations/v1/services_conversations_participants.go +++ b/rest/conversations/v1/services_conversations_participants.go @@ -120,7 +120,6 @@ func (c *ApiService) CreateServiceConversationParticipant(ChatServiceSid string, if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -160,7 +159,6 @@ func (c *ApiService) DeleteServiceConversationParticipant(ChatServiceSid string, if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -441,7 +439,6 @@ func (c *ApiService) UpdateServiceConversationParticipant(ChatServiceSid string, if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/conversations/v1/services_users.go b/rest/conversations/v1/services_users.go index 59cd24513..40e29b09d 100644 --- a/rest/conversations/v1/services_users.go +++ b/rest/conversations/v1/services_users.go @@ -82,7 +82,6 @@ func (c *ApiService) CreateServiceUser(ChatServiceSid string, params *CreateServ if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -121,7 +120,6 @@ func (c *ApiService) DeleteServiceUser(ChatServiceSid string, Sid string, params if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -345,7 +343,6 @@ func (c *ApiService) UpdateServiceUser(ChatServiceSid string, Sid string, params if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/conversations/v1/users.go b/rest/conversations/v1/users.go index 225256e19..a02e51542 100644 --- a/rest/conversations/v1/users.go +++ b/rest/conversations/v1/users.go @@ -81,7 +81,6 @@ func (c *ApiService) CreateUser(params *CreateUserParams) (*ConversationsV1User, if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -119,7 +118,6 @@ func (c *ApiService) DeleteUser(Sid string, params *DeleteUserParams) error { if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -339,7 +337,6 @@ func (c *ApiService) UpdateUser(Sid string, params *UpdateUserParams) (*Conversa if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/events/v1/README.md b/rest/events/v1/README.md index e7145a523..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.50.1 +- 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 1aaaa3187..b4c8dd3a2 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.50.1 +- 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,11 +31,13 @@ All URIs are relative to *https://flex-api.twilio.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AccountProvisionStatusApi* | [**FetchProvisioningStatus**](docs/AccountProvisionStatusApi.md#fetchprovisioningstatus) | **Get** /v1/account/provision/status | *ChannelsApi* | [**CreateChannel**](docs/ChannelsApi.md#createchannel) | **Post** /v1/Channels | *ChannelsApi* | [**DeleteChannel**](docs/ChannelsApi.md#deletechannel) | **Delete** /v1/Channels/{Sid} | *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} | @@ -115,6 +117,7 @@ Class | Method | HTTP request | Description - [FlexV1InsightsAssessments](docs/FlexV1InsightsAssessments.md) - [FlexV1InsightsConversations](docs/FlexV1InsightsConversations.md) - [FlexV1InsightsQuestionnairesCategory](docs/FlexV1InsightsQuestionnairesCategory.md) + - [FlexV1ProvisioningStatus](docs/FlexV1ProvisioningStatus.md) - [ListChannelResponseMeta](docs/ListChannelResponseMeta.md) - [ListInteractionChannelInviteResponse](docs/ListInteractionChannelInviteResponse.md) diff --git a/rest/oauth/v1/certs.go b/rest/flex/v1/account_provision_status.go similarity index 82% rename from rest/oauth/v1/certs.go rename to rest/flex/v1/account_provision_status.go index 994aad87d..f24e5a0e4 100644 --- a/rest/oauth/v1/certs.go +++ b/rest/flex/v1/account_provision_status.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Oauth + * Twilio - Flex * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -19,9 +19,9 @@ import ( "net/url" ) -// Fetches public JWKs -func (c *ApiService) FetchCerts() (*OauthV1Certs, error) { - path := "/v1/certs" +// +func (c *ApiService) FetchProvisioningStatus() (*FlexV1ProvisioningStatus, error) { + path := "/v1/account/provision/status" data := url.Values{} headers := make(map[string]interface{}) @@ -33,7 +33,7 @@ func (c *ApiService) FetchCerts() (*OauthV1Certs, error) { defer resp.Body.Close() - ps := &OauthV1Certs{} + ps := &FlexV1ProvisioningStatus{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/flex/v1/configuration.go b/rest/flex/v1/configuration.go index a106cb399..7227f5d8f 100644 --- a/rest/flex/v1/configuration.go +++ b/rest/flex/v1/configuration.go @@ -55,3 +55,25 @@ func (c *ApiService) FetchConfiguration(params *FetchConfigurationParams) (*Flex return ps, err } + +// +func (c *ApiService) UpdateConfiguration() (*FlexV1Configuration, error) { + path := "/v1/Configuration" + + data := url.Values{} + headers := make(map[string]interface{}) + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + 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/oauth/v1/docs/CertsApi.md b/rest/flex/v1/docs/AccountProvisionStatusApi.md similarity index 55% rename from rest/oauth/v1/docs/CertsApi.md rename to rest/flex/v1/docs/AccountProvisionStatusApi.md index 3769e6a93..83aec0a80 100644 --- a/rest/oauth/v1/docs/CertsApi.md +++ b/rest/flex/v1/docs/AccountProvisionStatusApi.md @@ -1,20 +1,20 @@ -# CertsApi +# AccountProvisionStatusApi -All URIs are relative to *https://oauth.twilio.com* +All URIs are relative to *https://flex-api.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**FetchCerts**](CertsApi.md#FetchCerts) | **Get** /v1/certs | +[**FetchProvisioningStatus**](AccountProvisionStatusApi.md#FetchProvisioningStatus) | **Get** /v1/account/provision/status | -## FetchCerts +## FetchProvisioningStatus + +> FlexV1ProvisioningStatus FetchProvisioningStatus(ctx, ) -> OauthV1Certs FetchCerts(ctx, ) -Fetches public JWKs ### Path Parameters @@ -22,12 +22,12 @@ This endpoint does not need any path parameter. ### Other Parameters -Other parameters are passed through a pointer to a FetchCertsParams struct +Other parameters are passed through a pointer to a FetchProvisioningStatusParams struct ### Return type -[**OauthV1Certs**](OauthV1Certs.md) +[**FlexV1ProvisioningStatus**](FlexV1ProvisioningStatus.md) ### Authorization diff --git a/rest/flex/v1/docs/ConfigurationApi.md b/rest/flex/v1/docs/ConfigurationApi.md index 587f244f9..947d466ba 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,38 @@ Name | Type | Description [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## UpdateConfiguration + +> FlexV1Configuration UpdateConfiguration(ctx, ) + + + + + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdateConfigurationParams struct + + +### Return type + +[**FlexV1Configuration**](FlexV1Configuration.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/FlexV1Configuration.md b/rest/flex/v1/docs/FlexV1Configuration.md index 05a7f0344..61cb24f21 100644 --- a/rest/flex/v1/docs/FlexV1Configuration.md +++ b/rest/flex/v1/docs/FlexV1Configuration.md @@ -51,6 +51,7 @@ Name | Type | Description | Notes **FlexUiStatusReport** | Pointer to **interface{}** | Configurable parameters for Flex UI Status report. | **AgentConvEndMethods** | Pointer to **interface{}** | Agent conversation end methods. | **CitrixVoiceVdi** | Pointer to **interface{}** | Citrix voice vdi configuration and settings. | +**OfflineConfig** | Pointer to **interface{}** | Presence and presence ttl configuration | [[Back to Model list]](../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/FlexV1ProvisioningStatus.md b/rest/flex/v1/docs/FlexV1ProvisioningStatus.md new file mode 100644 index 000000000..f19008e91 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1ProvisioningStatus.md @@ -0,0 +1,12 @@ +# FlexV1ProvisioningStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to [**string**](ProvisioningStatusEnumStatus.md) | | +**Url** | Pointer to **string** | The absolute URL of 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/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/insights_quality_management_assessments.go b/rest/flex/v1/insights_quality_management_assessments.go index 370444215..4ccb6e843 100644 --- a/rest/flex/v1/insights_quality_management_assessments.go +++ b/rest/flex/v1/insights_quality_management_assessments.go @@ -135,7 +135,6 @@ func (c *ApiService) CreateInsightsAssessments(params *CreateInsightsAssessments if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -352,7 +351,6 @@ func (c *ApiService) UpdateInsightsAssessments(AssessmentSid string, params *Upd if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_quality_management_assessments_comments.go b/rest/flex/v1/insights_quality_management_assessments_comments.go index 7f2f45031..cd454e340 100644 --- a/rest/flex/v1/insights_quality_management_assessments_comments.go +++ b/rest/flex/v1/insights_quality_management_assessments_comments.go @@ -98,7 +98,6 @@ func (c *ApiService) CreateInsightsAssessmentsComment(params *CreateInsightsAsse if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_quality_management_categories.go b/rest/flex/v1/insights_quality_management_categories.go index e23a34633..8e1d5d795 100644 --- a/rest/flex/v1/insights_quality_management_categories.go +++ b/rest/flex/v1/insights_quality_management_categories.go @@ -54,7 +54,6 @@ func (c *ApiService) CreateInsightsQuestionnairesCategory(params *CreateInsights if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -92,7 +91,6 @@ func (c *ApiService) DeleteInsightsQuestionnairesCategory(CategorySid string, pa if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -277,7 +275,6 @@ func (c *ApiService) UpdateInsightsQuestionnairesCategory(CategorySid string, pa if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_quality_management_questionnaires.go b/rest/flex/v1/insights_quality_management_questionnaires.go index a912e3911..b494dd3fc 100644 --- a/rest/flex/v1/insights_quality_management_questionnaires.go +++ b/rest/flex/v1/insights_quality_management_questionnaires.go @@ -83,7 +83,6 @@ func (c *ApiService) CreateInsightsQuestionnaires(params *CreateInsightsQuestion if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -121,7 +120,6 @@ func (c *ApiService) DeleteInsightsQuestionnaires(QuestionnaireSid string, param if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -154,7 +152,6 @@ func (c *ApiService) FetchInsightsQuestionnaires(QuestionnaireSid string, params if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -382,7 +379,6 @@ func (c *ApiService) UpdateInsightsQuestionnaires(QuestionnaireSid string, param if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_quality_management_questions.go b/rest/flex/v1/insights_quality_management_questions.go index 604415a43..b2128f4ca 100644 --- a/rest/flex/v1/insights_quality_management_questions.go +++ b/rest/flex/v1/insights_quality_management_questions.go @@ -90,7 +90,6 @@ func (c *ApiService) CreateInsightsQuestionnairesQuestion(params *CreateInsights if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -128,7 +127,6 @@ func (c *ApiService) DeleteInsightsQuestionnairesQuestion(QuestionSid string, pa if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -360,7 +358,6 @@ func (c *ApiService) UpdateInsightsQuestionnairesQuestion(QuestionSid string, pa if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_quality_management_settings_answer_sets.go b/rest/flex/v1/insights_quality_management_settings_answer_sets.go index 2cc956dfa..00a60d9eb 100644 --- a/rest/flex/v1/insights_quality_management_settings_answer_sets.go +++ b/rest/flex/v1/insights_quality_management_settings_answer_sets.go @@ -40,7 +40,6 @@ func (c *ApiService) FetchInsightsSettingsAnswersets(params *FetchInsightsSettin if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_quality_management_settings_comment_tags.go b/rest/flex/v1/insights_quality_management_settings_comment_tags.go index 6f3bc9306..fece2f75a 100644 --- a/rest/flex/v1/insights_quality_management_settings_comment_tags.go +++ b/rest/flex/v1/insights_quality_management_settings_comment_tags.go @@ -40,7 +40,6 @@ func (c *ApiService) FetchInsightsSettingsComment(params *FetchInsightsSettingsC if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_session.go b/rest/flex/v1/insights_session.go index 341cb806e..3ce21ef98 100644 --- a/rest/flex/v1/insights_session.go +++ b/rest/flex/v1/insights_session.go @@ -40,7 +40,6 @@ func (c *ApiService) CreateInsightsSession(params *CreateInsightsSessionParams) if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/insights_user_roles.go b/rest/flex/v1/insights_user_roles.go index 7c13c21e7..18b96566d 100644 --- a/rest/flex/v1/insights_user_roles.go +++ b/rest/flex/v1/insights_user_roles.go @@ -40,7 +40,6 @@ func (c *ApiService) FetchInsightsUserRoles(params *FetchInsightsUserRolesParams if params != nil && params.Authorization != nil { headers["Authorization"] = *params.Authorization } - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/flex/v1/model_flex_v1_configuration.go b/rest/flex/v1/model_flex_v1_configuration.go index 5325b7036..8866e8eb7 100644 --- a/rest/flex/v1/model_flex_v1_configuration.go +++ b/rest/flex/v1/model_flex_v1_configuration.go @@ -113,4 +113,6 @@ type FlexV1Configuration struct { AgentConvEndMethods *interface{} `json:"agent_conv_end_methods,omitempty"` // Citrix voice vdi configuration and settings. CitrixVoiceVdi *interface{} `json:"citrix_voice_vdi,omitempty"` + // Presence and presence ttl configuration + OfflineConfig *interface{} `json:"offline_config,omitempty"` } diff --git a/rest/oauth/v1/model_oauth_v1_certs.go b/rest/flex/v1/model_flex_v1_provisioning_status.go similarity index 67% rename from rest/oauth/v1/model_oauth_v1_certs.go rename to rest/flex/v1/model_flex_v1_provisioning_status.go index 7aff5bdff..226412cf4 100644 --- a/rest/oauth/v1/model_oauth_v1_certs.go +++ b/rest/flex/v1/model_flex_v1_provisioning_status.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Oauth + * Twilio - Flex * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -14,9 +14,9 @@ package openapi -// OauthV1Certs struct for OauthV1Certs -type OauthV1Certs struct { - // A collection of certificates where are signed Twilio-issued tokens. - Keys *interface{} `json:"keys,omitempty"` - Url *string `json:"url,omitempty"` +// FlexV1ProvisioningStatus struct for FlexV1ProvisioningStatus +type FlexV1ProvisioningStatus struct { + Status *string `json:"status,omitempty"` + // The absolute URL of the 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/v2/README.md b/rest/flex/v2/README.md index a5fa3c566..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.50.1 +- 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/frontline/v1/README.md b/rest/frontline/v1/README.md index ebbf1f7f7..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.50.1 +- 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 108967a5e..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.50.1 +- 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/InsightsV1Annotation.md b/rest/insights/v1/docs/InsightsV1Annotation.md index ab0d9d617..2a4efa9cb 100644 --- a/rest/insights/v1/docs/InsightsV1Annotation.md +++ b/rest/insights/v1/docs/InsightsV1Annotation.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **CallScore** | Pointer to **int** | Specifies the Call Score, if available. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. | **Comment** | Pointer to **string** | Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments. | **Incident** | Pointer to **string** | Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`. | -**Url** | Pointer to **string** | The URL of this resource. | +**Url** | Pointer to **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/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_insights_v1_annotation.go b/rest/insights/v1/model_insights_v1_annotation.go index f70da2c6f..24bed957f 100644 --- a/rest/insights/v1/model_insights_v1_annotation.go +++ b/rest/insights/v1/model_insights_v1_annotation.go @@ -32,6 +32,5 @@ type InsightsV1Annotation struct { Comment *string `json:"comment,omitempty"` // Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`. Incident *string `json:"incident,omitempty"` - // The URL of this resource. - Url *string `json:"url,omitempty"` + Url *string `json:"url,omitempty"` } 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/intelligence/v2/README.md b/rest/intelligence/v2/README.md index c6313357a..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.50.1 +- 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/IntelligenceV2OperatorResult.md b/rest/intelligence/v2/docs/IntelligenceV2OperatorResult.md index bb7a95b6a..7a13d6f54 100644 --- a/rest/intelligence/v2/docs/IntelligenceV2OperatorResult.md +++ b/rest/intelligence/v2/docs/IntelligenceV2OperatorResult.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **PredictedProbability** | Pointer to **float32** | Percentage of 'matching' class needed to consider a sentence matches. | **LabelProbabilities** | Pointer to **interface{}** | The labels probabilities. This might be available on conversation classify model outputs. | **ExtractResults** | Pointer to **interface{}** | List of text extraction results. This might be available on classify-extract model outputs. | +**TextGenerationResults** | Pointer to **interface{}** | Output of a text generation operator for example Conversation Sumamary. | **TranscriptSid** | Pointer to **string** | A 34 character string that uniquely identifies this Transcript. | **Url** | Pointer to **string** | The URL of this resource. | 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/docs/TranscriptsApi.md b/rest/intelligence/v2/docs/TranscriptsApi.md index 6066607ba..d6a373fab 100644 --- a/rest/intelligence/v2/docs/TranscriptsApi.md +++ b/rest/intelligence/v2/docs/TranscriptsApi.md @@ -97,7 +97,7 @@ Name | Type | Description ## FetchTranscript -> IntelligenceV2Transcript FetchTranscript(ctx, Sidoptional) +> IntelligenceV2Transcript FetchTranscript(ctx, Sid) @@ -118,7 +118,6 @@ Other parameters are passed through a pointer to a FetchTranscriptParams struct Name | Type | Description ------------- | ------------- | ------------- -**Redacted** | **bool** | Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript. ### Return type diff --git a/rest/intelligence/v2/docs/TranscriptsMediaApi.md b/rest/intelligence/v2/docs/TranscriptsMediaApi.md index eaa53ddf4..a6529f87d 100644 --- a/rest/intelligence/v2/docs/TranscriptsMediaApi.md +++ b/rest/intelligence/v2/docs/TranscriptsMediaApi.md @@ -31,7 +31,7 @@ Other parameters are passed through a pointer to a FetchMediaParams struct Name | Type | Description ------------- | ------------- | ------------- -**Redacted** | **bool** | Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media. +**Redacted** | **bool** | Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media. ### Return type diff --git a/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md b/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md index 0a6a70b1c..817db601c 100644 --- a/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md +++ b/rest/intelligence/v2/docs/TranscriptsOperatorResultsApi.md @@ -33,7 +33,7 @@ Other parameters are passed through a pointer to a FetchOperatorResultParams str Name | Type | Description ------------- | ------------- | ------------- -**Redacted** | **bool** | Grant access to PII redacted/unredacted Language Understanding operator. The default is True. +**Redacted** | **bool** | Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. ### Return type @@ -76,7 +76,7 @@ Other parameters are passed through a pointer to a ListOperatorResultParams stru Name | Type | Description ------------- | ------------- | ------------- -**Redacted** | **bool** | Grant access to PII redacted/unredacted Language Understanding operator. The default is True. +**Redacted** | **bool** | Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. **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/intelligence/v2/docs/TranscriptsSentencesApi.md b/rest/intelligence/v2/docs/TranscriptsSentencesApi.md index 4643f04d7..c02310fc0 100644 --- a/rest/intelligence/v2/docs/TranscriptsSentencesApi.md +++ b/rest/intelligence/v2/docs/TranscriptsSentencesApi.md @@ -31,7 +31,7 @@ Other parameters are passed through a pointer to a ListSentenceParams struct Name | Type | Description ------------- | ------------- | ------------- -**Redacted** | **bool** | Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. +**Redacted** | **bool** | Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. **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/intelligence/v2/model_intelligence_v2_operator_result.go b/rest/intelligence/v2/model_intelligence_v2_operator_result.go index 302f9db94..283506117 100644 --- a/rest/intelligence/v2/model_intelligence_v2_operator_result.go +++ b/rest/intelligence/v2/model_intelligence_v2_operator_result.go @@ -45,6 +45,8 @@ type IntelligenceV2OperatorResult struct { LabelProbabilities *interface{} `json:"label_probabilities,omitempty"` // List of text extraction results. This might be available on classify-extract model outputs. ExtractResults *interface{} `json:"extract_results,omitempty"` + // Output of a text generation operator for example Conversation Sumamary. + TextGenerationResults *interface{} `json:"text_generation_results,omitempty"` // A 34 character string that uniquely identifies this Transcript. TranscriptSid *string `json:"transcript_sid,omitempty"` // The URL of this resource. @@ -53,20 +55,21 @@ type IntelligenceV2OperatorResult struct { func (response *IntelligenceV2OperatorResult) UnmarshalJSON(bytes []byte) (err error) { raw := struct { - OperatorType *string `json:"operator_type"` - Name *string `json:"name"` - OperatorSid *string `json:"operator_sid"` - ExtractMatch *bool `json:"extract_match"` - MatchProbability *interface{} `json:"match_probability"` - NormalizedResult *string `json:"normalized_result"` - UtteranceResults *[]interface{} `json:"utterance_results"` - UtteranceMatch *bool `json:"utterance_match"` - PredictedLabel *string `json:"predicted_label"` - PredictedProbability *interface{} `json:"predicted_probability"` - LabelProbabilities *interface{} `json:"label_probabilities"` - ExtractResults *interface{} `json:"extract_results"` - TranscriptSid *string `json:"transcript_sid"` - Url *string `json:"url"` + OperatorType *string `json:"operator_type"` + Name *string `json:"name"` + OperatorSid *string `json:"operator_sid"` + ExtractMatch *bool `json:"extract_match"` + MatchProbability *interface{} `json:"match_probability"` + NormalizedResult *string `json:"normalized_result"` + UtteranceResults *[]interface{} `json:"utterance_results"` + UtteranceMatch *bool `json:"utterance_match"` + PredictedLabel *string `json:"predicted_label"` + PredictedProbability *interface{} `json:"predicted_probability"` + LabelProbabilities *interface{} `json:"label_probabilities"` + ExtractResults *interface{} `json:"extract_results"` + TextGenerationResults *interface{} `json:"text_generation_results"` + TranscriptSid *string `json:"transcript_sid"` + Url *string `json:"url"` }{} if err = json.Unmarshal(bytes, &raw); err != nil { @@ -74,18 +77,19 @@ func (response *IntelligenceV2OperatorResult) UnmarshalJSON(bytes []byte) (err e } *response = IntelligenceV2OperatorResult{ - OperatorType: raw.OperatorType, - Name: raw.Name, - OperatorSid: raw.OperatorSid, - ExtractMatch: raw.ExtractMatch, - NormalizedResult: raw.NormalizedResult, - UtteranceResults: raw.UtteranceResults, - UtteranceMatch: raw.UtteranceMatch, - PredictedLabel: raw.PredictedLabel, - LabelProbabilities: raw.LabelProbabilities, - ExtractResults: raw.ExtractResults, - TranscriptSid: raw.TranscriptSid, - Url: raw.Url, + OperatorType: raw.OperatorType, + Name: raw.Name, + OperatorSid: raw.OperatorSid, + ExtractMatch: raw.ExtractMatch, + NormalizedResult: raw.NormalizedResult, + UtteranceResults: raw.UtteranceResults, + UtteranceMatch: raw.UtteranceMatch, + PredictedLabel: raw.PredictedLabel, + LabelProbabilities: raw.LabelProbabilities, + ExtractResults: raw.ExtractResults, + TextGenerationResults: raw.TextGenerationResults, + TranscriptSid: raw.TranscriptSid, + Url: raw.Url, } responseMatchProbability, err := client.UnmarshalFloat32(raw.MatchProbability) 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/intelligence/v2/services.go b/rest/intelligence/v2/services.go index 92c78a929..7aa20c02a 100644 --- a/rest/intelligence/v2/services.go +++ b/rest/intelligence/v2/services.go @@ -413,7 +413,6 @@ func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*In if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/intelligence/v2/transcripts.go b/rest/intelligence/v2/transcripts.go index 174448046..bb98dbd84 100644 --- a/rest/intelligence/v2/transcripts.go +++ b/rest/intelligence/v2/transcripts.go @@ -112,29 +112,14 @@ func (c *ApiService) DeleteTranscript(Sid string) error { return nil } -// Optional parameters for the method 'FetchTranscript' -type FetchTranscriptParams struct { - // Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript. - Redacted *bool `json:"Redacted,omitempty"` -} - -func (params *FetchTranscriptParams) SetRedacted(Redacted bool) *FetchTranscriptParams { - params.Redacted = &Redacted - return params -} - // Fetch a specific Transcript. -func (c *ApiService) FetchTranscript(Sid string, params *FetchTranscriptParams) (*IntelligenceV2Transcript, error) { +func (c *ApiService) FetchTranscript(Sid string) (*IntelligenceV2Transcript, error) { path := "/v2/Transcripts/{Sid}" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.Redacted != nil { - data.Set("Redacted", fmt.Sprint(*params.Redacted)) - } - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/intelligence/v2/transcripts_media.go b/rest/intelligence/v2/transcripts_media.go index ab6fe48cc..d54171b4f 100644 --- a/rest/intelligence/v2/transcripts_media.go +++ b/rest/intelligence/v2/transcripts_media.go @@ -23,7 +23,7 @@ import ( // Optional parameters for the method 'FetchMedia' type FetchMediaParams struct { - // Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media. + // Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media. Redacted *bool `json:"Redacted,omitempty"` } diff --git a/rest/intelligence/v2/transcripts_operator_results.go b/rest/intelligence/v2/transcripts_operator_results.go index 55022c676..15e922c66 100644 --- a/rest/intelligence/v2/transcripts_operator_results.go +++ b/rest/intelligence/v2/transcripts_operator_results.go @@ -25,7 +25,7 @@ import ( // Optional parameters for the method 'FetchOperatorResult' type FetchOperatorResultParams struct { - // Grant access to PII redacted/unredacted Language Understanding operator. The default is True. + // Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. Redacted *bool `json:"Redacted,omitempty"` } @@ -64,7 +64,7 @@ func (c *ApiService) FetchOperatorResult(TranscriptSid string, OperatorSid strin // Optional parameters for the method 'ListOperatorResult' type ListOperatorResultParams struct { - // Grant access to PII redacted/unredacted Language Understanding operator. The default is True. + // Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. Redacted *bool `json:"Redacted,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` diff --git a/rest/intelligence/v2/transcripts_sentences.go b/rest/intelligence/v2/transcripts_sentences.go index 186571ec0..6b257de78 100644 --- a/rest/intelligence/v2/transcripts_sentences.go +++ b/rest/intelligence/v2/transcripts_sentences.go @@ -25,7 +25,7 @@ import ( // Optional parameters for the method 'ListSentence' type ListSentenceParams struct { - // Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. + // Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. Redacted *bool `json:"Redacted,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` diff --git a/rest/ip_messaging/v1/README.md b/rest/ip_messaging/v1/README.md index c51763771..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.50.1 +- 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/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/v2/README.md b/rest/ip_messaging/v2/README.md index 7b392eeaf..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.50.1 +- 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/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_channels.go b/rest/ip_messaging/v2/services_channels.go index 98a24ca5d..fe06ed53e 100644 --- a/rest/ip_messaging/v2/services_channels.go +++ b/rest/ip_messaging/v2/services_channels.go @@ -110,7 +110,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -149,7 +148,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string, params *Delete if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -411,7 +409,6 @@ func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *Update if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/ip_messaging/v2/services_channels_members.go b/rest/ip_messaging/v2/services_channels_members.go index 724db92cf..e3f23a9d7 100644 --- a/rest/ip_messaging/v2/services_channels_members.go +++ b/rest/ip_messaging/v2/services_channels_members.go @@ -111,7 +111,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params * if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -151,7 +150,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -416,7 +414,6 @@ func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid stri if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/ip_messaging/v2/services_channels_messages.go b/rest/ip_messaging/v2/services_channels_messages.go index 4f53a5345..d8d0e8415 100644 --- a/rest/ip_messaging/v2/services_channels_messages.go +++ b/rest/ip_messaging/v2/services_channels_messages.go @@ -111,7 +111,6 @@ func (c *ApiService) CreateMessage(ServiceSid string, ChannelSid string, params if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -151,7 +150,6 @@ func (c *ApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid str if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -414,7 +412,6 @@ func (c *ApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid str if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/ip_messaging/v2/services_users.go b/rest/ip_messaging/v2/services_users.go index 8a490a67e..fbe2eb131 100644 --- a/rest/ip_messaging/v2/services_users.go +++ b/rest/ip_messaging/v2/services_users.go @@ -82,7 +82,6 @@ func (c *ApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*I if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err @@ -330,7 +329,6 @@ func (c *ApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUse if params != nil && params.XTwilioWebhookEnabled != nil { headers["X-Twilio-Webhook-Enabled"] = *params.XTwilioWebhookEnabled } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/lookups/bulk/README.md b/rest/lookups/bulk/README.md new file mode 100644 index 000000000..f0c4e3a21 --- /dev/null +++ b/rest/lookups/bulk/README.md @@ -0,0 +1,68 @@ +# Go API client for openapi + +Lookup APIs for individual, bulk and job based requests + +Discussion topics: +- API version to use +- Using or not lookup in the path or just as lookups subdomain + +## 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://lookups.twilio.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- + + +## Documentation For Models + + - [PhoneNumberQualityScore](docs/PhoneNumberQualityScore.md) + - [LineTypeIntelligence](docs/LineTypeIntelligence.md) + - [LiveActivityCarrier](docs/LiveActivityCarrier.md) + - [ATOCarrier](docs/ATOCarrier.md) + - [IdentityMatch](docs/IdentityMatch.md) + - [ReassignedNumberResponse](docs/ReassignedNumberResponse.md) + - [PhoneNumberQualityScoreCarrier](docs/PhoneNumberQualityScoreCarrier.md) + - [ReassignedNumberRequest](docs/ReassignedNumberRequest.md) + - [LastSimSwap](docs/LastSimSwap.md) + - [LookupResponse](docs/LookupResponse.md) + - [LookupRequest](docs/LookupRequest.md) + - [LiveActivity](docs/LiveActivity.md) + - [SmsPumpingRiskCarrier](docs/SmsPumpingRiskCarrier.md) + - [LookupResponseWithCorId](docs/LookupResponseWithCorId.md) + - [SimSwap](docs/SimSwap.md) + - [IdentityMatchParameters](docs/IdentityMatchParameters.md) + - [SmsPumpingRisk](docs/SmsPumpingRisk.md) + - [LookupRequestWithCorId](docs/LookupRequestWithCorId.md) + - [Carrier](docs/Carrier.md) + - [CallForwarding](docs/CallForwarding.md) + - [CallerName](docs/CallerName.md) + + +## Documentation For Authorization + + Endpoints do not require authorization. + diff --git a/rest/oauth/v1/api_service.go b/rest/lookups/bulk/api_service.go similarity index 81% rename from rest/oauth/v1/api_service.go rename to rest/lookups/bulk/api_service.go index d301cbc4d..59ff521cc 100644 --- a/rest/oauth/v1/api_service.go +++ b/rest/lookups/bulk/api_service.go @@ -4,8 +4,8 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Oauth - * This is the public Twilio REST API. + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain * * NOTE: This class is auto generated by OpenAPI Generator. * https://openapi-generator.tech @@ -26,7 +26,7 @@ type ApiService struct { func NewApiService(requestHandler *twilio.RequestHandler) *ApiService { return &ApiService{ requestHandler: requestHandler, - baseURL: "https://oauth.twilio.com", + baseURL: "", } } diff --git a/rest/oauth/v1/docs/OauthV1Certs.md b/rest/lookups/bulk/docs/ATOCarrier.md similarity index 63% rename from rest/oauth/v1/docs/OauthV1Certs.md rename to rest/lookups/bulk/docs/ATOCarrier.md index a2896965d..069fb70a0 100644 --- a/rest/oauth/v1/docs/OauthV1Certs.md +++ b/rest/lookups/bulk/docs/ATOCarrier.md @@ -1,11 +1,12 @@ -# OauthV1Certs +# ATOCarrier ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Keys** | Pointer to **interface{}** | A collection of certificates where are signed Twilio-issued tokens. | -**Url** | Pointer to **string** | | +**CarrierName** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **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/lookups/bulk/docs/CallForwarding.md b/rest/lookups/bulk/docs/CallForwarding.md new file mode 100644 index 000000000..3c85de4ca --- /dev/null +++ b/rest/lookups/bulk/docs/CallForwarding.md @@ -0,0 +1,15 @@ +# CallForwarding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallForwardingEnabled** | **bool** | |[optional] +**CarrierName** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **string** | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/CallerName.md b/rest/lookups/bulk/docs/CallerName.md new file mode 100644 index 000000000..a5a51a186 --- /dev/null +++ b/rest/lookups/bulk/docs/CallerName.md @@ -0,0 +1,13 @@ +# CallerName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallerName** | **string** | |[optional] +**CallerType** | **string** | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/Carrier.md b/rest/lookups/bulk/docs/Carrier.md new file mode 100644 index 000000000..6a6ed496d --- /dev/null +++ b/rest/lookups/bulk/docs/Carrier.md @@ -0,0 +1,12 @@ +# Carrier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **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/lookups/bulk/docs/IdentityMatch.md b/rest/lookups/bulk/docs/IdentityMatch.md new file mode 100644 index 000000000..7271fb2e8 --- /dev/null +++ b/rest/lookups/bulk/docs/IdentityMatch.md @@ -0,0 +1,22 @@ +# IdentityMatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstNameMatch** | **string** | |[optional] +**LastNameMatch** | **string** | |[optional] +**AddressLineMatch** | **string** | |[optional] +**CityMatch** | **string** | |[optional] +**StateMatch** | **string** | |[optional] +**PostalCodeMatch** | **string** | |[optional] +**CountryCodeMatch** | **string** | |[optional] +**NationalIdMatch** | **string** | |[optional] +**DateOfBirthMatch** | **string** | |[optional] +**SummaryScore** | **int** | |[optional] +**ErrorCode** | **int** | |[optional] +**ErrorMessage** | **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/lookups/bulk/docs/IdentityMatchParameters.md b/rest/lookups/bulk/docs/IdentityMatchParameters.md new file mode 100644 index 000000000..15f1368ea --- /dev/null +++ b/rest/lookups/bulk/docs/IdentityMatchParameters.md @@ -0,0 +1,20 @@ +# IdentityMatchParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstName** | **string** | |[optional] +**LastName** | **string** | |[optional] +**AddressLine1** | **string** | |[optional] +**AddressLine2** | **string** | |[optional] +**City** | **string** | |[optional] +**State** | **string** | |[optional] +**PostalCode** | **string** | |[optional] +**AddressCountryCode** | **string** | |[optional] +**NationalId** | **string** | |[optional] +**DateOfBirth** | **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/lookups/bulk/docs/LastSimSwap.md b/rest/lookups/bulk/docs/LastSimSwap.md new file mode 100644 index 000000000..f97d549b6 --- /dev/null +++ b/rest/lookups/bulk/docs/LastSimSwap.md @@ -0,0 +1,13 @@ +# LastSimSwap + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastSimSwapDate** | [**time.Time**](time.Time.md) | |[optional] +**SwappedPeriod** | **string** | |[optional] +**SwappedInPeriod** | **bool** | |[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/lookups/bulk/docs/LineTypeIntelligence.md b/rest/lookups/bulk/docs/LineTypeIntelligence.md new file mode 100644 index 000000000..eb01547f7 --- /dev/null +++ b/rest/lookups/bulk/docs/LineTypeIntelligence.md @@ -0,0 +1,15 @@ +# LineTypeIntelligence + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | |[optional] +**CarrierName** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **string** | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/LiveActivity.md b/rest/lookups/bulk/docs/LiveActivity.md new file mode 100644 index 000000000..4e6a123df --- /dev/null +++ b/rest/lookups/bulk/docs/LiveActivity.md @@ -0,0 +1,17 @@ +# LiveActivity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Connectivity** | **string** | |[optional] +**OriginalCarrier** | [**LiveActivityCarrier**](LiveActivityCarrier.md) | |[optional] +**Ported** | **string** | |[optional] +**PortedCarrier** | [**LiveActivityCarrier**](LiveActivityCarrier.md) | |[optional] +**Roaming** | **string** | |[optional] +**RoamingCarrier** | [**LiveActivityCarrier**](LiveActivityCarrier.md) | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/LiveActivityCarrier.md b/rest/lookups/bulk/docs/LiveActivityCarrier.md new file mode 100644 index 000000000..ef7abad86 --- /dev/null +++ b/rest/lookups/bulk/docs/LiveActivityCarrier.md @@ -0,0 +1,14 @@ +# LiveActivityCarrier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | |[optional] +**Country** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **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/lookups/bulk/docs/LookupRequest.md b/rest/lookups/bulk/docs/LookupRequest.md new file mode 100644 index 000000000..23c1fe88e --- /dev/null +++ b/rest/lookups/bulk/docs/LookupRequest.md @@ -0,0 +1,15 @@ +# LookupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumber** | **string** | | +**Fields** | **[]string** | |[optional] +**CountryCode** | **string** | |[optional] +**IdentityMatch** | [**IdentityMatchParameters**](IdentityMatchParameters.md) | |[optional] +**ReassignedNumber** | [**ReassignedNumberRequest**](ReassignedNumberRequest.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/lookups/bulk/docs/LookupRequestWithCorId.md b/rest/lookups/bulk/docs/LookupRequestWithCorId.md new file mode 100644 index 000000000..0b2896aab --- /dev/null +++ b/rest/lookups/bulk/docs/LookupRequestWithCorId.md @@ -0,0 +1,16 @@ +# LookupRequestWithCorId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CorrelationId** | **string** | Unique identifier used to match request with response |[optional] +**PhoneNumber** | **string** | | +**Fields** | **[]string** | |[optional] +**CountryCode** | **string** | |[optional] +**IdentityMatch** | [**IdentityMatchParameters**](IdentityMatchParameters.md) | |[optional] +**ReassignedNumber** | [**ReassignedNumberRequest**](ReassignedNumberRequest.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/lookups/bulk/docs/LookupResponse.md b/rest/lookups/bulk/docs/LookupResponse.md new file mode 100644 index 000000000..528de345b --- /dev/null +++ b/rest/lookups/bulk/docs/LookupResponse.md @@ -0,0 +1,25 @@ +# LookupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallingCountryCode** | **string** | |[optional] +**CountryCode** | **string** | |[optional] +**PhoneNumber** | **string** | |[optional] +**NationalFormat** | **string** | |[optional] +**Valid** | **bool** | |[optional] +**ValidationErrors** | **[]string** | |[optional] +**CallerName** | [**CallerName**](CallerName.md) | |[optional] +**SimSwap** | [**SimSwap**](SimSwap.md) | |[optional] +**CallForwarding** | [**CallForwarding**](CallForwarding.md) | |[optional] +**LiveActivity** | [**LiveActivity**](LiveActivity.md) | |[optional] +**LineTypeIntelligence** | [**LineTypeIntelligence**](LineTypeIntelligence.md) | |[optional] +**IdentityMatch** | [**IdentityMatch**](IdentityMatch.md) | |[optional] +**ReassignedNumber** | [**ReassignedNumberResponse**](ReassignedNumberResponse.md) | |[optional] +**SmsPumpingRisk** | [**SmsPumpingRisk**](SmsPumpingRisk.md) | |[optional] +**PhoneNumberQualityScore** | [**PhoneNumberQualityScore**](PhoneNumberQualityScore.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/lookups/bulk/docs/LookupResponseWithCorId.md b/rest/lookups/bulk/docs/LookupResponseWithCorId.md new file mode 100644 index 000000000..6b91a0d66 --- /dev/null +++ b/rest/lookups/bulk/docs/LookupResponseWithCorId.md @@ -0,0 +1,27 @@ +# LookupResponseWithCorId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CorrelationId** | **string** | Unique identifier used to match request with response |[optional] +**TwilioErrorCode** | **int** | Twilio error conde in case that the request to downstream fails |[optional] +**CallingCountryCode** | **string** | |[optional] +**CountryCode** | **string** | |[optional] +**PhoneNumber** | **string** | |[optional] +**NationalFormat** | **string** | |[optional] +**Valid** | **bool** | |[optional] +**ValidationErrors** | **[]string** | |[optional] +**CallerName** | [**CallerName**](CallerName.md) | |[optional] +**SimSwap** | [**SimSwap**](SimSwap.md) | |[optional] +**CallForwarding** | [**CallForwarding**](CallForwarding.md) | |[optional] +**LiveActivity** | [**LiveActivity**](LiveActivity.md) | |[optional] +**LineTypeIntelligence** | [**LineTypeIntelligence**](LineTypeIntelligence.md) | |[optional] +**IdentityMatch** | [**IdentityMatch**](IdentityMatch.md) | |[optional] +**ReassignedNumber** | [**ReassignedNumberResponse**](ReassignedNumberResponse.md) | |[optional] +**SmsPumpingRisk** | [**SmsPumpingRisk**](SmsPumpingRisk.md) | |[optional] +**PhoneNumberQualityScore** | [**PhoneNumberQualityScore**](PhoneNumberQualityScore.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/lookups/bulk/docs/PhoneNumberQualityScore.md b/rest/lookups/bulk/docs/PhoneNumberQualityScore.md new file mode 100644 index 000000000..3fa915c02 --- /dev/null +++ b/rest/lookups/bulk/docs/PhoneNumberQualityScore.md @@ -0,0 +1,16 @@ +# PhoneNumberQualityScore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Carrier** | [**PhoneNumberQualityScoreCarrier**](PhoneNumberQualityScoreCarrier.md) | |[optional] +**QualityCategory** | **string** | |[optional] +**QualityScore** | **int** | |[optional] +**VelocityRiskCategory** | **string** | |[optional] +**VelocityRiskScore** | **int** | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/PhoneNumberQualityScoreCarrier.md b/rest/lookups/bulk/docs/PhoneNumberQualityScoreCarrier.md new file mode 100644 index 000000000..ee1c3bf7d --- /dev/null +++ b/rest/lookups/bulk/docs/PhoneNumberQualityScoreCarrier.md @@ -0,0 +1,16 @@ +# PhoneNumberQualityScoreCarrier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | |[optional] +**CarrierRiskScore** | **int** | |[optional] +**CarrierRiskCategory** | **string** | |[optional] +**LineType** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **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/lookups/bulk/docs/ReassignedNumberRequest.md b/rest/lookups/bulk/docs/ReassignedNumberRequest.md new file mode 100644 index 000000000..fce404095 --- /dev/null +++ b/rest/lookups/bulk/docs/ReassignedNumberRequest.md @@ -0,0 +1,11 @@ +# ReassignedNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastVerifiedDate** | **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/lookups/bulk/docs/ReassignedNumberResponse.md b/rest/lookups/bulk/docs/ReassignedNumberResponse.md new file mode 100644 index 000000000..a684f0b97 --- /dev/null +++ b/rest/lookups/bulk/docs/ReassignedNumberResponse.md @@ -0,0 +1,13 @@ +# ReassignedNumberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastVerifiedDate** | **string** | |[optional] +**IsNumberReassigned** | **string** | |[optional] +**ErrorCode** | **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/lookups/bulk/docs/SimSwap.md b/rest/lookups/bulk/docs/SimSwap.md new file mode 100644 index 000000000..782a0249e --- /dev/null +++ b/rest/lookups/bulk/docs/SimSwap.md @@ -0,0 +1,15 @@ +# SimSwap + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastSimSwap** | [**LastSimSwap**](LastSimSwap.md) | |[optional] +**CarrierName** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **string** | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/SmsPumpingRisk.md b/rest/lookups/bulk/docs/SmsPumpingRisk.md new file mode 100644 index 000000000..2f441d9ee --- /dev/null +++ b/rest/lookups/bulk/docs/SmsPumpingRisk.md @@ -0,0 +1,16 @@ +# SmsPumpingRisk + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Carrier** | [**SmsPumpingRiskCarrier**](SmsPumpingRiskCarrier.md) | |[optional] +**NumberBlocked** | **bool** | |[optional] +**NumberBlockedDate** | [**time.Time**](time.Time.md) | |[optional] +**NumberBlockedLast3Months** | **bool** | |[optional] +**SmsPumpingRiskScore** | **int** | |[optional] +**ErrorCode** | **int** | |[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/lookups/bulk/docs/SmsPumpingRiskCarrier.md b/rest/lookups/bulk/docs/SmsPumpingRiskCarrier.md new file mode 100644 index 000000000..93cd010a0 --- /dev/null +++ b/rest/lookups/bulk/docs/SmsPumpingRiskCarrier.md @@ -0,0 +1,15 @@ +# SmsPumpingRiskCarrier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | |[optional] +**CarrierRiskScore** | **int** | |[optional] +**CarrierRiskCategory** | **string** | |[optional] +**MobileCountryCode** | **string** | |[optional] +**MobileNetworkCode** | **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/lookups/bulk/model_ato_carrier.go b/rest/lookups/bulk/model_ato_carrier.go new file mode 100644 index 000000000..f8ec8731b --- /dev/null +++ b/rest/lookups/bulk/model_ato_carrier.go @@ -0,0 +1,22 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// ATOCarrier struct for ATOCarrier +type ATOCarrier struct { + CarrierName string `json:"carrier_name,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_call_forwarding.go b/rest/lookups/bulk/model_call_forwarding.go new file mode 100644 index 000000000..27530e331 --- /dev/null +++ b/rest/lookups/bulk/model_call_forwarding.go @@ -0,0 +1,24 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// CallForwarding struct for CallForwarding +type CallForwarding struct { + CallForwardingEnabled bool `json:"call_forwarding_enabled,omitempty"` + CarrierName string `json:"carrier_name,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_caller_name.go b/rest/lookups/bulk/model_caller_name.go new file mode 100644 index 000000000..e900da4e2 --- /dev/null +++ b/rest/lookups/bulk/model_caller_name.go @@ -0,0 +1,22 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// CallerName struct for CallerName +type CallerName struct { + CallerName string `json:"caller_name,omitempty"` + CallerType string `json:"caller_type,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_carrier.go b/rest/lookups/bulk/model_carrier.go new file mode 100644 index 000000000..1e2c74312 --- /dev/null +++ b/rest/lookups/bulk/model_carrier.go @@ -0,0 +1,21 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// Carrier struct for Carrier +type Carrier struct { + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_identity_match.go b/rest/lookups/bulk/model_identity_match.go new file mode 100644 index 000000000..787bc8055 --- /dev/null +++ b/rest/lookups/bulk/model_identity_match.go @@ -0,0 +1,31 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// IdentityMatch struct for IdentityMatch +type IdentityMatch struct { + FirstNameMatch string `json:"first_name_match,omitempty"` + LastNameMatch string `json:"last_name_match,omitempty"` + AddressLineMatch string `json:"address_line_match,omitempty"` + CityMatch string `json:"city_match,omitempty"` + StateMatch string `json:"state_match,omitempty"` + PostalCodeMatch string `json:"postal_code_match,omitempty"` + CountryCodeMatch string `json:"country_code_match,omitempty"` + NationalIdMatch string `json:"national_id_match,omitempty"` + DateOfBirthMatch string `json:"date_of_birth_match,omitempty"` + SummaryScore int `json:"summary_score,omitempty"` + ErrorCode int `json:"error_code,omitempty"` + ErrorMessage string `json:"error_message,omitempty"` +} diff --git a/rest/lookups/bulk/model_identity_match_parameters.go b/rest/lookups/bulk/model_identity_match_parameters.go new file mode 100644 index 000000000..563276c6b --- /dev/null +++ b/rest/lookups/bulk/model_identity_match_parameters.go @@ -0,0 +1,29 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// IdentityMatchParameters struct for IdentityMatchParameters +type IdentityMatchParameters struct { + FirstName string `json:"first_name,omitempty"` + LastName string `json:"last_name,omitempty"` + AddressLine1 string `json:"address_line1,omitempty"` + AddressLine2 string `json:"address_line2,omitempty"` + City string `json:"city,omitempty"` + State string `json:"state,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + AddressCountryCode string `json:"address_country_code,omitempty"` + NationalId string `json:"national_id,omitempty"` + DateOfBirth string `json:"date_of_birth,omitempty"` +} diff --git a/rest/lookups/bulk/model_last_sim_swap.go b/rest/lookups/bulk/model_last_sim_swap.go new file mode 100644 index 000000000..a4be43f68 --- /dev/null +++ b/rest/lookups/bulk/model_last_sim_swap.go @@ -0,0 +1,26 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "time" +) + +// LastSimSwap struct for LastSimSwap +type LastSimSwap struct { + LastSimSwapDate time.Time `json:"last_sim_swap_date,omitempty"` + SwappedPeriod string `json:"swapped_period,omitempty"` + SwappedInPeriod bool `json:"swapped_in_period,omitempty"` +} diff --git a/rest/lookups/bulk/model_line_type_intelligence.go b/rest/lookups/bulk/model_line_type_intelligence.go new file mode 100644 index 000000000..679ad0fca --- /dev/null +++ b/rest/lookups/bulk/model_line_type_intelligence.go @@ -0,0 +1,24 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LineTypeIntelligence struct for LineTypeIntelligence +type LineTypeIntelligence struct { + Type string `json:"type,omitempty"` + CarrierName string `json:"carrier_name,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_live_activity.go b/rest/lookups/bulk/model_live_activity.go new file mode 100644 index 000000000..2ea596875 --- /dev/null +++ b/rest/lookups/bulk/model_live_activity.go @@ -0,0 +1,26 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LiveActivity struct for LiveActivity +type LiveActivity struct { + Connectivity string `json:"connectivity,omitempty"` + OriginalCarrier LiveActivityCarrier `json:"original_carrier,omitempty"` + Ported string `json:"ported,omitempty"` + PortedCarrier LiveActivityCarrier `json:"ported_carrier,omitempty"` + Roaming string `json:"roaming,omitempty"` + RoamingCarrier LiveActivityCarrier `json:"roaming_carrier,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_live_activity_carrier.go b/rest/lookups/bulk/model_live_activity_carrier.go new file mode 100644 index 000000000..d50f84e73 --- /dev/null +++ b/rest/lookups/bulk/model_live_activity_carrier.go @@ -0,0 +1,23 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LiveActivityCarrier struct for LiveActivityCarrier +type LiveActivityCarrier struct { + Name string `json:"name,omitempty"` + Country string `json:"country,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_lookup_request.go b/rest/lookups/bulk/model_lookup_request.go new file mode 100644 index 000000000..8f704c272 --- /dev/null +++ b/rest/lookups/bulk/model_lookup_request.go @@ -0,0 +1,24 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LookupRequest +type LookupRequest struct { + PhoneNumber string `json:"phone_number"` + Fields []string `json:"fields,omitempty"` + CountryCode string `json:"country_code,omitempty"` + IdentityMatch IdentityMatchParameters `json:"identity_match,omitempty"` + ReassignedNumber ReassignedNumberRequest `json:"reassigned_number,omitempty"` +} diff --git a/rest/lookups/bulk/model_lookup_request_with_cor_id.go b/rest/lookups/bulk/model_lookup_request_with_cor_id.go new file mode 100644 index 000000000..b317d3997 --- /dev/null +++ b/rest/lookups/bulk/model_lookup_request_with_cor_id.go @@ -0,0 +1,26 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LookupRequestWithCorId struct for LookupRequestWithCorId +type LookupRequestWithCorId struct { + // Unique identifier used to match request with response + CorrelationId string `json:"correlation_id,omitempty"` + PhoneNumber string `json:"phone_number"` + Fields []string `json:"fields,omitempty"` + CountryCode string `json:"country_code,omitempty"` + IdentityMatch IdentityMatchParameters `json:"identity_match,omitempty"` + ReassignedNumber ReassignedNumberRequest `json:"reassigned_number,omitempty"` +} diff --git a/rest/lookups/bulk/model_lookup_response.go b/rest/lookups/bulk/model_lookup_response.go new file mode 100644 index 000000000..fdcc45837 --- /dev/null +++ b/rest/lookups/bulk/model_lookup_response.go @@ -0,0 +1,34 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LookupResponse struct for LookupResponse +type LookupResponse struct { + CallingCountryCode string `json:"calling_country_code,omitempty"` + CountryCode string `json:"country_code,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + NationalFormat string `json:"national_format,omitempty"` + Valid bool `json:"valid,omitempty"` + ValidationErrors []string `json:"validation_errors,omitempty"` + CallerName CallerName `json:"caller_name,omitempty"` + SimSwap SimSwap `json:"sim_swap,omitempty"` + CallForwarding CallForwarding `json:"call_forwarding,omitempty"` + LiveActivity LiveActivity `json:"live_activity,omitempty"` + LineTypeIntelligence LineTypeIntelligence `json:"line_type_intelligence,omitempty"` + IdentityMatch IdentityMatch `json:"identity_match,omitempty"` + ReassignedNumber ReassignedNumberResponse `json:"reassigned_number,omitempty"` + SmsPumpingRisk SmsPumpingRisk `json:"sms_pumping_risk,omitempty"` + PhoneNumberQualityScore PhoneNumberQualityScore `json:"phone_number_quality_score,omitempty"` +} diff --git a/rest/lookups/bulk/model_lookup_response_with_cor_id.go b/rest/lookups/bulk/model_lookup_response_with_cor_id.go new file mode 100644 index 000000000..01f32870b --- /dev/null +++ b/rest/lookups/bulk/model_lookup_response_with_cor_id.go @@ -0,0 +1,38 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// LookupResponseWithCorId struct for LookupResponseWithCorId +type LookupResponseWithCorId struct { + // Unique identifier used to match request with response + CorrelationId string `json:"correlation_id,omitempty"` + // Twilio error conde in case that the request to downstream fails + TwilioErrorCode int `json:"twilio_error_code,omitempty"` + CallingCountryCode string `json:"calling_country_code,omitempty"` + CountryCode string `json:"country_code,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + NationalFormat string `json:"national_format,omitempty"` + Valid bool `json:"valid,omitempty"` + ValidationErrors []string `json:"validation_errors,omitempty"` + CallerName CallerName `json:"caller_name,omitempty"` + SimSwap SimSwap `json:"sim_swap,omitempty"` + CallForwarding CallForwarding `json:"call_forwarding,omitempty"` + LiveActivity LiveActivity `json:"live_activity,omitempty"` + LineTypeIntelligence LineTypeIntelligence `json:"line_type_intelligence,omitempty"` + IdentityMatch IdentityMatch `json:"identity_match,omitempty"` + ReassignedNumber ReassignedNumberResponse `json:"reassigned_number,omitempty"` + SmsPumpingRisk SmsPumpingRisk `json:"sms_pumping_risk,omitempty"` + PhoneNumberQualityScore PhoneNumberQualityScore `json:"phone_number_quality_score,omitempty"` +} diff --git a/rest/lookups/bulk/model_phone_number_quality_score.go b/rest/lookups/bulk/model_phone_number_quality_score.go new file mode 100644 index 000000000..36c864dd3 --- /dev/null +++ b/rest/lookups/bulk/model_phone_number_quality_score.go @@ -0,0 +1,25 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// PhoneNumberQualityScore struct for PhoneNumberQualityScore +type PhoneNumberQualityScore struct { + Carrier PhoneNumberQualityScoreCarrier `json:"carrier,omitempty"` + QualityCategory string `json:"quality_category,omitempty"` + QualityScore int `json:"quality_score,omitempty"` + VelocityRiskCategory string `json:"velocity_risk_category,omitempty"` + VelocityRiskScore int `json:"velocity_risk_score,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_phone_number_quality_score_carrier.go b/rest/lookups/bulk/model_phone_number_quality_score_carrier.go new file mode 100644 index 000000000..38b270044 --- /dev/null +++ b/rest/lookups/bulk/model_phone_number_quality_score_carrier.go @@ -0,0 +1,25 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// PhoneNumberQualityScoreCarrier struct for PhoneNumberQualityScoreCarrier +type PhoneNumberQualityScoreCarrier struct { + Name string `json:"name,omitempty"` + CarrierRiskScore int `json:"carrier_risk_score,omitempty"` + CarrierRiskCategory string `json:"carrier_risk_category,omitempty"` + LineType string `json:"line_type,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_reassigned_number_request.go b/rest/lookups/bulk/model_reassigned_number_request.go new file mode 100644 index 000000000..dce8c36e8 --- /dev/null +++ b/rest/lookups/bulk/model_reassigned_number_request.go @@ -0,0 +1,20 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// ReassignedNumberRequest struct for ReassignedNumberRequest +type ReassignedNumberRequest struct { + LastVerifiedDate string `json:"last_verified_date,omitempty"` +} diff --git a/rest/lookups/bulk/model_reassigned_number_response.go b/rest/lookups/bulk/model_reassigned_number_response.go new file mode 100644 index 000000000..1719e3b73 --- /dev/null +++ b/rest/lookups/bulk/model_reassigned_number_response.go @@ -0,0 +1,22 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// ReassignedNumberResponse struct for ReassignedNumberResponse +type ReassignedNumberResponse struct { + LastVerifiedDate string `json:"last_verified_date,omitempty"` + IsNumberReassigned string `json:"is_number_reassigned,omitempty"` + ErrorCode string `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_sim_swap.go b/rest/lookups/bulk/model_sim_swap.go new file mode 100644 index 000000000..226e8d6c9 --- /dev/null +++ b/rest/lookups/bulk/model_sim_swap.go @@ -0,0 +1,24 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// SimSwap struct for SimSwap +type SimSwap struct { + LastSimSwap LastSimSwap `json:"last_sim_swap,omitempty"` + CarrierName string `json:"carrier_name,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_sms_pumping_risk.go b/rest/lookups/bulk/model_sms_pumping_risk.go new file mode 100644 index 000000000..d86225f1d --- /dev/null +++ b/rest/lookups/bulk/model_sms_pumping_risk.go @@ -0,0 +1,29 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "time" +) + +// SmsPumpingRisk struct for SmsPumpingRisk +type SmsPumpingRisk struct { + Carrier SmsPumpingRiskCarrier `json:"carrier,omitempty"` + NumberBlocked bool `json:"number_blocked,omitempty"` + NumberBlockedDate time.Time `json:"number_blocked_date,omitempty"` + NumberBlockedLast3Months bool `json:"number_blocked_last_3_months,omitempty"` + SmsPumpingRiskScore int `json:"sms_pumping_risk_score,omitempty"` + ErrorCode int `json:"error_code,omitempty"` +} diff --git a/rest/lookups/bulk/model_sms_pumping_risk_carrier.go b/rest/lookups/bulk/model_sms_pumping_risk_carrier.go new file mode 100644 index 000000000..75fd47f5c --- /dev/null +++ b/rest/lookups/bulk/model_sms_pumping_risk_carrier.go @@ -0,0 +1,24 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Lookup + * Lookup APIs for individual, bulk and job based requests Discussion topics: - API version to use - Using or not lookup in the path or just as lookups subdomain + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// SmsPumpingRiskCarrier struct for SmsPumpingRiskCarrier +type SmsPumpingRiskCarrier struct { + Name string `json:"name,omitempty"` + CarrierRiskScore int `json:"carrier_risk_score,omitempty"` + CarrierRiskCategory string `json:"carrier_risk_category,omitempty"` + MobileCountryCode string `json:"mobile_country_code,omitempty"` + MobileNetworkCode string `json:"mobile_network_code,omitempty"` +} diff --git a/rest/lookups/v1/README.md b/rest/lookups/v1/README.md index 3c362cce3..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.50.1 +- 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/README.md b/rest/lookups/v2/README.md index 9d8e92132..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.50.1 +- 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/docs/LookupsV2PhoneNumber.md b/rest/lookups/v2/docs/LookupsV2PhoneNumber.md index 68bf0e002..4f82d134a 100644 --- a/rest/lookups/v2/docs/LookupsV2PhoneNumber.md +++ b/rest/lookups/v2/docs/LookupsV2PhoneNumber.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **IdentityMatch** | Pointer to **interface{}** | An object that contains identity match information. The result of comparing user-provided information including name, address, date of birth, national ID, against authoritative phone-based data sources | **ReassignedNumber** | Pointer to **interface{}** | An object that contains reassigned number information. Reassigned Numbers will return a phone number's reassignment status given a phone number and date | **SmsPumpingRisk** | Pointer to **interface{}** | An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates. | -**DisposablePhoneNumberRisk** | Pointer to **interface{}** | An object that contains information on if a mobile phone number could be a disposable or burner number. | +**PhoneNumberQualityScore** | Pointer to **interface{}** | An object that contains information of a mobile phone number quality score. Quality score will return a risk score about the phone number. | **Url** | Pointer to **string** | The absolute URL of 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/lookups/v2/model_lookups_v2_phone_number.go b/rest/lookups/v2/model_lookups_v2_phone_number.go index 0832a7a42..23bb8715a 100644 --- a/rest/lookups/v2/model_lookups_v2_phone_number.go +++ b/rest/lookups/v2/model_lookups_v2_phone_number.go @@ -44,8 +44,8 @@ type LookupsV2PhoneNumber struct { ReassignedNumber *interface{} `json:"reassigned_number,omitempty"` // An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates. SmsPumpingRisk *interface{} `json:"sms_pumping_risk,omitempty"` - // An object that contains information on if a mobile phone number could be a disposable or burner number. - DisposablePhoneNumberRisk *interface{} `json:"disposable_phone_number_risk,omitempty"` + // An object that contains information of a mobile phone number quality score. Quality score will return a risk score about the phone number. + PhoneNumberQualityScore *interface{} `json:"phone_number_quality_score,omitempty"` // The absolute URL of the resource. Url *string `json:"url,omitempty"` } diff --git a/rest/media/v1/README.md b/rest/media/v1/README.md index a082fb1c0..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.50.1 +- 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/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/messaging/v1/README.md b/rest/messaging/v1/README.md index 9e4733662..472ba3c01 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.50.1 +- 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) @@ -76,6 +76,7 @@ Class | Method | HTTP request | Description *ServicesShortCodesApi* | [**ListShortCode**](docs/ServicesShortCodesApi.md#listshortcode) | **Get** /v1/Services/{ServiceSid}/ShortCodes | *ServicesUsecasesApi* | [**FetchUsecase**](docs/ServicesUsecasesApi.md#fetchusecase) | **Get** /v1/Services/Usecases | *TollfreeVerificationsApi* | [**CreateTollfreeVerification**](docs/TollfreeVerificationsApi.md#createtollfreeverification) | **Post** /v1/Tollfree/Verifications | +*TollfreeVerificationsApi* | [**DeleteTollfreeVerification**](docs/TollfreeVerificationsApi.md#deletetollfreeverification) | **Delete** /v1/Tollfree/Verifications/{Sid} | *TollfreeVerificationsApi* | [**FetchTollfreeVerification**](docs/TollfreeVerificationsApi.md#fetchtollfreeverification) | **Get** /v1/Tollfree/Verifications/{Sid} | *TollfreeVerificationsApi* | [**ListTollfreeVerification**](docs/TollfreeVerificationsApi.md#listtollfreeverification) | **Get** /v1/Tollfree/Verifications | *TollfreeVerificationsApi* | [**UpdateTollfreeVerification**](docs/TollfreeVerificationsApi.md#updatetollfreeverification) | **Post** /v1/Tollfree/Verifications/{Sid} | 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/MessagingV1ChannelSender.md b/rest/messaging/v1/docs/MessagingV1ChannelSender.md index 3ce687283..3e3b324c5 100644 --- a/rest/messaging/v1/docs/MessagingV1ChannelSender.md +++ b/rest/messaging/v1/docs/MessagingV1ChannelSender.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **CountryCode** | Pointer to **string** | The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number. | **DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | **DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | -**Url** | Pointer to **string** | | +**Url** | Pointer to **string** | The absolute URL of the ChannelSender 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/messaging/v1/docs/MessagingV1TollfreeVerification.md b/rest/messaging/v1/docs/MessagingV1TollfreeVerification.md index 6501f78d4..3ae885361 100644 --- a/rest/messaging/v1/docs/MessagingV1TollfreeVerification.md +++ b/rest/messaging/v1/docs/MessagingV1TollfreeVerification.md @@ -37,6 +37,7 @@ Name | Type | Description | Notes **RejectionReason** | Pointer to **string** | The rejection reason given when a Tollfree Verification has been rejected. | **ErrorCode** | Pointer to **int** | The error code given when a Tollfree Verification has been rejected. | **EditExpiration** | Pointer to [**time.Time**](time.Time.md) | The date and time when the ability to edit a rejected verification expires. | +**EditAllowed** | Pointer to **bool** | If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not. | **ResourceLinks** | Pointer to **interface{}** | The URLs of the documents associated with the Tollfree Verification resource. | **ExternalReferenceId** | Pointer to **string** | An optional external reference ID supplied by customer and echoed back on status retrieval. | diff --git a/rest/messaging/v1/docs/MessagingV1UsAppToPerson.md b/rest/messaging/v1/docs/MessagingV1UsAppToPerson.md index 44d416565..4ae92d77e 100644 --- a/rest/messaging/v1/docs/MessagingV1UsAppToPerson.md +++ b/rest/messaging/v1/docs/MessagingV1UsAppToPerson.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **BrandRegistrationSid** | Pointer to **string** | The unique string to identify the A2P brand. | **MessagingServiceSid** | Pointer to **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. | **Description** | Pointer to **string** | A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. | -**MessageSamples** | Pointer to **[]string** | Message samples, at least 1 and up to 5 sample messages (at least 2 for starter/sole proprietor), >=20 chars, <=1024 chars each. | +**MessageSamples** | Pointer to **[]string** | An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. | **UsAppToPersonUsecase** | Pointer to **string** | A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING, SOLE_PROPRIETOR...]. SOLE_PROPRIETOR campaign use cases can only be created by SOLE_PROPRIETOR Brands, and there can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR Brand. | **HasEmbeddedLinks** | Pointer to **bool** | Indicate that this SMS campaign will send messages that contain links. | **HasEmbeddedPhone** | Pointer to **bool** | Indicates that this SMS campaign will send messages that contain phone numbers. | diff --git a/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md b/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md index 919df8024..5b2fce16b 100644 --- a/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md +++ b/rest/messaging/v1/docs/ServicesComplianceUsa2pApi.md @@ -37,7 +37,7 @@ Name | Type | Description **BrandRegistrationSid** | **string** | A2P Brand Registration SID **Description** | **string** | A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. **MessageFlow** | **string** | Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum. -**MessageSamples** | **[]string** | Message samples, at least 1 and up to 5 sample messages (at least 2 for sole proprietor), >=20 chars, <=1024 chars each. +**MessageSamples** | **[]string** | An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. **UsAppToPersonUsecase** | **string** | A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..] **HasEmbeddedLinks** | **bool** | Indicates that this SMS campaign will send messages that contain links. **HasEmbeddedPhone** | **bool** | Indicates that this SMS campaign will send messages that contain phone numbers. diff --git a/rest/messaging/v1/docs/TollfreeVerificationsApi.md b/rest/messaging/v1/docs/TollfreeVerificationsApi.md index 6ea1f9b3c..d7c42bd6d 100644 --- a/rest/messaging/v1/docs/TollfreeVerificationsApi.md +++ b/rest/messaging/v1/docs/TollfreeVerificationsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://messaging.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateTollfreeVerification**](TollfreeVerificationsApi.md#CreateTollfreeVerification) | **Post** /v1/Tollfree/Verifications | +[**DeleteTollfreeVerification**](TollfreeVerificationsApi.md#DeleteTollfreeVerification) | **Delete** /v1/Tollfree/Verifications/{Sid} | [**FetchTollfreeVerification**](TollfreeVerificationsApi.md#FetchTollfreeVerification) | **Get** /v1/Tollfree/Verifications/{Sid} | [**ListTollfreeVerification**](TollfreeVerificationsApi.md#ListTollfreeVerification) | **Get** /v1/Tollfree/Verifications | [**UpdateTollfreeVerification**](TollfreeVerificationsApi.md#UpdateTollfreeVerification) | **Post** /v1/Tollfree/Verifications/{Sid} | @@ -72,6 +73,48 @@ Name | Type | Description [[Back to README]](../README.md) +## DeleteTollfreeVerification + +> DeleteTollfreeVerification(ctx, Sid) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string** | The unique string to identify Tollfree Verification. + +### Other Parameters + +Other parameters are passed through a pointer to a DeleteTollfreeVerificationParams struct + + +Name | Type | Description +------------- | ------------- | ------------- + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[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) + + ## FetchTollfreeVerification > MessagingV1TollfreeVerification FetchTollfreeVerification(ctx, Sid) @@ -199,6 +242,7 @@ Name | Type | Description **BusinessContactLastName** | **string** | The last name of the contact for the business or organization using the Tollfree number. **BusinessContactEmail** | **string** | The email address of the contact for the business or organization using the Tollfree number. **BusinessContactPhone** | **string** | The phone number of the contact for the business or organization using the Tollfree number. +**EditReason** | **string** | Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. ### Return type 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_channel_sender.go b/rest/messaging/v1/model_messaging_v1_channel_sender.go index 319e44d36..827298fb6 100644 --- a/rest/messaging/v1/model_messaging_v1_channel_sender.go +++ b/rest/messaging/v1/model_messaging_v1_channel_sender.go @@ -36,5 +36,6 @@ type MessagingV1ChannelSender struct { DateCreated *time.Time `json:"date_created,omitempty"` // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated *time.Time `json:"date_updated,omitempty"` - Url *string `json:"url,omitempty"` + // The absolute URL of the ChannelSender resource. + Url *string `json:"url,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_tollfree_verification.go b/rest/messaging/v1/model_messaging_v1_tollfree_verification.go index cde23ebdc..dd99abfa1 100644 --- a/rest/messaging/v1/model_messaging_v1_tollfree_verification.go +++ b/rest/messaging/v1/model_messaging_v1_tollfree_verification.go @@ -84,6 +84,8 @@ type MessagingV1TollfreeVerification struct { ErrorCode *int `json:"error_code,omitempty"` // The date and time when the ability to edit a rejected verification expires. EditExpiration *time.Time `json:"edit_expiration,omitempty"` + // If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not. + EditAllowed *bool `json:"edit_allowed,omitempty"` // The URLs of the documents associated with the Tollfree Verification resource. ResourceLinks *interface{} `json:"resource_links,omitempty"` // An optional external reference ID supplied by customer and echoed back on status retrieval. diff --git a/rest/messaging/v1/model_messaging_v1_us_app_to_person.go b/rest/messaging/v1/model_messaging_v1_us_app_to_person.go index e0ae00c7c..9303cbd48 100644 --- a/rest/messaging/v1/model_messaging_v1_us_app_to_person.go +++ b/rest/messaging/v1/model_messaging_v1_us_app_to_person.go @@ -30,7 +30,7 @@ type MessagingV1UsAppToPerson struct { MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` // A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. Description *string `json:"description,omitempty"` - // Message samples, at least 1 and up to 5 sample messages (at least 2 for starter/sole proprietor), >=20 chars, <=1024 chars each. + // An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. MessageSamples *[]string `json:"message_samples,omitempty"` // A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING, SOLE_PROPRIETOR...]. SOLE_PROPRIETOR campaign use cases can only be created by SOLE_PROPRIETOR Brands, and there can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR Brand. UsAppToPersonUsecase *string `json:"us_app_to_person_usecase,omitempty"` diff --git a/rest/messaging/v1/services_compliance_usa2p.go b/rest/messaging/v1/services_compliance_usa2p.go index f16883f8b..5f71d6804 100644 --- a/rest/messaging/v1/services_compliance_usa2p.go +++ b/rest/messaging/v1/services_compliance_usa2p.go @@ -31,7 +31,7 @@ type CreateUsAppToPersonParams struct { Description *string `json:"Description,omitempty"` // Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum. MessageFlow *string `json:"MessageFlow,omitempty"` - // Message samples, at least 1 and up to 5 sample messages (at least 2 for sole proprietor), >=20 chars, <=1024 chars each. + // An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. MessageSamples *[]string `json:"MessageSamples,omitempty"` // A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..] UsAppToPersonUsecase *string `json:"UsAppToPersonUsecase,omitempty"` diff --git a/rest/messaging/v1/tollfree_verifications.go b/rest/messaging/v1/tollfree_verifications.go index e9d0a5488..e3555d68a 100644 --- a/rest/messaging/v1/tollfree_verifications.go +++ b/rest/messaging/v1/tollfree_verifications.go @@ -262,6 +262,24 @@ 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) + + data := url.Values{} + headers := make(map[string]interface{}) + + resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + // func (c *ApiService) FetchTollfreeVerification(Sid string) (*MessagingV1TollfreeVerification, error) { path := "/v1/Tollfree/Verifications/{Sid}" @@ -481,6 +499,8 @@ type UpdateTollfreeVerificationParams struct { BusinessContactEmail *string `json:"BusinessContactEmail,omitempty"` // The phone number of the contact for the business or organization using the Tollfree number. BusinessContactPhone *string `json:"BusinessContactPhone,omitempty"` + // Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. + EditReason *string `json:"EditReason,omitempty"` } func (params *UpdateTollfreeVerificationParams) SetBusinessName(BusinessName string) *UpdateTollfreeVerificationParams { @@ -563,6 +583,10 @@ func (params *UpdateTollfreeVerificationParams) SetBusinessContactPhone(Business params.BusinessContactPhone = &BusinessContactPhone return params } +func (params *UpdateTollfreeVerificationParams) SetEditReason(EditReason string) *UpdateTollfreeVerificationParams { + params.EditReason = &EditReason + return params +} // func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error) { @@ -636,6 +660,9 @@ func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfr if params != nil && params.BusinessContactPhone != nil { data.Set("BusinessContactPhone", *params.BusinessContactPhone) } + if params != nil && params.EditReason != nil { + data.Set("EditReason", *params.EditReason) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { diff --git a/rest/oauth/v1/README.md b/rest/messaging_bulk/v1/README.md similarity index 55% rename from rest/oauth/v1/README.md rename to rest/messaging_bulk/v1/README.md index 05e352ac2..0063bcda0 100644 --- a/rest/oauth/v1/README.md +++ b/rest/messaging_bulk/v1/README.md @@ -1,11 +1,11 @@ # Go API client for openapi -This is the public Twilio REST API. +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.50.1 +- 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) @@ -27,24 +27,24 @@ import "./openapi" ## Documentation for API Endpoints -All URIs are relative to *https://oauth.twilio.com* +All URIs are relative to *https://preview.messaging.twilio.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*CertsApi* | [**FetchCerts**](docs/CertsApi.md#fetchcerts) | **Get** /v1/certs | -*DeviceCodeApi* | [**CreateDeviceCode**](docs/DeviceCodeApi.md#createdevicecode) | **Post** /v1/device/code | -*TokenApi* | [**CreateToken**](docs/TokenApi.md#createtoken) | **Post** /v1/token | -*UserinfoApi* | [**FetchUserInfo**](docs/UserinfoApi.md#fetchuserinfo) | **Get** /v1/userinfo | -*WellKnownOpenidConfigurationApi* | [**FetchOpenidDiscovery**](docs/WellKnownOpenidConfigurationApi.md#fetchopeniddiscovery) | **Get** /v1/.well-known/openid-configuration | +*BroadcastsApi* | [**CreateBroadcast**](docs/BroadcastsApi.md#createbroadcast) | **Post** /v1/Broadcasts | +*MessagesApi* | [**CreateMessages**](docs/MessagesApi.md#createmessages) | **Post** /v1/Messages | ## Documentation For Models - - [OauthV1DeviceCode](docs/OauthV1DeviceCode.md) - - [OauthV1Certs](docs/OauthV1Certs.md) - - [OauthV1OpenidDiscovery](docs/OauthV1OpenidDiscovery.md) - - [OauthV1Token](docs/OauthV1Token.md) - - [OauthV1UserInfo](docs/OauthV1UserInfo.md) + - [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 diff --git a/rest/messaging_bulk/v1/api_service.go b/rest/messaging_bulk/v1/api_service.go new file mode 100644 index 000000000..2d4d02796 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/broadcasts.go b/rest/messaging_bulk/v1/broadcasts.go new file mode 100644 index 000000000..25297c6fc --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/BroadcastsApi.md b/rest/messaging_bulk/v1/docs/BroadcastsApi.md new file mode 100644 index 000000000..fd7eb553a --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/CreateMessagesRequest.md b/rest/messaging_bulk/v1/docs/CreateMessagesRequest.md new file mode 100644 index 000000000..c77e3a19a --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagesApi.md b/rest/messaging_bulk/v1/docs/MessagesApi.md new file mode 100644 index 000000000..e9da3cbe7 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1Broadcast.md b/rest/messaging_bulk/v1/docs/MessagingV1Broadcast.md new file mode 100644 index 000000000..1ac44bb5c --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1BroadcastExecutionDetails.md b/rest/messaging_bulk/v1/docs/MessagingV1BroadcastExecutionDetails.md new file mode 100644 index 000000000..c5078a2c3 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1CreateMessagesResult.md b/rest/messaging_bulk/v1/docs/MessagingV1CreateMessagesResult.md new file mode 100644 index 000000000..267d5d840 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1Error.md b/rest/messaging_bulk/v1/docs/MessagingV1Error.md new file mode 100644 index 000000000..ea38dc558 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1FailedMessageReceipt.md b/rest/messaging_bulk/v1/docs/MessagingV1FailedMessageReceipt.md new file mode 100644 index 000000000..e48476b16 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1Message.md b/rest/messaging_bulk/v1/docs/MessagingV1Message.md new file mode 100644 index 000000000..0bb0457ec --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/docs/MessagingV1MessageReceipt.md b/rest/messaging_bulk/v1/docs/MessagingV1MessageReceipt.md new file mode 100644 index 000000000..a1d5678e2 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/messages.go b/rest/messaging_bulk/v1/messages.go new file mode 100644 index 000000000..5b8766a88 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_create_messages_request.go b/rest/messaging_bulk/v1/model_create_messages_request.go new file mode 100644 index 000000000..e8ab5db86 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_broadcast.go b/rest/messaging_bulk/v1/model_messaging_v1_broadcast.go new file mode 100644 index 000000000..2a299b688 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_broadcast_execution_details.go b/rest/messaging_bulk/v1/model_messaging_v1_broadcast_execution_details.go new file mode 100644 index 000000000..a87badb20 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_create_messages_result.go b/rest/messaging_bulk/v1/model_messaging_v1_create_messages_result.go new file mode 100644 index 000000000..0d50771eb --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_error.go b/rest/messaging_bulk/v1/model_messaging_v1_error.go new file mode 100644 index 000000000..661580d97 --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_failed_message_receipt.go b/rest/messaging_bulk/v1/model_messaging_v1_failed_message_receipt.go new file mode 100644 index 000000000..6ce3b54cd --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_message.go b/rest/messaging_bulk/v1/model_messaging_v1_message.go new file mode 100644 index 000000000..ea111236c --- /dev/null +++ b/rest/messaging_bulk/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/messaging_bulk/v1/model_messaging_v1_message_receipt.go b/rest/messaging_bulk/v1/model_messaging_v1_message_receipt.go new file mode 100644 index 000000000..4cf7c3fe3 --- /dev/null +++ b/rest/messaging_bulk/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/microvisor/v1/README.md b/rest/microvisor/v1/README.md index 64d952617..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.50.1 +- 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 be4567c87..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.50.1 +- 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/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/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 55abf1b7b..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.50.1 +- 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/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/numbers/v1/README.md b/rest/numbers/v1/README.md index c96d91dfd..b98970945 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.50.1 +- 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 | *PortingPortabilityApi* | [**CreatePortingBulkPortability**](docs/PortingPortabilityApi.md#createportingbulkportability) | **Post** /v1/Porting/Portability | *PortingPortabilityApi* | [**FetchPortingBulkPortability**](docs/PortingPortabilityApi.md#fetchportingbulkportability) | **Get** /v1/Porting/Portability/{Sid} | *PortingPortabilityPhoneNumberApi* | [**FetchPortingPortability**](docs/PortingPortabilityPhoneNumberApi.md#fetchportingportability) | **Get** /v1/Porting/Portability/PhoneNumber/{PhoneNumber} | diff --git a/rest/oauth/v1/docs/WellKnownOpenidConfigurationApi.md b/rest/numbers/v1/docs/HostedNumberEligibilityApi.md similarity index 51% rename from rest/oauth/v1/docs/WellKnownOpenidConfigurationApi.md rename to rest/numbers/v1/docs/HostedNumberEligibilityApi.md index 2912f79e3..92fbfb0cd 100644 --- a/rest/oauth/v1/docs/WellKnownOpenidConfigurationApi.md +++ b/rest/numbers/v1/docs/HostedNumberEligibilityApi.md @@ -1,20 +1,20 @@ -# WellKnownOpenidConfigurationApi +# HostedNumberEligibilityApi -All URIs are relative to *https://oauth.twilio.com* +All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**FetchOpenidDiscovery**](WellKnownOpenidConfigurationApi.md#FetchOpenidDiscovery) | **Get** /v1/.well-known/openid-configuration | +[**CreateEligibility**](HostedNumberEligibilityApi.md#CreateEligibility) | **Post** /v1/HostedNumber/Eligibility | -## FetchOpenidDiscovery +## CreateEligibility -> OauthV1OpenidDiscovery FetchOpenidDiscovery(ctx, ) +> NumbersV1Eligibility CreateEligibility(ctx, ) -Fetch configuration details about the OpenID Connect Authorization Server +Create an eligibility check for a number that you want to host in Twilio. ### Path Parameters @@ -22,12 +22,12 @@ This endpoint does not need any path parameter. ### Other Parameters -Other parameters are passed through a pointer to a FetchOpenidDiscoveryParams struct +Other parameters are passed through a pointer to a CreateEligibilityParams struct ### Return type -[**OauthV1OpenidDiscovery**](OauthV1OpenidDiscovery.md) +[**NumbersV1Eligibility**](NumbersV1Eligibility.md) ### Authorization diff --git a/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md b/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md index ea60f15fb..d5240f974 100644 --- a/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md +++ b/rest/numbers/v1/docs/HostedNumberEligibilityBulkApi.md @@ -4,10 +4,46 @@ 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, ) + + + +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 + + +### Return type + +[**NumbersV1BulkEligibility**](NumbersV1BulkEligibility.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) + + ## FetchBulkEligibility > NumbersV1BulkEligibility FetchBulkEligibility(ctx, RequestId) diff --git a/rest/oauth/v1/docs/UserinfoApi.md b/rest/numbers/v1/docs/PortingPortInApi.md similarity index 56% rename from rest/oauth/v1/docs/UserinfoApi.md rename to rest/numbers/v1/docs/PortingPortInApi.md index 67133cfba..dbe7ed37c 100644 --- a/rest/oauth/v1/docs/UserinfoApi.md +++ b/rest/numbers/v1/docs/PortingPortInApi.md @@ -1,20 +1,20 @@ -# UserinfoApi +# PortingPortInApi -All URIs are relative to *https://oauth.twilio.com* +All URIs are relative to *https://numbers.twilio.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**FetchUserInfo**](UserinfoApi.md#FetchUserInfo) | **Get** /v1/userinfo | +[**CreatePortingPortIn**](PortingPortInApi.md#CreatePortingPortIn) | **Post** /v1/Porting/PortIn | -## FetchUserInfo +## CreatePortingPortIn -> OauthV1UserInfo FetchUserInfo(ctx, ) +> NumbersV1PortingPortIn CreatePortingPortIn(ctx, ) -Retrieves the consented UserInfo and other claims about the logged-in subject (end-user). +Allows to create a port in request ### Path Parameters @@ -22,12 +22,12 @@ This endpoint does not need any path parameter. ### Other Parameters -Other parameters are passed through a pointer to a FetchUserInfoParams struct +Other parameters are passed through a pointer to a CreatePortingPortInParams struct ### Return type -[**OauthV1UserInfo**](OauthV1UserInfo.md) +[**NumbersV1PortingPortIn**](NumbersV1PortingPortIn.md) ### Authorization diff --git a/rest/oauth/v1/well_known_openid_configuration.go b/rest/numbers/v1/hosted_number_eligibility.go similarity index 70% rename from rest/oauth/v1/well_known_openid_configuration.go rename to rest/numbers/v1/hosted_number_eligibility.go index 1c4bd6f5c..e63846542 100644 --- a/rest/oauth/v1/well_known_openid_configuration.go +++ b/rest/numbers/v1/hosted_number_eligibility.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Oauth + * Twilio - Numbers * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -19,21 +19,21 @@ import ( "net/url" ) -// Fetch configuration details about the OpenID Connect Authorization Server -func (c *ApiService) FetchOpenidDiscovery() (*OauthV1OpenidDiscovery, error) { - path := "/v1/.well-known/openid-configuration" +// Create an eligibility check for a number that you want to host in Twilio. +func (c *ApiService) CreateEligibility() (*NumbersV1Eligibility, error) { + path := "/v1/HostedNumber/Eligibility" data := url.Values{} headers := make(map[string]interface{}) - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err } defer resp.Body.Close() - ps := &OauthV1OpenidDiscovery{} + ps := &NumbersV1Eligibility{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/numbers/v1/hosted_number_eligibility_bulk.go b/rest/numbers/v1/hosted_number_eligibility_bulk.go index 9bdfdaa90..0d784f5e2 100644 --- a/rest/numbers/v1/hosted_number_eligibility_bulk.go +++ b/rest/numbers/v1/hosted_number_eligibility_bulk.go @@ -20,6 +20,28 @@ import ( "strings" ) +// Create a bulk eligibility check for a set of numbers that you want to host in Twilio. +func (c *ApiService) CreateBulkEligibility() (*NumbersV1BulkEligibility, error) { + path := "/v1/HostedNumber/Eligibility/Bulk" + + data := url.Values{} + headers := make(map[string]interface{}) + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + 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/oauth/v1/userinfo.go b/rest/numbers/v1/porting_port_in.go similarity index 72% rename from rest/oauth/v1/userinfo.go rename to rest/numbers/v1/porting_port_in.go index cf2e5f835..3400cbdbe 100644 --- a/rest/oauth/v1/userinfo.go +++ b/rest/numbers/v1/porting_port_in.go @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Oauth + * Twilio - Numbers * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -19,21 +19,21 @@ import ( "net/url" ) -// Retrieves the consented UserInfo and other claims about the logged-in subject (end-user). -func (c *ApiService) FetchUserInfo() (*OauthV1UserInfo, error) { - path := "/v1/userinfo" +// Allows to create a port in request +func (c *ApiService) CreatePortingPortIn() (*NumbersV1PortingPortIn, error) { + path := "/v1/Porting/PortIn" data := url.Values{} headers := make(map[string]interface{}) - resp, err := c.requestHandler.Get(c.baseURL+path, data, headers) + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err } defer resp.Body.Close() - ps := &OauthV1UserInfo{} + ps := &NumbersV1PortingPortIn{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md index 76e7e11c2..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.50.1 +- 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..7f0c0b8f7 100644 --- a/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md +++ b/rest/numbers/v2/docs/HostedNumberOrdersBulkApi.md @@ -4,10 +4,46 @@ 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, ) + + + +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 + + +### Return type + +[**NumbersV2BulkHostedNumberOrder**](NumbersV2BulkHostedNumberOrder.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) + + ## 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..5a9dc3282 100644 --- a/rest/numbers/v2/hosted_number_orders_bulk.go +++ b/rest/numbers/v2/hosted_number_orders_bulk.go @@ -20,6 +20,28 @@ import ( "strings" ) +// Host multiple phone numbers on Twilio's platform. +func (c *ApiService) CreateBulkHostedNumberOrder() (*NumbersV2BulkHostedNumberOrder, error) { + path := "/v2/HostedNumber/Orders/Bulk" + + data := url.Values{} + headers := make(map[string]interface{}) + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + 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/oauth/v1/device_code.go b/rest/oauth/v1/device_code.go deleted file mode 100644 index d062a6d1b..000000000 --- a/rest/oauth/v1/device_code.go +++ /dev/null @@ -1,79 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Oauth - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package openapi - -import ( - "encoding/json" - "net/url" -) - -// Optional parameters for the method 'CreateDeviceCode' -type CreateDeviceCodeParams struct { - // A 34 character string that uniquely identifies this OAuth App. - ClientSid *string `json:"ClientSid,omitempty"` - // An Array of scopes for authorization request - Scopes *[]string `json:"Scopes,omitempty"` - // An array of intended audiences for token requests - Audiences *[]string `json:"Audiences,omitempty"` -} - -func (params *CreateDeviceCodeParams) SetClientSid(ClientSid string) *CreateDeviceCodeParams { - params.ClientSid = &ClientSid - return params -} -func (params *CreateDeviceCodeParams) SetScopes(Scopes []string) *CreateDeviceCodeParams { - params.Scopes = &Scopes - return params -} -func (params *CreateDeviceCodeParams) SetAudiences(Audiences []string) *CreateDeviceCodeParams { - params.Audiences = &Audiences - return params -} - -// Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant -func (c *ApiService) CreateDeviceCode(params *CreateDeviceCodeParams) (*OauthV1DeviceCode, error) { - path := "/v1/device/code" - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.ClientSid != nil { - data.Set("ClientSid", *params.ClientSid) - } - if params != nil && params.Scopes != nil { - for _, item := range *params.Scopes { - data.Add("Scopes", item) - } - } - if params != nil && params.Audiences != nil { - for _, item := range *params.Audiences { - data.Add("Audiences", item) - } - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &OauthV1DeviceCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/oauth/v1/docs/DeviceCodeApi.md b/rest/oauth/v1/docs/DeviceCodeApi.md deleted file mode 100644 index 9cdd094ee..000000000 --- a/rest/oauth/v1/docs/DeviceCodeApi.md +++ /dev/null @@ -1,50 +0,0 @@ -# DeviceCodeApi - -All URIs are relative to *https://oauth.twilio.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateDeviceCode**](DeviceCodeApi.md#CreateDeviceCode) | **Post** /v1/device/code | - - - -## CreateDeviceCode - -> OauthV1DeviceCode CreateDeviceCode(ctx, optional) - - - -Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreateDeviceCodeParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**ClientSid** | **string** | A 34 character string that uniquely identifies this OAuth App. -**Scopes** | **[]string** | An Array of scopes for authorization request -**Audiences** | **[]string** | An array of intended audiences for token requests - -### Return type - -[**OauthV1DeviceCode**](OauthV1DeviceCode.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/rest/oauth/v1/docs/OauthV1DeviceCode.md b/rest/oauth/v1/docs/OauthV1DeviceCode.md deleted file mode 100644 index 8640de50e..000000000 --- a/rest/oauth/v1/docs/OauthV1DeviceCode.md +++ /dev/null @@ -1,16 +0,0 @@ -# OauthV1DeviceCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DeviceCode** | Pointer to **string** | The device verification code. | -**UserCode** | Pointer to **string** | The verification code which end user uses to verify authorization request. | -**VerificationUri** | Pointer to **string** | The URI that the end user visits to verify authorization request. | -**VerificationUriComplete** | Pointer to **string** | The URI with user_code that the end-user alternatively visits to verify authorization request. | -**ExpiresIn** | Pointer to **int64** | The expiration time of the device_code and user_code in seconds. | -**Interval** | Pointer to **int** | The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rest/oauth/v1/docs/OauthV1OpenidDiscovery.md b/rest/oauth/v1/docs/OauthV1OpenidDiscovery.md deleted file mode 100644 index f54ee94bc..000000000 --- a/rest/oauth/v1/docs/OauthV1OpenidDiscovery.md +++ /dev/null @@ -1,23 +0,0 @@ -# OauthV1OpenidDiscovery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Issuer** | Pointer to **string** | The URL of the party that will create the token and sign it with its private key. | -**AuthorizationEndpoint** | Pointer to **string** | The endpoint that validates all authorization requests. | -**DeviceAuthorizationEndpoint** | Pointer to **string** | The endpoint that validates all device code related authorization requests. | -**TokenEndpoint** | Pointer to **string** | The URL of the token endpoint. After a client has received an authorization code, that code is presented to the token endpoint and exchanged for an identity token, an access token, and a refresh token. | -**UserinfoEndpoint** | Pointer to **string** | The URL of the user info endpoint, which returns user profile information to a client. Keep in mind that the user info endpoint returns only the information that has been requested. | -**RevocationEndpoint** | Pointer to **string** | The endpoint used to revoke access or refresh tokens issued by the authorization server. | -**JwkUri** | Pointer to **string** | The URL of your JSON Web Key Set. This set is a collection of JSON Web Keys, a standard method for representing cryptographic keys in a JSON structure. | -**ResponseTypeSupported** | Pointer to **[]string** | A collection of response type supported by authorization server. | -**SubjectTypeSupported** | Pointer to **[]string** | A collection of subject by authorization server. | -**IdTokenSigningAlgValuesSupported** | Pointer to **[]string** | A collection of JWS signing algorithms supported by authorization server to sign identity token. | -**ScopesSupported** | Pointer to **[]string** | A collection of scopes supported by authorization server for identity token | -**ClaimsSupported** | Pointer to **[]string** | A collection of claims supported by authorization server for identity token | -**Url** | Pointer to **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/oauth/v1/docs/OauthV1Token.md b/rest/oauth/v1/docs/OauthV1Token.md deleted file mode 100644 index c03b30591..000000000 --- a/rest/oauth/v1/docs/OauthV1Token.md +++ /dev/null @@ -1,15 +0,0 @@ -# OauthV1Token - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccessToken** | Pointer to **string** | Token which carries the necessary information to access a Twilio resource directly. | -**RefreshToken** | Pointer to **string** | Token which carries the information necessary to get a new access token. | -**IdToken** | Pointer to **string** | | -**RefreshTokenExpiresAt** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the refresh token expires in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | -**AccessTokenExpiresAt** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the refresh token expires in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rest/oauth/v1/docs/OauthV1UserInfo.md b/rest/oauth/v1/docs/OauthV1UserInfo.md deleted file mode 100644 index d54d2ac93..000000000 --- a/rest/oauth/v1/docs/OauthV1UserInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# OauthV1UserInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**UserSid** | Pointer to **string** | The URL of the party that will create the token and sign it with its private key. | -**FirstName** | Pointer to **string** | The first name of the end-user. | -**LastName** | Pointer to **string** | The last name of the end-user. | -**FriendlyName** | Pointer to **string** | The friendly name of the end-user. | -**Email** | Pointer to **string** | The end-user's preferred email address. | -**Url** | Pointer to **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/oauth/v1/docs/TokenApi.md b/rest/oauth/v1/docs/TokenApi.md deleted file mode 100644 index e3b36e40b..000000000 --- a/rest/oauth/v1/docs/TokenApi.md +++ /dev/null @@ -1,55 +0,0 @@ -# TokenApi - -All URIs are relative to *https://oauth.twilio.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateToken**](TokenApi.md#CreateToken) | **Post** /v1/token | - - - -## CreateToken - -> OauthV1Token CreateToken(ctx, optional) - - - -Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant - -### Path Parameters - -This endpoint does not need any path parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a CreateTokenParams struct - - -Name | Type | Description -------------- | ------------- | ------------- -**GrantType** | **string** | Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token. -**ClientSid** | **string** | A 34 character string that uniquely identifies this OAuth App. -**ClientSecret** | **string** | The credential for confidential OAuth App. -**Code** | **string** | JWT token related to the authorization code grant type. -**CodeVerifier** | **string** | A code which is generation cryptographically. -**DeviceCode** | **string** | JWT token related to the device code grant type. -**RefreshToken** | **string** | JWT token related to the refresh token grant type. -**DeviceId** | **string** | The Id of the device associated with the token (refresh token). - -### Return type - -[**OauthV1Token**](OauthV1Token.md) - -### Authorization - -[accountSid_authToken](../README.md#accountSid_authToken) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/rest/oauth/v1/model_oauth_v1_device_code.go b/rest/oauth/v1/model_oauth_v1_device_code.go deleted file mode 100644 index 9de591ee0..000000000 --- a/rest/oauth/v1/model_oauth_v1_device_code.go +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Oauth - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package openapi - -// OauthV1DeviceCode struct for OauthV1DeviceCode -type OauthV1DeviceCode struct { - // The device verification code. - DeviceCode *string `json:"device_code,omitempty"` - // The verification code which end user uses to verify authorization request. - UserCode *string `json:"user_code,omitempty"` - // The URI that the end user visits to verify authorization request. - VerificationUri *string `json:"verification_uri,omitempty"` - // The URI with user_code that the end-user alternatively visits to verify authorization request. - VerificationUriComplete *string `json:"verification_uri_complete,omitempty"` - // The expiration time of the device_code and user_code in seconds. - ExpiresIn *int64 `json:"expires_in,omitempty"` - // The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint. - Interval *int `json:"interval,omitempty"` -} diff --git a/rest/oauth/v1/model_oauth_v1_openid_discovery.go b/rest/oauth/v1/model_oauth_v1_openid_discovery.go deleted file mode 100644 index 056a6f8ee..000000000 --- a/rest/oauth/v1/model_oauth_v1_openid_discovery.go +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Oauth - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package openapi - -// OauthV1OpenidDiscovery struct for OauthV1OpenidDiscovery -type OauthV1OpenidDiscovery struct { - // The URL of the party that will create the token and sign it with its private key. - Issuer *string `json:"issuer,omitempty"` - // The endpoint that validates all authorization requests. - AuthorizationEndpoint *string `json:"authorization_endpoint,omitempty"` - // The endpoint that validates all device code related authorization requests. - DeviceAuthorizationEndpoint *string `json:"device_authorization_endpoint,omitempty"` - // The URL of the token endpoint. After a client has received an authorization code, that code is presented to the token endpoint and exchanged for an identity token, an access token, and a refresh token. - TokenEndpoint *string `json:"token_endpoint,omitempty"` - // The URL of the user info endpoint, which returns user profile information to a client. Keep in mind that the user info endpoint returns only the information that has been requested. - UserinfoEndpoint *string `json:"userinfo_endpoint,omitempty"` - // The endpoint used to revoke access or refresh tokens issued by the authorization server. - RevocationEndpoint *string `json:"revocation_endpoint,omitempty"` - // The URL of your JSON Web Key Set. This set is a collection of JSON Web Keys, a standard method for representing cryptographic keys in a JSON structure. - JwkUri *string `json:"jwk_uri,omitempty"` - // A collection of response type supported by authorization server. - ResponseTypeSupported *[]string `json:"response_type_supported,omitempty"` - // A collection of subject by authorization server. - SubjectTypeSupported *[]string `json:"subject_type_supported,omitempty"` - // A collection of JWS signing algorithms supported by authorization server to sign identity token. - IdTokenSigningAlgValuesSupported *[]string `json:"id_token_signing_alg_values_supported,omitempty"` - // A collection of scopes supported by authorization server for identity token - ScopesSupported *[]string `json:"scopes_supported,omitempty"` - // A collection of claims supported by authorization server for identity token - ClaimsSupported *[]string `json:"claims_supported,omitempty"` - Url *string `json:"url,omitempty"` -} diff --git a/rest/oauth/v1/model_oauth_v1_token.go b/rest/oauth/v1/model_oauth_v1_token.go deleted file mode 100644 index 66769b073..000000000 --- a/rest/oauth/v1/model_oauth_v1_token.go +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Oauth - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package openapi - -import ( - "time" -) - -// OauthV1Token struct for OauthV1Token -type OauthV1Token struct { - // Token which carries the necessary information to access a Twilio resource directly. - AccessToken *string `json:"access_token,omitempty"` - // Token which carries the information necessary to get a new access token. - RefreshToken *string `json:"refresh_token,omitempty"` - IdToken *string `json:"id_token,omitempty"` - // The date and time in GMT when the refresh token expires in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - RefreshTokenExpiresAt *time.Time `json:"refresh_token_expires_at,omitempty"` - // The date and time in GMT when the refresh token expires in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - AccessTokenExpiresAt *time.Time `json:"access_token_expires_at,omitempty"` -} diff --git a/rest/oauth/v1/model_oauth_v1_user_info.go b/rest/oauth/v1/model_oauth_v1_user_info.go deleted file mode 100644 index b476b05f6..000000000 --- a/rest/oauth/v1/model_oauth_v1_user_info.go +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Oauth - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package openapi - -// OauthV1UserInfo struct for OauthV1UserInfo -type OauthV1UserInfo struct { - // The URL of the party that will create the token and sign it with its private key. - UserSid *string `json:"user_sid,omitempty"` - // The first name of the end-user. - FirstName *string `json:"first_name,omitempty"` - // The last name of the end-user. - LastName *string `json:"last_name,omitempty"` - // The friendly name of the end-user. - FriendlyName *string `json:"friendly_name,omitempty"` - // The end-user's preferred email address. - Email *string `json:"email,omitempty"` - Url *string `json:"url,omitempty"` -} diff --git a/rest/oauth/v1/token.go b/rest/oauth/v1/token.go deleted file mode 100644 index 82ed4a101..000000000 --- a/rest/oauth/v1/token.go +++ /dev/null @@ -1,120 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Oauth - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package openapi - -import ( - "encoding/json" - "net/url" -) - -// Optional parameters for the method 'CreateToken' -type CreateTokenParams struct { - // Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token. - GrantType *string `json:"GrantType,omitempty"` - // A 34 character string that uniquely identifies this OAuth App. - ClientSid *string `json:"ClientSid,omitempty"` - // The credential for confidential OAuth App. - ClientSecret *string `json:"ClientSecret,omitempty"` - // JWT token related to the authorization code grant type. - Code *string `json:"Code,omitempty"` - // A code which is generation cryptographically. - CodeVerifier *string `json:"CodeVerifier,omitempty"` - // JWT token related to the device code grant type. - DeviceCode *string `json:"DeviceCode,omitempty"` - // JWT token related to the refresh token grant type. - RefreshToken *string `json:"RefreshToken,omitempty"` - // The Id of the device associated with the token (refresh token). - DeviceId *string `json:"DeviceId,omitempty"` -} - -func (params *CreateTokenParams) SetGrantType(GrantType string) *CreateTokenParams { - params.GrantType = &GrantType - return params -} -func (params *CreateTokenParams) SetClientSid(ClientSid string) *CreateTokenParams { - params.ClientSid = &ClientSid - return params -} -func (params *CreateTokenParams) SetClientSecret(ClientSecret string) *CreateTokenParams { - params.ClientSecret = &ClientSecret - return params -} -func (params *CreateTokenParams) SetCode(Code string) *CreateTokenParams { - params.Code = &Code - return params -} -func (params *CreateTokenParams) SetCodeVerifier(CodeVerifier string) *CreateTokenParams { - params.CodeVerifier = &CodeVerifier - return params -} -func (params *CreateTokenParams) SetDeviceCode(DeviceCode string) *CreateTokenParams { - params.DeviceCode = &DeviceCode - return params -} -func (params *CreateTokenParams) SetRefreshToken(RefreshToken string) *CreateTokenParams { - params.RefreshToken = &RefreshToken - return params -} -func (params *CreateTokenParams) SetDeviceId(DeviceId string) *CreateTokenParams { - params.DeviceId = &DeviceId - return params -} - -// Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant -func (c *ApiService) CreateToken(params *CreateTokenParams) (*OauthV1Token, error) { - path := "/v1/token" - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.GrantType != nil { - data.Set("GrantType", *params.GrantType) - } - if params != nil && params.ClientSid != nil { - data.Set("ClientSid", *params.ClientSid) - } - if params != nil && params.ClientSecret != nil { - data.Set("ClientSecret", *params.ClientSecret) - } - if params != nil && params.Code != nil { - data.Set("Code", *params.Code) - } - if params != nil && params.CodeVerifier != nil { - data.Set("CodeVerifier", *params.CodeVerifier) - } - if params != nil && params.DeviceCode != nil { - data.Set("DeviceCode", *params.DeviceCode) - } - if params != nil && params.RefreshToken != nil { - data.Set("RefreshToken", *params.RefreshToken) - } - if params != nil && params.DeviceId != nil { - data.Set("DeviceId", *params.DeviceId) - } - - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &OauthV1Token{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/pricing/v1/README.md b/rest/pricing/v1/README.md index d88aeea9a..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.50.1 +- 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/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/v2/README.md b/rest/pricing/v2/README.md index 04afd64be..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.50.1 +- 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 75ede7fa6..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.50.1 +- 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/docs/ProxyV1Interaction.md b/rest/proxy/v1/docs/ProxyV1Interaction.md index fb174c759..6a0be0ffd 100644 --- a/rest/proxy/v1/docs/ProxyV1Interaction.md +++ b/rest/proxy/v1/docs/ProxyV1Interaction.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **Data** | Pointer to **string** | A JSON string that includes the message body of message interactions (e.g. `{\"body\": \"hello\"}`) or the call duration (when available) of a call (e.g. `{\"duration\": \"5\"}`). | **Type** | Pointer to [**string**](InteractionEnumType.md) | | **InboundParticipantSid** | Pointer to **string** | The SID of the inbound [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | -**InboundResourceSid** | Pointer to **string** | The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message. | +**InboundResourceSid** | Pointer to **string** | The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message-resource). | **InboundResourceStatus** | Pointer to [**string**](InteractionEnumResourceStatus.md) | | **InboundResourceType** | Pointer to **string** | The inbound resource type. Can be [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message-resource). | **InboundResourceUrl** | Pointer to **string** | The URL of the Twilio inbound resource | diff --git a/rest/proxy/v1/docs/ServicesShortCodesApi.md b/rest/proxy/v1/docs/ServicesShortCodesApi.md index 3eba2ebda..4728740c6 100644 --- a/rest/proxy/v1/docs/ServicesShortCodesApi.md +++ b/rest/proxy/v1/docs/ServicesShortCodesApi.md @@ -35,7 +35,7 @@ Other parameters are passed through a pointer to a CreateShortCodeParams struct Name | Type | Description ------------- | ------------- | ------------- -**Sid** | **string** | The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. +**Sid** | **string** | The SID of a Twilio [ShortCode](https://www.twilio.com/en-us/messaging/channels/sms/short-codes) resource that represents the short code you would like to assign to your Proxy Service. ### Return type 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/model_proxy_v1_interaction.go b/rest/proxy/v1/model_proxy_v1_interaction.go index f066d64f9..6f910ab26 100644 --- a/rest/proxy/v1/model_proxy_v1_interaction.go +++ b/rest/proxy/v1/model_proxy_v1_interaction.go @@ -33,7 +33,7 @@ type ProxyV1Interaction struct { Type *string `json:"type,omitempty"` // The SID of the inbound [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. InboundParticipantSid *string `json:"inbound_participant_sid,omitempty"` - // The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message. + // The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message-resource). InboundResourceSid *string `json:"inbound_resource_sid,omitempty"` InboundResourceStatus *string `json:"inbound_resource_status,omitempty"` // The inbound resource type. Can be [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message-resource). diff --git a/rest/proxy/v1/services_short_codes.go b/rest/proxy/v1/services_short_codes.go index 34c743506..48cac26a9 100644 --- a/rest/proxy/v1/services_short_codes.go +++ b/rest/proxy/v1/services_short_codes.go @@ -25,7 +25,7 @@ import ( // Optional parameters for the method 'CreateShortCode' type CreateShortCodeParams struct { - // The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. + // The SID of a Twilio [ShortCode](https://www.twilio.com/en-us/messaging/channels/sms/short-codes) resource that represents the short code you would like to assign to your Proxy Service. Sid *string `json:"Sid,omitempty"` } diff --git a/rest/routes/v2/README.md b/rest/routes/v2/README.md index c30f4f84d..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.50.1 +- 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/README.md b/rest/serverless/v1/README.md index f8c707192..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.50.1 +- 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 5ccf8ed3e..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.50.1 +- 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 207655dc8..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.50.1 +- 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 fb8d13b3e..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.50.1 +- 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 5b219e675..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.50.1 +- 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_documents.go b/rest/sync/v1/services_documents.go index 53d2a1f40..6aae3ba8b 100644 --- a/rest/sync/v1/services_documents.go +++ b/rest/sync/v1/services_documents.go @@ -314,7 +314,6 @@ func (c *ApiService) UpdateDocument(ServiceSid string, Sid string, params *Updat if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/sync/v1/services_lists_items.go b/rest/sync/v1/services_lists_items.go index 3e0bec370..572df5abc 100644 --- a/rest/sync/v1/services_lists_items.go +++ b/rest/sync/v1/services_lists_items.go @@ -119,7 +119,6 @@ func (c *ApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -388,7 +387,6 @@ func (c *ApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/sync/v1/services_maps_items.go b/rest/sync/v1/services_maps_items.go index 6a1a39e0d..961e98735 100644 --- a/rest/sync/v1/services_maps_items.go +++ b/rest/sync/v1/services_maps_items.go @@ -128,7 +128,6 @@ func (c *ApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key str if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -397,7 +396,6 @@ func (c *ApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key str if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/taskrouter/v1/README.md b/rest/taskrouter/v1/README.md index 3846952f5..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.50.1 +- 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 | @@ -97,6 +98,7 @@ Class | Method | HTTP request | Description - [TaskrouterV1Task](docs/TaskrouterV1Task.md) - [ListTaskChannelResponse](docs/ListTaskChannelResponse.md) + - [TaskrouterV1TaskQueueBulkRealTimeStatistics](docs/TaskrouterV1TaskQueueBulkRealTimeStatistics.md) - [TaskrouterV1TaskQueuesStatistics](docs/TaskrouterV1TaskQueuesStatistics.md) - [TaskrouterV1WorkspaceCumulativeStatistics](docs/TaskrouterV1WorkspaceCumulativeStatistics.md) - [TaskrouterV1Activity](docs/TaskrouterV1Activity.md) @@ -121,7 +123,6 @@ Class | Method | HTTP request | Description - [TaskrouterV1WorkerChannel](docs/TaskrouterV1WorkerChannel.md) - [TaskrouterV1Workspace](docs/TaskrouterV1Workspace.md) - [TaskrouterV1TaskQueueCumulativeStatistics](docs/TaskrouterV1TaskQueueCumulativeStatistics.md) - - [TaskrouterV1TaskQueueBulkRealTimeStatistics](docs/TaskrouterV1TaskQueueBulkRealTimeStatistics.md) - [TaskrouterV1WorkersRealTimeStatistics](docs/TaskrouterV1WorkersRealTimeStatistics.md) - [TaskrouterV1Worker](docs/TaskrouterV1Worker.md) - [TaskrouterV1TaskQueueRealTimeStatistics](docs/TaskrouterV1TaskQueueRealTimeStatistics.md) 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/TaskrouterV1Task.md b/rest/taskrouter/v1/docs/TaskrouterV1Task.md index 0be8ba3ad..4c729705c 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1Task.md +++ b/rest/taskrouter/v1/docs/TaskrouterV1Task.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Age** | Pointer to **int** | The number of seconds since the Task was created. | **AssignmentStatus** | Pointer to [**string**](TaskEnumStatus.md) | | **Attributes** | Pointer to **string** | The JSON string with custom attributes of the work. **Note** If this property has been assigned a value, it will only be displayed in FETCH action that returns a single resource. Otherwise, it will be null. | -**Addons** | Pointer to **string** | An object that contains the [addon](https://www.twilio.com/docs/taskrouter/marketplace) data for all installed addons. | +**Addons** | Pointer to **string** | An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons. | **DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | **DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | **TaskQueueEnteredDate** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT when the Task entered the TaskQueue, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | @@ -25,6 +25,7 @@ Name | Type | Description | Notes **WorkspaceSid** | Pointer to **string** | The SID of the Workspace that contains the Task. | **Url** | Pointer to **string** | The absolute URL of the Task resource. | **Links** | Pointer to **map[string]interface{}** | The URLs of related resources. | +**VirtualStartTime** | Pointer to [**time.Time**](time.Time.md) | The date and time in GMT indicating the ordering for routing of the Task specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | [[Back to Model list]](../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/TaskrouterV1TaskQueueBulkRealTimeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1TaskQueueBulkRealTimeStatistics.md index 9468cdd92..6bf2d737d 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1TaskQueueBulkRealTimeStatistics.md +++ b/rest/taskrouter/v1/docs/TaskrouterV1TaskQueueBulkRealTimeStatistics.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource. | **WorkspaceSid** | Pointer to **string** | The SID of the Workspace that contains the TaskQueue. | -**TaskQueueData** | Pointer to **interface{}** | The TaskQueue RealTime Statistics for each requested TaskQueue SID, represented as a map of TaskQueue SID to the TaskQueue result, each result contains the following attributes: task_queue_sid: The SID of the TaskQueue from which these statistics were calculated, total_available_workers: The total number of Workers available for Tasks in the TaskQueue, total_eligible_workers: The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state, total_tasks: The total number of Tasks, longest_task_waiting_age: The age of the longest waiting Task, longest_task_waiting_sid: The SID of the longest waiting Task, tasks_by_status: The number of Tasks by their current status, tasks_by_priority: The number of Tasks by priority, activity_statistics: The number of current Workers by Activity. | +**TaskQueueData** | Pointer to **[]interface{}** | The real time statistics for each requested TaskQueue SID. `task_queue_data` returns the following attributes: `task_queue_sid`: The SID of the TaskQueue from which these statistics were calculated. `total_available_workers`: The total number of Workers available for Tasks in the TaskQueue. `total_eligible_workers`: The total number of Workers eligible for Tasks in the TaskQueue, regardless of their Activity state. `total_tasks`: The total number of Tasks. `longest_task_waiting_age`: The age of the longest waiting Task. `longest_task_waiting_sid`: The SID of the longest waiting Task. `tasks_by_status`: The number of Tasks grouped by their current status. `tasks_by_priority`: The number of Tasks grouped by priority. `activity_statistics`: The number of current Workers grouped by Activity. | **TaskQueueResponseCount** | Pointer to **int** | The number of TaskQueue statistics received in task_queue_data. | **Url** | Pointer to **string** | The absolute URL of the TaskQueue statistics resource. | diff --git a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md index ec87f6c1d..ff13afc0b 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesRealTimeStatisticsApi.md @@ -4,10 +4,53 @@ 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, WorkspaceSid) + + + +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 +------------- | ------------- | ------------- + +### Return type + +[**TaskrouterV1TaskQueueBulkRealTimeStatistics**](TaskrouterV1TaskQueueBulkRealTimeStatistics.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) + + ## FetchTaskQueueRealTimeStatistics > TaskrouterV1TaskQueueRealTimeStatistics FetchTaskQueueRealTimeStatistics(ctx, WorkspaceSidTaskQueueSidoptional) diff --git a/rest/taskrouter/v1/docs/WorkspacesTasksApi.md b/rest/taskrouter/v1/docs/WorkspacesTasksApi.md index 363824904..382c88c0f 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTasksApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTasksApi.md @@ -40,6 +40,7 @@ Name | Type | Description **TaskChannel** | **string** | When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. **WorkflowSid** | **string** | The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. **Attributes** | **string** | A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. +**VirtualStartTime** | **time.Time** | The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future. ### Return type @@ -176,8 +177,8 @@ Name | Type | Description **TaskQueueSid** | **string** | The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID. **TaskQueueName** | **string** | The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name. **EvaluateTaskAttributes** | **string** | The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. -**Ordering** | **string** | How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. -**HasAddons** | **bool** | Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. +**Ordering** | **string** | How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime. +**HasAddons** | **bool** | Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. **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. @@ -229,6 +230,7 @@ Name | Type | Description **Reason** | **string** | The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. **Priority** | **int** | The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). **TaskChannel** | **string** | When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +**VirtualStartTime** | **time.Time** | The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future. ### Return type 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/model_taskrouter_v1_task.go b/rest/taskrouter/v1/model_taskrouter_v1_task.go index d2d6fda9c..d5f1eddfe 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_task.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_task.go @@ -27,7 +27,7 @@ type TaskrouterV1Task struct { AssignmentStatus *string `json:"assignment_status,omitempty"` // The JSON string with custom attributes of the work. **Note** If this property has been assigned a value, it will only be displayed in FETCH action that returns a single resource. Otherwise, it will be null. Attributes *string `json:"attributes,omitempty"` - // An object that contains the [addon](https://www.twilio.com/docs/taskrouter/marketplace) data for all installed addons. + // An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons. Addons *string `json:"addons,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated *time.Time `json:"date_created,omitempty"` @@ -61,4 +61,6 @@ type TaskrouterV1Task struct { Url *string `json:"url,omitempty"` // The URLs of related resources. Links *map[string]interface{} `json:"links,omitempty"` + // The date and time in GMT indicating the ordering for routing of the Task specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + VirtualStartTime *time.Time `json:"virtual_start_time,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_task_queue_bulk_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_task_queue_bulk_real_time_statistics.go index 6c55237b0..92e833959 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_task_queue_bulk_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_task_queue_bulk_real_time_statistics.go @@ -20,8 +20,8 @@ type TaskrouterV1TaskQueueBulkRealTimeStatistics struct { AccountSid *string `json:"account_sid,omitempty"` // The SID of the Workspace that contains the TaskQueue. WorkspaceSid *string `json:"workspace_sid,omitempty"` - // The TaskQueue RealTime Statistics for each requested TaskQueue SID, represented as a map of TaskQueue SID to the TaskQueue result, each result contains the following attributes: task_queue_sid: The SID of the TaskQueue from which these statistics were calculated, total_available_workers: The total number of Workers available for Tasks in the TaskQueue, total_eligible_workers: The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state, total_tasks: The total number of Tasks, longest_task_waiting_age: The age of the longest waiting Task, longest_task_waiting_sid: The SID of the longest waiting Task, tasks_by_status: The number of Tasks by their current status, tasks_by_priority: The number of Tasks by priority, activity_statistics: The number of current Workers by Activity. - TaskQueueData *interface{} `json:"task_queue_data,omitempty"` + // The real time statistics for each requested TaskQueue SID. `task_queue_data` returns the following attributes: `task_queue_sid`: The SID of the TaskQueue from which these statistics were calculated. `total_available_workers`: The total number of Workers available for Tasks in the TaskQueue. `total_eligible_workers`: The total number of Workers eligible for Tasks in the TaskQueue, regardless of their Activity state. `total_tasks`: The total number of Tasks. `longest_task_waiting_age`: The age of the longest waiting Task. `longest_task_waiting_sid`: The SID of the longest waiting Task. `tasks_by_status`: The number of Tasks grouped by their current status. `tasks_by_priority`: The number of Tasks grouped by priority. `activity_statistics`: The number of current Workers grouped by Activity. + TaskQueueData *[]interface{} `json:"task_queue_data,omitempty"` // The number of TaskQueue statistics received in task_queue_data. TaskQueueResponseCount *int `json:"task_queue_response_count,omitempty"` // The absolute URL of the TaskQueue statistics resource. 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..fa59da2a5 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,29 @@ import ( "strings" ) +// 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) (*TaskrouterV1TaskQueueBulkRealTimeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + 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`. diff --git a/rest/taskrouter/v1/workspaces_tasks.go b/rest/taskrouter/v1/workspaces_tasks.go index 7005d1273..bdb0b0762 100644 --- a/rest/taskrouter/v1/workspaces_tasks.go +++ b/rest/taskrouter/v1/workspaces_tasks.go @@ -19,6 +19,7 @@ import ( "fmt" "net/url" "strings" + "time" "github.com/twilio/twilio-go/client" ) @@ -35,6 +36,8 @@ type CreateTaskParams struct { WorkflowSid *string `json:"WorkflowSid,omitempty"` // A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. Attributes *string `json:"Attributes,omitempty"` + // The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future. + VirtualStartTime *time.Time `json:"VirtualStartTime,omitempty"` } func (params *CreateTaskParams) SetTimeout(Timeout int) *CreateTaskParams { @@ -57,6 +60,10 @@ func (params *CreateTaskParams) SetAttributes(Attributes string) *CreateTaskPara params.Attributes = &Attributes return params } +func (params *CreateTaskParams) SetVirtualStartTime(VirtualStartTime time.Time) *CreateTaskParams { + params.VirtualStartTime = &VirtualStartTime + return params +} // func (c *ApiService) CreateTask(WorkspaceSid string, params *CreateTaskParams) (*TaskrouterV1Task, error) { @@ -81,6 +88,9 @@ func (c *ApiService) CreateTask(WorkspaceSid string, params *CreateTaskParams) ( if params != nil && params.Attributes != nil { data.Set("Attributes", *params.Attributes) } + if params != nil && params.VirtualStartTime != nil { + data.Set("VirtualStartTime", fmt.Sprint((*params.VirtualStartTime).Format(time.RFC3339))) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { @@ -120,7 +130,6 @@ func (c *ApiService) DeleteTask(WorkspaceSid string, Sid string, params *DeleteT if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -171,9 +180,9 @@ type ListTaskParams struct { TaskQueueName *string `json:"TaskQueueName,omitempty"` // The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. EvaluateTaskAttributes *string `json:"EvaluateTaskAttributes,omitempty"` - // How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. + // How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime. Ordering *string `json:"Ordering,omitempty"` - // Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. + // Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. HasAddons *bool `json:"HasAddons,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` @@ -390,6 +399,8 @@ type UpdateTaskParams struct { Priority *int `json:"Priority,omitempty"` // When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. TaskChannel *string `json:"TaskChannel,omitempty"` + // The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future. + VirtualStartTime *time.Time `json:"VirtualStartTime,omitempty"` } func (params *UpdateTaskParams) SetIfMatch(IfMatch string) *UpdateTaskParams { @@ -416,6 +427,10 @@ func (params *UpdateTaskParams) SetTaskChannel(TaskChannel string) *UpdateTaskPa params.TaskChannel = &TaskChannel return params } +func (params *UpdateTaskParams) SetVirtualStartTime(VirtualStartTime time.Time) *UpdateTaskParams { + params.VirtualStartTime = &VirtualStartTime + return params +} // func (c *ApiService) UpdateTask(WorkspaceSid string, Sid string, params *UpdateTaskParams) (*TaskrouterV1Task, error) { @@ -441,11 +456,13 @@ func (c *ApiService) UpdateTask(WorkspaceSid string, Sid string, params *UpdateT if params != nil && params.TaskChannel != nil { data.Set("TaskChannel", *params.TaskChannel) } + if params != nil && params.VirtualStartTime != nil { + data.Set("VirtualStartTime", fmt.Sprint((*params.VirtualStartTime).Format(time.RFC3339))) + } if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/taskrouter/v1/workspaces_tasks_reservations.go b/rest/taskrouter/v1/workspaces_tasks_reservations.go index 894549bbc..9411d7f4b 100644 --- a/rest/taskrouter/v1/workspaces_tasks_reservations.go +++ b/rest/taskrouter/v1/workspaces_tasks_reservations.go @@ -713,7 +713,6 @@ func (c *ApiService) UpdateTaskReservation(WorkspaceSid string, TaskSid string, if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/taskrouter/v1/workspaces_workers.go b/rest/taskrouter/v1/workspaces_workers.go index 5fcf6d949..88c4f41cf 100644 --- a/rest/taskrouter/v1/workspaces_workers.go +++ b/rest/taskrouter/v1/workspaces_workers.go @@ -102,7 +102,6 @@ func (c *ApiService) DeleteWorker(WorkspaceSid string, Sid string, params *Delet if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) if err != nil { return err @@ -407,7 +406,6 @@ func (c *ApiService) UpdateWorker(WorkspaceSid string, Sid string, params *Updat if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/taskrouter/v1/workspaces_workers_reservations.go b/rest/taskrouter/v1/workspaces_workers_reservations.go index b4da3e341..270c8d2a7 100644 --- a/rest/taskrouter/v1/workspaces_workers_reservations.go +++ b/rest/taskrouter/v1/workspaces_workers_reservations.go @@ -686,7 +686,6 @@ func (c *ApiService) UpdateWorkerReservation(WorkspaceSid string, WorkerSid stri if params != nil && params.IfMatch != nil { headers["If-Match"] = *params.IfMatch } - resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { return nil, err diff --git a/rest/trunking/v1/README.md b/rest/trunking/v1/README.md index d40880dc9..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.50.1 +- 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/trusthub/v1/README.md b/rest/trusthub/v1/README.md index b3eeed903..4c6cb5ba4 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.50.1 +- 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) @@ -33,6 +33,7 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *ComplianceInquiriesCustomersInitializeApi* | [**CreateComplianceInquiry**](docs/ComplianceInquiriesCustomersInitializeApi.md#createcomplianceinquiry) | **Post** /v1/ComplianceInquiries/Customers/Initialize | *ComplianceInquiriesCustomersInitializeApi* | [**UpdateComplianceInquiry**](docs/ComplianceInquiriesCustomersInitializeApi.md#updatecomplianceinquiry) | **Post** /v1/ComplianceInquiries/Customers/{CustomerId}/Initialize | +*ComplianceInquiriesTollfreeInitializeApi* | [**CreateComplianceTollfreeInquiry**](docs/ComplianceInquiriesTollfreeInitializeApi.md#createcompliancetollfreeinquiry) | **Post** /v1/ComplianceInquiries/Tollfree/Initialize | *CustomerProfilesApi* | [**CreateCustomerProfile**](docs/CustomerProfilesApi.md#createcustomerprofile) | **Post** /v1/CustomerProfiles | *CustomerProfilesApi* | [**DeleteCustomerProfile**](docs/CustomerProfilesApi.md#deletecustomerprofile) | **Delete** /v1/CustomerProfiles/{Sid} | *CustomerProfilesApi* | [**FetchCustomerProfile**](docs/CustomerProfilesApi.md#fetchcustomerprofile) | **Get** /v1/CustomerProfiles/{Sid} | @@ -112,6 +113,7 @@ Class | Method | HTTP request | Description - [ListPoliciesResponse](docs/ListPoliciesResponse.md) - [ListTrustProductResponse](docs/ListTrustProductResponse.md) - [ListCustomerProfileChannelEndpointAssignmentResponse](docs/ListCustomerProfileChannelEndpointAssignmentResponse.md) + - [TrusthubV1ComplianceTollfreeInquiry](docs/TrusthubV1ComplianceTollfreeInquiry.md) - [TrusthubV1CustomerProfileEvaluation](docs/TrusthubV1CustomerProfileEvaluation.md) diff --git a/rest/trusthub/v1/compliance_inquiries_tollfree_initialize.go b/rest/trusthub/v1/compliance_inquiries_tollfree_initialize.go new file mode 100644 index 000000000..de8027e34 --- /dev/null +++ b/rest/trusthub/v1/compliance_inquiries_tollfree_initialize.go @@ -0,0 +1,66 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Trusthub + * 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 'CreateComplianceTollfreeInquiry' +type CreateComplianceTollfreeInquiryParams struct { + // The Tollfree phone number to be verified + TollfreePhoneNumber *string `json:"TollfreePhoneNumber,omitempty"` + // The notification email to be triggered when verification status is changed + NotificationEmail *string `json:"NotificationEmail,omitempty"` +} + +func (params *CreateComplianceTollfreeInquiryParams) SetTollfreePhoneNumber(TollfreePhoneNumber string) *CreateComplianceTollfreeInquiryParams { + params.TollfreePhoneNumber = &TollfreePhoneNumber + return params +} +func (params *CreateComplianceTollfreeInquiryParams) SetNotificationEmail(NotificationEmail string) *CreateComplianceTollfreeInquiryParams { + params.NotificationEmail = &NotificationEmail + return params +} + +// Create a new Compliance Tollfree Verification Inquiry for the authenticated account. This is necessary to start a new embedded session. +func (c *ApiService) CreateComplianceTollfreeInquiry(params *CreateComplianceTollfreeInquiryParams) (*TrusthubV1ComplianceTollfreeInquiry, error) { + path := "/v1/ComplianceInquiries/Tollfree/Initialize" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.TollfreePhoneNumber != nil { + data.Set("TollfreePhoneNumber", *params.TollfreePhoneNumber) + } + if params != nil && params.NotificationEmail != nil { + data.Set("NotificationEmail", *params.NotificationEmail) + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrusthubV1ComplianceTollfreeInquiry{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/trusthub/v1/docs/ComplianceInquiriesTollfreeInitializeApi.md b/rest/trusthub/v1/docs/ComplianceInquiriesTollfreeInitializeApi.md new file mode 100644 index 000000000..51d88731c --- /dev/null +++ b/rest/trusthub/v1/docs/ComplianceInquiriesTollfreeInitializeApi.md @@ -0,0 +1,49 @@ +# ComplianceInquiriesTollfreeInitializeApi + +All URIs are relative to *https://trusthub.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateComplianceTollfreeInquiry**](ComplianceInquiriesTollfreeInitializeApi.md#CreateComplianceTollfreeInquiry) | **Post** /v1/ComplianceInquiries/Tollfree/Initialize | + + + +## CreateComplianceTollfreeInquiry + +> TrusthubV1ComplianceTollfreeInquiry CreateComplianceTollfreeInquiry(ctx, optional) + + + +Create a new Compliance Tollfree Verification Inquiry for the authenticated account. This is necessary to start a new embedded session. + +### Path Parameters + +This endpoint does not need any path parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateComplianceTollfreeInquiryParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**TollfreePhoneNumber** | **string** | The Tollfree phone number to be verified +**NotificationEmail** | **string** | The notification email to be triggered when verification status is changed + +### Return type + +[**TrusthubV1ComplianceTollfreeInquiry**](TrusthubV1ComplianceTollfreeInquiry.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/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/docs/TrusthubV1ComplianceTollfreeInquiry.md b/rest/trusthub/v1/docs/TrusthubV1ComplianceTollfreeInquiry.md new file mode 100644 index 000000000..c04ec5836 --- /dev/null +++ b/rest/trusthub/v1/docs/TrusthubV1ComplianceTollfreeInquiry.md @@ -0,0 +1,14 @@ +# TrusthubV1ComplianceTollfreeInquiry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InquiryId** | Pointer to **string** | The unique ID used to start an embedded compliance registration session. | +**InquirySessionToken** | Pointer to **string** | The session token used to start an embedded compliance registration session. | +**RegistrationId** | Pointer to **string** | The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing. | +**Url** | Pointer to **string** | The URL of this resource. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/trusthub/v1/model_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/trusthub/v1/model_trusthub_v1_compliance_tollfree_inquiry.go b/rest/trusthub/v1/model_trusthub_v1_compliance_tollfree_inquiry.go new file mode 100644 index 000000000..2ef33a067 --- /dev/null +++ b/rest/trusthub/v1/model_trusthub_v1_compliance_tollfree_inquiry.go @@ -0,0 +1,27 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Trusthub + * 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 + +// TrusthubV1ComplianceTollfreeInquiry struct for TrusthubV1ComplianceTollfreeInquiry +type TrusthubV1ComplianceTollfreeInquiry struct { + // The unique ID used to start an embedded compliance registration session. + InquiryId *string `json:"inquiry_id,omitempty"` + // The session token used to start an embedded compliance registration session. + InquirySessionToken *string `json:"inquiry_session_token,omitempty"` + // The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing. + RegistrationId *string `json:"registration_id,omitempty"` + // The URL of this resource. + Url *string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md index 93eb473f9..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.50.1 +- 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/docs/ServicesVerificationsApi.md b/rest/verify/v2/docs/ServicesVerificationsApi.md index 28d9ece28..cf0cbcf94 100644 --- a/rest/verify/v2/docs/ServicesVerificationsApi.md +++ b/rest/verify/v2/docs/ServicesVerificationsApi.md @@ -49,6 +49,7 @@ Name | Type | Description **TemplateCustomSubstitutions** | **string** | A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. **DeviceIp** | **string** | Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address. **RiskCheck** | **string** | +**Tags** | **string** | A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. ### Return type diff --git a/rest/verify/v2/docs/VerifyV2VerificationAttempt.md b/rest/verify/v2/docs/VerifyV2VerificationAttempt.md index e6d3bf685..942425675 100644 --- a/rest/verify/v2/docs/VerifyV2VerificationAttempt.md +++ b/rest/verify/v2/docs/VerifyV2VerificationAttempt.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The date that this Attempt was updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | **ConversionStatus** | Pointer to [**string**](VerificationAttemptEnumConversionStatus.md) | | **Channel** | Pointer to [**string**](VerificationAttemptEnumChannels.md) | | -**Price** | Pointer to **interface{}** | An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/verify/pricing). | +**Price** | Pointer to **interface{}** | An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/en-us/verify/pricing). | **ChannelData** | Pointer to **interface{}** | An object containing the channel specific information for an attempt. | **Url** | Pointer to **string** | | 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/model_verify_v2_verification_attempt.go b/rest/verify/v2/model_verify_v2_verification_attempt.go index e4570537b..df87ddd85 100644 --- a/rest/verify/v2/model_verify_v2_verification_attempt.go +++ b/rest/verify/v2/model_verify_v2_verification_attempt.go @@ -34,7 +34,7 @@ type VerifyV2VerificationAttempt struct { DateUpdated *time.Time `json:"date_updated,omitempty"` ConversionStatus *string `json:"conversion_status,omitempty"` Channel *string `json:"channel,omitempty"` - // An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/verify/pricing). + // An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/en-us/verify/pricing). Price *interface{} `json:"price,omitempty"` // An object containing the channel specific information for an attempt. ChannelData *interface{} `json:"channel_data,omitempty"` diff --git a/rest/verify/v2/services_verifications.go b/rest/verify/v2/services_verifications.go index efa4a82e0..097e35704 100644 --- a/rest/verify/v2/services_verifications.go +++ b/rest/verify/v2/services_verifications.go @@ -54,6 +54,8 @@ type CreateVerificationParams struct { DeviceIp *string `json:"DeviceIp,omitempty"` // RiskCheck *string `json:"RiskCheck,omitempty"` + // A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. + Tags *string `json:"Tags,omitempty"` } func (params *CreateVerificationParams) SetTo(To string) *CreateVerificationParams { @@ -120,6 +122,10 @@ func (params *CreateVerificationParams) SetRiskCheck(RiskCheck string) *CreateVe params.RiskCheck = &RiskCheck return params } +func (params *CreateVerificationParams) SetTags(Tags string) *CreateVerificationParams { + params.Tags = &Tags + return params +} // Create a new Verification using a Service func (c *ApiService) CreateVerification(ServiceSid string, params *CreateVerificationParams) (*VerifyV2Verification, error) { @@ -189,6 +195,9 @@ func (c *ApiService) CreateVerification(ServiceSid string, params *CreateVerific if params != nil && params.RiskCheck != nil { data.Set("RiskCheck", *params.RiskCheck) } + if params != nil && params.Tags != nil { + data.Set("Tags", *params.Tags) + } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { diff --git a/rest/video/v1/README.md b/rest/video/v1/README.md index d9af69c68..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.50.1 +- 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/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/voice/v1/README.md b/rest/voice/v1/README.md index 87e5ef2dc..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.50.1 +- 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/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/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/wireless/v1/README.md b/rest/wireless/v1/README.md index 50713be88..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.50.1 +- 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/twilio.go b/twilio.go index cbba7a44b..1c13fd408 100644 --- a/twilio.go +++ b/twilio.go @@ -33,16 +33,17 @@ import ( IntelligenceV2 "github.com/twilio/twilio-go/rest/intelligence/v2" IpMessagingV1 "github.com/twilio/twilio-go/rest/ip_messaging/v1" IpMessagingV2 "github.com/twilio/twilio-go/rest/ip_messaging/v2" + LookupsBulk "github.com/twilio/twilio-go/rest/lookups/bulk" LookupsV1 "github.com/twilio/twilio-go/rest/lookups/v1" LookupsV2 "github.com/twilio/twilio-go/rest/lookups/v2" MediaV1 "github.com/twilio/twilio-go/rest/media/v1" MessagingV1 "github.com/twilio/twilio-go/rest/messaging/v1" + MessagingBulkV1 "github.com/twilio/twilio-go/rest/messaging_bulk/v1" MicrovisorV1 "github.com/twilio/twilio-go/rest/microvisor/v1" MonitorV1 "github.com/twilio/twilio-go/rest/monitor/v1" 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" - OauthV1 "github.com/twilio/twilio-go/rest/oauth/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" @@ -81,16 +82,17 @@ type RestClient struct { IntelligenceV2 *IntelligenceV2.ApiService IpMessagingV1 *IpMessagingV1.ApiService IpMessagingV2 *IpMessagingV2.ApiService + LookupsBulk *LookupsBulk.ApiService LookupsV1 *LookupsV1.ApiService LookupsV2 *LookupsV2.ApiService MediaV1 *MediaV1.ApiService + MessagingBulkV1 *MessagingBulkV1.ApiService MessagingV1 *MessagingV1.ApiService MicrovisorV1 *MicrovisorV1.ApiService MonitorV1 *MonitorV1.ApiService NotifyV1 *NotifyV1.ApiService NumbersV1 *NumbersV1.ApiService NumbersV2 *NumbersV2.ApiService - OauthV1 *OauthV1.ApiService PricingV1 *PricingV1.ApiService PricingV2 *PricingV2.ApiService ProxyV1 *ProxyV1.ApiService @@ -176,16 +178,17 @@ func NewRestClientWithParams(params ClientParams) *RestClient { c.IntelligenceV2 = IntelligenceV2.NewApiService(c.RequestHandler) c.IpMessagingV1 = IpMessagingV1.NewApiService(c.RequestHandler) c.IpMessagingV2 = IpMessagingV2.NewApiService(c.RequestHandler) + c.LookupsBulk = LookupsBulk.NewApiService(c.RequestHandler) c.LookupsV1 = LookupsV1.NewApiService(c.RequestHandler) c.LookupsV2 = LookupsV2.NewApiService(c.RequestHandler) c.MediaV1 = MediaV1.NewApiService(c.RequestHandler) + c.MessagingBulkV1 = MessagingBulkV1.NewApiService(c.RequestHandler) c.MessagingV1 = MessagingV1.NewApiService(c.RequestHandler) c.MicrovisorV1 = MicrovisorV1.NewApiService(c.RequestHandler) c.MonitorV1 = MonitorV1.NewApiService(c.RequestHandler) c.NotifyV1 = NotifyV1.NewApiService(c.RequestHandler) c.NumbersV1 = NumbersV1.NewApiService(c.RequestHandler) c.NumbersV2 = NumbersV2.NewApiService(c.RequestHandler) - c.OauthV1 = OauthV1.NewApiService(c.RequestHandler) c.PricingV1 = PricingV1.NewApiService(c.RequestHandler) c.PricingV2 = PricingV2.NewApiService(c.RequestHandler) c.ProxyV1 = ProxyV1.NewApiService(c.RequestHandler)