twilio-ruby 5.39.2 → 5.40.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGES.md +107 -1
  4. data/CONTRIBUTING.md +2 -2
  5. data/ISSUE_TEMPLATE.md +5 -1
  6. data/PULL_REQUEST_TEMPLATE.md +1 -1
  7. data/README.md +4 -3
  8. data/lib/twilio-ruby/framework/version.rb +4 -8
  9. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +6 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
  17. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +85 -60
  19. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +14 -0
  21. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +14 -0
  22. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +14 -0
  23. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
  25. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
  26. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
  27. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
  28. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
  29. data/lib/twilio-ruby/rest/client.rb +7 -0
  30. data/lib/twilio-ruby/rest/conversations.rb +39 -3
  31. data/lib/twilio-ruby/rest/conversations/v1.rb +68 -5
  32. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +268 -0
  33. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
  34. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +21 -10
  35. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
  36. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +34 -19
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +48 -32
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
  39. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +427 -0
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +374 -0
  41. data/lib/twilio-ruby/rest/conversations/v1/service.rb +442 -0
  42. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +388 -0
  43. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +271 -0
  44. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +586 -0
  46. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +549 -0
  47. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +394 -0
  48. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +519 -0
  49. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +457 -0
  50. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +395 -0
  51. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +419 -0
  52. data/lib/twilio-ruby/rest/conversations/v1/user.rb +398 -0
  53. data/lib/twilio-ruby/rest/events.rb +72 -0
  54. data/lib/twilio-ruby/rest/events/v1.rb +90 -0
  55. data/lib/twilio-ruby/rest/events/v1/event_type.rb +291 -0
  56. data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
  57. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
  58. data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
  59. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
  60. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
  61. data/lib/twilio-ruby/rest/events/v1/subscription.rb +383 -0
  62. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +216 -0
  63. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
  64. data/lib/twilio-ruby/rest/messaging.rb +6 -0
  65. data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
  66. data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
  67. data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
  68. data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
  69. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
  70. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
  71. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
  74. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
  75. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
  76. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
  77. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +45 -4
  78. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
  79. data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -13
  80. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +6 -6
  81. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +5 -5
  82. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +8 -8
  83. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -8
  84. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +8 -8
  85. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -14
  86. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
  87. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +7 -7
  88. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +1 -1
  89. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
  90. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +17 -7
  91. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +75 -9
  92. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -1
  93. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
  94. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
  95. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
  96. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +38 -23
  97. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
  98. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
  99. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
  100. data/lib/twilio-ruby/rest/verify/v2/service.rb +21 -9
  101. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -2
  102. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -2
  103. data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
  104. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
  105. data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
  107. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
  108. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
  109. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -19
  110. data/lib/twilio-ruby/version.rb +1 -1
  111. data/spec/framework/version_spec.rb +53 -0
  112. data/spec/holodeck/holodeck.rb +3 -3
  113. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
  114. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
  115. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
  116. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
  117. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  118. data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
  119. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
  120. data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
  121. data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
  122. data/spec/integration/conversations/v1/configuration_spec.rb +87 -0
  123. data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +4 -0
  124. data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
  125. data/spec/integration/conversations/v1/conversation/participant_spec.rb +60 -4
  126. data/spec/integration/conversations/v1/conversation_spec.rb +35 -0
  127. data/spec/integration/conversations/v1/credential_spec.rb +219 -0
  128. data/spec/integration/conversations/v1/role_spec.rb +249 -0
  129. data/spec/integration/conversations/v1/service/binding_spec.rb +166 -0
  130. data/spec/integration/conversations/v1/service/configuration/notification_spec.rb +115 -0
  131. data/spec/integration/conversations/v1/service/configuration_spec.rb +87 -0
  132. data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +144 -0
  133. data/spec/integration/conversations/v1/service/conversation/message_spec.rb +429 -0
  134. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +407 -0
  135. data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +299 -0
  136. data/spec/integration/conversations/v1/service/conversation_spec.rb +289 -0
  137. data/spec/integration/conversations/v1/service/role_spec.rb +260 -0
  138. data/spec/integration/conversations/v1/service/user_spec.rb +230 -0
  139. data/spec/integration/conversations/v1/service_spec.rb +174 -0
  140. data/spec/integration/conversations/v1/user_spec.rb +220 -0
  141. data/spec/integration/events/v1/event_type_spec.rb +133 -0
  142. data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
  143. data/spec/integration/events/v1/schema_spec.rb +46 -0
  144. data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
  145. data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
  146. data/spec/integration/events/v1/sink_spec.rb +217 -0
  147. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +91 -0
  148. data/spec/integration/events/v1/subscription_spec.rb +243 -0
  149. data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
  150. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
  151. data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +27 -0
  152. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
  153. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
  154. data/spec/integration/supersim/v1/sim_spec.rb +23 -0
  155. data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
  156. data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
  157. data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
  158. data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
  159. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
  160. data/spec/integration/video/v1/room_spec.rb +37 -0
  161. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  162. data/spec/spec_helper.rb +1 -1
  163. metadata +82 -5
  164. data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
@@ -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
@@ -20,7 +20,7 @@ module Twilio
20
20
  # @param [Version] version Version that contains the resource
21
21
  # @param [String] service_sid The SID of the Service that the Deployment resource
22
22
  # is associated with.
23
- # @param [String] environment_sid The SID of the environment for the deployment.
23
+ # @param [String] environment_sid The SID of the Environment for the Deployment.
24
24
  # @return [DeploymentList] DeploymentList
25
25
  def initialize(version, service_sid: nil, environment_sid: nil)
26
26
  super(version)
@@ -112,7 +112,7 @@ module Twilio
112
112
 
113
113
  ##
114
114
  # Create the DeploymentInstance
115
- # @param [String] build_sid The SID of the build for the deployment.
115
+ # @param [String] build_sid The SID of the Build for the Deployment.
116
116
  # @return [DeploymentInstance] Created DeploymentInstance
117
117
  def create(build_sid: :unset)
118
118
  data = Twilio::Values.of({'BuildSid' => build_sid, })
@@ -178,9 +178,9 @@ module Twilio
178
178
  # @param [Version] version Version that contains the resource
179
179
  # @param [String] service_sid The SID of the Service to fetch the Deployment
180
180
  # resource from.
181
- # @param [String] environment_sid The SID of the environment used by the
181
+ # @param [String] environment_sid The SID of the Environment used by the
182
182
  # Deployment to fetch.
183
- # @param [String] sid The SID of the Deployment resource to fetch.
183
+ # @param [String] sid The SID that identifies the Deployment resource to fetch.
184
184
  # @return [DeploymentContext] DeploymentContext
185
185
  def initialize(version, service_sid, environment_sid, sid)
186
186
  super(version)
@@ -229,8 +229,8 @@ module Twilio
229
229
  # @param [Hash] payload payload that contains response from Twilio
230
230
  # @param [String] service_sid The SID of the Service that the Deployment resource
231
231
  # is associated with.
232
- # @param [String] environment_sid The SID of the environment for the deployment.
233
- # @param [String] sid The SID of the Deployment resource to fetch.
232
+ # @param [String] environment_sid The SID of the Environment for the Deployment.
233
+ # @param [String] sid The SID that identifies the Deployment resource to fetch.
234
234
  # @return [DeploymentInstance] DeploymentInstance
235
235
  def initialize(version, payload, service_sid: nil, environment_sid: nil, sid: nil)
236
236
  super(version)
@@ -291,13 +291,13 @@ module Twilio
291
291
  end
292
292
 
293
293
  ##
294
- # @return [String] The SID of the environment for the deployment
294
+ # @return [String] The SID of the Environment for the Deployment
295
295
  def environment_sid
296
296
  @properties['environment_sid']
297
297
  end
298
298
 
299
299
  ##
300
- # @return [String] The SID of the build for the deployment
300
+ # @return [String] The SID of the Build for the deployment
301
301
  def build_sid
302
302
  @properties['build_sid']
303
303
  end
@@ -20,7 +20,7 @@ module Twilio
20
20
  # @param [Version] version Version that contains the resource
21
21
  # @param [String] service_sid The SID of the Service that the Variable resource is
22
22
  # associated with.
23
- # @param [String] environment_sid The SID of the environment in which the variable
23
+ # @param [String] environment_sid The SID of the Environment in which the Variable
24
24
  # exists.
25
25
  # @return [VariableList] VariableList
26
26
  def initialize(version, service_sid: nil, environment_sid: nil)
@@ -114,9 +114,9 @@ module Twilio
114
114
  ##
115
115
  # Create the VariableInstance
116
116
  # @param [String] key A string by which the Variable resource can be referenced.
117
- # Must be less than 128 characters long.
118
- # @param [String] value A string that contains the actual value of the variable.
119
- # Must have less than 450 bytes.
117
+ # It can be a maximum of 128 characters.
118
+ # @param [String] value A string that contains the actual value of the Variable.
119
+ # It can be a maximum of 450 bytes in size.
120
120
  # @return [VariableInstance] Created VariableInstance
121
121
  def create(key: nil, value: nil)
122
122
  data = Twilio::Values.of({'Key' => key, 'Value' => value, })
@@ -182,7 +182,7 @@ module Twilio
182
182
  # @param [Version] version Version that contains the resource
183
183
  # @param [String] service_sid The SID of the Service to fetch the Variable
184
184
  # resource from.
185
- # @param [String] environment_sid The SID of the environment with the Variable
185
+ # @param [String] environment_sid The SID of the Environment with the Variable
186
186
  # resource to fetch.
187
187
  # @param [String] sid The SID of the Variable resource to fetch.
188
188
  # @return [VariableContext] VariableContext
@@ -212,9 +212,9 @@ module Twilio
212
212
  ##
213
213
  # Update the VariableInstance
214
214
  # @param [String] key A string by which the Variable resource can be referenced.
215
- # Must be less than 128 characters long.
216
- # @param [String] value A string that contains the actual value of the variable.
217
- # Must have less than 450 bytes.
215
+ # It can be a maximum of 128 characters.
216
+ # @param [String] value A string that contains the actual value of the Variable.
217
+ # It can be a maximum of 450 bytes in size.
218
218
  # @return [VariableInstance] Updated VariableInstance
219
219
  def update(key: :unset, value: :unset)
220
220
  data = Twilio::Values.of({'Key' => key, 'Value' => value, })
@@ -261,7 +261,7 @@ module Twilio
261
261
  # @param [Hash] payload payload that contains response from Twilio
262
262
  # @param [String] service_sid The SID of the Service that the Variable resource is
263
263
  # associated with.
264
- # @param [String] environment_sid The SID of the environment in which the variable
264
+ # @param [String] environment_sid The SID of the Environment in which the Variable
265
265
  # exists.
266
266
  # @param [String] sid The SID of the Variable resource to fetch.
267
267
  # @return [VariableInstance] VariableInstance
@@ -325,7 +325,7 @@ module Twilio
325
325
  end
326
326
 
327
327
  ##
328
- # @return [String] The SID of the environment in which the variable exists
328
+ # @return [String] The SID of the Environment in which the Variable exists
329
329
  def environment_sid
330
330
  @properties['environment_sid']
331
331
  end
@@ -337,7 +337,7 @@ module Twilio
337
337
  end
338
338
 
339
339
  ##
340
- # @return [String] A string that contains the actual value of the variable
340
+ # @return [String] A string that contains the actual value of the Variable
341
341
  def value
342
342
  @properties['value']
343
343
  end
@@ -370,9 +370,9 @@ module Twilio
370
370
  ##
371
371
  # Update the VariableInstance
372
372
  # @param [String] key A string by which the Variable resource can be referenced.
373
- # Must be less than 128 characters long.
374
- # @param [String] value A string that contains the actual value of the variable.
375
- # Must have less than 450 bytes.
373
+ # It can be a maximum of 128 characters.
374
+ # @param [String] value A string that contains the actual value of the Variable.
375
+ # It can be a maximum of 450 bytes in size.
376
376
  # @return [VariableInstance] Updated VariableInstance
377
377
  def update(key: :unset, value: :unset)
378
378
  context.update(key: key, value: value, )
@@ -111,7 +111,7 @@ module Twilio
111
111
  ##
112
112
  # Create the FunctionInstance
113
113
  # @param [String] friendly_name A descriptive string that you create to describe
114
- # the Function resource. It can be up to 255 characters long.
114
+ # the Function resource. It can be a maximum of 255 characters.
115
115
  # @return [FunctionInstance] Created FunctionInstance
116
116
  def create(friendly_name: nil)
117
117
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -199,7 +199,7 @@ module Twilio
199
199
  ##
200
200
  # Update the FunctionInstance
201
201
  # @param [String] friendly_name A descriptive string that you create to describe
202
- # the Function resource. It can be up to 255 characters long.
202
+ # the Function resource. It can be a maximum of 255 characters.
203
203
  # @return [FunctionInstance] Updated FunctionInstance
204
204
  def update(friendly_name: nil)
205
205
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -331,7 +331,7 @@ module Twilio
331
331
  end
332
332
 
333
333
  ##
334
- # @return [String] The URLs of nested resources of the function
334
+ # @return [String] The URLs of nested resources of the Function resource
335
335
  def links
336
336
  @properties['links']
337
337
  end
@@ -353,7 +353,7 @@ module Twilio
353
353
  ##
354
354
  # Update the FunctionInstance
355
355
  # @param [String] friendly_name A descriptive string that you create to describe
356
- # the Function resource. It can be up to 255 characters long.
356
+ # the Function resource. It can be a maximum of 255 characters.
357
357
  # @return [FunctionInstance] Updated FunctionInstance
358
358
  def update(friendly_name: nil)
359
359
  context.update(friendly_name: friendly_name, )
@@ -20,8 +20,8 @@ module Twilio
20
20
  # @param [Version] version Version that contains the resource
21
21
  # @param [String] service_sid The SID of the Service that the Function Version
22
22
  # resource is associated with.
23
- # @param [String] function_sid The SID of the function that is the parent of the
24
- # function version.
23
+ # @param [String] function_sid The SID of the Function resource that is the parent
24
+ # of the Function Version resource.
25
25
  # @return [FunctionVersionList] FunctionVersionList
26
26
  def initialize(version, service_sid: nil, function_sid: nil)
27
27
  super(version)
@@ -229,8 +229,8 @@ module Twilio
229
229
  # @param [Hash] payload payload that contains response from Twilio
230
230
  # @param [String] service_sid The SID of the Service that the Function Version
231
231
  # resource is associated with.
232
- # @param [String] function_sid The SID of the function that is the parent of the
233
- # function version.
232
+ # @param [String] function_sid The SID of the Function resource that is the parent
233
+ # of the Function Version resource.
234
234
  # @param [String] sid The SID of the Function Version resource to fetch.
235
235
  # @return [FunctionVersionInstance] FunctionVersionInstance
236
236
  def initialize(version, payload, service_sid: nil, function_sid: nil, sid: nil)
@@ -293,19 +293,19 @@ module Twilio
293
293
  end
294
294
 
295
295
  ##
296
- # @return [String] The SID of the function that is the parent of the function version
296
+ # @return [String] The SID of the Function resource that is the parent of the Function Version resource
297
297
  def function_sid
298
298
  @properties['function_sid']
299
299
  end
300
300
 
301
301
  ##
302
- # @return [String] The URL-friendly string by which the function version can be referenced
302
+ # @return [String] The URL-friendly string by which the Function Version resource can be referenced
303
303
  def path
304
304
  @properties['path']
305
305
  end
306
306
 
307
307
  ##
308
- # @return [function_version.Visibility] The access control that determines how the function version can be accessed
308
+ # @return [function_version.Visibility] The access control that determines how the Function Version resource can be accessed
309
309
  def visibility
310
310
  @properties['visibility']
311
311
  end
@@ -85,7 +85,7 @@ module Twilio
85
85
  # @param [Version] version Version that contains the resource
86
86
  # @param [String] service_sid The SID of the Service to fetch the Function Version
87
87
  # content from.
88
- # @param [String] function_sid The SID of the function that is the parent of the
88
+ # @param [String] function_sid The SID of the Function that is the parent of the
89
89
  # Function Version content to fetch.
90
90
  # @param [String] sid The SID of the Function Version content to fetch.
91
91
  # @return [FunctionVersionContentContext] FunctionVersionContentContext
@@ -29,25 +29,26 @@ module Twilio
29
29
  # Create the FleetInstance
30
30
  # @param [String] network_access_profile The SID or unique name of the Network
31
31
  # Access Profile that will control which cellular networks the Fleet's SIMs can
32
- # connect to
32
+ # connect to.
33
33
  # @param [String] unique_name An application-defined string that uniquely
34
34
  # identifies the resource. It can be used in place of the resource's `sid` in the
35
35
  # URL to address the resource.
36
36
  # @param [Boolean] data_enabled Defines whether SIMs in the Fleet are capable of
37
- # using 2G/3G/4G/LTE/CAT-M data connectivity
37
+ # using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`.
38
38
  # @param [String] data_limit The total data usage (download and upload combined)
39
39
  # in Megabytes that each Sim resource assigned to the Fleet resource can consume
40
40
  # during a billing period (normally one month). Value must be between 1MB (1) and
41
- # 2TB (2,000,000).
41
+ # 2TB (2,000,000). Defaults to 1GB (1,000).
42
42
  # @param [Boolean] commands_enabled Defines whether SIMs in the Fleet are capable
43
- # of sending and receiving machine-to-machine SMS via Commands.
43
+ # of sending and receiving machine-to-machine SMS via Commands. Defaults to
44
+ # `true`.
44
45
  # @param [String] commands_url The URL that will receive a webhook when a SIM in
45
46
  # the Fleet originates a machine-to-machine SMS via Commands. Your server should
46
47
  # respond with an HTTP status code in the 200 range; any response body will be
47
48
  # ignored.
48
49
  # @param [String] commands_method A string representing the HTTP method to use
49
- # when making a request to `commands_url`. Can be one of POST or GET. Defaults to
50
- # POST.
50
+ # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
51
+ # to `POST`.
51
52
  # @return [FleetInstance] Created FleetInstance
52
53
  def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset, commands_enabled: :unset, commands_url: :unset, commands_method: :unset)
53
54
  data = Twilio::Values.of({
@@ -71,7 +72,7 @@ module Twilio
71
72
  # memory before returning.
72
73
  # @param [String] network_access_profile The SID or unique name of the Network
73
74
  # Access Profile that controls which cellular networks the Fleet's SIMs can
74
- # connect to
75
+ # connect to.
75
76
  # @param [Integer] limit Upper limit for the number of records to return. stream()
76
77
  # guarantees to never return more than limit. Default is no limit
77
78
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,7 +94,7 @@ module Twilio
93
94
  # is reached.
94
95
  # @param [String] network_access_profile The SID or unique name of the Network
95
96
  # Access Profile that controls which cellular networks the Fleet's SIMs can
96
- # connect to
97
+ # connect to.
97
98
  # @param [Integer] limit Upper limit for the number of records to return. stream()
98
99
  # guarantees to never return more than limit. Default is no limit.
99
100
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -128,7 +129,7 @@ module Twilio
128
129
  # Request is executed immediately.
129
130
  # @param [String] network_access_profile The SID or unique name of the Network
130
131
  # Access Profile that controls which cellular networks the Fleet's SIMs can
131
- # connect to
132
+ # connect to.
132
133
  # @param [String] page_token PageToken provided by the API
133
134
  # @param [Integer] page_number Page Number, this value is simply for client state
134
135
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -229,7 +230,7 @@ module Twilio
229
230
  # URL to address the resource.
230
231
  # @param [String] network_access_profile The SID or unique name of the Network
231
232
  # Access Profile that will control which cellular networks the Fleet's SIMs can
232
- # connect to
233
+ # connect to.
233
234
  # @return [FleetInstance] Updated FleetInstance
234
235
  def update(unique_name: :unset, network_access_profile: :unset)
235
236
  data = Twilio::Values.of({
@@ -394,7 +395,7 @@ module Twilio
394
395
  # URL to address the resource.
395
396
  # @param [String] network_access_profile The SID or unique name of the Network
396
397
  # Access Profile that will control which cellular networks the Fleet's SIMs can
397
- # connect to
398
+ # connect to.
398
399
  # @return [FleetInstance] Updated FleetInstance
399
400
  def update(unique_name: :unset, network_access_profile: :unset)
400
401
  context.update(unique_name: unique_name, network_access_profile: network_access_profile, )