Skip to content

Commit 61e75eb

Browse files
committed
[Librarian] Regenerated @ c35acb6403159875204e9df8c17f07aca438b6e3 73d02e4e1f49601fe81e10b2293248aeafda0e43
1 parent 1628cba commit 61e75eb

File tree

7 files changed

+307
-12
lines changed

7 files changed

+307
-12
lines changed

CHANGES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2025-10-14] Version 7.8.4
5+
--------------------------
6+
**Library - Chore**
7+
- [PR #763](https://github.com/twilio/twilio-ruby/pull/763): fix test failures. Thanks to [@manisha1997](https://github.com/manisha1997)!
8+
9+
**Api**
10+
- Updated description for property `CallerDisplayName` for participant create request
11+
- Updated description for property `CallerDisplayName` for participant create request
12+
13+
**Accounts**
14+
- FILE_IS_AUTO_GENERATED: false
15+
16+
417
[2025-09-30] Version 7.8.3
518
--------------------------
619
**Library - Chore**

lib/twilio-ruby/rest/accounts/v1.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def initialize(domain)
2525
@bulk_consents = nil
2626
@bulk_contacts = nil
2727
@credentials = nil
28+
@messaging_geopermissions = nil
2829
@safelist = nil
2930
@secondary_auth_token = nil
3031
end
@@ -50,6 +51,11 @@ def credentials
5051
@credentials ||= CredentialList.new self
5152
end
5253
##
54+
# @return [Twilio::REST::Accounts::V1::MessagingGeopermissionsList]
55+
def messaging_geopermissions
56+
@messaging_geopermissions ||= MessagingGeopermissionsList.new self
57+
end
58+
##
5359
# @return [Twilio::REST::Accounts::V1::SafelistList]
5460
def safelist
5561
@safelist ||= SafelistList.new self
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
##
2+
# This code was generated by
3+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
#
7+
# Twilio - Accounts
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+
16+
module Twilio
17+
module REST
18+
class Accounts < AccountsBase
19+
class V1 < Version
20+
class MessagingGeopermissionsList < ListResource
21+
22+
##
23+
# Initialize the MessagingGeopermissionsList
24+
# @param [Version] version Version that contains the resource
25+
# @return [MessagingGeopermissionsList] MessagingGeopermissionsList
26+
def initialize(version)
27+
super(version)
28+
# Path Solution
29+
@solution = { }
30+
@uri = "/Messaging/GeoPermissions"
31+
32+
end
33+
##
34+
# Fetch the MessagingGeopermissionsInstance
35+
# @param [String] country_code The country code to filter the geo permissions. If provided, only the geo permission for the specified country will be returned.
36+
# @return [MessagingGeopermissionsInstance] Fetched MessagingGeopermissionsInstance
37+
def fetch(
38+
country_code: :unset
39+
)
40+
41+
params = Twilio::Values.of({
42+
'CountryCode' => country_code,
43+
})
44+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
45+
46+
47+
48+
49+
50+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
51+
MessagingGeopermissionsInstance.new(
52+
@version,
53+
payload,
54+
)
55+
end
56+
57+
##
58+
# Update the MessagingGeopermissionsInstance
59+
# @param [Array[Hash]] permissions A list of objects where each object represents the Geo Permission to be updated. Each object contains the following fields: `country_code`, unique code for each country of Geo Permission; `type`, permission type of the Geo Permission i.e. country; `enabled`, configure true for enabling the Geo Permission, false for disabling the Geo Permission.
60+
# @return [MessagingGeopermissionsInstance] Updated MessagingGeopermissionsInstance
61+
def update(
62+
permissions: nil
63+
)
64+
65+
data = Twilio::Values.of({
66+
'Permissions' => Twilio.serialize_list(permissions) { |e| Twilio.serialize_object(e) },
67+
})
68+
69+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
70+
71+
72+
73+
74+
75+
payload = @version.update('PATCH', @uri, data: data, headers: headers)
76+
MessagingGeopermissionsInstance.new(
77+
@version,
78+
payload,
79+
)
80+
end
81+
82+
83+
84+
85+
# Provide a user friendly representation
86+
def to_s
87+
'#<Twilio.Accounts.V1.MessagingGeopermissionsList>'
88+
end
89+
end
90+
91+
class MessagingGeopermissionsPage < Page
92+
##
93+
# Initialize the MessagingGeopermissionsPage
94+
# @param [Version] version Version that contains the resource
95+
# @param [Response] response Response from the API
96+
# @param [Hash] solution Path solution for the resource
97+
# @return [MessagingGeopermissionsPage] MessagingGeopermissionsPage
98+
def initialize(version, response, solution)
99+
super(version, response)
100+
101+
# Path Solution
102+
@solution = solution
103+
end
104+
105+
##
106+
# Build an instance of MessagingGeopermissionsInstance
107+
# @param [Hash] payload Payload response from the API
108+
# @return [MessagingGeopermissionsInstance] MessagingGeopermissionsInstance
109+
def get_instance(payload)
110+
MessagingGeopermissionsInstance.new(@version, payload)
111+
end
112+
113+
##
114+
# Provide a user friendly representation
115+
def to_s
116+
'<Twilio.Accounts.V1.MessagingGeopermissionsPage>'
117+
end
118+
end
119+
class MessagingGeopermissionsInstance < InstanceResource
120+
##
121+
# Initialize the MessagingGeopermissionsInstance
122+
# @param [Version] version Version that contains the resource
123+
# @param [Hash] payload payload that contains response from Twilio
124+
# @param [String] account_sid The SID of the
125+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this MessagingGeopermissions
126+
# resource.
127+
# @param [String] sid The SID of the Call resource to fetch.
128+
# @return [MessagingGeopermissionsInstance] MessagingGeopermissionsInstance
129+
def initialize(version, payload )
130+
super(version)
131+
132+
# Marshaled Properties
133+
@properties = {
134+
'permissions' => payload['permissions'],
135+
}
136+
end
137+
138+
139+
##
140+
# @return [Hash] A list of objects where each object represents the result of processing a messaging Geo Permission. Each object contains the following fields: `country_code`, the country code of the country for which the permission was updated; `type`, the type of the permission i.e. country; `enabled`, true if the permission is enabled else false; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
141+
def permissions
142+
@properties['permissions']
143+
end
144+
145+
##
146+
# Provide a user friendly representation
147+
def to_s
148+
"<Twilio.Accounts.V1.MessagingGeopermissionsInstance>"
149+
end
150+
151+
##
152+
# Provide a detailed, user friendly representation
153+
def inspect
154+
"<Twilio.Accounts.V1.MessagingGeopermissionsInstance>"
155+
end
156+
end
157+
158+
end
159+
end
160+
end
161+
end

lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def initialize(version, account_sid: nil, conference_sid: nil)
8383
# @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
8484
# @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
8585
# @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
86-
# @param [String] caller_display_name The name that appears to the called party for this call. Must be between 2 and 255 characters.
86+
# @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
8787
# @return [ParticipantInstance] Created ParticipantInstance
8888
def create(
8989
from: nil,

lib/twilio-ruby/rest/api/v2010/account/message.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def create(
132132
# Lists MessageInstance records from the API as a list.
133133
# Unlike stream(), this operation is eager and will load `limit` records into
134134
# memory before returning.
135-
# @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
136-
# @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
135+
# @param [String] to Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`.
136+
# @param [String] from Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`.
137137
# @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
138138
# @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
139139
# @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
@@ -160,8 +160,8 @@ def list(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset,
160160
# Streams Instance records from the API as an Enumerable.
161161
# This operation lazily loads records as efficiently as possible until the limit
162162
# is reached.
163-
# @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
164-
# @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
163+
# @param [String] to Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`.
164+
# @param [String] from Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`.
165165
# @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
166166
# @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
167167
# @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
@@ -203,8 +203,8 @@ def each
203203
##
204204
# Retrieve a single page of MessageInstance records from the API.
205205
# Request is executed immediately.
206-
# @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
207-
# @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
206+
# @param [String] to Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`.
207+
# @param [String] from Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`.
208208
# @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
209209
# @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
210210
# @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).

0 commit comments

Comments
 (0)