Skip to content

Commit

Permalink
[Librarian] Regenerated @ d97b0740a0c7cf86beebd56c6973927b07719cde 1f…
Browse files Browse the repository at this point in the history
…c3bb6195ebcbd02451fb8fc9080c695b075d4f
  • Loading branch information
twilio-dx committed Oct 17, 2024
1 parent 398446a commit e6b5ee8
Show file tree
Hide file tree
Showing 10 changed files with 195 additions and 28 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
2 changes: 2 additions & 0 deletions rest/messaging/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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)

19 changes: 19 additions & 0 deletions rest/messaging/v1/docs/MessagingV1RequestManagedCert.md
Original file line number Diff line number Diff line change
@@ -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)


46 changes: 46 additions & 0 deletions rest/messaging/v1/link_shortening_domains_request_managed_cert.go
Original file line number Diff line number Diff line change
@@ -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
}
40 changes: 40 additions & 0 deletions rest/messaging/v1/model_messaging_v1_request_managed_cert.go
Original file line number Diff line number Diff line change
@@ -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"`
}
14 changes: 7 additions & 7 deletions rest/video/v1/docs/RoomsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
14 changes: 7 additions & 7 deletions rest/video/v1/docs/VideoV1Room.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
Loading

0 comments on commit e6b5ee8

Please sign in to comment.