twilio-ruby 5.9.0 → 5.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +36 -24
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +34 -25
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +30 -21
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +10 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +6 -7
  14. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +12 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -6
  18. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +10 -8
  19. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +10 -8
  20. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +11 -9
  21. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +0 -1
  22. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -1
  23. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +9 -6
  24. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +9 -3
  25. data/lib/twilio-ruby/rest/api/v2010/account.rb +13 -9
  26. data/lib/twilio-ruby/rest/chat/v1/credential.rb +42 -24
  27. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +38 -18
  28. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +60 -24
  29. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +28 -18
  30. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +33 -24
  31. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +26 -16
  32. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -2
  33. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +43 -24
  34. data/lib/twilio-ruby/rest/chat/v1/service.rb +74 -44
  35. data/lib/twilio-ruby/rest/chat/v2/credential.rb +61 -27
  36. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +41 -18
  37. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -25
  38. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +76 -37
  39. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +432 -0
  40. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +90 -35
  41. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +23 -16
  42. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +4 -2
  43. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +43 -25
  44. data/lib/twilio-ruby/rest/chat/v2/service.rb +93 -53
  45. data/lib/twilio-ruby/rest/chat.rb +4 -2
  46. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +42 -24
  47. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +38 -18
  48. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +60 -24
  49. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +28 -18
  50. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +33 -24
  51. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +26 -16
  52. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -2
  53. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +43 -24
  54. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +74 -44
  55. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +61 -27
  56. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +41 -18
  57. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -25
  58. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +76 -37
  59. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +432 -0
  60. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +90 -35
  61. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +23 -16
  62. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +4 -2
  63. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +43 -25
  64. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +93 -53
  65. data/lib/twilio-ruby/rest/ip_messaging.rb +4 -2
  66. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +12 -11
  67. data/lib/twilio-ruby/rest/monitor/v1/event.rb +11 -11
  68. data/lib/twilio-ruby/rest/monitor.rb +1 -1
  69. data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -22
  70. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +59 -26
  71. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +104 -29
  72. data/lib/twilio-ruby/rest/notify/v1/service.rb +86 -48
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +2 -2
  74. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  75. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +22 -16
  76. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +21 -15
  77. data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +17 -14
  78. data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +36 -25
  79. data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +21 -15
  80. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +19 -13
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +42 -28
  82. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +39 -21
  83. data/lib/twilio-ruby/rest/preview.rb +10 -9
  84. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +5 -5
  85. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -4
  86. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +3 -3
  87. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -5
  88. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +12 -13
  89. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +28 -22
  90. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +7 -5
  91. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -14
  92. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +3 -3
  93. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +2 -2
  94. data/lib/twilio-ruby/rest/sync/v1/service.rb +24 -27
  95. data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
  96. data/lib/twilio-ruby/rest/video/v1/recording.rb +45 -31
  97. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +1 -1
  98. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +18 -6
  99. data/lib/twilio-ruby/rest/video/v1.rb +13 -12
  100. data/lib/twilio-ruby/rest/video.rb +9 -8
  101. data/lib/twilio-ruby/rest/wireless/v1/command.rb +43 -33
  102. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +48 -35
  103. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +21 -23
  104. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -22
  105. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +121 -70
  106. data/lib/twilio-ruby/rest/wireless.rb +6 -3
  107. data/lib/twilio-ruby/version.rb +1 -1
  108. data/spec/integration/chat/v2/service/channel/webhook_spec.rb +307 -0
  109. data/spec/integration/chat/v2/service/channel_spec.rb +4 -0
  110. data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +307 -0
  111. data/spec/integration/ip_messaging/v2/service/channel_spec.rb +4 -0
  112. metadata +9 -3
@@ -28,18 +28,34 @@ module Twilio
28
28
  ##
29
29
  # Retrieve a single page of ServiceInstance records from the API.
30
30
  # Request is executed immediately.
31
- # @param [String] friendly_name The friendly_name
32
- # @param [String] apn_credential_sid The apn_credential_sid
33
- # @param [String] gcm_credential_sid The gcm_credential_sid
34
- # @param [String] messaging_service_sid The messaging_service_sid
35
- # @param [String] facebook_messenger_page_id The facebook_messenger_page_id
36
- # @param [String] default_apn_notification_protocol_version The
37
- # default_apn_notification_protocol_version
38
- # @param [String] default_gcm_notification_protocol_version The
39
- # default_gcm_notification_protocol_version
40
- # @param [String] fcm_credential_sid The fcm_credential_sid
41
- # @param [String] default_fcm_notification_protocol_version The
42
- # default_fcm_notification_protocol_version
31
+ # @param [String] friendly_name Human-readable name for this service instance
32
+ # @param [String] apn_credential_sid The SID of the
33
+ # [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for
34
+ # APN Bindings.
35
+ # @param [String] gcm_credential_sid The SID of the
36
+ # [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for
37
+ # GCM Bindings.
38
+ # @param [String] messaging_service_sid The SID of the [Messaging
39
+ # Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
40
+ # @param [String] facebook_messenger_page_id The Page ID to be used to send for
41
+ # Facebook Messenger Bindings. It has to match the Page ID you configured when you
42
+ # [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on
43
+ # your account.
44
+ # @param [String] default_apn_notification_protocol_version The version of the
45
+ # protocol to be used for sending APNS notifications. Can be overriden on a
46
+ # Binding by Binding basis when creating a
47
+ # [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
48
+ # @param [String] default_gcm_notification_protocol_version The version of the
49
+ # protocol to be used for sending GCM notifications. Can be overriden on a Binding
50
+ # by Binding basis when creating a
51
+ # [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
52
+ # @param [String] fcm_credential_sid The SID of the
53
+ # [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for
54
+ # FCM Bindings.
55
+ # @param [String] default_fcm_notification_protocol_version The version of the
56
+ # protocol to be used for sending FCM notifications. Can be overriden on a Binding
57
+ # by Binding basis when creating a
58
+ # [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
43
59
  # @param [Boolean] log_enabled The log_enabled
44
60
  # @param [String] alexa_skill_id The alexa_skill_id
45
61
  # @param [String] default_alexa_notification_protocol_version The
@@ -74,7 +90,7 @@ module Twilio
74
90
  # Lists ServiceInstance records from the API as a list.
75
91
  # Unlike stream(), this operation is eager and will load `limit` records into
76
92
  # memory before returning.
77
- # @param [String] friendly_name The friendly_name
93
+ # @param [String] friendly_name Filter services by FriendlyName
78
94
  # @param [Integer] limit Upper limit for the number of records to return. stream()
79
95
  # guarantees to never return more than limit. Default is no limit
80
96
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -90,7 +106,7 @@ module Twilio
90
106
  # Streams ServiceInstance records from the API as an Enumerable.
91
107
  # This operation lazily loads records as efficiently as possible until the limit
92
108
  # is reached.
93
- # @param [String] friendly_name The friendly_name
109
+ # @param [String] friendly_name Filter services by FriendlyName
94
110
  # @param [Integer] limit Upper limit for the number of records to return. stream()
95
111
  # guarantees to never return more than limit. Default is no limit.
96
112
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -123,7 +139,7 @@ module Twilio
123
139
  ##
124
140
  # Retrieve a single page of ServiceInstance records from the API.
125
141
  # Request is executed immediately.
126
- # @param [String] friendly_name The friendly_name
142
+ # @param [String] friendly_name Filter services by FriendlyName
127
143
  # @param [String] page_token PageToken provided by the API
128
144
  # @param [Integer] page_number Page Number, this value is simply for client state
129
145
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -240,18 +256,29 @@ module Twilio
240
256
 
241
257
  ##
242
258
  # Update the ServiceInstance
243
- # @param [String] friendly_name The friendly_name
244
- # @param [String] apn_credential_sid The apn_credential_sid
245
- # @param [String] gcm_credential_sid The gcm_credential_sid
246
- # @param [String] messaging_service_sid The messaging_service_sid
247
- # @param [String] facebook_messenger_page_id The facebook_messenger_page_id
248
- # @param [String] default_apn_notification_protocol_version The
249
- # default_apn_notification_protocol_version
250
- # @param [String] default_gcm_notification_protocol_version The
251
- # default_gcm_notification_protocol_version
252
- # @param [String] fcm_credential_sid The fcm_credential_sid
253
- # @param [String] default_fcm_notification_protocol_version The
254
- # default_fcm_notification_protocol_version
259
+ # @param [String] friendly_name Human-readable name for this service instance
260
+ # @param [String] apn_credential_sid The SID of the default Credential to be used
261
+ # for APN Bindings
262
+ # @param [String] gcm_credential_sid The SID of the default Credential to be used
263
+ # for GCM Bindings
264
+ # @param [String] messaging_service_sid The SID of the [Messaging
265
+ # Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
266
+ # @param [String] facebook_messenger_page_id The Page ID to be used to send for
267
+ # Facebook Messenger Bindings. It has to match the Page ID you configured when you
268
+ # [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on
269
+ # your account. Facebook Messenger integration is in beta. You need to be in the
270
+ # beta program to be able to enable Facebook Messaging for your account.
271
+ # @param [String] default_apn_notification_protocol_version The version of the
272
+ # protocol to be used for sending APNS notifications. Can be overriden on a
273
+ # Binding by Binding basis when creating a Binding resource.
274
+ # @param [String] default_gcm_notification_protocol_version The version of the
275
+ # protocol to be used for sending GCM notifications. Can be overriden on a Binding
276
+ # by Binding basis when creating a Binding resource.
277
+ # @param [String] fcm_credential_sid The SID of the default Credential to be used
278
+ # for FCM Bindings
279
+ # @param [String] default_fcm_notification_protocol_version The version of the
280
+ # protocol to be used for sending FCM notifications. Can be overriden on a Binding
281
+ # by Binding basis when creating a Binding resource.
255
282
  # @param [Boolean] log_enabled The log_enabled
256
283
  # @param [String] alexa_skill_id The alexa_skill_id
257
284
  # @param [String] default_alexa_notification_protocol_version The
@@ -413,7 +440,7 @@ module Twilio
413
440
  end
414
441
 
415
442
  ##
416
- # @return [String] The friendly_name
443
+ # @return [String] Human-readable name for this service instance
417
444
  def friendly_name
418
445
  @properties['friendly_name']
419
446
  end
@@ -431,49 +458,49 @@ module Twilio
431
458
  end
432
459
 
433
460
  ##
434
- # @return [String] The apn_credential_sid
461
+ # @return [String] The SID of the Credential to be used for APN Bindings.
435
462
  def apn_credential_sid
436
463
  @properties['apn_credential_sid']
437
464
  end
438
465
 
439
466
  ##
440
- # @return [String] The gcm_credential_sid
467
+ # @return [String] The SID of the Credential to be used for GCM Bindings.
441
468
  def gcm_credential_sid
442
469
  @properties['gcm_credential_sid']
443
470
  end
444
471
 
445
472
  ##
446
- # @return [String] The fcm_credential_sid
473
+ # @return [String] The SID of the Credential to be used for FCM Bindings.
447
474
  def fcm_credential_sid
448
475
  @properties['fcm_credential_sid']
449
476
  end
450
477
 
451
478
  ##
452
- # @return [String] The messaging_service_sid
479
+ # @return [String] The SID of the Messaging Service to be used for SMS Bindings.
453
480
  def messaging_service_sid
454
481
  @properties['messaging_service_sid']
455
482
  end
456
483
 
457
484
  ##
458
- # @return [String] The facebook_messenger_page_id
485
+ # @return [String] The Page ID to be used to send for Facebook Messenger Bindings.
459
486
  def facebook_messenger_page_id
460
487
  @properties['facebook_messenger_page_id']
461
488
  end
462
489
 
463
490
  ##
464
- # @return [String] The default_apn_notification_protocol_version
491
+ # @return [String] The version of the protocol to be used for sending APNS notifications.
465
492
  def default_apn_notification_protocol_version
466
493
  @properties['default_apn_notification_protocol_version']
467
494
  end
468
495
 
469
496
  ##
470
- # @return [String] The default_gcm_notification_protocol_version
497
+ # @return [String] The version of the protocol to be used for sending GCM notifications.
471
498
  def default_gcm_notification_protocol_version
472
499
  @properties['default_gcm_notification_protocol_version']
473
500
  end
474
501
 
475
502
  ##
476
- # @return [String] The default_fcm_notification_protocol_version
503
+ # @return [String] The version of the protocol to be used for sending FCM notifications.
477
504
  def default_fcm_notification_protocol_version
478
505
  @properties['default_fcm_notification_protocol_version']
479
506
  end
@@ -524,18 +551,29 @@ module Twilio
524
551
 
525
552
  ##
526
553
  # Update the ServiceInstance
527
- # @param [String] friendly_name The friendly_name
528
- # @param [String] apn_credential_sid The apn_credential_sid
529
- # @param [String] gcm_credential_sid The gcm_credential_sid
530
- # @param [String] messaging_service_sid The messaging_service_sid
531
- # @param [String] facebook_messenger_page_id The facebook_messenger_page_id
532
- # @param [String] default_apn_notification_protocol_version The
533
- # default_apn_notification_protocol_version
534
- # @param [String] default_gcm_notification_protocol_version The
535
- # default_gcm_notification_protocol_version
536
- # @param [String] fcm_credential_sid The fcm_credential_sid
537
- # @param [String] default_fcm_notification_protocol_version The
538
- # default_fcm_notification_protocol_version
554
+ # @param [String] friendly_name Human-readable name for this service instance
555
+ # @param [String] apn_credential_sid The SID of the default Credential to be used
556
+ # for APN Bindings
557
+ # @param [String] gcm_credential_sid The SID of the default Credential to be used
558
+ # for GCM Bindings
559
+ # @param [String] messaging_service_sid The SID of the [Messaging
560
+ # Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
561
+ # @param [String] facebook_messenger_page_id The Page ID to be used to send for
562
+ # Facebook Messenger Bindings. It has to match the Page ID you configured when you
563
+ # [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on
564
+ # your account. Facebook Messenger integration is in beta. You need to be in the
565
+ # beta program to be able to enable Facebook Messaging for your account.
566
+ # @param [String] default_apn_notification_protocol_version The version of the
567
+ # protocol to be used for sending APNS notifications. Can be overriden on a
568
+ # Binding by Binding basis when creating a Binding resource.
569
+ # @param [String] default_gcm_notification_protocol_version The version of the
570
+ # protocol to be used for sending GCM notifications. Can be overriden on a Binding
571
+ # by Binding basis when creating a Binding resource.
572
+ # @param [String] fcm_credential_sid The SID of the default Credential to be used
573
+ # for FCM Bindings
574
+ # @param [String] default_fcm_notification_protocol_version The version of the
575
+ # protocol to be used for sending FCM notifications. Can be overriden on a Binding
576
+ # by Binding basis when creating a Binding resource.
539
577
  # @param [Boolean] log_enabled The log_enabled
540
578
  # @param [String] alexa_skill_id The alexa_skill_id
541
579
  # @param [String] default_alexa_notification_protocol_version The
@@ -137,8 +137,8 @@ module Twilio
137
137
  # Address resource that is associated with this AuthorizationDocument.
138
138
  # @param [String] email Email that this AuthorizationDocument will be sent to for
139
139
  # signing.
140
- # @param [String] cc_emails A list of emails that this AuthorizationDocument will
141
- # be carbon copied to.
140
+ # @param [String] cc_emails Email recipients who will be informed when an
141
+ # Authorization Document has been sent and signed.
142
142
  # @return [AuthorizationDocumentInstance] Newly created AuthorizationDocumentInstance
143
143
  def create(hosted_number_order_sids: nil, address_sid: nil, email: nil, cc_emails: :unset)
144
144
  data = Twilio::Values.of({
@@ -15,37 +15,37 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'marketplace'
18
- @available_add_ons = nil
19
18
  @installed_add_ons = nil
19
+ @available_add_ons = nil
20
20
  end
21
21
 
22
22
  ##
23
- # @param [String] sid The Available Add-on Sid that uniquely identifies this
23
+ # @param [String] sid The Installed Add-on Sid that uniquely identifies this
24
24
  # resource
25
- # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnContext] if sid was passed.
26
- # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
27
- def available_add_ons(sid=:unset)
25
+ # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnContext] if sid was passed.
26
+ # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
27
+ def installed_add_ons(sid=:unset)
28
28
  if sid.nil?
29
29
  raise ArgumentError, 'sid cannot be nil'
30
30
  elsif sid == :unset
31
- @available_add_ons ||= AvailableAddOnList.new self
31
+ @installed_add_ons ||= InstalledAddOnList.new self
32
32
  else
33
- AvailableAddOnContext.new(self, sid)
33
+ InstalledAddOnContext.new(self, sid)
34
34
  end
35
35
  end
36
36
 
37
37
  ##
38
- # @param [String] sid The Installed Add-on Sid that uniquely identifies this
38
+ # @param [String] sid The Available Add-on Sid that uniquely identifies this
39
39
  # resource
40
- # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnContext] if sid was passed.
41
- # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
42
- def installed_add_ons(sid=:unset)
40
+ # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnContext] if sid was passed.
41
+ # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
42
+ def available_add_ons(sid=:unset)
43
43
  if sid.nil?
44
44
  raise ArgumentError, 'sid cannot be nil'
45
45
  elsif sid == :unset
46
- @installed_add_ons ||= InstalledAddOnList.new self
46
+ @available_add_ons ||= AvailableAddOnList.new self
47
47
  else
48
- InstalledAddOnContext.new(self, sid)
48
+ AvailableAddOnContext.new(self, sid)
49
49
  end
50
50
  end
51
51
 
@@ -18,8 +18,9 @@ module Twilio
18
18
  ##
19
19
  # Initialize the FieldValueList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] assistant_sid The assistant_sid
22
- # @param [String] field_type_sid The field_type_sid
21
+ # @param [String] assistant_sid The unique ID of the Assistant.
22
+ # @param [String] field_type_sid The unique ID of the Field Type associated with
23
+ # this Field Value.
23
24
  # @return [FieldValueList] FieldValueList
24
25
  def initialize(version, assistant_sid: nil, field_type_sid: nil)
25
26
  super(version)
@@ -33,7 +34,8 @@ module Twilio
33
34
  # Lists FieldValueInstance records from the API as a list.
34
35
  # Unlike stream(), this operation is eager and will load `limit` records into
35
36
  # memory before returning.
36
- # @param [String] language The language
37
+ # @param [String] language An ISO language-country string of the value. For
38
+ # example: *en-US*
37
39
  # @param [Integer] limit Upper limit for the number of records to return. stream()
38
40
  # guarantees to never return more than limit. Default is no limit
39
41
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -49,7 +51,8 @@ module Twilio
49
51
  # Streams FieldValueInstance records from the API as an Enumerable.
50
52
  # This operation lazily loads records as efficiently as possible until the limit
51
53
  # is reached.
52
- # @param [String] language The language
54
+ # @param [String] language An ISO language-country string of the value. For
55
+ # example: *en-US*
53
56
  # @param [Integer] limit Upper limit for the number of records to return. stream()
54
57
  # guarantees to never return more than limit. Default is no limit.
55
58
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -82,7 +85,8 @@ module Twilio
82
85
  ##
83
86
  # Retrieve a single page of FieldValueInstance records from the API.
84
87
  # Request is executed immediately.
85
- # @param [String] language The language
88
+ # @param [String] language An ISO language-country string of the value. For
89
+ # example: *en-US*
86
90
  # @param [String] page_token PageToken provided by the API
87
91
  # @param [Integer] page_number Page Number, this value is simply for client state
88
92
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -118,8 +122,9 @@ module Twilio
118
122
  ##
119
123
  # Retrieve a single page of FieldValueInstance records from the API.
120
124
  # Request is executed immediately.
121
- # @param [String] language The language
122
- # @param [String] value The value
125
+ # @param [String] language An ISO language-country string of the value.
126
+ # @param [String] value A user-provided string that uniquely identifies this
127
+ # resource as an alternative to the sid. Unique up to 64 characters long.
123
128
  # @param [String] synonym_of The synonym_of
124
129
  # @return [FieldValueInstance] Newly created FieldValueInstance
125
130
  def create(language: nil, value: nil, synonym_of: :unset)
@@ -243,8 +248,9 @@ module Twilio
243
248
  # Initialize the FieldValueInstance
244
249
  # @param [Version] version Version that contains the resource
245
250
  # @param [Hash] payload payload that contains response from Twilio
246
- # @param [String] assistant_sid The assistant_sid
247
- # @param [String] field_type_sid The field_type_sid
251
+ # @param [String] assistant_sid The unique ID of the Assistant.
252
+ # @param [String] field_type_sid The unique ID of the Field Type associated with
253
+ # this Field Value.
248
254
  # @param [String] sid The sid
249
255
  # @return [FieldValueInstance] FieldValueInstance
250
256
  def initialize(version, payload, assistant_sid: nil, field_type_sid: nil, sid: nil)
@@ -290,43 +296,43 @@ module Twilio
290
296
  end
291
297
 
292
298
  ##
293
- # @return [String] The account_sid
299
+ # @return [String] The unique ID of the Account that created this Field Value.
294
300
  def account_sid
295
301
  @properties['account_sid']
296
302
  end
297
303
 
298
304
  ##
299
- # @return [Time] The date_created
305
+ # @return [Time] The date that this resource was created
300
306
  def date_created
301
307
  @properties['date_created']
302
308
  end
303
309
 
304
310
  ##
305
- # @return [Time] The date_updated
311
+ # @return [Time] The date that this resource was last updated
306
312
  def date_updated
307
313
  @properties['date_updated']
308
314
  end
309
315
 
310
316
  ##
311
- # @return [String] The field_type_sid
317
+ # @return [String] The unique ID of the Field Type associated with this Field Value.
312
318
  def field_type_sid
313
319
  @properties['field_type_sid']
314
320
  end
315
321
 
316
322
  ##
317
- # @return [String] The language
323
+ # @return [String] An ISO language-country string of the value.
318
324
  def language
319
325
  @properties['language']
320
326
  end
321
327
 
322
328
  ##
323
- # @return [String] The assistant_sid
329
+ # @return [String] The unique ID of the Assistant.
324
330
  def assistant_sid
325
331
  @properties['assistant_sid']
326
332
  end
327
333
 
328
334
  ##
329
- # @return [String] The sid
335
+ # @return [String] A 34 character string that uniquely identifies this resource.
330
336
  def sid
331
337
  @properties['sid']
332
338
  end
@@ -17,7 +17,7 @@ module Twilio
17
17
  ##
18
18
  # Initialize the FieldTypeList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] assistant_sid The assistant_sid
20
+ # @param [String] assistant_sid The unique ID of the Assistant.
21
21
  # @return [FieldTypeList] FieldTypeList
22
22
  def initialize(version, assistant_sid: nil)
23
23
  super(version)
@@ -112,8 +112,10 @@ module Twilio
112
112
  ##
113
113
  # Retrieve a single page of FieldTypeInstance records from the API.
114
114
  # Request is executed immediately.
115
- # @param [String] unique_name The unique_name
116
- # @param [String] friendly_name The friendly_name
115
+ # @param [String] unique_name A user-provided string that uniquely identifies this
116
+ # resource as an alternative to the sid. Unique up to 64 characters long.
117
+ # @param [String] friendly_name A user-provided string that identifies this
118
+ # resource. It is non-unique and can up to 255 characters long.
117
119
  # @return [FieldTypeInstance] Newly created FieldTypeInstance
118
120
  def create(unique_name: nil, friendly_name: :unset)
119
121
  data = Twilio::Values.of({'UniqueName' => unique_name, 'FriendlyName' => friendly_name, })
@@ -207,8 +209,10 @@ module Twilio
207
209
 
208
210
  ##
209
211
  # Update the FieldTypeInstance
210
- # @param [String] friendly_name The friendly_name
211
- # @param [String] unique_name The unique_name
212
+ # @param [String] friendly_name A user-provided string that identifies this
213
+ # resource. It is non-unique and can up to 255 characters long.
214
+ # @param [String] unique_name A user-provided string that uniquely identifies this
215
+ # resource as an alternative to the sid. Unique up to 64 characters long.
212
216
  # @return [FieldTypeInstance] Updated FieldTypeInstance
213
217
  def update(friendly_name: :unset, unique_name: :unset)
214
218
  data = Twilio::Values.of({'FriendlyName' => friendly_name, 'UniqueName' => unique_name, })
@@ -271,7 +275,7 @@ module Twilio
271
275
  # Initialize the FieldTypeInstance
272
276
  # @param [Version] version Version that contains the resource
273
277
  # @param [Hash] payload payload that contains response from Twilio
274
- # @param [String] assistant_sid The assistant_sid
278
+ # @param [String] assistant_sid The unique ID of the Assistant.
275
279
  # @param [String] sid The sid
276
280
  # @return [FieldTypeInstance] FieldTypeInstance
277
281
  def initialize(version, payload, assistant_sid: nil, sid: nil)
@@ -307,25 +311,25 @@ module Twilio
307
311
  end
308
312
 
309
313
  ##
310
- # @return [String] The account_sid
314
+ # @return [String] The unique ID of the Account that created this Field Type.
311
315
  def account_sid
312
316
  @properties['account_sid']
313
317
  end
314
318
 
315
319
  ##
316
- # @return [Time] The date_created
320
+ # @return [Time] The date that this resource was created
317
321
  def date_created
318
322
  @properties['date_created']
319
323
  end
320
324
 
321
325
  ##
322
- # @return [Time] The date_updated
326
+ # @return [Time] The date that this resource was last updated
323
327
  def date_updated
324
328
  @properties['date_updated']
325
329
  end
326
330
 
327
331
  ##
328
- # @return [String] The friendly_name
332
+ # @return [String] A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.
329
333
  def friendly_name
330
334
  @properties['friendly_name']
331
335
  end
@@ -337,19 +341,19 @@ module Twilio
337
341
  end
338
342
 
339
343
  ##
340
- # @return [String] The assistant_sid
344
+ # @return [String] The unique ID of the Assistant.
341
345
  def assistant_sid
342
346
  @properties['assistant_sid']
343
347
  end
344
348
 
345
349
  ##
346
- # @return [String] The sid
350
+ # @return [String] A 34 character string that uniquely identifies this resource.
347
351
  def sid
348
352
  @properties['sid']
349
353
  end
350
354
 
351
355
  ##
352
- # @return [String] The unique_name
356
+ # @return [String] A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
353
357
  def unique_name
354
358
  @properties['unique_name']
355
359
  end
@@ -369,8 +373,10 @@ module Twilio
369
373
 
370
374
  ##
371
375
  # Update the FieldTypeInstance
372
- # @param [String] friendly_name The friendly_name
373
- # @param [String] unique_name The unique_name
376
+ # @param [String] friendly_name A user-provided string that identifies this
377
+ # resource. It is non-unique and can up to 255 characters long.
378
+ # @param [String] unique_name A user-provided string that uniquely identifies this
379
+ # resource as an alternative to the sid. Unique up to 64 characters long.
374
380
  # @return [FieldTypeInstance] Updated FieldTypeInstance
375
381
  def update(friendly_name: :unset, unique_name: :unset)
376
382
  context.update(friendly_name: friendly_name, unique_name: unique_name, )