diff --git a/CHANGES.md b/CHANGES.md index 1d3afd1f2..ed56461d9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,14 @@ twilio-go changelog ==================== +[2024-10-17] Version 1.23.4 +--------------------------- +**Api** +- Add response key `country` to fetch AvailablePhoneNumber resource by specific country. + +**Messaging** +- Make library and doc public for requestManagedCert Endpoint + + [2024-10-03] Version 1.23.3 --------------------------- **Messaging** diff --git a/rest/messaging/v1/README.md b/rest/messaging/v1/README.md index 8211d9ff0..d813133cd 100644 --- a/rest/messaging/v1/README.md +++ b/rest/messaging/v1/README.md @@ -47,6 +47,7 @@ Class | Method | HTTP request | Description *LinkShorteningDomainsConfigApi* | [**UpdateDomainConfig**](docs/LinkShorteningDomainsConfigApi.md#updatedomainconfig) | **Post** /v1/LinkShortening/Domains/{DomainSid}/Config | *LinkShorteningDomainsMessagingServicesApi* | [**CreateLinkshorteningMessagingService**](docs/LinkShorteningDomainsMessagingServicesApi.md#createlinkshorteningmessagingservice) | **Post** /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} | *LinkShorteningDomainsMessagingServicesApi* | [**DeleteLinkshorteningMessagingService**](docs/LinkShorteningDomainsMessagingServicesApi.md#deletelinkshorteningmessagingservice) | **Delete** /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid} | +*LinkShorteningDomainsRequestManagedCertApi* | [**UpdateRequestManagedCert**](docs/LinkShorteningDomainsRequestManagedCertApi.md#updaterequestmanagedcert) | **Post** /v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert | *LinkShorteningMessagingServiceDomainConfigApi* | [**FetchDomainConfigMessagingService**](docs/LinkShorteningMessagingServiceDomainConfigApi.md#fetchdomainconfigmessagingservice) | **Get** /v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig | *LinkShorteningMessagingServicesDomainApi* | [**FetchLinkshorteningMessagingServiceDomainAssociation**](docs/LinkShorteningMessagingServicesDomainApi.md#fetchlinkshorteningmessagingservicedomainassociation) | **Get** /v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain | *ServicesApi* | [**CreateService**](docs/ServicesApi.md#createservice) | **Post** /v1/Services | @@ -105,6 +106,7 @@ Class | Method | HTTP request | Description - [ListAlphaSenderResponse](docs/ListAlphaSenderResponse.md) - [ListUsAppToPersonResponse](docs/ListUsAppToPersonResponse.md) - [ListChannelSenderResponse](docs/ListChannelSenderResponse.md) + - [MessagingV1RequestManagedCert](docs/MessagingV1RequestManagedCert.md) - [MessagingV1DomainConfigMessagingService](docs/MessagingV1DomainConfigMessagingService.md) - [MessagingV1Service](docs/MessagingV1Service.md) - [MessagingV1Deactivation](docs/MessagingV1Deactivation.md) diff --git a/rest/messaging/v1/docs/LinkShorteningDomainsRequestManagedCertApi.md b/rest/messaging/v1/docs/LinkShorteningDomainsRequestManagedCertApi.md new file mode 100644 index 000000000..2842939e5 --- /dev/null +++ b/rest/messaging/v1/docs/LinkShorteningDomainsRequestManagedCertApi.md @@ -0,0 +1,51 @@ +# LinkShorteningDomainsRequestManagedCertApi + +All URIs are relative to *https://messaging.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UpdateRequestManagedCert**](LinkShorteningDomainsRequestManagedCertApi.md#UpdateRequestManagedCert) | **Post** /v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert | + + + +## UpdateRequestManagedCert + +> MessagingV1RequestManagedCert UpdateRequestManagedCert(ctx, DomainSid) + + + + + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**DomainSid** | **string** | Unique string used to identify the domain that this certificate should be associated with. + +### Other Parameters + +Other parameters are passed through a pointer to a UpdateRequestManagedCertParams struct + + +Name | Type | Description +------------- | ------------- | ------------- + +### Return type + +[**MessagingV1RequestManagedCert**](MessagingV1RequestManagedCert.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/v1/docs/MessagingV1RequestManagedCert.md b/rest/messaging/v1/docs/MessagingV1RequestManagedCert.md new file mode 100644 index 000000000..422759a30 --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1RequestManagedCert.md @@ -0,0 +1,19 @@ +# MessagingV1RequestManagedCert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DomainSid** | Pointer to **string** | The unique string that we created to identify the Domain resource. | +**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | Date that this Domain was last updated. | +**DateCreated** | Pointer to [**time.Time**](time.Time.md) | Date that this Domain was registered to the Twilio platform to create a new Domain object. | +**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. | +**DomainName** | Pointer to **string** | Full url path for this domain. | +**CertificateSid** | Pointer to **string** | The unique string that we created to identify this Certificate resource. | +**Url** | Pointer to **string** | | +**Managed** | Pointer to **bool** | A boolean flag indicating if the certificate is managed by Twilio. | +**Requesting** | Pointer to **bool** | A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio. | + +[[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/link_shortening_domains_request_managed_cert.go b/rest/messaging/v1/link_shortening_domains_request_managed_cert.go new file mode 100644 index 000000000..78c888b7c --- /dev/null +++ b/rest/messaging/v1/link_shortening_domains_request_managed_cert.go @@ -0,0 +1,46 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Messaging + * 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" + "strings" +) + +// +func (c *ApiService) UpdateRequestManagedCert(DomainSid string) (*MessagingV1RequestManagedCert, error) { + path := "/v1/LinkShortening/Domains/{DomainSid}/RequestManagedCert" + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + + data := url.Values{} + headers := map[string]interface{}{ + "Content-Type": "application/x-www-form-urlencoded", + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1RequestManagedCert{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/messaging/v1/model_messaging_v1_request_managed_cert.go b/rest/messaging/v1/model_messaging_v1_request_managed_cert.go new file mode 100644 index 000000000..7a557dd80 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_request_managed_cert.go @@ -0,0 +1,40 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Messaging + * 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" +) + +// MessagingV1RequestManagedCert struct for MessagingV1RequestManagedCert +type MessagingV1RequestManagedCert struct { + // The unique string that we created to identify the Domain resource. + DomainSid *string `json:"domain_sid,omitempty"` + // Date that this Domain was last updated. + DateUpdated *time.Time `json:"date_updated,omitempty"` + // Date that this Domain was registered to the Twilio platform to create a new Domain object. + DateCreated *time.Time `json:"date_created,omitempty"` + // Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert. + DateExpires *time.Time `json:"date_expires,omitempty"` + // Full url path for this domain. + DomainName *string `json:"domain_name,omitempty"` + // The unique string that we created to identify this Certificate resource. + CertificateSid *string `json:"certificate_sid,omitempty"` + Url *string `json:"url,omitempty"` + // A boolean flag indicating if the certificate is managed by Twilio. + Managed *bool `json:"managed,omitempty"` + // A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio. + Requesting *bool `json:"requesting,omitempty"` +} diff --git a/rest/video/v1/docs/RoomsApi.md b/rest/video/v1/docs/RoomsApi.md index 6c67cd0f2..59aa35d7f 100644 --- a/rest/video/v1/docs/RoomsApi.md +++ b/rest/video/v1/docs/RoomsApi.md @@ -33,14 +33,14 @@ Name | Type | Description **EnableTurn** | **bool** | Deprecated, now always considered to be true. **Type** | **string** | **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`. -**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. -**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. -**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. -**RecordParticipantsOnConnect** | **bool** | Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** -**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*** -**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.*** +**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. +**StatusCallbackMethod** | **string** | The HTTP method Twilio should use to call `status_callback`. Can be `POST` or `GET`. +**MaxParticipants** | **int** | The maximum number of concurrent Participants allowed in the room. The maximum allowed value is 50. +**RecordParticipantsOnConnect** | **bool** | Whether to start recording when Participants connect. +**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`. +**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). **RecordingRules** | [**interface{}**](interface{}.md) | A collection of Recording Rules that describe how to include or exclude matching tracks for recording -**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. +**AudioOnly** | **bool** | When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. **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). **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). **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). diff --git a/rest/video/v1/docs/VideoV1Room.md b/rest/video/v1/docs/VideoV1Room.md index 04fe51f3d..5ce3df412 100644 --- a/rest/video/v1/docs/VideoV1Room.md +++ b/rest/video/v1/docs/VideoV1Room.md @@ -4,25 +4,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Sid** | Pointer to **string** | The unique string that we created to identify the Room resource. | +**Sid** | Pointer to **string** | The unique string that Twilio created to identify the Room resource. | **Status** | Pointer to [**string**](RoomEnumRoomStatus.md) | | **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. | **AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Room resource. | **EnableTurn** | Pointer to **bool** | Deprecated, now always considered to be true. | **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`. | -**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. | -**StatusCallbackMethod** | Pointer to **string** | The HTTP method we use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. | +**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. | +**StatusCallbackMethod** | Pointer to **string** | The HTTP method Twilio uses to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. | **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. | **Duration** | Pointer to **int** | The duration of the room in seconds. | **Type** | Pointer to [**string**](RoomEnumRoomType.md) | | **MaxParticipants** | **int** | The maximum number of concurrent Participants allowed in the room. |[optional] [default to 0] **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] **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. | -**RecordParticipantsOnConnect** | Pointer to **bool** | Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** | -**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*** | -**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.*** | -**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. | +**RecordParticipantsOnConnect** | Pointer to **bool** | Whether to start recording when Participants connect. | +**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`. | +**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). | +**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. | **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] **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] **LargeRoom** | Pointer to **bool** | Indicates if this is a large room. | diff --git a/rest/video/v1/model_video_v1_room.go b/rest/video/v1/model_video_v1_room.go index 5baf59a75..7529ef2d1 100644 --- a/rest/video/v1/model_video_v1_room.go +++ b/rest/video/v1/model_video_v1_room.go @@ -20,7 +20,7 @@ import ( // VideoV1Room struct for VideoV1Room type VideoV1Room struct { - // The unique string that we created to identify the Room resource. + // The unique string that Twilio created to identify the Room resource. Sid *string `json:"sid,omitempty"` Status *string `json:"status,omitempty"` // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -33,9 +33,9 @@ type VideoV1Room struct { EnableTurn *bool `json:"enable_turn,omitempty"` // 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`. UniqueName *string `json:"unique_name,omitempty"` - // 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. + // 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. StatusCallback *string `json:"status_callback,omitempty"` - // The HTTP method we use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. + // The HTTP method Twilio uses to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`. StatusCallbackMethod *string `json:"status_callback_method,omitempty"` // The UTC end time of the room in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. EndTime *time.Time `json:"end_time,omitempty"` @@ -48,13 +48,13 @@ type VideoV1Room struct { MaxParticipantDuration int `json:"max_participant_duration,omitempty"` // 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. MaxConcurrentPublishedTracks *int `json:"max_concurrent_published_tracks,omitempty"` - // Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** + // Whether to start recording when Participants connect. RecordParticipantsOnConnect *bool `json:"record_participants_on_connect,omitempty"` - // 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*** + // An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. VideoCodecs *[]string `json:"video_codecs,omitempty"` - // 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.*** + // 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). MediaRegion *string `json:"media_region,omitempty"` - // When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only. + // When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. AudioOnly *bool `json:"audio_only,omitempty"` // 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. EmptyRoomTimeout int `json:"empty_room_timeout,omitempty"` diff --git a/rest/video/v1/rooms.go b/rest/video/v1/rooms.go index aa1128829..f9b12cda8 100644 --- a/rest/video/v1/rooms.go +++ b/rest/video/v1/rooms.go @@ -32,21 +32,21 @@ type CreateRoomParams struct { Type *string `json:"Type,omitempty"` // 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`. UniqueName *string `json:"UniqueName,omitempty"` - // 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. + // 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. StatusCallback *string `json:"StatusCallback,omitempty"` - // The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. + // The HTTP method Twilio should use to call `status_callback`. Can be `POST` or `GET`. StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - // 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. + // The maximum number of concurrent Participants allowed in the room. The maximum allowed value is 50. MaxParticipants *int `json:"MaxParticipants,omitempty"` - // Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** + // Whether to start recording when Participants connect. RecordParticipantsOnConnect *bool `json:"RecordParticipantsOnConnect,omitempty"` - // 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*** + // An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. VideoCodecs *[]string `json:"VideoCodecs,omitempty"` - // 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.*** + // 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). MediaRegion *string `json:"MediaRegion,omitempty"` // A collection of Recording Rules that describe how to include or exclude matching tracks for recording RecordingRules *interface{} `json:"RecordingRules,omitempty"` - // When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only. + // When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. AudioOnly *bool `json:"AudioOnly,omitempty"` // 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). MaxParticipantDuration *int `json:"MaxParticipantDuration,omitempty"`