Skip to content

Commit e6b5ee8

Browse files
committed
[Librarian] Regenerated @ d97b0740a0c7cf86beebd56c6973927b07719cde 1fc3bb6195ebcbd02451fb8fc9080c695b075d4f
1 parent 398446a commit e6b5ee8

10 files changed

+195
-28
lines changed

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
twilio-go changelog
22
====================
3+
[2024-10-17] Version 1.23.4
4+
---------------------------
5+
**Api**
6+
- Add response key `country` to fetch AvailablePhoneNumber resource by specific country.
7+
8+
**Messaging**
9+
- Make library and doc public for requestManagedCert Endpoint
10+
11+
312
[2024-10-03] Version 1.23.3
413
---------------------------
514
**Messaging**

rest/messaging/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Class | Method | HTTP request | Description
4747
*LinkShorteningDomainsConfigApi* | [**UpdateDomainConfig**](docs/LinkShorteningDomainsConfigApi.md#updatedomainconfig) | **Post** /v1/LinkShortening/Domains/{DomainSid}/Config |
4848
*LinkShorteningDomainsMessagingServicesApi* | [**CreateLinkshorteningMessagingService**](docs/LinkShorteningDomainsMessagingServicesApi.md#createlinkshorteningmessagingservice) | **Post** /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} |
4949
*LinkShorteningDomainsMessagingServicesApi* | [**DeleteLinkshorteningMessagingService**](docs/LinkShorteningDomainsMessagingServicesApi.md#deletelinkshorteningmessagingservice) | **Delete** /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} |
50+
*LinkShorteningDomainsRequestManagedCertApi* | [**UpdateRequestManagedCert**](docs/LinkShorteningDomainsRequestManagedCertApi.md#updaterequestmanagedcert) | **Post** /v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert |
5051
*LinkShorteningMessagingServiceDomainConfigApi* | [**FetchDomainConfigMessagingService**](docs/LinkShorteningMessagingServiceDomainConfigApi.md#fetchdomainconfigmessagingservice) | **Get** /v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig |
5152
*LinkShorteningMessagingServicesDomainApi* | [**FetchLinkshorteningMessagingServiceDomainAssociation**](docs/LinkShorteningMessagingServicesDomainApi.md#fetchlinkshorteningmessagingservicedomainassociation) | **Get** /v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain |
5253
*ServicesApi* | [**CreateService**](docs/ServicesApi.md#createservice) | **Post** /v1/Services |
@@ -105,6 +106,7 @@ Class | Method | HTTP request | Description
105106
- [ListAlphaSenderResponse](docs/ListAlphaSenderResponse.md)
106107
- [ListUsAppToPersonResponse](docs/ListUsAppToPersonResponse.md)
107108
- [ListChannelSenderResponse](docs/ListChannelSenderResponse.md)
109+
- [MessagingV1RequestManagedCert](docs/MessagingV1RequestManagedCert.md)
108110
- [MessagingV1DomainConfigMessagingService](docs/MessagingV1DomainConfigMessagingService.md)
109111
- [MessagingV1Service](docs/MessagingV1Service.md)
110112
- [MessagingV1Deactivation](docs/MessagingV1Deactivation.md)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# LinkShorteningDomainsRequestManagedCertApi
2+
3+
All URIs are relative to *https://messaging.twilio.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**UpdateRequestManagedCert**](LinkShorteningDomainsRequestManagedCertApi.md#UpdateRequestManagedCert) | **Post** /v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert |
8+
9+
10+
11+
## UpdateRequestManagedCert
12+
13+
> MessagingV1RequestManagedCert UpdateRequestManagedCert(ctx, DomainSid)
14+
15+
16+
17+
18+
19+
### Path Parameters
20+
21+
22+
Name | Type | Description
23+
------------- | ------------- | -------------
24+
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
25+
**DomainSid** | **string** | Unique string used to identify the domain that this certificate should be associated with.
26+
27+
### Other Parameters
28+
29+
Other parameters are passed through a pointer to a UpdateRequestManagedCertParams struct
30+
31+
32+
Name | Type | Description
33+
------------- | ------------- | -------------
34+
35+
### Return type
36+
37+
[**MessagingV1RequestManagedCert**](MessagingV1RequestManagedCert.md)
38+
39+
### Authorization
40+
41+
[accountSid_authToken](../README.md#accountSid_authToken)
42+
43+
### HTTP request headers
44+
45+
- **Content-Type**: Not defined
46+
- **Accept**: application/json
47+
48+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
49+
[[Back to Model list]](../README.md#documentation-for-models)
50+
[[Back to README]](../README.md)
51+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# MessagingV1RequestManagedCert
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**DomainSid** | Pointer to **string** | The unique string that we created to identify the Domain resource. |
8+
**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | Date that this Domain was last updated. |
9+
**DateCreated** | Pointer to [**time.Time**](time.Time.md) | Date that this Domain was registered to the Twilio platform to create a new Domain object. |
10+
**DateExpires** | Pointer to [**time.Time**](time.Time.md) | Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert. |
11+
**DomainName** | Pointer to **string** | Full url path for this domain. |
12+
**CertificateSid** | Pointer to **string** | The unique string that we created to identify this Certificate resource. |
13+
**Url** | Pointer to **string** | |
14+
**Managed** | Pointer to **bool** | A boolean flag indicating if the certificate is managed by Twilio. |
15+
**Requesting** | Pointer to **bool** | A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio. |
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Messaging
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+
import (
18+
"encoding/json"
19+
"net/url"
20+
"strings"
21+
)
22+
23+
//
24+
func (c *ApiService) UpdateRequestManagedCert(DomainSid string) (*MessagingV1RequestManagedCert, error) {
25+
path := "/v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert"
26+
path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1)
27+
28+
data := url.Values{}
29+
headers := map[string]interface{}{
30+
"Content-Type": "application/x-www-form-urlencoded",
31+
}
32+
33+
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
34+
if err != nil {
35+
return nil, err
36+
}
37+
38+
defer resp.Body.Close()
39+
40+
ps := &MessagingV1RequestManagedCert{}
41+
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
42+
return nil, err
43+
}
44+
45+
return ps, err
46+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Messaging
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+
import (
18+
"time"
19+
)
20+
21+
// MessagingV1RequestManagedCert struct for MessagingV1RequestManagedCert
22+
type MessagingV1RequestManagedCert struct {
23+
// The unique string that we created to identify the Domain resource.
24+
DomainSid *string `json:"domain_sid,omitempty"`
25+
// Date that this Domain was last updated.
26+
DateUpdated *time.Time `json:"date_updated,omitempty"`
27+
// Date that this Domain was registered to the Twilio platform to create a new Domain object.
28+
DateCreated *time.Time `json:"date_created,omitempty"`
29+
// Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert.
30+
DateExpires *time.Time `json:"date_expires,omitempty"`
31+
// Full url path for this domain.
32+
DomainName *string `json:"domain_name,omitempty"`
33+
// The unique string that we created to identify this Certificate resource.
34+
CertificateSid *string `json:"certificate_sid,omitempty"`
35+
Url *string `json:"url,omitempty"`
36+
// A boolean flag indicating if the certificate is managed by Twilio.
37+
Managed *bool `json:"managed,omitempty"`
38+
// A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
39+
Requesting *bool `json:"requesting,omitempty"`
40+
}

rest/video/v1/docs/RoomsApi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ Name | Type | Description
3333
**EnableTurn** | **bool** | Deprecated, now always considered to be true.
3434
**Type** | **string** |
3535
**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource, assuming it does not contain any [reserved characters](https://tools.ietf.org/html/rfc3986#section-2.2) that would need to be URL encoded. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`.
36-
**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
37-
**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`.
38-
**MaxParticipants** | **int** | The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants.
39-
**RecordParticipantsOnConnect** | **bool** | Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.***
40-
**VideoCodecs** | [**[]RoomEnumVideoCodec**](RoomEnumVideoCodec.md) | An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms***
41-
**MediaRegion** | **string** | The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.***
36+
**StatusCallback** | **string** | The URL Twilio should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
37+
**StatusCallbackMethod** | **string** | The HTTP method Twilio should use to call `status_callback`. Can be `POST` or `GET`.
38+
**MaxParticipants** | **int** | The maximum number of concurrent Participants allowed in the room. The maximum allowed value is 50.
39+
**RecordParticipantsOnConnect** | **bool** | Whether to start recording when Participants connect.
40+
**VideoCodecs** | [**[]RoomEnumVideoCodec**](RoomEnumVideoCodec.md) | An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`.
41+
**MediaRegion** | **string** | The region for the Room's media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers).
4242
**RecordingRules** | [**interface{}**](interface{}.md) | A collection of Recording Rules that describe how to include or exclude matching tracks for recording
43-
**AudioOnly** | **bool** | When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only.
43+
**AudioOnly** | **bool** | When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed.
4444
**MaxParticipantDuration** | **int** | The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours).
4545
**EmptyRoomTimeout** | **int** | Configures how long (in minutes) a room will remain active after last participant leaves. Valid values range from 1 to 60 minutes (no fractions).
4646
**UnusedRoomTimeout** | **int** | Configures how long (in minutes) a room will remain active if no one joins. Valid values range from 1 to 60 minutes (no fractions).

rest/video/v1/docs/VideoV1Room.md

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

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Sid** | Pointer to **string** | The unique string that we created to identify the Room resource. |
7+
**Sid** | Pointer to **string** | The unique string that Twilio created to identify the Room resource. |
88
**Status** | Pointer to [**string**](RoomEnumRoomStatus.md) | |
99
**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. |
1010
**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. |
1111
**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Room resource. |
1212
**EnableTurn** | Pointer to **bool** | Deprecated, now always considered to be true. |
1313
**UniqueName** | Pointer to **string** | An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource, assuming it does not contain any [reserved characters](https://tools.ietf.org/html/rfc3986#section-2.2) that would need to be URL encoded. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. |
14-
**StatusCallback** | Pointer to **string** | The URL we call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. |
15-
**StatusCallbackMethod** | Pointer to **string** | The HTTP method we use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. |
14+
**StatusCallback** | Pointer to **string** | The URL Twilio calls using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. |
15+
**StatusCallbackMethod** | Pointer to **string** | The HTTP method Twilio uses to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. |
1616
**EndTime** | Pointer to [**time.Time**](time.Time.md) | The UTC end time of the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. |
1717
**Duration** | Pointer to **int** | The duration of the room in seconds. |
1818
**Type** | Pointer to [**string**](RoomEnumRoomType.md) | |
1919
**MaxParticipants** | **int** | The maximum number of concurrent Participants allowed in the room. |[optional] [default to 0]
2020
**MaxParticipantDuration** | **int** | The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours). |[optional] [default to 0]
2121
**MaxConcurrentPublishedTracks** | Pointer to **int** | The maximum number of published audio, video, and data tracks all participants combined are allowed to publish in the room at the same time. Check [Programmable Video Limits](https://www.twilio.com/docs/video/programmable-video-limits) for more details. If it is set to 0 it means unconstrained. |
22-
**RecordParticipantsOnConnect** | Pointer to **bool** | Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** |
23-
**VideoCodecs** | Pointer to [**[]string**](RoomEnumVideoCodec.md) | An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** |
24-
**MediaRegion** | Pointer to **string** | The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers). ***This feature is not available in `peer-to-peer` rooms.*** |
25-
**AudioOnly** | Pointer to **bool** | When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only. |
22+
**RecordParticipantsOnConnect** | Pointer to **bool** | Whether to start recording when Participants connect. |
23+
**VideoCodecs** | Pointer to [**[]string**](RoomEnumVideoCodec.md) | An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. |
24+
**MediaRegion** | Pointer to **string** | The region for the Room's media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers). |
25+
**AudioOnly** | Pointer to **bool** | When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. |
2626
**EmptyRoomTimeout** | **int** | Specifies how long (in minutes) a room will remain active after last participant leaves. Can be configured when creating a room via REST API. For Ad-Hoc rooms this value cannot be changed. |[optional] [default to 0]
2727
**UnusedRoomTimeout** | **int** | Specifies how long (in minutes) a room will remain active if no one joins. Can be configured when creating a room via REST API. For Ad-Hoc rooms this value cannot be changed. |[optional] [default to 0]
2828
**LargeRoom** | Pointer to **bool** | Indicates if this is a large room. |

0 commit comments

Comments
 (0)