Skip to content

Commit

Permalink
[Librarian] Regenerated @ 84b4cd4c23a96109c715a2512bbe8238fae5c394 4f…
Browse files Browse the repository at this point in the history
…23177c4c946a9a5cdaf592718766a9b4816075
  • Loading branch information
twilio-dx committed Jun 18, 2024
1 parent 94ad022 commit bdbb3ec
Show file tree
Hide file tree
Showing 449 changed files with 3,949 additions and 1,312 deletions.
21 changes: 21 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
twilio-go changelog
====================
[2024-06-18] Version 1.22.0
---------------------------
**Events**
- Add `status` and `documentation_url` to Event Types

**Lookups**
- Removed unused `fraud` lookups in V1 only to facilitate rest proxy migration

**Numbers**
- Add date_created field to the Get Port In Request API
- Rename the `status_last_time_updated_timestamp` field to `last_updated` in the Get Port In Phone Number API **(breaking change)**
- Add Rejection reason and rejection reason code to the Get Port In Phone Number API
- Remove the carrier information from the Portability API

**Proxy**
- Change property `type` from enum to ienum

**Trusthub**
- Add skipMessagingUseCase field in compliance_tollfree_inquiry.


[2024-06-06] Version 1.21.1
---------------------------
**Api**
Expand Down
4 changes: 3 additions & 1 deletion rest/accounts/v1/auth_tokens_promote.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func (c *ApiService) UpdateAuthTokenPromotion() (*AccountsV1AuthTokenPromotion,
path := "/v1/AuthTokens/Promote"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
if err != nil {
Expand Down
8 changes: 6 additions & 2 deletions rest/accounts/v1/auth_tokens_secondary.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func (c *ApiService) CreateSecondaryAuthToken() (*AccountsV1SecondaryAuthToken,
path := "/v1/AuthTokens/Secondary"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
if err != nil {
Expand All @@ -46,7 +48,9 @@ func (c *ApiService) DeleteSecondaryAuthToken() error {
path := "/v1/AuthTokens/Secondary"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers)
if err != nil {
Expand Down
20 changes: 15 additions & 5 deletions rest/accounts/v1/credentials_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ func (c *ApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*Ac
path := "/v1/Credentials/AWS"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.Credentials != nil {
data.Set("Credentials", *params.Credentials)
Expand Down Expand Up @@ -84,7 +86,9 @@ func (c *ApiService) DeleteCredentialAws(Sid string) error {
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers)
if err != nil {
Expand All @@ -102,7 +106,9 @@ func (c *ApiService) FetchCredentialAws(Sid string) (*AccountsV1CredentialAws, e
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -141,7 +147,9 @@ func (c *ApiService) PageCredentialAws(params *ListCredentialAwsParams, pageToke
path := "/v1/Credentials/AWS"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
Expand Down Expand Up @@ -272,7 +280,9 @@ func (c *ApiService) UpdateCredentialAws(Sid string, params *UpdateCredentialAws
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down
20 changes: 15 additions & 5 deletions rest/accounts/v1/credentials_public_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ func (c *ApiService) CreateCredentialPublicKey(params *CreateCredentialPublicKey
path := "/v1/Credentials/PublicKeys"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PublicKey != nil {
data.Set("PublicKey", *params.PublicKey)
Expand Down Expand Up @@ -84,7 +86,9 @@ func (c *ApiService) DeleteCredentialPublicKey(Sid string) error {
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers)
if err != nil {
Expand All @@ -102,7 +106,9 @@ func (c *ApiService) FetchCredentialPublicKey(Sid string) (*AccountsV1Credential
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -141,7 +147,9 @@ func (c *ApiService) PageCredentialPublicKey(params *ListCredentialPublicKeyPara
path := "/v1/Credentials/PublicKeys"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
Expand Down Expand Up @@ -272,7 +280,9 @@ func (c *ApiService) UpdateCredentialPublicKey(Sid string, params *UpdateCredent
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down
12 changes: 9 additions & 3 deletions rest/accounts/v1/safe_list_numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*AccountsV1Sa
path := "/v1/SafeList/Numbers"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PhoneNumber != nil {
data.Set("PhoneNumber", *params.PhoneNumber)
Expand Down Expand Up @@ -72,7 +74,9 @@ func (c *ApiService) DeleteSafelist(params *DeleteSafelistParams) error {
path := "/v1/SafeList/Numbers"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PhoneNumber != nil {
data.Set("PhoneNumber", *params.PhoneNumber)
Expand Down Expand Up @@ -104,7 +108,9 @@ func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*AccountsV1Safe
path := "/v1/SafeList/Numbers"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PhoneNumber != nil {
data.Set("PhoneNumber", *params.PhoneNumber)
Expand Down
16 changes: 12 additions & 4 deletions rest/api/v2010/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ func (c *ApiService) CreateAccount(params *CreateAccountParams) (*ApiV2010Accoun
path := "/2010-04-01/Accounts.json"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand All @@ -66,7 +68,9 @@ func (c *ApiService) FetchAccount(Sid string) (*ApiV2010Account, error) {
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -117,7 +121,9 @@ func (c *ApiService) PageAccount(params *ListAccountParams, pageToken, pageNumbe
path := "/2010-04-01/Accounts.json"

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down Expand Up @@ -260,7 +266,9 @@ func (c *ApiService) UpdateAccount(Sid string, params *UpdateAccountParams) (*Ap
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down
20 changes: 15 additions & 5 deletions rest/api/v2010/accounts_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Addres
}

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.CustomerName != nil {
data.Set("CustomerName", *params.CustomerName)
Expand Down Expand Up @@ -174,7 +176,9 @@ func (c *ApiService) DeleteAddress(Sid string, params *DeleteAddressParams) erro
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -208,7 +212,9 @@ func (c *ApiService) FetchAddress(Sid string, params *FetchAddressParams) (*ApiV
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -277,7 +283,9 @@ func (c *ApiService) PageAddress(params *ListAddressParams, pageToken, pageNumbe
}

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.CustomerName != nil {
data.Set("CustomerName", *params.CustomerName)
Expand Down Expand Up @@ -476,7 +484,9 @@ func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*Ap
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down
4 changes: 3 additions & 1 deletion rest/api/v2010/accounts_addresses_dependent_phone_numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ func (c *ApiService) PageDependentPhoneNumber(AddressSid string, params *ListDep
path = strings.Replace(path, "{"+"AddressSid"+"}", AddressSid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
Expand Down
20 changes: 15 additions & 5 deletions rest/api/v2010/accounts_applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ func (c *ApiService) CreateApplication(params *CreateApplicationParams) (*ApiV20
}

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.ApiVersion != nil {
data.Set("ApiVersion", *params.ApiVersion)
Expand Down Expand Up @@ -228,7 +230,9 @@ func (c *ApiService) DeleteApplication(Sid string, params *DeleteApplicationPara
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -262,7 +266,9 @@ func (c *ApiService) FetchApplication(Sid string, params *FetchApplicationParams
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -319,7 +325,9 @@ func (c *ApiService) PageApplication(params *ListApplicationParams, pageToken, p
}

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down Expand Up @@ -554,7 +562,9 @@ func (c *ApiService) UpdateApplication(Sid string, params *UpdateApplicationPara
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.FriendlyName != nil {
data.Set("FriendlyName", *params.FriendlyName)
Expand Down
8 changes: 6 additions & 2 deletions rest/api/v2010/accounts_authorized_connect_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ func (c *ApiService) FetchAuthorizedConnectApp(ConnectAppSid string, params *Fet
path = strings.Replace(path, "{"+"ConnectAppSid"+"}", ConnectAppSid, -1)

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
Expand Down Expand Up @@ -96,7 +98,9 @@ func (c *ApiService) PageAuthorizedConnectApp(params *ListAuthorizedConnectAppPa
}

data := url.Values{}
headers := make(map[string]interface{})
headers := map[string]interface{}{
"Content-Type": "application/x-www-form-urlencoded",
}

if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
Expand Down
Loading

0 comments on commit bdbb3ec

Please sign in to comment.