twilio-ruby 5.46.1 → 5.47.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +31 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -1
  5. data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -0
  6. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  7. data/lib/twilio-ruby/rest/messaging.rb +22 -0
  8. data/lib/twilio-ruby/rest/messaging/v1.rb +37 -0
  9. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  10. data/lib/twilio-ruby/rest/messaging/v1/campaign.rb +387 -0
  11. data/lib/twilio-ruby/rest/messaging/v1/use_case.rb +198 -0
  12. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  13. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +11 -1
  14. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +13 -13
  15. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  16. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +4 -16
  17. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  18. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +0 -8
  19. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +16 -12
  20. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  21. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +0 -8
  22. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +16 -12
  23. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -8
  24. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +0 -8
  25. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -6
  26. data/lib/twilio-ruby/twiml/voice_response.rb +4 -2
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  29. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  30. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  31. data/spec/integration/messaging/v1/campaign_spec.rb +194 -0
  32. data/spec/integration/messaging/v1/use_case_spec.rb +55 -0
  33. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  34. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  35. data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
  36. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  37. metadata +11 -2
@@ -189,12 +189,9 @@ module Twilio
189
189
 
190
190
  ##
191
191
  # Delete the DocumentInstance
192
- # @param [String] if_match The If-Match HTTP request header
193
192
  # @return [Boolean] true if delete succeeds, false otherwise
194
- def delete(if_match: :unset)
195
- headers = Twilio::Values.of({'If-Match' => if_match, })
196
-
197
- @version.delete('DELETE', @uri, headers: headers)
193
+ def delete
194
+ @version.delete('DELETE', @uri)
198
195
  end
199
196
 
200
197
  ##
@@ -367,10 +364,9 @@ module Twilio
367
364
 
368
365
  ##
369
366
  # Delete the DocumentInstance
370
- # @param [String] if_match The If-Match HTTP request header
371
367
  # @return [Boolean] true if delete succeeds, false otherwise
372
- def delete(if_match: :unset)
373
- context.delete(if_match: if_match, )
368
+ def delete
369
+ context.delete
374
370
  end
375
371
 
376
372
  ##
@@ -117,12 +117,15 @@ module Twilio
117
117
  # @param [String] dependencies A list of objects that describe the Dependencies
118
118
  # included in the Build. Each object contains the `name` and `version` of the
119
119
  # dependency.
120
+ # @param [String] runtime The Runtime version that will be used to run the Build
121
+ # resource when it is deployed.
120
122
  # @return [BuildInstance] Created BuildInstance
121
- def create(asset_versions: :unset, function_versions: :unset, dependencies: :unset)
123
+ def create(asset_versions: :unset, function_versions: :unset, dependencies: :unset, runtime: :unset)
122
124
  data = Twilio::Values.of({
123
125
  'AssetVersions' => Twilio.serialize_list(asset_versions) { |e| e },
124
126
  'FunctionVersions' => Twilio.serialize_list(function_versions) { |e| e },
125
127
  'Dependencies' => dependencies,
128
+ 'Runtime' => runtime,
126
129
  })
127
130
 
128
131
  payload = @version.create('POST', @uri, data: data)
@@ -251,6 +254,7 @@ module Twilio
251
254
  'asset_versions' => payload['asset_versions'],
252
255
  'function_versions' => payload['function_versions'],
253
256
  'dependencies' => payload['dependencies'],
257
+ 'runtime' => payload['runtime'],
254
258
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
255
259
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
256
260
  'url' => payload['url'],
@@ -315,6 +319,12 @@ module Twilio
315
319
  @properties['dependencies']
316
320
  end
317
321
 
322
+ ##
323
+ # @return [build.Runtime] The Runtime version that will be used to run the Build.
324
+ def runtime
325
+ @properties['runtime']
326
+ end
327
+
318
328
  ##
319
329
  # @return [Time] The ISO 8601 date and time in GMT when the Build resource was created
320
330
  def date_created
@@ -42,10 +42,10 @@ module Twilio
42
42
  # @param [Boolean] commands_enabled Defines whether SIMs in the Fleet are capable
43
43
  # of sending and receiving machine-to-machine SMS via Commands. Defaults to
44
44
  # `true`.
45
- # @param [String] commands_url The URL that will receive a webhook when a SIM in
46
- # the Fleet is used to send an SMS from your device (mobile originated) to the
47
- # Commands number. Your server should respond with an HTTP status code in the 200
48
- # range; any response body will be ignored.
45
+ # @param [String] commands_url The URL that will receive a webhook when a Super
46
+ # SIM in the Fleet is used to send an SMS from your device to the Commands number.
47
+ # Your server should respond with an HTTP status code in the 200 range; any
48
+ # response body will be ignored.
49
49
  # @param [String] commands_method A string representing the HTTP method to use
50
50
  # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
51
51
  # to `POST`.
@@ -231,10 +231,10 @@ module Twilio
231
231
  # @param [String] network_access_profile The SID or unique name of the Network
232
232
  # Access Profile that will control which cellular networks the Fleet's SIMs can
233
233
  # connect to.
234
- # @param [String] commands_url The URL that will receive a webhook when a SIM in
235
- # the Fleet is used to send an SMS from your device (mobile originated) to the
236
- # Commands number. Your server should respond with an HTTP status code in the 200
237
- # range; any response body will be ignored.
234
+ # @param [String] commands_url The URL that will receive a webhook when a Super
235
+ # SIM in the Fleet is used to send an SMS from your device to the Commands number.
236
+ # Your server should respond with an HTTP status code in the 200 range; any
237
+ # response body will be ignored.
238
238
  # @param [String] commands_method A string representing the HTTP method to use
239
239
  # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
240
240
  # to `POST`.
@@ -373,7 +373,7 @@ module Twilio
373
373
  end
374
374
 
375
375
  ##
376
- # @return [String] The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number
376
+ # @return [String] The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the Commands number
377
377
  def commands_url
378
378
  @properties['commands_url']
379
379
  end
@@ -405,10 +405,10 @@ module Twilio
405
405
  # @param [String] network_access_profile The SID or unique name of the Network
406
406
  # Access Profile that will control which cellular networks the Fleet's SIMs can
407
407
  # connect to.
408
- # @param [String] commands_url The URL that will receive a webhook when a SIM in
409
- # the Fleet is used to send an SMS from your device (mobile originated) to the
410
- # Commands number. Your server should respond with an HTTP status code in the 200
411
- # range; any response body will be ignored.
408
+ # @param [String] commands_url The URL that will receive a webhook when a Super
409
+ # SIM in the Fleet is used to send an SMS from your device to the Commands number.
410
+ # Your server should respond with an HTTP status code in the 200 range; any
411
+ # response body will be ignored.
412
412
  # @param [String] commands_method A string representing the HTTP method to use
413
413
  # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
414
414
  # to `POST`.
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Sync < Domain
12
12
  class V1 < Version
13
- ##
14
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
13
  class ServiceList < ListResource
16
14
  ##
17
15
  # Initialize the ServiceList
@@ -155,8 +153,6 @@ module Twilio
155
153
  end
156
154
  end
157
155
 
158
- ##
159
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
160
156
  class ServicePage < Page
161
157
  ##
162
158
  # Initialize the ServicePage
@@ -186,8 +182,6 @@ module Twilio
186
182
  end
187
183
  end
188
184
 
189
- ##
190
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
191
185
  class ServiceContext < InstanceContext
192
186
  ##
193
187
  # Initialize the ServiceContext
@@ -354,8 +348,6 @@ module Twilio
354
348
  end
355
349
  end
356
350
 
357
- ##
358
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
359
351
  class ServiceInstance < InstanceResource
360
352
  ##
361
353
  # Initialize the ServiceInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Sync < Domain
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class DocumentList < ListResource
17
15
  ##
18
16
  # Initialize the DocumentList
@@ -141,8 +139,6 @@ module Twilio
141
139
  end
142
140
  end
143
141
 
144
- ##
145
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
146
142
  class DocumentPage < Page
147
143
  ##
148
144
  # Initialize the DocumentPage
@@ -172,8 +168,6 @@ module Twilio
172
168
  end
173
169
  end
174
170
 
175
- ##
176
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
177
171
  class DocumentContext < InstanceContext
178
172
  ##
179
173
  # Initialize the DocumentContext
@@ -206,12 +200,9 @@ module Twilio
206
200
 
207
201
  ##
208
202
  # Delete the DocumentInstance
209
- # @param [String] if_match The If-Match HTTP request header
210
203
  # @return [Boolean] true if delete succeeds, false otherwise
211
- def delete(if_match: :unset)
212
- headers = Twilio::Values.of({'If-Match' => if_match, })
213
-
214
- @version.delete('DELETE', @uri, headers: headers)
204
+ def delete
205
+ @version.delete('DELETE', @uri)
215
206
  end
216
207
 
217
208
  ##
@@ -271,8 +262,6 @@ module Twilio
271
262
  end
272
263
  end
273
264
 
274
- ##
275
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
276
265
  class DocumentInstance < InstanceResource
277
266
  ##
278
267
  # Initialize the DocumentInstance
@@ -400,10 +389,9 @@ module Twilio
400
389
 
401
390
  ##
402
391
  # Delete the DocumentInstance
403
- # @param [String] if_match The If-Match HTTP request header
404
392
  # @return [Boolean] true if delete succeeds, false otherwise
405
- def delete(if_match: :unset)
406
- context.delete(if_match: if_match, )
393
+ def delete
394
+ context.delete
407
395
  end
408
396
 
409
397
  ##
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class DocumentContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class DocumentPermissionList < ListResource
18
16
  ##
19
17
  # Initialize the DocumentPermissionList
@@ -119,8 +117,6 @@ module Twilio
119
117
  end
120
118
  end
121
119
 
122
- ##
123
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
124
120
  class DocumentPermissionPage < Page
125
121
  ##
126
122
  # Initialize the DocumentPermissionPage
@@ -155,8 +151,6 @@ module Twilio
155
151
  end
156
152
  end
157
153
 
158
- ##
159
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
160
154
  class DocumentPermissionContext < InstanceContext
161
155
  ##
162
156
  # Initialize the DocumentPermissionContext
@@ -238,8 +232,6 @@ module Twilio
238
232
  end
239
233
  end
240
234
 
241
- ##
242
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
243
235
  class DocumentPermissionInstance < InstanceResource
244
236
  ##
245
237
  # Initialize the DocumentPermissionInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Sync < Domain
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class SyncListList < ListResource
17
15
  ##
18
16
  # Initialize the SyncListList
@@ -142,8 +140,6 @@ module Twilio
142
140
  end
143
141
  end
144
142
 
145
- ##
146
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
147
143
  class SyncListPage < Page
148
144
  ##
149
145
  # Initialize the SyncListPage
@@ -173,8 +169,6 @@ module Twilio
173
169
  end
174
170
  end
175
171
 
176
- ##
177
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
178
172
  class SyncListContext < InstanceContext
179
173
  ##
180
174
  # Initialize the SyncListContext
@@ -290,8 +284,6 @@ module Twilio
290
284
  end
291
285
  end
292
286
 
293
- ##
294
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
295
287
  class SyncListInstance < InstanceResource
296
288
  ##
297
289
  # Initialize the SyncListInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class SyncListContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class SyncListItemList < ListResource
18
16
  ##
19
17
  # Initialize the SyncListItemList
@@ -184,8 +182,6 @@ module Twilio
184
182
  end
185
183
  end
186
184
 
187
- ##
188
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
189
185
  class SyncListItemPage < Page
190
186
  ##
191
187
  # Initialize the SyncListItemPage
@@ -220,8 +216,6 @@ module Twilio
220
216
  end
221
217
  end
222
218
 
223
- ##
224
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
225
219
  class SyncListItemContext < InstanceContext
226
220
  ##
227
221
  # Initialize the SyncListItemContext
@@ -258,7 +252,10 @@ module Twilio
258
252
 
259
253
  ##
260
254
  # Delete the SyncListItemInstance
261
- # @param [String] if_match The If-Match HTTP request header
255
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
256
+ # “revision” field of this {map item] matches the provided value. This matches the
257
+ # semantics of (and is implemented with) the HTTP [If-Match
258
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
262
259
  # @return [Boolean] true if delete succeeds, false otherwise
263
260
  def delete(if_match: :unset)
264
261
  headers = Twilio::Values.of({'If-Match' => if_match, })
@@ -283,7 +280,10 @@ module Twilio
283
280
  # List does not expire. The Sync List will be deleted automatically after it
284
281
  # expires, but there can be a delay between the expiration time and the
285
282
  # resources's deletion.
286
- # @param [String] if_match The If-Match HTTP request header
283
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
284
+ # “revision” field of this {map item] matches the provided value. This matches the
285
+ # semantics of (and is implemented with) the HTTP [If-Match
286
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
287
287
  # @return [SyncListItemInstance] Updated SyncListItemInstance
288
288
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset, if_match: :unset)
289
289
  data = Twilio::Values.of({
@@ -320,8 +320,6 @@ module Twilio
320
320
  end
321
321
  end
322
322
 
323
- ##
324
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
325
323
  class SyncListItemInstance < InstanceResource
326
324
  ##
327
325
  # Initialize the SyncListItemInstance
@@ -451,7 +449,10 @@ module Twilio
451
449
 
452
450
  ##
453
451
  # Delete the SyncListItemInstance
454
- # @param [String] if_match The If-Match HTTP request header
452
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
453
+ # “revision” field of this {map item] matches the provided value. This matches the
454
+ # semantics of (and is implemented with) the HTTP [If-Match
455
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
455
456
  # @return [Boolean] true if delete succeeds, false otherwise
456
457
  def delete(if_match: :unset)
457
458
  context.delete(if_match: if_match, )
@@ -474,7 +475,10 @@ module Twilio
474
475
  # List does not expire. The Sync List will be deleted automatically after it
475
476
  # expires, but there can be a delay between the expiration time and the
476
477
  # resources's deletion.
477
- # @param [String] if_match The If-Match HTTP request header
478
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
479
+ # “revision” field of this {map item] matches the provided value. This matches the
480
+ # semantics of (and is implemented with) the HTTP [If-Match
481
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
478
482
  # @return [SyncListItemInstance] Updated SyncListItemInstance
479
483
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset, if_match: :unset)
480
484
  context.update(
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class SyncListContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class SyncListPermissionList < ListResource
18
16
  ##
19
17
  # Initialize the SyncListPermissionList
@@ -119,8 +117,6 @@ module Twilio
119
117
  end
120
118
  end
121
119
 
122
- ##
123
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
124
120
  class SyncListPermissionPage < Page
125
121
  ##
126
122
  # Initialize the SyncListPermissionPage
@@ -155,8 +151,6 @@ module Twilio
155
151
  end
156
152
  end
157
153
 
158
- ##
159
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
160
154
  class SyncListPermissionContext < InstanceContext
161
155
  ##
162
156
  # Initialize the SyncListPermissionContext
@@ -237,8 +231,6 @@ module Twilio
237
231
  end
238
232
  end
239
233
 
240
- ##
241
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
242
234
  class SyncListPermissionInstance < InstanceResource
243
235
  ##
244
236
  # Initialize the SyncListPermissionInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Sync < Domain
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class SyncMapList < ListResource
17
15
  ##
18
16
  # Initialize the SyncMapList
@@ -141,8 +139,6 @@ module Twilio
141
139
  end
142
140
  end
143
141
 
144
- ##
145
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
146
142
  class SyncMapPage < Page
147
143
  ##
148
144
  # Initialize the SyncMapPage
@@ -172,8 +168,6 @@ module Twilio
172
168
  end
173
169
  end
174
170
 
175
- ##
176
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
177
171
  class SyncMapContext < InstanceContext
178
172
  ##
179
173
  # Initialize the SyncMapContext
@@ -289,8 +283,6 @@ module Twilio
289
283
  end
290
284
  end
291
285
 
292
- ##
293
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
294
286
  class SyncMapInstance < InstanceResource
295
287
  ##
296
288
  # Initialize the SyncMapInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class SyncMapContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class SyncMapItemList < ListResource
18
16
  ##
19
17
  # Initialize the SyncMapItemList
@@ -193,8 +191,6 @@ module Twilio
193
191
  end
194
192
  end
195
193
 
196
- ##
197
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
198
194
  class SyncMapItemPage < Page
199
195
  ##
200
196
  # Initialize the SyncMapItemPage
@@ -229,8 +225,6 @@ module Twilio
229
225
  end
230
226
  end
231
227
 
232
- ##
233
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
234
228
  class SyncMapItemContext < InstanceContext
235
229
  ##
236
230
  # Initialize the SyncMapItemContext
@@ -267,7 +261,10 @@ module Twilio
267
261
 
268
262
  ##
269
263
  # Delete the SyncMapItemInstance
270
- # @param [String] if_match The If-Match HTTP request header
264
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
265
+ # “revision” field of this {map item] matches the provided value. This matches the
266
+ # semantics of (and is implemented with) the HTTP [If-Match
267
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
271
268
  # @return [Boolean] true if delete succeeds, false otherwise
272
269
  def delete(if_match: :unset)
273
270
  headers = Twilio::Values.of({'If-Match' => if_match, })
@@ -293,7 +290,10 @@ module Twilio
293
290
  # or `ttl` is updated in the same request. The Sync Map will be deleted
294
291
  # automatically after it expires, but there can be a delay between the expiration
295
292
  # time and the resources's deletion.
296
- # @param [String] if_match The If-Match HTTP request header
293
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
294
+ # “revision” field of this {map item] matches the provided value. This matches the
295
+ # semantics of (and is implemented with) the HTTP [If-Match
296
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
297
297
  # @return [SyncMapItemInstance] Updated SyncMapItemInstance
298
298
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset, if_match: :unset)
299
299
  data = Twilio::Values.of({
@@ -330,8 +330,6 @@ module Twilio
330
330
  end
331
331
  end
332
332
 
333
- ##
334
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
335
333
  class SyncMapItemInstance < InstanceResource
336
334
  ##
337
335
  # Initialize the SyncMapItemInstance
@@ -457,7 +455,10 @@ module Twilio
457
455
 
458
456
  ##
459
457
  # Delete the SyncMapItemInstance
460
- # @param [String] if_match The If-Match HTTP request header
458
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
459
+ # “revision” field of this {map item] matches the provided value. This matches the
460
+ # semantics of (and is implemented with) the HTTP [If-Match
461
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
461
462
  # @return [Boolean] true if delete succeeds, false otherwise
462
463
  def delete(if_match: :unset)
463
464
  context.delete(if_match: if_match, )
@@ -481,7 +482,10 @@ module Twilio
481
482
  # or `ttl` is updated in the same request. The Sync Map will be deleted
482
483
  # automatically after it expires, but there can be a delay between the expiration
483
484
  # time and the resources's deletion.
484
- # @param [String] if_match The If-Match HTTP request header
485
+ # @param [String] if_match If provided, applies this mutation if (and only if) the
486
+ # “revision” field of this {map item] matches the provided value. This matches the
487
+ # semantics of (and is implemented with) the HTTP [If-Match
488
+ # header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
485
489
  # @return [SyncMapItemInstance] Updated SyncMapItemInstance
486
490
  def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset, if_match: :unset)
487
491
  context.update(