Skip to content

Commit 30bdc65

Browse files
committed
[Librarian] Regenerated @ e23430afd3fa493c96b42fc37f0314ad84bbe6ef 23e59a55e752d2706cce811cfe03600e929d0fb4
1 parent 7f3095e commit 30bdc65

File tree

44 files changed

+942
-18
lines changed

Some content is hidden

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

44 files changed

+942
-18
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
twilio-go changelog
22
====================
3+
[2025-11-20] Version 1.28.7
4+
---------------------------
5+
**Memory**
6+
- # Memory API Changes
7+
- Added initial Memory API endpoints with darkseagreen badge status
8+
9+
310
[2025-11-11] Version 1.28.6
411
---------------------------
512
**Twiml**

rest/content/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Class | Method | HTTP request | Description
3535
*ContentApi* | [**DeleteContent**](docs/ContentApi.md#deletecontent) | **Delete** /v1/Content/{Sid} | Delete Content
3636
*ContentApi* | [**FetchContent**](docs/ContentApi.md#fetchcontent) | **Get** /v1/Content/{Sid} | Fetch Content
3737
*ContentApi* | [**ListContent**](docs/ContentApi.md#listcontent) | **Get** /v1/Content | List Contents
38+
*ContentApi* | [**UpdateContent**](docs/ContentApi.md#updatecontent) | **Put** /v1/Content/{Sid} | Update Content
3839
*ContentAndApprovalsApi* | [**ListContentAndApprovals**](docs/ContentAndApprovalsApi.md#listcontentandapprovals) | **Get** /v1/ContentAndApprovals | List Content Approvals
3940
*ContentApprovalRequestsApi* | [**FetchApprovalFetch**](docs/ContentApprovalRequestsApi.md#fetchapprovalfetch) | **Get** /v1/Content/{Sid}/ApprovalRequests | Fetch Approval Status
4041
*ContentApprovalRequestsWhatsappApi* | [**CreateApprovalCreate**](docs/ContentApprovalRequestsWhatsappApi.md#createapprovalcreate) | **Post** /v1/Content/{ContentSid}/ApprovalRequests/whatsapp | Create Content Approval Request
@@ -59,6 +60,7 @@ Class | Method | HTTP request | Description
5960
- [FlowsPage](docs/FlowsPage.md)
6061
- [ContentCreateRequest](docs/ContentCreateRequest.md)
6162
- [TwilioListPicker](docs/TwilioListPicker.md)
63+
- [ContentUpdateRequest](docs/ContentUpdateRequest.md)
6264
- [ListContentResponseMeta](docs/ListContentResponseMeta.md)
6365
- [TwilioCarousel](docs/TwilioCarousel.md)
6466
- [TwilioText](docs/TwilioText.md)

rest/content/v1/content.go

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,48 @@ func (c *ApiService) getNextListContentResponse(nextPageUrl string) (interface{}
249249
}
250250
return ps, nil
251251
}
252+
253+
// Optional parameters for the method 'UpdateContent'
254+
type UpdateContentParams struct {
255+
//
256+
ContentUpdateRequest *ContentUpdateRequest `json:"ContentUpdateRequest,omitempty"`
257+
}
258+
259+
func (params *UpdateContentParams) SetContentUpdateRequest(ContentUpdateRequest ContentUpdateRequest) *UpdateContentParams {
260+
params.ContentUpdateRequest = &ContentUpdateRequest
261+
return params
262+
}
263+
264+
// Update a Content resource
265+
func (c *ApiService) UpdateContent(Sid string, params *UpdateContentParams) (*ContentV1Content, error) {
266+
path := "/v1/Content/{Sid}"
267+
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
268+
269+
data := url.Values{}
270+
headers := map[string]interface{}{
271+
"Content-Type": "application/json",
272+
}
273+
274+
body := []byte{}
275+
if params != nil && params.ContentUpdateRequest != nil {
276+
b, err := json.Marshal(*params.ContentUpdateRequest)
277+
if err != nil {
278+
return nil, err
279+
}
280+
body = b
281+
}
282+
283+
resp, err := c.requestHandler.Put(c.baseURL+path, data, headers, body...)
284+
if err != nil {
285+
return nil, err
286+
}
287+
288+
defer resp.Body.Close()
289+
290+
ps := &ContentV1Content{}
291+
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
292+
return nil, err
293+
}
294+
295+
return ps, err
296+
}

rest/content/v1/docs/ContentApi.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**DeleteContent**](ContentApi.md#DeleteContent) | **Delete** /v1/Content/{Sid} | Delete Content
99
[**FetchContent**](ContentApi.md#FetchContent) | **Get** /v1/Content/{Sid} | Fetch Content
1010
[**ListContent**](ContentApi.md#ListContent) | **Get** /v1/Content | List Contents
11+
[**UpdateContent**](ContentApi.md#UpdateContent) | **Put** /v1/Content/{Sid} | Update Content
1112

1213

1314

@@ -173,3 +174,46 @@ Name | Type | Description
173174
[[Back to Model list]](../README.md#documentation-for-models)
174175
[[Back to README]](../README.md)
175176

177+
178+
## UpdateContent
179+
180+
> ContentV1Content UpdateContent(ctx, Sidoptional)
181+
182+
Update Content
183+
184+
Update a Content resource
185+
186+
### Path Parameters
187+
188+
189+
Name | Type | Description
190+
------------- | ------------- | -------------
191+
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
192+
**Sid** | **string** | The Twilio-provided string that uniquely identifies the Content resource to update.
193+
194+
### Other Parameters
195+
196+
Other parameters are passed through a pointer to a UpdateContentParams struct
197+
198+
199+
Name | Type | Description
200+
------------- | ------------- | -------------
201+
**ContentUpdateRequest** | [**ContentUpdateRequest**](ContentUpdateRequest.md) |
202+
203+
### Return type
204+
205+
[**ContentV1Content**](ContentV1Content.md)
206+
207+
### Authorization
208+
209+
[accountSid_authToken](../README.md#accountSid_authToken)
210+
211+
### HTTP request headers
212+
213+
- **Content-Type**: application/json
214+
- **Accept**: application/json
215+
216+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
217+
[[Back to Model list]](../README.md#documentation-for-models)
218+
[[Back to README]](../README.md)
219+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ContentUpdateRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**FriendlyName** | **string** | User defined name of the content |[optional]
8+
**Variables** | **map[string]string** | Key value pairs of variable name to value |[optional]
9+
**Language** | **string** | Language code for the content |[optional]
10+
**Types** | [**Types**](Types.md) | |
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Content
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
package openapi
16+
17+
// ContentUpdateRequest Content update request body
18+
type ContentUpdateRequest struct {
19+
// User defined name of the content
20+
FriendlyName string `json:"friendly_name,omitempty"`
21+
// Key value pairs of variable name to value
22+
Variables map[string]string `json:"variables,omitempty"`
23+
// Language code for the content
24+
Language string `json:"language,omitempty"`
25+
Types Types `json:"types"`
26+
}

rest/iam/v1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Class | Method | HTTP request | Description
6969
- [IamV1AccountSearchRequest](docs/IamV1AccountSearchRequest.md)
7070
- [IamV1NewKey](docs/IamV1NewKey.md)
7171
- [IamV1CreateAccountRequest](docs/IamV1CreateAccountRequest.md)
72+
- [IamV1CreateSubaccountRequest](docs/IamV1CreateSubaccountRequest.md)
7273
- [IamV1EmailChangeResendRequest](docs/IamV1EmailChangeResendRequest.md)
7374
- [ListGetKeysResponseMeta](docs/ListGetKeysResponseMeta.md)
7475
- [IamV1MfaTotpQrCodeUrlResponse](docs/IamV1MfaTotpQrCodeUrlResponse.md)

rest/iam/v1/docs/IamV1CreateAccountRequest.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**OwnerId** | **string** | The owner of the account to be provisioned. |[optional]
8-
**ParentAccountId** | **string** | The parent account ID of the subaccount to be provisioned. |[optional]
7+
**OwnerId** | **string** | The owner of the account to be provisioned. |
98
**FriendlyName** | **string** | |
109
**Tags** | **map[string]string** | |[optional]
1110

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# IamV1CreateSubaccountRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**ParentAccountId** | **string** | The parent account ID of the subaccount to be provisioned. |
8+
**FriendlyName** | **string** | |
9+
**Tags** | **map[string]string** | |[optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

rest/iam/v1/model_iam_v1_create_account_request.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ package openapi
1717
// IamV1CreateAccountRequest struct for IamV1CreateAccountRequest
1818
type IamV1CreateAccountRequest struct {
1919
// The owner of the account to be provisioned.
20-
OwnerId string `json:"ownerId,omitempty"`
21-
// The parent account ID of the subaccount to be provisioned.
22-
ParentAccountId string `json:"parentAccountId,omitempty"`
23-
FriendlyName string `json:"friendlyName"`
24-
Tags map[string]string `json:"tags,omitempty"`
20+
OwnerId string `json:"ownerId"`
21+
FriendlyName string `json:"friendlyName"`
22+
Tags map[string]string `json:"tags,omitempty"`
2523
}

0 commit comments

Comments
 (0)