twilio-ruby 6.8.3 → 6.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +36 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/http/http_client.rb +3 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -14
  6. data/lib/twilio-ruby/rest/client.rb +0 -5
  7. data/lib/twilio-ruby/rest/events/v1/event_type.rb +0 -2
  8. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -2
  9. data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -2
  10. data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -2
  11. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +4 -6
  12. data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
  13. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +245 -0
  14. data/lib/twilio-ruby/rest/numbers/v1.rb +15 -0
  15. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +27 -27
  16. data/lib/twilio-ruby/rest/preview/sync/service.rb +27 -27
  17. data/lib/twilio-ruby/rest/preview.rb +1 -11
  18. data/lib/twilio-ruby/rest/preview_base.rb +0 -5
  19. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -0
  20. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -0
  21. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +59 -2
  22. data/lib/twilio-ruby/version.rb +1 -1
  23. metadata +3 -35
  24. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
  25. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
  26. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
  27. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
  28. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
  29. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
  30. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
  31. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
  32. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
  33. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
  34. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
  35. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
  36. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
  37. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
  38. data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
  39. data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
  40. data/lib/twilio-ruby/rest/autopilot.rb +0 -22
  41. data/lib/twilio-ruby/rest/autopilot_base.rb +0 -38
  42. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
  43. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
  44. data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
  45. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
  46. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
  47. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
  48. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
  49. data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
  50. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
  51. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
  52. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
  53. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
  54. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
  55. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
  56. data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93f72d289553ee06f2eeed03379838f0f7bf0aaf
4
- data.tar.gz: b1e45d1f753beb689ca6c7ca49ad10679e29fac5
3
+ metadata.gz: 189f2883e1338dfb6eda7276713feefd805de2c9
4
+ data.tar.gz: d87e341871954c5268a512c6c97e88d5cabd3c86
5
5
  SHA512:
6
- metadata.gz: 590d26035fb79b388d13488a9c6afedbb0c6150e455a89b94e8ac66a096bcf39bdcdb9a72c07430f0471f61e80b2c6b0143b54c316d47935a115652a19caa264
7
- data.tar.gz: e48cea4a7378ef1e6d491ebd0ade12778db8ee494ea5751f135f67b35134f015a2519fe53f8bb77c2fd4624e61c232dd52d96ac3636ac7d7095068eaddc678ce
6
+ metadata.gz: 84e5ba92e3a32069f993d5fcdb9f6cb5ba1b9417c1e759be606d7e7235abb40c07bdb756707e603cd75c6e0c4181d2300b23447753bbf9b5d436f99138fc3387
7
+ data.tar.gz: a517ad5c5082c86918b845a6d6ab7de7d3de0d4cb5a302bd8d700e15291a33fa3fb32464677a60624d8a8e1ac159cb29f9baabc2b69886f80263f2e5b731d8f1
data/CHANGES.md CHANGED
@@ -1,6 +1,42 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-01-14] Version 6.9.1
5
+ --------------------------
6
+ **Library - Chore**
7
+ - [PR #691](https://github.com/twilio/twilio-ruby/pull/691): Removing tests related to Autopilot and Understand Endpoints - product EoL. Thanks to [@miriamela](https://github.com/miriamela)!
8
+
9
+ **Library - Fix**
10
+ - [PR #693](https://github.com/twilio/twilio-ruby/pull/693): fixed query param not going for delete. Thanks to [@manisha1997](https://github.com/manisha1997)!
11
+
12
+ **Push**
13
+ - Migrated to new Push API V4 with Resilient Notification Delivery.
14
+
15
+
16
+ [2023-12-14] Version 6.9.0
17
+ --------------------------
18
+ **Api**
19
+ - Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
20
+
21
+ **Events**
22
+ - Marked as GA
23
+
24
+ **Insights**
25
+ - decommission voice-qualitystats-endpoint role
26
+
27
+ **Numbers**
28
+ - Add Get Port In request api
29
+
30
+ **Taskrouter**
31
+ - Add `jitter_buffer_size` param in update reservation
32
+
33
+ **Trusthub**
34
+ - Add additional optional fields in compliance_tollfree_inquiry.json
35
+
36
+ **Verify**
37
+ - Remove `Tags` from Public Docs **(breaking change)**
38
+
39
+
4
40
  [2023-12-01] Version 6.8.3
5
41
  --------------------------
6
42
  **Verify**
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 6.8.3'
42
+ gem 'twilio-ruby', '~> 6.9.1'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 6.8.3
48
+ gem install twilio-ruby -v 6.9.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -6,7 +6,7 @@ module Twilio
6
6
  module HTTP
7
7
  class Client
8
8
  attr_accessor :adapter
9
- attr_reader :timeout, :last_response, :last_request
9
+ attr_reader :timeout, :last_response, :last_request, :connection
10
10
 
11
11
  def initialize(proxy_prot = nil, proxy_addr = nil, proxy_port = nil, proxy_user = nil, proxy_pass = nil,
12
12
  ssl_ca_file = nil, timeout: nil)
@@ -39,6 +39,7 @@ module Twilio
39
39
  f.proxy = "#{@proxy_prot}://#{@proxy_auth}#{@proxy_path}" if @proxy_prot && @proxy_path
40
40
  f.options.open_timeout = request.timeout || @timeout
41
41
  f.options.timeout = request.timeout || @timeout
42
+ f.params = request.params.nil? ? {} : request.params
42
43
 
43
44
  @configure_connection_blocks.each { |block| block.call(f) }
44
45
  f.adapter @adapter
@@ -65,7 +66,7 @@ module Twilio
65
66
  def send(request)
66
67
  @connection.send(request.method.downcase.to_sym,
67
68
  request.url,
68
- request.method == 'GET' ? request.params : request.data)
69
+ request.data)
69
70
  rescue Faraday::Error => e
70
71
  raise Twilio::REST::TwilioError, e
71
72
  end
@@ -220,8 +220,6 @@ module Twilio
220
220
  'connect_app_friendly_name' => payload['connect_app_friendly_name'],
221
221
  'connect_app_homepage_url' => payload['connect_app_homepage_url'],
222
222
  'connect_app_sid' => payload['connect_app_sid'],
223
- 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
224
- 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
225
223
  'permissions' => payload['permissions'],
226
224
  'uri' => payload['uri'],
227
225
  }
@@ -278,18 +276,6 @@ module Twilio
278
276
  @properties['connect_app_sid']
279
277
  end
280
278
 
281
- ##
282
- # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
283
- def date_created
284
- @properties['date_created']
285
- end
286
-
287
- ##
288
- # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
289
- def date_updated
290
- @properties['date_updated']
291
- end
292
-
293
279
  ##
294
280
  # @return [Array<Permission>] The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
295
281
  def permissions
@@ -27,11 +27,6 @@ module Twilio
27
27
  @api ||= Api.new self
28
28
  end
29
29
  ##
30
- # Access the Autopilot Twilio Domain
31
- def autopilot
32
- @autopilot ||= Autopilot.new self
33
- end
34
- ##
35
30
  # Access the Bulkexports Twilio Domain
36
31
  def bulkexports
37
32
  @bulkexports ||= Bulkexports.new self
@@ -129,8 +129,6 @@ module Twilio
129
129
  end
130
130
 
131
131
 
132
- ##
133
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
134
132
  class EventTypeContext < InstanceContext
135
133
  ##
136
134
  # Initialize the EventTypeContext
@@ -125,8 +125,6 @@ module Twilio
125
125
  end
126
126
 
127
127
 
128
- ##
129
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
130
128
  class SchemaVersionContext < InstanceContext
131
129
  ##
132
130
  # Initialize the SchemaVersionContext
@@ -39,8 +39,6 @@ module Twilio
39
39
  end
40
40
 
41
41
 
42
- ##
43
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
44
42
  class SchemaContext < InstanceContext
45
43
  ##
46
44
  # Initialize the SchemaContext
@@ -160,8 +160,6 @@ module Twilio
160
160
  end
161
161
 
162
162
 
163
- ##
164
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
165
163
  class SinkContext < InstanceContext
166
164
  ##
167
165
  # Initialize the SinkContext
@@ -34,7 +34,7 @@ module Twilio
34
34
  ##
35
35
  # Create the SubscribedEventInstance
36
36
  # @param [String] type Type of event being subscribed to.
37
- # @param [String] schema_version The schema version that the subscription should use.
37
+ # @param [String] schema_version The schema version that the Subscription should use.
38
38
  # @return [SubscribedEventInstance] Created SubscribedEventInstance
39
39
  def create(
40
40
  type: nil,
@@ -148,8 +148,6 @@ module Twilio
148
148
  end
149
149
 
150
150
 
151
- ##
152
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
153
151
  class SubscribedEventContext < InstanceContext
154
152
  ##
155
153
  # Initialize the SubscribedEventContext
@@ -190,7 +188,7 @@ module Twilio
190
188
 
191
189
  ##
192
190
  # Update the SubscribedEventInstance
193
- # @param [String] schema_version The schema version that the subscription should use.
191
+ # @param [String] schema_version The schema version that the Subscription should use.
194
192
  # @return [SubscribedEventInstance] Updated SubscribedEventInstance
195
193
  def update(
196
194
  schema_version: :unset
@@ -304,7 +302,7 @@ module Twilio
304
302
  end
305
303
 
306
304
  ##
307
- # @return [String] The schema version that the subscription should use.
305
+ # @return [String] The schema version that the Subscription should use.
308
306
  def schema_version
309
307
  @properties['schema_version']
310
308
  end
@@ -339,7 +337,7 @@ module Twilio
339
337
 
340
338
  ##
341
339
  # Update the SubscribedEventInstance
342
- # @param [String] schema_version The schema version that the subscription should use.
340
+ # @param [String] schema_version The schema version that the Subscription should use.
343
341
  # @return [SubscribedEventInstance] Updated SubscribedEventInstance
344
342
  def update(
345
343
  schema_version: :unset
@@ -154,8 +154,6 @@ module Twilio
154
154
  end
155
155
 
156
156
 
157
- ##
158
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
159
157
  class SubscriptionContext < InstanceContext
160
158
  ##
161
159
  # Initialize the SubscriptionContext
@@ -0,0 +1,245 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Numbers
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 Numbers < NumbersBase
19
+ class V1 < Version
20
+ class PortingPortInFetchList < ListResource
21
+ ##
22
+ # Initialize the PortingPortInFetchList
23
+ # @param [Version] version Version that contains the resource
24
+ # @return [PortingPortInFetchList] PortingPortInFetchList
25
+ def initialize(version)
26
+ super(version)
27
+ # Path Solution
28
+ @solution = { }
29
+
30
+
31
+ end
32
+
33
+
34
+
35
+ # Provide a user friendly representation
36
+ def to_s
37
+ '#<Twilio.Numbers.V1.PortingPortInFetchList>'
38
+ end
39
+ end
40
+
41
+
42
+ ##
43
+ #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
44
+ class PortingPortInFetchContext < InstanceContext
45
+ ##
46
+ # Initialize the PortingPortInFetchContext
47
+ # @param [Version] version Version that contains the resource
48
+ # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
49
+ # @return [PortingPortInFetchContext] PortingPortInFetchContext
50
+ def initialize(version, port_in_request_sid)
51
+ super(version)
52
+
53
+ # Path Solution
54
+ @solution = { port_in_request_sid: port_in_request_sid, }
55
+ @uri = "/Porting/PortIn/#{@solution[:port_in_request_sid]}"
56
+
57
+
58
+ end
59
+ ##
60
+ # Fetch the PortingPortInFetchInstance
61
+ # @return [PortingPortInFetchInstance] Fetched PortingPortInFetchInstance
62
+ def fetch
63
+
64
+ payload = @version.fetch('GET', @uri)
65
+ PortingPortInFetchInstance.new(
66
+ @version,
67
+ payload,
68
+ port_in_request_sid: @solution[:port_in_request_sid],
69
+ )
70
+ end
71
+
72
+
73
+ ##
74
+ # Provide a user friendly representation
75
+ def to_s
76
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
77
+ "#<Twilio.Numbers.V1.PortingPortInFetchContext #{context}>"
78
+ end
79
+
80
+ ##
81
+ # Provide a detailed, user friendly representation
82
+ def inspect
83
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
84
+ "#<Twilio.Numbers.V1.PortingPortInFetchContext #{context}>"
85
+ end
86
+ end
87
+
88
+ class PortingPortInFetchPage < Page
89
+ ##
90
+ # Initialize the PortingPortInFetchPage
91
+ # @param [Version] version Version that contains the resource
92
+ # @param [Response] response Response from the API
93
+ # @param [Hash] solution Path solution for the resource
94
+ # @return [PortingPortInFetchPage] PortingPortInFetchPage
95
+ def initialize(version, response, solution)
96
+ super(version, response)
97
+
98
+ # Path Solution
99
+ @solution = solution
100
+ end
101
+
102
+ ##
103
+ # Build an instance of PortingPortInFetchInstance
104
+ # @param [Hash] payload Payload response from the API
105
+ # @return [PortingPortInFetchInstance] PortingPortInFetchInstance
106
+ def get_instance(payload)
107
+ PortingPortInFetchInstance.new(@version, payload)
108
+ end
109
+
110
+ ##
111
+ # Provide a user friendly representation
112
+ def to_s
113
+ '<Twilio.Numbers.V1.PortingPortInFetchPage>'
114
+ end
115
+ end
116
+ class PortingPortInFetchInstance < InstanceResource
117
+ ##
118
+ # Initialize the PortingPortInFetchInstance
119
+ # @param [Version] version Version that contains the resource
120
+ # @param [Hash] payload payload that contains response from Twilio
121
+ # @param [String] account_sid The SID of the
122
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortInFetch
123
+ # resource.
124
+ # @param [String] sid The SID of the Call resource to fetch.
125
+ # @return [PortingPortInFetchInstance] PortingPortInFetchInstance
126
+ def initialize(version, payload , port_in_request_sid: nil)
127
+ super(version)
128
+
129
+ # Marshaled Properties
130
+ @properties = {
131
+ 'port_in_request_sid' => payload['port_in_request_sid'],
132
+ 'url' => payload['url'],
133
+ 'account_sid' => payload['account_sid'],
134
+ 'notification_emails' => payload['notification_emails'],
135
+ 'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']),
136
+ 'target_port_in_time_range_start' => payload['target_port_in_time_range_start'],
137
+ 'target_port_in_time_range_end' => payload['target_port_in_time_range_end'],
138
+ 'losing_carrier_information' => payload['losing_carrier_information'],
139
+ 'phone_numbers' => payload['phone_numbers'],
140
+ 'documents' => payload['documents'],
141
+ }
142
+
143
+ # Context
144
+ @instance_context = nil
145
+ @params = { 'port_in_request_sid' => port_in_request_sid || @properties['port_in_request_sid'] , }
146
+ end
147
+
148
+ ##
149
+ # Generate an instance context for the instance, the context is capable of
150
+ # performing various actions. All instance actions are proxied to the context
151
+ # @return [PortingPortInFetchContext] CallContext for this CallInstance
152
+ def context
153
+ unless @instance_context
154
+ @instance_context = PortingPortInFetchContext.new(@version , @params['port_in_request_sid'])
155
+ end
156
+ @instance_context
157
+ end
158
+
159
+ ##
160
+ # @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
161
+ def port_in_request_sid
162
+ @properties['port_in_request_sid']
163
+ end
164
+
165
+ ##
166
+ # @return [String] The URL of this Port In request
167
+ def url
168
+ @properties['url']
169
+ end
170
+
171
+ ##
172
+ # @return [String] The Account SID that the numbers will be added to after they are ported into Twilio.
173
+ def account_sid
174
+ @properties['account_sid']
175
+ end
176
+
177
+ ##
178
+ # @return [Array<String>] List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
179
+ def notification_emails
180
+ @properties['notification_emails']
181
+ end
182
+
183
+ ##
184
+ # @return [Date] Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
185
+ def target_port_in_date
186
+ @properties['target_port_in_date']
187
+ end
188
+
189
+ ##
190
+ # @return [String] Minimum hour in the future needs to be established with the Ops team for validation.
191
+ def target_port_in_time_range_start
192
+ @properties['target_port_in_time_range_start']
193
+ end
194
+
195
+ ##
196
+ # @return [String] Maximum hour in the future needs to be established with the Ops team for validation.
197
+ def target_port_in_time_range_end
198
+ @properties['target_port_in_time_range_end']
199
+ end
200
+
201
+ ##
202
+ # @return [Hash] The information for the losing carrier.
203
+ def losing_carrier_information
204
+ @properties['losing_carrier_information']
205
+ end
206
+
207
+ ##
208
+ # @return [Array<Hash>] The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
209
+ def phone_numbers
210
+ @properties['phone_numbers']
211
+ end
212
+
213
+ ##
214
+ # @return [Array<String>] The list of documents SID referencing a utility bills
215
+ def documents
216
+ @properties['documents']
217
+ end
218
+
219
+ ##
220
+ # Fetch the PortingPortInFetchInstance
221
+ # @return [PortingPortInFetchInstance] Fetched PortingPortInFetchInstance
222
+ def fetch
223
+
224
+ context.fetch
225
+ end
226
+
227
+ ##
228
+ # Provide a user friendly representation
229
+ def to_s
230
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
231
+ "<Twilio.Numbers.V1.PortingPortInFetchInstance #{values}>"
232
+ end
233
+
234
+ ##
235
+ # Provide a detailed, user friendly representation
236
+ def inspect
237
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
238
+ "<Twilio.Numbers.V1.PortingPortInFetchInstance #{values}>"
239
+ end
240
+ end
241
+
242
+ end
243
+ end
244
+ end
245
+ end
@@ -23,6 +23,7 @@ module Twilio
23
23
  @version = 'v1'
24
24
  @bulk_eligibilities = nil
25
25
  @porting_bulk_portabilities = nil
26
+ @porting_port_ins = nil
26
27
  @porting_portabilities = nil
27
28
  end
28
29
 
@@ -55,6 +56,20 @@ module Twilio
55
56
  end
56
57
  end
57
58
  ##
59
+ # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
60
+ # @return [Twilio::REST::Numbers::V1::PortingPortInFetchContext] if portInRequestSid was passed.
61
+ # @return [Twilio::REST::Numbers::V1::PortingPortInFetchList]
62
+ def porting_port_ins(port_in_request_sid=:unset)
63
+ if port_in_request_sid.nil?
64
+ raise ArgumentError, 'port_in_request_sid cannot be nil'
65
+ end
66
+ if port_in_request_sid == :unset
67
+ @porting_port_ins ||= PortingPortInFetchList.new self
68
+ else
69
+ PortingPortInFetchContext.new(self, port_in_request_sid)
70
+ end
71
+ end
72
+ ##
58
73
  # @param [String] phone_number The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212).
59
74
  # @return [Twilio::REST::Numbers::V1::PortingPortabilityContext] if phoneNumber was passed.
60
75
  # @return [Twilio::REST::Numbers::V1::PortingPortabilityList]
@@ -158,10 +158,10 @@ module Twilio
158
158
  @uri = "/Fleets/#{@solution[:sid]}"
159
159
 
160
160
  # Dependents
161
+ @certificates = nil
161
162
  @devices = nil
162
163
  @keys = nil
163
164
  @deployments = nil
164
- @certificates = nil
165
165
  end
166
166
  ##
167
167
  # Delete the FleetInstance
@@ -207,6 +207,25 @@ module Twilio
207
207
  )
208
208
  end
209
209
 
210
+ ##
211
+ # Access the certificates
212
+ # @return [CertificateList]
213
+ # @return [CertificateContext] if sid was passed.
214
+ def certificates(sid=:unset)
215
+
216
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
217
+
218
+ if sid != :unset
219
+ return CertificateContext.new(@version, @solution[:sid],sid )
220
+ end
221
+
222
+ unless @certificates
223
+ @certificates = CertificateList.new(
224
+ @version, fleet_sid: @solution[:sid], )
225
+ end
226
+
227
+ @certificates
228
+ end
210
229
  ##
211
230
  # Access the devices
212
231
  # @return [DeviceList]
@@ -264,25 +283,6 @@ module Twilio
264
283
 
265
284
  @deployments
266
285
  end
267
- ##
268
- # Access the certificates
269
- # @return [CertificateList]
270
- # @return [CertificateContext] if sid was passed.
271
- def certificates(sid=:unset)
272
-
273
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
274
-
275
- if sid != :unset
276
- return CertificateContext.new(@version, @solution[:sid],sid )
277
- end
278
-
279
- unless @certificates
280
- @certificates = CertificateList.new(
281
- @version, fleet_sid: @solution[:sid], )
282
- end
283
-
284
- @certificates
285
- end
286
286
 
287
287
  ##
288
288
  # Provide a user friendly representation
@@ -455,6 +455,13 @@ module Twilio
455
455
  )
456
456
  end
457
457
 
458
+ ##
459
+ # Access the certificates
460
+ # @return [certificates] certificates
461
+ def certificates
462
+ context.certificates
463
+ end
464
+
458
465
  ##
459
466
  # Access the devices
460
467
  # @return [devices] devices
@@ -476,13 +483,6 @@ module Twilio
476
483
  context.deployments
477
484
  end
478
485
 
479
- ##
480
- # Access the certificates
481
- # @return [certificates] certificates
482
- def certificates
483
- context.certificates
484
- end
485
-
486
486
  ##
487
487
  # Provide a user friendly representation
488
488
  def to_s