twilio-ruby 7.5.0 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +3 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -39
- data/lib/twilio-ruby/rest/iam/v1/token.rb +186 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +6 -0
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +2 -2
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -12
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -472
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -467
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -444
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -470
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -444
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -529
- data/lib/twilio-ruby/rest/preview/sync.rb +0 -49
@@ -1,529 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Preview
|
8
|
-
# This is the public Twilio REST API.
|
9
|
-
#
|
10
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
-
# https://openapi-generator.tech
|
12
|
-
# Do not edit the class manually.
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
module Twilio
|
17
|
-
module REST
|
18
|
-
class Preview < PreviewBase
|
19
|
-
class Sync < Version
|
20
|
-
class ServiceList < ListResource
|
21
|
-
|
22
|
-
##
|
23
|
-
# Initialize the ServiceList
|
24
|
-
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [ServiceList] ServiceList
|
26
|
-
def initialize(version)
|
27
|
-
super(version)
|
28
|
-
# Path Solution
|
29
|
-
@solution = { }
|
30
|
-
@uri = "/Services"
|
31
|
-
|
32
|
-
end
|
33
|
-
##
|
34
|
-
# Create the ServiceInstance
|
35
|
-
# @param [String] friendly_name
|
36
|
-
# @param [String] webhook_url
|
37
|
-
# @param [Boolean] reachability_webhooks_enabled
|
38
|
-
# @param [Boolean] acl_enabled
|
39
|
-
# @return [ServiceInstance] Created ServiceInstance
|
40
|
-
def create(
|
41
|
-
friendly_name: :unset,
|
42
|
-
webhook_url: :unset,
|
43
|
-
reachability_webhooks_enabled: :unset,
|
44
|
-
acl_enabled: :unset
|
45
|
-
)
|
46
|
-
|
47
|
-
data = Twilio::Values.of({
|
48
|
-
'FriendlyName' => friendly_name,
|
49
|
-
'WebhookUrl' => webhook_url,
|
50
|
-
'ReachabilityWebhooksEnabled' => reachability_webhooks_enabled,
|
51
|
-
'AclEnabled' => acl_enabled,
|
52
|
-
})
|
53
|
-
|
54
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
payload = @version.create('POST', @uri, data: data, headers: headers)
|
61
|
-
ServiceInstance.new(
|
62
|
-
@version,
|
63
|
-
payload,
|
64
|
-
)
|
65
|
-
end
|
66
|
-
|
67
|
-
|
68
|
-
##
|
69
|
-
# Lists ServiceInstance records from the API as a list.
|
70
|
-
# Unlike stream(), this operation is eager and will load `limit` records into
|
71
|
-
# memory before returning.
|
72
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
73
|
-
# guarantees to never return more than limit. Default is no limit
|
74
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
75
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
76
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
77
|
-
# efficient page size, i.e. min(limit, 1000)
|
78
|
-
# @return [Array] Array of up to limit results
|
79
|
-
def list(limit: nil, page_size: nil)
|
80
|
-
self.stream(
|
81
|
-
limit: limit,
|
82
|
-
page_size: page_size
|
83
|
-
).entries
|
84
|
-
end
|
85
|
-
|
86
|
-
##
|
87
|
-
# Streams Instance records from the API as an Enumerable.
|
88
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
89
|
-
# is reached.
|
90
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
91
|
-
# guarantees to never return more than limit. Default is no limit
|
92
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
93
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
94
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
95
|
-
# efficient page size, i.e. min(limit, 1000)
|
96
|
-
# @return [Enumerable] Enumerable that will yield up to limit results
|
97
|
-
def stream(limit: nil, page_size: nil)
|
98
|
-
limits = @version.read_limits(limit, page_size)
|
99
|
-
|
100
|
-
page = self.page(
|
101
|
-
page_size: limits[:page_size], )
|
102
|
-
|
103
|
-
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
104
|
-
end
|
105
|
-
|
106
|
-
##
|
107
|
-
# When passed a block, yields ServiceInstance records from the API.
|
108
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
109
|
-
# is reached.
|
110
|
-
def each
|
111
|
-
limits = @version.read_limits
|
112
|
-
|
113
|
-
page = self.page(page_size: limits[:page_size], )
|
114
|
-
|
115
|
-
@version.stream(page,
|
116
|
-
limit: limits[:limit],
|
117
|
-
page_limit: limits[:page_limit]).each {|x| yield x}
|
118
|
-
end
|
119
|
-
|
120
|
-
##
|
121
|
-
# Retrieve a single page of ServiceInstance records from the API.
|
122
|
-
# Request is executed immediately.
|
123
|
-
# @param [String] page_token PageToken provided by the API
|
124
|
-
# @param [Integer] page_number Page Number, this value is simply for client state
|
125
|
-
# @param [Integer] page_size Number of records to return, defaults to 50
|
126
|
-
# @return [Page] Page of ServiceInstance
|
127
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
128
|
-
params = Twilio::Values.of({
|
129
|
-
'PageToken' => page_token,
|
130
|
-
'Page' => page_number,
|
131
|
-
'PageSize' => page_size,
|
132
|
-
})
|
133
|
-
headers = Twilio::Values.of({})
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
response = @version.page('GET', @uri, params: params, headers: headers)
|
138
|
-
|
139
|
-
ServicePage.new(@version, response, @solution)
|
140
|
-
end
|
141
|
-
|
142
|
-
##
|
143
|
-
# Retrieve a single page of ServiceInstance records from the API.
|
144
|
-
# Request is executed immediately.
|
145
|
-
# @param [String] target_url API-generated URL for the requested results page
|
146
|
-
# @return [Page] Page of ServiceInstance
|
147
|
-
def get_page(target_url)
|
148
|
-
response = @version.domain.request(
|
149
|
-
'GET',
|
150
|
-
target_url
|
151
|
-
)
|
152
|
-
ServicePage.new(@version, response, @solution)
|
153
|
-
end
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
# Provide a user friendly representation
|
158
|
-
def to_s
|
159
|
-
'#<Twilio.Preview.Sync.ServiceList>'
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
|
164
|
-
class ServiceContext < InstanceContext
|
165
|
-
##
|
166
|
-
# Initialize the ServiceContext
|
167
|
-
# @param [Version] version Version that contains the resource
|
168
|
-
# @param [String] sid
|
169
|
-
# @return [ServiceContext] ServiceContext
|
170
|
-
def initialize(version, sid)
|
171
|
-
super(version)
|
172
|
-
|
173
|
-
# Path Solution
|
174
|
-
@solution = { sid: sid, }
|
175
|
-
@uri = "/Services/#{@solution[:sid]}"
|
176
|
-
|
177
|
-
# Dependents
|
178
|
-
@sync_maps = nil
|
179
|
-
@documents = nil
|
180
|
-
@sync_lists = nil
|
181
|
-
end
|
182
|
-
##
|
183
|
-
# Delete the ServiceInstance
|
184
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
185
|
-
def delete
|
186
|
-
|
187
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
@version.delete('DELETE', @uri, headers: headers)
|
192
|
-
end
|
193
|
-
|
194
|
-
##
|
195
|
-
# Fetch the ServiceInstance
|
196
|
-
# @return [ServiceInstance] Fetched ServiceInstance
|
197
|
-
def fetch
|
198
|
-
|
199
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
payload = @version.fetch('GET', @uri, headers: headers)
|
206
|
-
ServiceInstance.new(
|
207
|
-
@version,
|
208
|
-
payload,
|
209
|
-
sid: @solution[:sid],
|
210
|
-
)
|
211
|
-
end
|
212
|
-
|
213
|
-
##
|
214
|
-
# Update the ServiceInstance
|
215
|
-
# @param [String] webhook_url
|
216
|
-
# @param [String] friendly_name
|
217
|
-
# @param [Boolean] reachability_webhooks_enabled
|
218
|
-
# @param [Boolean] acl_enabled
|
219
|
-
# @return [ServiceInstance] Updated ServiceInstance
|
220
|
-
def update(
|
221
|
-
webhook_url: :unset,
|
222
|
-
friendly_name: :unset,
|
223
|
-
reachability_webhooks_enabled: :unset,
|
224
|
-
acl_enabled: :unset
|
225
|
-
)
|
226
|
-
|
227
|
-
data = Twilio::Values.of({
|
228
|
-
'WebhookUrl' => webhook_url,
|
229
|
-
'FriendlyName' => friendly_name,
|
230
|
-
'ReachabilityWebhooksEnabled' => reachability_webhooks_enabled,
|
231
|
-
'AclEnabled' => acl_enabled,
|
232
|
-
})
|
233
|
-
|
234
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
payload = @version.update('POST', @uri, data: data, headers: headers)
|
241
|
-
ServiceInstance.new(
|
242
|
-
@version,
|
243
|
-
payload,
|
244
|
-
sid: @solution[:sid],
|
245
|
-
)
|
246
|
-
end
|
247
|
-
|
248
|
-
##
|
249
|
-
# Access the sync_maps
|
250
|
-
# @return [SyncMapList]
|
251
|
-
# @return [SyncMapContext] if sid was passed.
|
252
|
-
def sync_maps(sid=:unset)
|
253
|
-
|
254
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
255
|
-
|
256
|
-
if sid != :unset
|
257
|
-
return SyncMapContext.new(@version, @solution[:sid],sid )
|
258
|
-
end
|
259
|
-
|
260
|
-
unless @sync_maps
|
261
|
-
@sync_maps = SyncMapList.new(
|
262
|
-
@version, service_sid: @solution[:sid], )
|
263
|
-
end
|
264
|
-
|
265
|
-
@sync_maps
|
266
|
-
end
|
267
|
-
##
|
268
|
-
# Access the documents
|
269
|
-
# @return [DocumentList]
|
270
|
-
# @return [DocumentContext] if sid was passed.
|
271
|
-
def documents(sid=:unset)
|
272
|
-
|
273
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
274
|
-
|
275
|
-
if sid != :unset
|
276
|
-
return DocumentContext.new(@version, @solution[:sid],sid )
|
277
|
-
end
|
278
|
-
|
279
|
-
unless @documents
|
280
|
-
@documents = DocumentList.new(
|
281
|
-
@version, service_sid: @solution[:sid], )
|
282
|
-
end
|
283
|
-
|
284
|
-
@documents
|
285
|
-
end
|
286
|
-
##
|
287
|
-
# Access the sync_lists
|
288
|
-
# @return [SyncListList]
|
289
|
-
# @return [SyncListContext] if sid was passed.
|
290
|
-
def sync_lists(sid=:unset)
|
291
|
-
|
292
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
293
|
-
|
294
|
-
if sid != :unset
|
295
|
-
return SyncListContext.new(@version, @solution[:sid],sid )
|
296
|
-
end
|
297
|
-
|
298
|
-
unless @sync_lists
|
299
|
-
@sync_lists = SyncListList.new(
|
300
|
-
@version, service_sid: @solution[:sid], )
|
301
|
-
end
|
302
|
-
|
303
|
-
@sync_lists
|
304
|
-
end
|
305
|
-
|
306
|
-
##
|
307
|
-
# Provide a user friendly representation
|
308
|
-
def to_s
|
309
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
310
|
-
"#<Twilio.Preview.Sync.ServiceContext #{context}>"
|
311
|
-
end
|
312
|
-
|
313
|
-
##
|
314
|
-
# Provide a detailed, user friendly representation
|
315
|
-
def inspect
|
316
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
317
|
-
"#<Twilio.Preview.Sync.ServiceContext #{context}>"
|
318
|
-
end
|
319
|
-
end
|
320
|
-
|
321
|
-
class ServicePage < Page
|
322
|
-
##
|
323
|
-
# Initialize the ServicePage
|
324
|
-
# @param [Version] version Version that contains the resource
|
325
|
-
# @param [Response] response Response from the API
|
326
|
-
# @param [Hash] solution Path solution for the resource
|
327
|
-
# @return [ServicePage] ServicePage
|
328
|
-
def initialize(version, response, solution)
|
329
|
-
super(version, response)
|
330
|
-
|
331
|
-
# Path Solution
|
332
|
-
@solution = solution
|
333
|
-
end
|
334
|
-
|
335
|
-
##
|
336
|
-
# Build an instance of ServiceInstance
|
337
|
-
# @param [Hash] payload Payload response from the API
|
338
|
-
# @return [ServiceInstance] ServiceInstance
|
339
|
-
def get_instance(payload)
|
340
|
-
ServiceInstance.new(@version, payload)
|
341
|
-
end
|
342
|
-
|
343
|
-
##
|
344
|
-
# Provide a user friendly representation
|
345
|
-
def to_s
|
346
|
-
'<Twilio.Preview.Sync.ServicePage>'
|
347
|
-
end
|
348
|
-
end
|
349
|
-
class ServiceInstance < InstanceResource
|
350
|
-
##
|
351
|
-
# Initialize the ServiceInstance
|
352
|
-
# @param [Version] version Version that contains the resource
|
353
|
-
# @param [Hash] payload payload that contains response from Twilio
|
354
|
-
# @param [String] account_sid The SID of the
|
355
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Service
|
356
|
-
# resource.
|
357
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
358
|
-
# @return [ServiceInstance] ServiceInstance
|
359
|
-
def initialize(version, payload , sid: nil)
|
360
|
-
super(version)
|
361
|
-
|
362
|
-
# Marshaled Properties
|
363
|
-
@properties = {
|
364
|
-
'sid' => payload['sid'],
|
365
|
-
'account_sid' => payload['account_sid'],
|
366
|
-
'friendly_name' => payload['friendly_name'],
|
367
|
-
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
368
|
-
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
369
|
-
'url' => payload['url'],
|
370
|
-
'webhook_url' => payload['webhook_url'],
|
371
|
-
'reachability_webhooks_enabled' => payload['reachability_webhooks_enabled'],
|
372
|
-
'acl_enabled' => payload['acl_enabled'],
|
373
|
-
'links' => payload['links'],
|
374
|
-
}
|
375
|
-
|
376
|
-
# Context
|
377
|
-
@instance_context = nil
|
378
|
-
@params = { 'sid' => sid || @properties['sid'] , }
|
379
|
-
end
|
380
|
-
|
381
|
-
##
|
382
|
-
# Generate an instance context for the instance, the context is capable of
|
383
|
-
# performing various actions. All instance actions are proxied to the context
|
384
|
-
# @return [ServiceContext] CallContext for this CallInstance
|
385
|
-
def context
|
386
|
-
unless @instance_context
|
387
|
-
@instance_context = ServiceContext.new(@version , @params['sid'])
|
388
|
-
end
|
389
|
-
@instance_context
|
390
|
-
end
|
391
|
-
|
392
|
-
##
|
393
|
-
# @return [String]
|
394
|
-
def sid
|
395
|
-
@properties['sid']
|
396
|
-
end
|
397
|
-
|
398
|
-
##
|
399
|
-
# @return [String]
|
400
|
-
def account_sid
|
401
|
-
@properties['account_sid']
|
402
|
-
end
|
403
|
-
|
404
|
-
##
|
405
|
-
# @return [String]
|
406
|
-
def friendly_name
|
407
|
-
@properties['friendly_name']
|
408
|
-
end
|
409
|
-
|
410
|
-
##
|
411
|
-
# @return [Time]
|
412
|
-
def date_created
|
413
|
-
@properties['date_created']
|
414
|
-
end
|
415
|
-
|
416
|
-
##
|
417
|
-
# @return [Time]
|
418
|
-
def date_updated
|
419
|
-
@properties['date_updated']
|
420
|
-
end
|
421
|
-
|
422
|
-
##
|
423
|
-
# @return [String]
|
424
|
-
def url
|
425
|
-
@properties['url']
|
426
|
-
end
|
427
|
-
|
428
|
-
##
|
429
|
-
# @return [String]
|
430
|
-
def webhook_url
|
431
|
-
@properties['webhook_url']
|
432
|
-
end
|
433
|
-
|
434
|
-
##
|
435
|
-
# @return [Boolean]
|
436
|
-
def reachability_webhooks_enabled
|
437
|
-
@properties['reachability_webhooks_enabled']
|
438
|
-
end
|
439
|
-
|
440
|
-
##
|
441
|
-
# @return [Boolean]
|
442
|
-
def acl_enabled
|
443
|
-
@properties['acl_enabled']
|
444
|
-
end
|
445
|
-
|
446
|
-
##
|
447
|
-
# @return [Hash]
|
448
|
-
def links
|
449
|
-
@properties['links']
|
450
|
-
end
|
451
|
-
|
452
|
-
##
|
453
|
-
# Delete the ServiceInstance
|
454
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
455
|
-
def delete
|
456
|
-
|
457
|
-
context.delete
|
458
|
-
end
|
459
|
-
|
460
|
-
##
|
461
|
-
# Fetch the ServiceInstance
|
462
|
-
# @return [ServiceInstance] Fetched ServiceInstance
|
463
|
-
def fetch
|
464
|
-
|
465
|
-
context.fetch
|
466
|
-
end
|
467
|
-
|
468
|
-
##
|
469
|
-
# Update the ServiceInstance
|
470
|
-
# @param [String] webhook_url
|
471
|
-
# @param [String] friendly_name
|
472
|
-
# @param [Boolean] reachability_webhooks_enabled
|
473
|
-
# @param [Boolean] acl_enabled
|
474
|
-
# @return [ServiceInstance] Updated ServiceInstance
|
475
|
-
def update(
|
476
|
-
webhook_url: :unset,
|
477
|
-
friendly_name: :unset,
|
478
|
-
reachability_webhooks_enabled: :unset,
|
479
|
-
acl_enabled: :unset
|
480
|
-
)
|
481
|
-
|
482
|
-
context.update(
|
483
|
-
webhook_url: webhook_url,
|
484
|
-
friendly_name: friendly_name,
|
485
|
-
reachability_webhooks_enabled: reachability_webhooks_enabled,
|
486
|
-
acl_enabled: acl_enabled,
|
487
|
-
)
|
488
|
-
end
|
489
|
-
|
490
|
-
##
|
491
|
-
# Access the sync_maps
|
492
|
-
# @return [sync_maps] sync_maps
|
493
|
-
def sync_maps
|
494
|
-
context.sync_maps
|
495
|
-
end
|
496
|
-
|
497
|
-
##
|
498
|
-
# Access the documents
|
499
|
-
# @return [documents] documents
|
500
|
-
def documents
|
501
|
-
context.documents
|
502
|
-
end
|
503
|
-
|
504
|
-
##
|
505
|
-
# Access the sync_lists
|
506
|
-
# @return [sync_lists] sync_lists
|
507
|
-
def sync_lists
|
508
|
-
context.sync_lists
|
509
|
-
end
|
510
|
-
|
511
|
-
##
|
512
|
-
# Provide a user friendly representation
|
513
|
-
def to_s
|
514
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
515
|
-
"<Twilio.Preview.Sync.ServiceInstance #{values}>"
|
516
|
-
end
|
517
|
-
|
518
|
-
##
|
519
|
-
# Provide a detailed, user friendly representation
|
520
|
-
def inspect
|
521
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
522
|
-
"<Twilio.Preview.Sync.ServiceInstance #{values}>"
|
523
|
-
end
|
524
|
-
end
|
525
|
-
|
526
|
-
end
|
527
|
-
end
|
528
|
-
end
|
529
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Preview
|
8
|
-
# This is the public Twilio REST API.
|
9
|
-
#
|
10
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
-
# https://openapi-generator.tech
|
12
|
-
# Do not edit the class manually.
|
13
|
-
#
|
14
|
-
|
15
|
-
module Twilio
|
16
|
-
module REST
|
17
|
-
class Preview
|
18
|
-
class Sync < Version
|
19
|
-
##
|
20
|
-
# Initialize the Sync version of Preview
|
21
|
-
def initialize(domain)
|
22
|
-
super
|
23
|
-
@version = 'Sync'
|
24
|
-
@services = nil
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# @param [String] sid
|
29
|
-
# @return [Twilio::REST::Preview::Sync::ServiceContext] if sid was passed.
|
30
|
-
# @return [Twilio::REST::Preview::Sync::ServiceList]
|
31
|
-
def services(sid=:unset)
|
32
|
-
if sid.nil?
|
33
|
-
raise ArgumentError, 'sid cannot be nil'
|
34
|
-
end
|
35
|
-
if sid == :unset
|
36
|
-
@services ||= ServiceList.new self
|
37
|
-
else
|
38
|
-
ServiceContext.new(self, sid)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
##
|
42
|
-
# Provide a user friendly representation
|
43
|
-
def to_s
|
44
|
-
'<Twilio::REST::Preview::Sync>';
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|