Skip to content

Commit b0406b7

Browse files
committed
[Librarian] Regenerated @ c554bb4a2cf5db7afe4369a63a1515e7acbf55ed
1 parent d691fe0 commit b0406b7

Some content is hidden

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

50 files changed

+2919
-1499
lines changed

CHANGES.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2019-05-15] Version 5.23.0
5+
----------------------------
6+
**Api**
7+
- Make `method` optional for queue members update
8+
9+
**Chat**
10+
- Removed `webhook.*.format` update parameters in Service resource from public library visibility in v1 **(breaking change)**
11+
12+
**Insights**
13+
- Added client metrics as sdk_edge to summary.
14+
- Added optional query param processing_state.
15+
16+
**Numbers**
17+
- Add addtional metadata fields on a Document
18+
- Add status callback fields and parameters
19+
20+
**Taskrouter**
21+
- Added `channel_optimized_routing` attribute to task-channel endpoint
22+
23+
**Video**
24+
- [Rooms] Add Video Subscription API
25+
26+
**Wireless**
27+
- Added `imei` to Data Session resource.
28+
- Remove `imeisv` from Data Session resource. **(breaking change)**
29+
30+
431
[2019-05-01] Version 5.22.3
532
----------------------------
633
**Serverless**

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

+14
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ def update(authorize_redirect_url: :unset, company_name: :unset, deauthorize_cal
227227
)
228228
end
229229

230+
##
231+
# Deletes the ConnectAppInstance
232+
# @return [Boolean] true if delete succeeds, true otherwise
233+
def delete
234+
@version.delete('delete', @uri)
235+
end
236+
230237
##
231238
# Provide a user friendly representation
232239
def to_s
@@ -391,6 +398,13 @@ def update(authorize_redirect_url: :unset, company_name: :unset, deauthorize_cal
391398
)
392399
end
393400

401+
##
402+
# Deletes the ConnectAppInstance
403+
# @return [Boolean] true if delete succeeds, true otherwise
404+
def delete
405+
context.delete
406+
end
407+
394408
##
395409
# Provide a user friendly representation
396410
def to_s

lib/twilio-ruby/rest/api/v2010/account/queue/member.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def fetch
200200
# `POST` and the default is `POST`. `POST` sends the data as encoded form data and
201201
# `GET` sends the data as query parameters.
202202
# @return [MemberInstance] Updated MemberInstance
203-
def update(url: nil, method: nil)
203+
def update(url: nil, method: :unset)
204204
data = Twilio::Values.of({'Url' => url, 'Method' => method, })
205205

206206
payload = @version.update(
@@ -333,7 +333,7 @@ def fetch
333333
# `POST` and the default is `POST`. `POST` sends the data as encoded form data and
334334
# `GET` sends the data as query parameters.
335335
# @return [MemberInstance] Updated MemberInstance
336-
def update(url: nil, method: nil)
336+
def update(url: nil, method: :unset)
337337
context.update(url: url, method: method, )
338338
end
339339

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def initialize(domain)
2020
end
2121

2222
##
23-
# @param [String] sid The sid
23+
# @param [String] sid The Twilio-provided string that uniquely identifies the
24+
# Credential resource to fetch.
2425
# @return [Twilio::REST::Chat::V1::CredentialContext] if sid was passed.
2526
# @return [Twilio::REST::Chat::V1::CredentialList]
2627
def credentials(sid=:unset)
@@ -34,7 +35,8 @@ def credentials(sid=:unset)
3435
end
3536

3637
##
37-
# @param [String] sid The sid
38+
# @param [String] sid The Twilio-provided string that uniquely identifies the
39+
# Service resource to fetch.
3840
# @return [Twilio::REST::Chat::V1::ServiceContext] if sid was passed.
3941
# @return [Twilio::REST::Chat::V1::ServiceList]
4042
def services(sid=:unset)

lib/twilio-ruby/rest/chat/v1/credential.rb

+68-47
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,26 @@ def get_page(target_url)
108108
##
109109
# Retrieve a single page of CredentialInstance records from the API.
110110
# Request is executed immediately.
111-
# @param [credential.PushService] type Credential type, one of "gcm" or "apn"
112-
# @param [String] friendly_name Friendly name for stored credential
113-
# @param [String] certificate [APN only] URL encoded representation of the
114-
# certificate, e.g. `-----BEGIN
115-
# CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
116-
# @param [String] private_key [APN only] URL encoded representation of the private
117-
# key, e.g. `-----BEGIN RSA PRIVATE
118-
# KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
119-
# @param [Boolean] sandbox [APN only] use this credential for sending to
120-
# production or sandbox APNs (string `true` or `false`)
121-
# @param [String] api_key [GCM only] This is the "API key" for project from Google
122-
# Developer console for your GCM Service application credential
123-
# @param [String] secret The secret
111+
# @param [credential.PushService] type The type of push-notification service the
112+
# credential is for. Can be: `gcm`, `fcm`, or `apn`.
113+
# @param [String] friendly_name A descriptive string that you create to describe
114+
# the new resource. It can be up to 64 characters long.
115+
# @param [String] certificate [APN only] The URL encoded representation of the
116+
# certificate. For example,
117+
# `-----BEGIN CERTIFICATE-----
118+
# MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
119+
# -----END CERTIFICATE-----`
120+
# @param [String] private_key [APN only] The URL encoded representation of the
121+
# private key. For example,
122+
# `-----BEGIN RSA PRIVATE KEY-----
123+
# MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
124+
# -----END RSA PRIVATE KEY-----`
125+
# @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
126+
# APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
127+
# @param [String] api_key [GCM only] The API key for the project that was obtained
128+
# from the Google Developer console for your GCM Service application credential.
129+
# @param [String] secret [FCM only] The **Server key** of your project from the
130+
# Firebase console, found under Settings / Cloud messaging.
124131
# @return [CredentialInstance] Newly created CredentialInstance
125132
def create(type: nil, friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
126133
data = Twilio::Values.of({
@@ -182,7 +189,8 @@ class CredentialContext < InstanceContext
182189
##
183190
# Initialize the CredentialContext
184191
# @param [Version] version Version that contains the resource
185-
# @param [String] sid The sid
192+
# @param [String] sid The Twilio-provided string that uniquely identifies the
193+
# Credential resource to fetch.
186194
# @return [CredentialContext] CredentialContext
187195
def initialize(version, sid)
188196
super(version)
@@ -209,18 +217,24 @@ def fetch
209217

210218
##
211219
# Update the CredentialInstance
212-
# @param [String] friendly_name Friendly name for stored credential
213-
# @param [String] certificate [APN only] URL encoded representation of the
214-
# certificate, e.g. `-----BEGIN
215-
# CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
216-
# @param [String] private_key [APN only] URL encoded representation of the private
217-
# key, e.g. `-----BEGIN RSA PRIVATE
218-
# KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
219-
# @param [Boolean] sandbox [APN only] use this credential for sending to
220-
# production or sandbox APNs (string `true` or `false`)
221-
# @param [String] api_key [GCM only] This is the "API key" for project from Google
222-
# Developer console for your GCM Service application credential
223-
# @param [String] secret The secret
220+
# @param [String] friendly_name A descriptive string that you create to describe
221+
# the resource. It can be up to 64 characters long.
222+
# @param [String] certificate [APN only] The URL encoded representation of the
223+
# certificate. For example,
224+
# `-----BEGIN CERTIFICATE-----
225+
# MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
226+
# -----END CERTIFICATE-----`
227+
# @param [String] private_key [APN only] The URL encoded representation of the
228+
# private key. For example,
229+
# `-----BEGIN RSA PRIVATE KEY-----
230+
# MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
231+
# -----END RSA PRIVATE KEY-----`
232+
# @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
233+
# APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
234+
# @param [String] api_key [GCM only] The API key for the project that was obtained
235+
# from the Google Developer console for your GCM Service application credential.
236+
# @param [String] secret [FCM only] The **Server key** of your project from the
237+
# Firebase console, found under Settings / Cloud messaging.
224238
# @return [CredentialInstance] Updated CredentialInstance
225239
def update(friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
226240
data = Twilio::Values.of({
@@ -268,7 +282,8 @@ class CredentialInstance < InstanceResource
268282
# Initialize the CredentialInstance
269283
# @param [Version] version Version that contains the resource
270284
# @param [Hash] payload payload that contains response from Twilio
271-
# @param [String] sid The sid
285+
# @param [String] sid The Twilio-provided string that uniquely identifies the
286+
# Credential resource to fetch.
272287
# @return [CredentialInstance] CredentialInstance
273288
def initialize(version, payload, sid: nil)
274289
super(version)
@@ -302,49 +317,49 @@ def context
302317
end
303318

304319
##
305-
# @return [String] A 34 character string that uniquely identifies this resource.
320+
# @return [String] The unique string that identifies the resource
306321
def sid
307322
@properties['sid']
308323
end
309324

310325
##
311-
# @return [String] The unique id of the Account[/console] responsible for this resource.
326+
# @return [String] The SID of the Account that created the resource
312327
def account_sid
313328
@properties['account_sid']
314329
end
315330

316331
##
317-
# @return [String] The human-readable name of this resource.
332+
# @return [String] The string that you assigned to describe the resource
318333
def friendly_name
319334
@properties['friendly_name']
320335
end
321336

322337
##
323-
# @return [credential.PushService] Indicates which push notifications service this credential is for - either gcm or apn
338+
# @return [credential.PushService] The type of push-notification service the credential is for
324339
def type
325340
@properties['type']
326341
end
327342

328343
##
329-
# @return [String] [APN only] true when this resource should use the sandbox APN service.
344+
# @return [String] [APN only] Whether to send the credential to sandbox APNs
330345
def sandbox
331346
@properties['sandbox']
332347
end
333348

334349
##
335-
# @return [Time] The date that this resource was created.
350+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
336351
def date_created
337352
@properties['date_created']
338353
end
339354

340355
##
341-
# @return [Time] The date that this resource was last updated.
356+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
342357
def date_updated
343358
@properties['date_updated']
344359
end
345360

346361
##
347-
# @return [String] An absolute URL for this credential resource.
362+
# @return [String] The absolute URL of the Credential resource
348363
def url
349364
@properties['url']
350365
end
@@ -358,18 +373,24 @@ def fetch
358373

359374
##
360375
# Update the CredentialInstance
361-
# @param [String] friendly_name Friendly name for stored credential
362-
# @param [String] certificate [APN only] URL encoded representation of the
363-
# certificate, e.g. `-----BEGIN
364-
# CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
365-
# @param [String] private_key [APN only] URL encoded representation of the private
366-
# key, e.g. `-----BEGIN RSA PRIVATE
367-
# KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
368-
# @param [Boolean] sandbox [APN only] use this credential for sending to
369-
# production or sandbox APNs (string `true` or `false`)
370-
# @param [String] api_key [GCM only] This is the "API key" for project from Google
371-
# Developer console for your GCM Service application credential
372-
# @param [String] secret The secret
376+
# @param [String] friendly_name A descriptive string that you create to describe
377+
# the resource. It can be up to 64 characters long.
378+
# @param [String] certificate [APN only] The URL encoded representation of the
379+
# certificate. For example,
380+
# `-----BEGIN CERTIFICATE-----
381+
# MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
382+
# -----END CERTIFICATE-----`
383+
# @param [String] private_key [APN only] The URL encoded representation of the
384+
# private key. For example,
385+
# `-----BEGIN RSA PRIVATE KEY-----
386+
# MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
387+
# -----END RSA PRIVATE KEY-----`
388+
# @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
389+
# APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
390+
# @param [String] api_key [GCM only] The API key for the project that was obtained
391+
# from the Google Developer console for your GCM Service application credential.
392+
# @param [String] secret [FCM only] The **Server key** of your project from the
393+
# Firebase console, found under Settings / Cloud messaging.
373394
# @return [CredentialInstance] Updated CredentialInstance
374395
def update(friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
375396
context.update(

0 commit comments

Comments
 (0)