Skip to content

Commit 159d0dd

Browse files
committed
[Librarian] Regenerated @ 54f479b2e9ba3ddad939d35c077bf4875093bb86
1 parent b535741 commit 159d0dd

File tree

1,658 files changed

+15359
-15504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,658 files changed

+15359
-15504
lines changed

CHANGES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
twilio-go changelog
22
====================
3+
[2022-07-21] Version 1.0.0-rc.5
4+
-------------------------------
5+
**Flex**
6+
- Add `status`, `error_code`, and `error_message` fields to Interaction `Channel`
7+
- Adding `messenger` and `gbm` as supported channels for Interactions API
8+
9+
**Messaging**
10+
- Update alpha_sender docs with new valid characters
11+
12+
**Verify**
13+
- Reorder Verification Check parameters so `code` stays as the first parameter **(breaking change)**
14+
- Rollback List Attempts API V2 back to pilot stage.
15+
16+
317
[2022-07-13] Version 1.0.0-rc.4
418
-------------------------------
519
**Library - Fix**

rest/accounts/v1/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
55
## Overview
66
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.
77

8-
- API version: 1.31.0
8+
- API version: 1.32.0
99
- Package version: 1.0.0
1010
- Build package: com.twilio.oai.TwilioGoGenerator
1111
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
@@ -48,13 +48,13 @@ Class | Method | HTTP request | Description
4848

4949
## Documentation For Models
5050

51+
- [ListCredentialAwsResponse](docs/ListCredentialAwsResponse.md)
52+
- [ListCredentialPublicKeyResponse](docs/ListCredentialPublicKeyResponse.md)
53+
- [AccountsV1SecondaryAuthToken](docs/AccountsV1SecondaryAuthToken.md)
5154
- [AccountsV1AuthTokenPromotion](docs/AccountsV1AuthTokenPromotion.md)
5255
- [AccountsV1CredentialAws](docs/AccountsV1CredentialAws.md)
5356
- [AccountsV1CredentialPublicKey](docs/AccountsV1CredentialPublicKey.md)
54-
- [AccountsV1SecondaryAuthToken](docs/AccountsV1SecondaryAuthToken.md)
55-
- [ListCredentialAwsResponse](docs/ListCredentialAwsResponse.md)
5657
- [ListCredentialAwsResponseMeta](docs/ListCredentialAwsResponseMeta.md)
57-
- [ListCredentialPublicKeyResponse](docs/ListCredentialPublicKeyResponse.md)
5858

5959

6060
## Documentation For Authorization

rest/accounts/v1/credentials_aws.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,14 @@ import (
2525

2626
// Optional parameters for the method 'CreateCredentialAws'
2727
type CreateCredentialAwsParams struct {
28-
// The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.
29-
AccountSid *string `json:"AccountSid,omitempty"`
3028
// A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`
3129
Credentials *string `json:"Credentials,omitempty"`
3230
// A descriptive string that you create to describe the resource. It can be up to 64 characters long.
3331
FriendlyName *string `json:"FriendlyName,omitempty"`
32+
// The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.
33+
AccountSid *string `json:"AccountSid,omitempty"`
3434
}
3535

36-
func (params *CreateCredentialAwsParams) SetAccountSid(AccountSid string) *CreateCredentialAwsParams {
37-
params.AccountSid = &AccountSid
38-
return params
39-
}
4036
func (params *CreateCredentialAwsParams) SetCredentials(Credentials string) *CreateCredentialAwsParams {
4137
params.Credentials = &Credentials
4238
return params
@@ -45,6 +41,10 @@ func (params *CreateCredentialAwsParams) SetFriendlyName(FriendlyName string) *C
4541
params.FriendlyName = &FriendlyName
4642
return params
4743
}
44+
func (params *CreateCredentialAwsParams) SetAccountSid(AccountSid string) *CreateCredentialAwsParams {
45+
params.AccountSid = &AccountSid
46+
return params
47+
}
4848

4949
// Create a new AWS Credential
5050
func (c *ApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*AccountsV1CredentialAws, error) {
@@ -53,15 +53,15 @@ func (c *ApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*Ac
5353
data := url.Values{}
5454
headers := make(map[string]interface{})
5555

56-
if params != nil && params.AccountSid != nil {
57-
data.Set("AccountSid", *params.AccountSid)
58-
}
5956
if params != nil && params.Credentials != nil {
6057
data.Set("Credentials", *params.Credentials)
6158
}
6259
if params != nil && params.FriendlyName != nil {
6360
data.Set("FriendlyName", *params.FriendlyName)
6461
}
62+
if params != nil && params.AccountSid != nil {
63+
data.Set("AccountSid", *params.AccountSid)
64+
}
6565

6666
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
6767
if err != nil {

rest/accounts/v1/credentials_public_keys.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@ import (
2525

2626
// Optional parameters for the method 'CreateCredentialPublicKey'
2727
type CreateCredentialPublicKeyParams struct {
28-
// The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
29-
AccountSid *string `json:"AccountSid,omitempty"`
30-
// A descriptive string that you create to describe the resource. It can be up to 64 characters long.
31-
FriendlyName *string `json:"FriendlyName,omitempty"`
3228
// A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
3329
PublicKey *string `json:"PublicKey,omitempty"`
30+
// A descriptive string that you create to describe the resource. It can be up to 64 characters long.
31+
FriendlyName *string `json:"FriendlyName,omitempty"`
32+
// The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
33+
AccountSid *string `json:"AccountSid,omitempty"`
3434
}
3535

36-
func (params *CreateCredentialPublicKeyParams) SetAccountSid(AccountSid string) *CreateCredentialPublicKeyParams {
37-
params.AccountSid = &AccountSid
36+
func (params *CreateCredentialPublicKeyParams) SetPublicKey(PublicKey string) *CreateCredentialPublicKeyParams {
37+
params.PublicKey = &PublicKey
3838
return params
3939
}
4040
func (params *CreateCredentialPublicKeyParams) SetFriendlyName(FriendlyName string) *CreateCredentialPublicKeyParams {
4141
params.FriendlyName = &FriendlyName
4242
return params
4343
}
44-
func (params *CreateCredentialPublicKeyParams) SetPublicKey(PublicKey string) *CreateCredentialPublicKeyParams {
45-
params.PublicKey = &PublicKey
44+
func (params *CreateCredentialPublicKeyParams) SetAccountSid(AccountSid string) *CreateCredentialPublicKeyParams {
45+
params.AccountSid = &AccountSid
4646
return params
4747
}
4848

@@ -53,14 +53,14 @@ func (c *ApiService) CreateCredentialPublicKey(params *CreateCredentialPublicKey
5353
data := url.Values{}
5454
headers := make(map[string]interface{})
5555

56-
if params != nil && params.AccountSid != nil {
57-
data.Set("AccountSid", *params.AccountSid)
56+
if params != nil && params.PublicKey != nil {
57+
data.Set("PublicKey", *params.PublicKey)
5858
}
5959
if params != nil && params.FriendlyName != nil {
6060
data.Set("FriendlyName", *params.FriendlyName)
6161
}
62-
if params != nil && params.PublicKey != nil {
63-
data.Set("PublicKey", *params.PublicKey)
62+
if params != nil && params.AccountSid != nil {
63+
data.Set("AccountSid", *params.AccountSid)
6464
}
6565

6666
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)

rest/accounts/v1/docs/AccountsV1CredentialAws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**Sid** | Pointer to **string** | The unique string that identifies the resource |
78
**AccountSid** | Pointer to **string** | The SID of the Account that created the resource |
9+
**FriendlyName** | Pointer to **string** | The string that you assigned to describe the resource |
810
**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The RFC 2822 date and time in GMT when the resource was created |
911
**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The RFC 2822 date and time in GMT when the resource was last updated |
10-
**FriendlyName** | Pointer to **string** | The string that you assigned to describe the resource |
11-
**Sid** | Pointer to **string** | The unique string that identifies the resource |
1212
**Url** | Pointer to **string** | The URI for this resource, relative to `https://accounts.twilio.com` |
1313

1414
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

rest/accounts/v1/docs/AccountsV1CredentialPublicKey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**Sid** | Pointer to **string** | The unique string that identifies the resource |
78
**AccountSid** | Pointer to **string** | The SID of the Account that created the Credential that the PublicKey resource belongs to |
9+
**FriendlyName** | Pointer to **string** | The string that you assigned to describe the resource |
810
**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The RFC 2822 date and time in GMT when the resource was created |
911
**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The RFC 2822 date and time in GMT when the resource was last updated |
10-
**FriendlyName** | Pointer to **string** | The string that you assigned to describe the resource |
11-
**Sid** | Pointer to **string** | The unique string that identifies the resource |
1212
**Url** | Pointer to **string** | The URI for this resource, relative to `https://accounts.twilio.com` |
1313

1414
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

rest/accounts/v1/docs/CredentialsAWSApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Other parameters are passed through a pointer to a CreateCredentialAwsParams str
3131

3232
Name | Type | Description
3333
------------- | ------------- | -------------
34-
**AccountSid** | **string** | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.
3534
**Credentials** | **string** | A string that contains the AWS access credentials in the format &#x60;&lt;AWS_ACCESS_KEY_ID&gt;:&lt;AWS_SECRET_ACCESS_KEY&gt;&#x60;. For example, &#x60;AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY&#x60;
3635
**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long.
36+
**AccountSid** | **string** | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.
3737

3838
### Return type
3939

rest/accounts/v1/docs/CredentialsPublicKeysApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Other parameters are passed through a pointer to a CreateCredentialPublicKeyPara
3131

3232
Name | Type | Description
3333
------------- | ------------- | -------------
34-
**AccountSid** | **string** | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
35-
**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long.
3634
**PublicKey** | **string** | A URL encoded representation of the public key. For example, &#x60;-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----&#x60;
35+
**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long.
36+
**AccountSid** | **string** | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
3737

3838
### Return type
3939

rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**FirstPageUrl** | **string** | |[optional]
8-
**Key** | **string** | |[optional]
98
**NextPageUrl** | **string** | |[optional]
109
**Page** | **int** | |[optional]
1110
**PageSize** | **int** | |[optional]
1211
**PreviousPageUrl** | **string** | |[optional]
1312
**Url** | **string** | |[optional]
13+
**Key** | **string** | |[optional]
1414

1515
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1616

rest/accounts/v1/model_accounts_v1_credential_aws.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ import (
2020

2121
// AccountsV1CredentialAws struct for AccountsV1CredentialAws
2222
type AccountsV1CredentialAws struct {
23+
// The unique string that identifies the resource
24+
Sid *string `json:"sid,omitempty"`
2325
// The SID of the Account that created the resource
2426
AccountSid *string `json:"account_sid,omitempty"`
27+
// The string that you assigned to describe the resource
28+
FriendlyName *string `json:"friendly_name,omitempty"`
2529
// The RFC 2822 date and time in GMT when the resource was created
2630
DateCreated *time.Time `json:"date_created,omitempty"`
2731
// The RFC 2822 date and time in GMT when the resource was last updated
2832
DateUpdated *time.Time `json:"date_updated,omitempty"`
29-
// The string that you assigned to describe the resource
30-
FriendlyName *string `json:"friendly_name,omitempty"`
31-
// The unique string that identifies the resource
32-
Sid *string `json:"sid,omitempty"`
3333
// The URI for this resource, relative to `https://accounts.twilio.com`
3434
Url *string `json:"url,omitempty"`
3535
}

0 commit comments

Comments
 (0)