twilio-ruby 5.39.1 → 5.40.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGES.md +101 -1
  4. data/CONTRIBUTING.md +2 -2
  5. data/ISSUE_TEMPLATE.md +5 -1
  6. data/Makefile +1 -1
  7. data/PULL_REQUEST_TEMPLATE.md +1 -1
  8. data/README.md +4 -3
  9. data/lib/twilio-ruby/framework/version.rb +2 -7
  10. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +6 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +3 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +79 -60
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +14 -0
  14. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +14 -0
  15. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +14 -0
  16. data/lib/twilio-ruby/rest/client.rb +7 -0
  17. data/lib/twilio-ruby/rest/conversations.rb +52 -0
  18. data/lib/twilio-ruby/rest/conversations/v1.rb +88 -1
  19. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +258 -0
  20. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +15 -4
  21. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +19 -10
  22. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +12 -2
  23. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +427 -0
  24. data/lib/twilio-ruby/rest/conversations/v1/notification.rb +310 -0
  25. data/lib/twilio-ruby/rest/conversations/v1/role.rb +372 -0
  26. data/lib/twilio-ruby/rest/conversations/v1/service.rb +442 -0
  27. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +385 -0
  28. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +259 -0
  29. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +586 -0
  30. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +546 -0
  31. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +388 -0
  32. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +513 -0
  33. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +454 -0
  34. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +393 -0
  35. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +419 -0
  36. data/lib/twilio-ruby/rest/conversations/v1/user.rb +398 -0
  37. data/lib/twilio-ruby/rest/events.rb +63 -0
  38. data/lib/twilio-ruby/rest/events/v1.rb +74 -0
  39. data/lib/twilio-ruby/rest/events/v1/event_type.rb +291 -0
  40. data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
  41. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
  42. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
  43. data/lib/twilio-ruby/rest/events/v1/subscription.rb +363 -0
  44. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
  45. data/lib/twilio-ruby/rest/messaging.rb +6 -0
  46. data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
  47. data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
  48. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
  49. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
  50. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
  51. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +45 -4
  52. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
  53. data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -13
  54. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +6 -6
  55. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +5 -5
  56. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +8 -8
  57. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -8
  58. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +8 -8
  59. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -14
  60. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
  61. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +7 -7
  62. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +1 -1
  63. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
  64. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +39 -9
  65. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +75 -9
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -1
  67. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +25 -3
  68. data/lib/twilio-ruby/rest/verify/v2/service.rb +21 -9
  69. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -2
  70. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
  71. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
  72. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -19
  73. data/lib/twilio-ruby/version.rb +1 -1
  74. data/spec/framework/version_spec.rb +42 -0
  75. data/spec/holodeck/holodeck.rb +3 -3
  76. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
  77. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
  78. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
  79. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
  80. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  81. data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
  82. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
  83. data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
  84. data/spec/integration/conversations/v1/configuration_spec.rb +85 -0
  85. data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +4 -0
  86. data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
  87. data/spec/integration/conversations/v1/conversation/participant_spec.rb +60 -4
  88. data/spec/integration/conversations/v1/conversation_spec.rb +35 -0
  89. data/spec/integration/conversations/v1/credential_spec.rb +219 -0
  90. data/spec/integration/conversations/v1/notification_spec.rb +107 -0
  91. data/spec/integration/conversations/v1/role_spec.rb +249 -0
  92. data/spec/integration/conversations/v1/service/binding_spec.rb +166 -0
  93. data/spec/integration/conversations/v1/service/configuration_spec.rb +87 -0
  94. data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +144 -0
  95. data/spec/integration/conversations/v1/service/conversation/message_spec.rb +429 -0
  96. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +407 -0
  97. data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +299 -0
  98. data/spec/integration/conversations/v1/service/conversation_spec.rb +289 -0
  99. data/spec/integration/conversations/v1/service/role_spec.rb +260 -0
  100. data/spec/integration/conversations/v1/service/user_spec.rb +230 -0
  101. data/spec/integration/conversations/v1/service_spec.rb +174 -0
  102. data/spec/integration/conversations/v1/user_spec.rb +220 -0
  103. data/spec/integration/events/v1/event_type_spec.rb +133 -0
  104. data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
  105. data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
  106. data/spec/integration/events/v1/sink_spec.rb +217 -0
  107. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
  108. data/spec/integration/events/v1/subscription_spec.rb +205 -0
  109. data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
  110. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
  111. data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +27 -0
  112. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
  113. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
  114. data/spec/integration/supersim/v1/sim_spec.rb +23 -0
  115. data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
  116. data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
  117. data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
  118. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
  119. data/spec/integration/video/v1/room_spec.rb +37 -0
  120. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  121. data/spec/spec_helper.rb +1 -1
  122. metadata +70 -2
@@ -48,7 +48,7 @@ module Twilio
48
48
 
49
49
  ##
50
50
  # Access the end_users
51
- # @param [String] sid The unique string that we created to identify the End User
51
+ # @param [String] sid The unique string created by Twilio to identify the End User
52
52
  # resource.
53
53
  # @return [EndUserList]
54
54
  # @return [EndUserContext] if sid was passed.
@@ -95,8 +95,8 @@ module Twilio
95
95
 
96
96
  ##
97
97
  # Access the supporting_documents
98
- # @param [String] sid The unique string that we created to identify the Supporting
99
- # Document resource.
98
+ # @param [String] sid The unique string created by Twilio to identify the
99
+ # Supporting Document resource.
100
100
  # @return [SupportingDocumentList]
101
101
  # @return [SupportingDocumentContext] if sid was passed.
102
102
  def supporting_documents(sid=:unset)
@@ -165,7 +165,7 @@ module Twilio
165
165
  ##
166
166
  # Initialize the EndUserContext
167
167
  # @param [Version] version Version that contains the resource
168
- # @param [String] sid The unique string that we created to identify the End User
168
+ # @param [String] sid The unique string created by Twilio to identify the End User
169
169
  # resource.
170
170
  # @return [EndUserContext] EndUserContext
171
171
  def initialize(version, sid)
@@ -203,6 +203,13 @@ module Twilio
203
203
  EndUserInstance.new(@version, payload, sid: @solution[:sid], )
204
204
  end
205
205
 
206
+ ##
207
+ # Delete the EndUserInstance
208
+ # @return [Boolean] true if delete succeeds, false otherwise
209
+ def delete
210
+ @version.delete('DELETE', @uri)
211
+ end
212
+
206
213
  ##
207
214
  # Provide a user friendly representation
208
215
  def to_s
@@ -223,7 +230,7 @@ module Twilio
223
230
  # Initialize the EndUserInstance
224
231
  # @param [Version] version Version that contains the resource
225
232
  # @param [Hash] payload payload that contains response from Twilio
226
- # @param [String] sid The unique string that we created to identify the End User
233
+ # @param [String] sid The unique string created by Twilio to identify the End User
227
234
  # resource.
228
235
  # @return [EndUserInstance] EndUserInstance
229
236
  def initialize(version, payload, sid: nil)
@@ -323,6 +330,13 @@ module Twilio
323
330
  context.update(friendly_name: friendly_name, attributes: attributes, )
324
331
  end
325
332
 
333
+ ##
334
+ # Delete the EndUserInstance
335
+ # @return [Boolean] true if delete succeeds, false otherwise
336
+ def delete
337
+ context.delete
338
+ end
339
+
326
340
  ##
327
341
  # Provide a user friendly representation
328
342
  def to_s
@@ -164,8 +164,8 @@ module Twilio
164
164
  ##
165
165
  # Initialize the SupportingDocumentContext
166
166
  # @param [Version] version Version that contains the resource
167
- # @param [String] sid The unique string that we created to identify the Supporting
168
- # Document resource.
167
+ # @param [String] sid The unique string created by Twilio to identify the
168
+ # Supporting Document resource.
169
169
  # @return [SupportingDocumentContext] SupportingDocumentContext
170
170
  def initialize(version, sid)
171
171
  super(version)
@@ -202,6 +202,13 @@ module Twilio
202
202
  SupportingDocumentInstance.new(@version, payload, sid: @solution[:sid], )
203
203
  end
204
204
 
205
+ ##
206
+ # Delete the SupportingDocumentInstance
207
+ # @return [Boolean] true if delete succeeds, false otherwise
208
+ def delete
209
+ @version.delete('DELETE', @uri)
210
+ end
211
+
205
212
  ##
206
213
  # Provide a user friendly representation
207
214
  def to_s
@@ -222,8 +229,8 @@ module Twilio
222
229
  # Initialize the SupportingDocumentInstance
223
230
  # @param [Version] version Version that contains the resource
224
231
  # @param [Hash] payload payload that contains response from Twilio
225
- # @param [String] sid The unique string that we created to identify the Supporting
226
- # Document resource.
232
+ # @param [String] sid The unique string created by Twilio to identify the
233
+ # Supporting Document resource.
227
234
  # @return [SupportingDocumentInstance] SupportingDocumentInstance
228
235
  def initialize(version, payload, sid: nil)
229
236
  super(version)
@@ -336,6 +343,13 @@ module Twilio
336
343
  context.update(friendly_name: friendly_name, attributes: attributes, )
337
344
  end
338
345
 
346
+ ##
347
+ # Delete the SupportingDocumentInstance
348
+ # @return [Boolean] true if delete succeeds, false otherwise
349
+ def delete
350
+ context.delete
351
+ end
352
+
339
353
  ##
340
354
  # Provide a user friendly representation
341
355
  def to_s
@@ -127,8 +127,20 @@ module Twilio
127
127
  # on create.
128
128
  # @param [Hash] participants The Participant objects to include in the new
129
129
  # session.
130
+ # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
131
+ # the ProxyAllowParticipantConflict account flag, setting to true enables
132
+ # per-request opt-in to allowing Proxy to reject a Session create (with
133
+ # Participants) request that could cause the same Identifier/ProxyIdentifier pair
134
+ # to be active in multiple Sessions. Depending on the context, this could be a 409
135
+ # error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not
136
+ # provided, requests will be allowed to succeed and a Debugger notification
137
+ # (80802) will be emitted. Having multiple, active Participants with the same
138
+ # Identifier/ProxyIdentifier pair causes calls and messages from affected
139
+ # Participants to be routed incorrectly. Please note, the default behavior for
140
+ # accounts without the ProxyAllowParticipantConflict flag is to reject the request
141
+ # as described. This will eventually be the default for all accounts.
130
142
  # @return [SessionInstance] Created SessionInstance
131
- def create(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset)
143
+ def create(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset, fail_on_participant_conflict: :unset)
132
144
  data = Twilio::Values.of({
133
145
  'UniqueName' => unique_name,
134
146
  'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
@@ -136,6 +148,7 @@ module Twilio
136
148
  'Mode' => mode,
137
149
  'Status' => status,
138
150
  'Participants' => Twilio.serialize_list(participants) { |e| Twilio.serialize_object(e) },
151
+ 'FailOnParticipantConflict' => fail_on_participant_conflict,
139
152
  })
140
153
 
141
154
  payload = @version.create('POST', @uri, data: data)
@@ -230,12 +243,24 @@ module Twilio
230
243
  # is measured from the last Session create or the Session's last Interaction.
231
244
  # @param [session.Status] status The new status of the resource. Can be:
232
245
  # `in-progress` to re-open a session or `closed` to close a session.
246
+ # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
247
+ # the ProxyAllowParticipantConflict account flag, setting to true enables
248
+ # per-request opt-in to allowing Proxy to return a 400 error (Twilio error code
249
+ # 80604) when a request to set a Session to in-progress would cause Participants
250
+ # with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions.
251
+ # If not provided, requests will be allowed to succeed, and a Debugger
252
+ # notification (80801) will be emitted. Having multiple, active Participants with
253
+ # the same Identifier/ProxyIdentifier pair causes calls and messages from affected
254
+ # Participants to be routed incorrectly. Please note, the default behavior for
255
+ # accounts without the ProxyAllowParticipantConflict flag is to reject the request
256
+ # as described. This will eventually be the default for all accounts.
233
257
  # @return [SessionInstance] Updated SessionInstance
234
- def update(date_expiry: :unset, ttl: :unset, status: :unset)
258
+ def update(date_expiry: :unset, ttl: :unset, status: :unset, fail_on_participant_conflict: :unset)
235
259
  data = Twilio::Values.of({
236
260
  'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
237
261
  'Ttl' => ttl,
238
262
  'Status' => status,
263
+ 'FailOnParticipantConflict' => fail_on_participant_conflict,
239
264
  })
240
265
 
241
266
  payload = @version.update('POST', @uri, data: data)
@@ -473,9 +498,25 @@ module Twilio
473
498
  # is measured from the last Session create or the Session's last Interaction.
474
499
  # @param [session.Status] status The new status of the resource. Can be:
475
500
  # `in-progress` to re-open a session or `closed` to close a session.
501
+ # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
502
+ # the ProxyAllowParticipantConflict account flag, setting to true enables
503
+ # per-request opt-in to allowing Proxy to return a 400 error (Twilio error code
504
+ # 80604) when a request to set a Session to in-progress would cause Participants
505
+ # with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions.
506
+ # If not provided, requests will be allowed to succeed, and a Debugger
507
+ # notification (80801) will be emitted. Having multiple, active Participants with
508
+ # the same Identifier/ProxyIdentifier pair causes calls and messages from affected
509
+ # Participants to be routed incorrectly. Please note, the default behavior for
510
+ # accounts without the ProxyAllowParticipantConflict flag is to reject the request
511
+ # as described. This will eventually be the default for all accounts.
476
512
  # @return [SessionInstance] Updated SessionInstance
477
- def update(date_expiry: :unset, ttl: :unset, status: :unset)
478
- context.update(date_expiry: date_expiry, ttl: ttl, status: status, )
513
+ def update(date_expiry: :unset, ttl: :unset, status: :unset, fail_on_participant_conflict: :unset)
514
+ context.update(
515
+ date_expiry: date_expiry,
516
+ ttl: ttl,
517
+ status: status,
518
+ fail_on_participant_conflict: fail_on_participant_conflict,
519
+ )
479
520
  end
480
521
 
481
522
  ##
@@ -121,13 +121,26 @@ module Twilio
121
121
  # Participant. If not specified, Proxy will select a number from the pool.
122
122
  # @param [String] proxy_identifier_sid The SID of the Proxy Identifier to assign
123
123
  # to the Participant.
124
+ # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
125
+ # the ProxyAllowParticipantConflict account flag, setting to true enables
126
+ # per-request opt-in to allowing Proxy to reject a Participant create request that
127
+ # could cause the same Identifier/ProxyIdentifier pair to be active in multiple
128
+ # Sessions. Depending on the context, this could be a 409 error (Twilio error code
129
+ # 80623) or a 400 error (Twilio error code 80604). If not provided, requests will
130
+ # be allowed to succeed and a Debugger notification (80802) will be emitted.
131
+ # Having multiple, active Participants with the same Identifier/ProxyIdentifier
132
+ # pair causes calls and messages from affected Participants to be routed
133
+ # incorrectly. Please note, the default behavior for accounts without the
134
+ # ProxyAllowParticipantConflict flag is to reject the request as described. This
135
+ # will eventually be the default for all accounts.
124
136
  # @return [ParticipantInstance] Created ParticipantInstance
125
- def create(identifier: nil, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset)
137
+ def create(identifier: nil, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset, fail_on_participant_conflict: :unset)
126
138
  data = Twilio::Values.of({
127
139
  'Identifier' => identifier,
128
140
  'FriendlyName' => friendly_name,
129
141
  'ProxyIdentifier' => proxy_identifier,
130
142
  'ProxyIdentifierSid' => proxy_identifier_sid,
143
+ 'FailOnParticipantConflict' => fail_on_participant_conflict,
131
144
  })
132
145
 
133
146
  payload = @version.create('POST', @uri, data: data)
@@ -107,12 +107,12 @@ module Twilio
107
107
 
108
108
  ##
109
109
  # Create the ServiceInstance
110
- # @param [String] unique_name An application-defined string that uniquely
111
- # identifies the Service resource. It can be used as an alternative to the `sid`
112
- # in the URL path to address the Service resource. This value must be 244
113
- # characters or less in length and be unique.
110
+ # @param [String] unique_name A user-defined string that uniquely identifies the
111
+ # Service resource. It can be used as an alternative to the `sid` in the URL path
112
+ # to address the Service resource. This value must be 50 characters or less in
113
+ # length and be unique.
114
114
  # @param [String] friendly_name A descriptive string that you create to describe
115
- # the Service resource. It can be up to 255 characters long.
115
+ # the Service resource. It can be a maximum of 255 characters.
116
116
  # @param [Boolean] include_credentials Whether to inject Account credentials into
117
117
  # a function invocation context. The default value is `false`.
118
118
  # @param [Boolean] ui_editable Whether the Service's properties and subresources
@@ -212,9 +212,9 @@ module Twilio
212
212
  # @param [Boolean] include_credentials Whether to inject Account credentials into
213
213
  # a function invocation context.
214
214
  # @param [String] friendly_name A descriptive string that you create to describe
215
- # the Service resource. It can be up to 255 characters long.
216
- # @param [Boolean] ui_editable Whether the Service's properties and subresources
217
- # can be edited via the UI. The default value is `false`.
215
+ # the Service resource. It can be a maximum of 255 characters.
216
+ # @param [Boolean] ui_editable Whether the Service resource's properties and
217
+ # subresources can be edited via the UI. The default value is `false`.
218
218
  # @return [ServiceInstance] Updated ServiceInstance
219
219
  def update(include_credentials: :unset, friendly_name: :unset, ui_editable: :unset)
220
220
  data = Twilio::Values.of({
@@ -376,7 +376,7 @@ module Twilio
376
376
  end
377
377
 
378
378
  ##
379
- # @return [String] An application-defined string that uniquely identifies the Service resource
379
+ # @return [String] A user-defined string that uniquely identifies the Service resource
380
380
  def unique_name
381
381
  @properties['unique_name']
382
382
  end
@@ -388,7 +388,7 @@ module Twilio
388
388
  end
389
389
 
390
390
  ##
391
- # @return [Boolean] Whether the Service's properties and subresources can be edited via the UI
391
+ # @return [Boolean] Whether the Service resource's properties and subresources can be edited via the UI
392
392
  def ui_editable
393
393
  @properties['ui_editable']
394
394
  end
@@ -436,9 +436,9 @@ module Twilio
436
436
  # @param [Boolean] include_credentials Whether to inject Account credentials into
437
437
  # a function invocation context.
438
438
  # @param [String] friendly_name A descriptive string that you create to describe
439
- # the Service resource. It can be up to 255 characters long.
440
- # @param [Boolean] ui_editable Whether the Service's properties and subresources
441
- # can be edited via the UI. The default value is `false`.
439
+ # the Service resource. It can be a maximum of 255 characters.
440
+ # @param [Boolean] ui_editable Whether the Service resource's properties and
441
+ # subresources can be edited via the UI. The default value is `false`.
442
442
  # @return [ServiceInstance] Updated ServiceInstance
443
443
  def update(include_credentials: :unset, friendly_name: :unset, ui_editable: :unset)
444
444
  context.update(
@@ -111,7 +111,7 @@ module Twilio
111
111
  ##
112
112
  # Create the AssetInstance
113
113
  # @param [String] friendly_name A descriptive string that you create to describe
114
- # the Asset resource. It can be up to 255 characters long.
114
+ # the Asset resource. It can be a maximum of 255 characters.
115
115
  # @return [AssetInstance] Created AssetInstance
116
116
  def create(friendly_name: nil)
117
117
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -167,7 +167,7 @@ module Twilio
167
167
  # @param [Version] version Version that contains the resource
168
168
  # @param [String] service_sid The SID of the Service to fetch the Asset resource
169
169
  # from.
170
- # @param [String] sid The SID of the Asset resource to fetch.
170
+ # @param [String] sid The SID that identifies the Asset resource to fetch.
171
171
  # @return [AssetContext] AssetContext
172
172
  def initialize(version, service_sid, sid)
173
173
  super(version)
@@ -199,7 +199,7 @@ module Twilio
199
199
  ##
200
200
  # Update the AssetInstance
201
201
  # @param [String] friendly_name A descriptive string that you create to describe
202
- # the Asset resource. It can be up to 255 characters long.
202
+ # the Asset resource. It can be a maximum of 255 characters.
203
203
  # @return [AssetInstance] Updated AssetInstance
204
204
  def update(friendly_name: nil)
205
205
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -255,7 +255,7 @@ module Twilio
255
255
  # @param [Hash] payload payload that contains response from Twilio
256
256
  # @param [String] service_sid The SID of the Service that the Asset resource is
257
257
  # associated with.
258
- # @param [String] sid The SID of the Asset resource to fetch.
258
+ # @param [String] sid The SID that identifies the Asset resource to fetch.
259
259
  # @return [AssetInstance] AssetInstance
260
260
  def initialize(version, payload, service_sid: nil, sid: nil)
261
261
  super(version)
@@ -331,7 +331,7 @@ module Twilio
331
331
  end
332
332
 
333
333
  ##
334
- # @return [String] The links to the nested resources of the asset
334
+ # @return [String] The URLs of the Asset resource's nested resources
335
335
  def links
336
336
  @properties['links']
337
337
  end
@@ -353,7 +353,7 @@ module Twilio
353
353
  ##
354
354
  # Update the AssetInstance
355
355
  # @param [String] friendly_name A descriptive string that you create to describe
356
- # the Asset resource. It can be up to 255 characters long.
356
+ # the Asset resource. It can be a maximum of 255 characters.
357
357
  # @return [AssetInstance] Updated AssetInstance
358
358
  def update(friendly_name: nil)
359
359
  context.update(friendly_name: friendly_name, )
@@ -21,7 +21,7 @@ module Twilio
21
21
  # @param [String] service_sid The SID of the Service that the Asset Version
22
22
  # resource is associated with.
23
23
  # @param [String] asset_sid The SID of the Asset resource that is the parent of
24
- # the asset version.
24
+ # the Asset Version.
25
25
  # @return [AssetVersionList] AssetVersionList
26
26
  def initialize(version, service_sid: nil, asset_sid: nil)
27
27
  super(version)
@@ -214,7 +214,7 @@ module Twilio
214
214
  # @param [String] service_sid The SID of the Service that the Asset Version
215
215
  # resource is associated with.
216
216
  # @param [String] asset_sid The SID of the Asset resource that is the parent of
217
- # the asset version.
217
+ # the Asset Version.
218
218
  # @param [String] sid The SID of the Asset Version resource to fetch.
219
219
  # @return [AssetVersionInstance] AssetVersionInstance
220
220
  def initialize(version, payload, service_sid: nil, asset_sid: nil, sid: nil)
@@ -276,19 +276,19 @@ module Twilio
276
276
  end
277
277
 
278
278
  ##
279
- # @return [String] The SID of the Asset resource that is the parent of the asset version
279
+ # @return [String] The SID of the Asset resource that is the parent of the Asset Version
280
280
  def asset_sid
281
281
  @properties['asset_sid']
282
282
  end
283
283
 
284
284
  ##
285
- # @return [String] The URL-friendly string by which the asset version can be referenced
285
+ # @return [String] The URL-friendly string by which the Asset Version can be referenced
286
286
  def path
287
287
  @properties['path']
288
288
  end
289
289
 
290
290
  ##
291
- # @return [asset_version.Visibility] The access control that determines how the asset version can be accessed
291
+ # @return [asset_version.Visibility] The access control that determines how the Asset Version can be accessed
292
292
  def visibility
293
293
  @properties['visibility']
294
294
  end
@@ -111,11 +111,11 @@ module Twilio
111
111
  ##
112
112
  # Create the BuildInstance
113
113
  # @param [String] asset_versions The list of Asset Version resource SIDs to
114
- # include in the build.
115
- # @param [String] function_versions The list of the Variable resource SIDs to
116
- # include in the build.
114
+ # include in the Build.
115
+ # @param [String] function_versions The list of the Function Version resource SIDs
116
+ # to include in the Build.
117
117
  # @param [String] dependencies A list of objects that describe the Dependencies
118
- # included in the build. Each object contains the `name` and `version` of the
118
+ # included in the Build. Each object contains the `name` and `version` of the
119
119
  # dependency.
120
120
  # @return [BuildInstance] Created BuildInstance
121
121
  def create(asset_versions: :unset, function_versions: :unset, dependencies: :unset)
@@ -280,25 +280,25 @@ module Twilio
280
280
  end
281
281
 
282
282
  ##
283
- # @return [build.Status] The status of the build
283
+ # @return [build.Status] The status of the Build
284
284
  def status
285
285
  @properties['status']
286
286
  end
287
287
 
288
288
  ##
289
- # @return [Hash] The list of Asset Version resource SIDs that are included in the build
289
+ # @return [Hash] The list of Asset Version resource SIDs that are included in the Build
290
290
  def asset_versions
291
291
  @properties['asset_versions']
292
292
  end
293
293
 
294
294
  ##
295
- # @return [Hash] The list of Function Version resource SIDs that are included in the build
295
+ # @return [Hash] The list of Function Version resource SIDs that are included in the Build
296
296
  def function_versions
297
297
  @properties['function_versions']
298
298
  end
299
299
 
300
300
  ##
301
- # @return [Hash] A list of objects that describe the Dependencies included in the build
301
+ # @return [Hash] A list of objects that describe the Dependencies included in the Build
302
302
  def dependencies
303
303
  @properties['dependencies']
304
304
  end
@@ -110,12 +110,10 @@ module Twilio
110
110
 
111
111
  ##
112
112
  # Create the EnvironmentInstance
113
- # @param [String] unique_name An application-defined string that uniquely
114
- # identifies the Environment resource. It can be used as an alternative to the
115
- # `sid` in the URL path to address the Environment resource. This value must have
116
- # fewer than 256 characters.
113
+ # @param [String] unique_name A user-defined string that uniquely identifies the
114
+ # Environment resource. It can be a maximum of 100 characters.
117
115
  # @param [String] domain_suffix A URL-friendly name that represents the
118
- # environment and forms part of the domain name. Must have fewer than 32
116
+ # environment and forms part of the domain name. It can be a maximum of 16
119
117
  # characters.
120
118
  # @return [EnvironmentInstance] Created EnvironmentInstance
121
119
  def create(unique_name: nil, domain_suffix: :unset)
@@ -359,7 +357,7 @@ module Twilio
359
357
  end
360
358
 
361
359
  ##
362
- # @return [String] An application-defined string that uniquely identifies the Environment resource
360
+ # @return [String] A user-defined string that uniquely identifies the Environment resource
363
361
  def unique_name
364
362
  @properties['unique_name']
365
363
  end
@@ -371,7 +369,7 @@ module Twilio
371
369
  end
372
370
 
373
371
  ##
374
- # @return [String] The base domain name for all Functions and Assets deployed in the environment
372
+ # @return [String] The base domain name for all Functions and Assets deployed in the Environment
375
373
  def domain_name
376
374
  @properties['domain_name']
377
375
  end
@@ -395,7 +393,7 @@ module Twilio
395
393
  end
396
394
 
397
395
  ##
398
- # @return [String] The URLs of the environment's nested resources
396
+ # @return [String] The URLs of the Environment resource's nested resources
399
397
  def links
400
398
  @properties['links']
401
399
  end