twilio-ruby 5.0.0.rc4 → 5.0.0.rc5

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +8 -1
  3. data/Makefile +3 -0
  4. data/lib/twilio-ruby.rb +0 -1
  5. data/lib/twilio-ruby/framework/version.rb +4 -4
  6. data/lib/twilio-ruby/rest/api/v2010/account.rb +0 -13
  7. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +0 -13
  8. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +0 -14
  9. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -13
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +0 -13
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +0 -13
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -11
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -13
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -14
  15. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +0 -14
  16. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +0 -13
  17. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +0 -14
  18. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +0 -13
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +0 -14
  20. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +0 -13
  21. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +0 -14
  22. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -13
  23. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +0 -14
  24. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +0 -13
  25. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +0 -14
  26. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +0 -13
  27. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +0 -14
  28. data/lib/twilio-ruby/rest/api/v2010/account/sandbox.rb +0 -10
  29. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +0 -13
  30. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +0 -14
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +0 -13
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +0 -14
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +0 -14
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +0 -14
  35. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +0 -14
  36. data/lib/twilio-ruby/rest/api/v2010/account/sms/short_code.rb +0 -13
  37. data/lib/twilio-ruby/rest/api/v2010/account/sms/sms_message.rb +0 -13
  38. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +0 -13
  39. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +0 -13
  40. data/lib/twilio-ruby/rest/client.rb +7 -7
  41. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +0 -12
  42. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +0 -12
  43. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +0 -13
  44. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +0 -14
  45. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +0 -14
  46. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +0 -13
  47. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +0 -18
  48. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -12
  49. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +0 -12
  50. data/lib/twilio-ruby/rest/monitor/v1/event.rb +0 -12
  51. data/lib/twilio-ruby/rest/notifications.rb +4 -0
  52. data/lib/twilio-ruby/rest/notifications/v1.rb +9 -0
  53. data/lib/twilio-ruby/rest/notifications/v1/credential.rb +390 -0
  54. data/lib/twilio-ruby/rest/notifications/v1/service.rb +0 -12
  55. data/lib/twilio-ruby/rest/notifications/v1/service/binding.rb +0 -13
  56. data/lib/twilio-ruby/rest/preview.rb +47 -0
  57. data/lib/twilio-ruby/rest/preview/wireless.rb +53 -0
  58. data/lib/twilio-ruby/rest/preview/wireless/command.rb +345 -0
  59. data/lib/twilio-ruby/rest/preview/wireless/device.rb +456 -0
  60. data/lib/twilio-ruby/rest/preview/wireless/device/usage.rb +227 -0
  61. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +325 -0
  62. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +0 -12
  63. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +0 -12
  64. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +0 -12
  65. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -12
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -12
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +0 -13
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +0 -13
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +0 -13
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +0 -14
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +0 -13
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -11
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +0 -13
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -11
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -10
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +0 -13
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -11
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -10
  79. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +0 -12
  80. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +0 -13
  81. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +0 -13
  82. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +0 -13
  83. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +0 -13
  84. data/lib/twilio-ruby/version.rb +1 -1
  85. data/spec/integration/api/v2010/account/usage/trigger_spec.rb +3 -3
  86. data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -1
  87. data/spec/integration/ip_messaging/v1/service/role_spec.rb +1 -1
  88. data/spec/integration/notifications/v1/credential_spec.rb +228 -0
  89. data/spec/integration/notifications/v1/service/binding_spec.rb +2 -2
  90. data/spec/integration/preview/wireless/command_spec.rb +58 -0
  91. data/spec/integration/preview/wireless/device/usage_spec.rb +25 -0
  92. data/spec/integration/preview/wireless/device_spec.rb +72 -0
  93. data/spec/integration/preview/wireless/rate_plan_spec.rb +39 -0
  94. metadata +19 -16
  95. data/lib/twilio-ruby/rest/conversations.rb +0 -40
  96. data/lib/twilio-ruby/rest/conversations/v1.rb +0 -35
  97. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +0 -270
  98. data/lib/twilio-ruby/rest/conversations/v1/conversation/completed.rb +0 -217
  99. data/lib/twilio-ruby/rest/conversations/v1/conversation/in_progress.rb +0 -217
  100. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +0 -352
  101. data/spec/integration/conversations/v1/conversation/completed_spec.rb +0 -89
  102. data/spec/integration/conversations/v1/conversation/in_progress_spec.rb +0 -89
  103. data/spec/integration/conversations/v1/conversation/participant_spec.rb +0 -174
  104. data/spec/integration/conversations/v1/conversation_spec.rb +0 -49
@@ -138,19 +138,6 @@ module Twilio
138
138
  )
139
139
  end
140
140
 
141
- ##
142
- # Constructs a QueueContext
143
- # @param [String] sid The queue Sid that uniquely identifies this resource
144
-
145
- # @return [QueueContext] QueueContext
146
- def get(sid)
147
- QueueContext.new(
148
- @version,
149
- account_sid: @solution[:account_sid],
150
- sid: sid,
151
- )
152
- end
153
-
154
141
  ##
155
142
  # Provide a user friendly representation
156
143
  def to_s
@@ -115,20 +115,6 @@ module Twilio
115
115
  return MemberPage.new(@version, response, @solution)
116
116
  end
117
117
 
118
- ##
119
- # Constructs a MemberContext
120
- # @param [String] call_sid The call_sid
121
-
122
- # @return [MemberContext] MemberContext
123
- def get(call_sid)
124
- MemberContext.new(
125
- @version,
126
- account_sid: @solution[:account_sid],
127
- queue_sid: @solution[:queue_sid],
128
- call_sid: call_sid,
129
- )
130
- end
131
-
132
118
  ##
133
119
  # Provide a user friendly representation
134
120
  def to_s
@@ -133,19 +133,6 @@ module Twilio
133
133
  return RecordingPage.new(@version, response, @solution)
134
134
  end
135
135
 
136
- ##
137
- # Constructs a RecordingContext
138
- # @param [String] sid The recording Sid that uniquely identifies this resource
139
-
140
- # @return [RecordingContext] RecordingContext
141
- def get(sid)
142
- RecordingContext.new(
143
- @version,
144
- account_sid: @solution[:account_sid],
145
- sid: sid,
146
- )
147
- end
148
-
149
136
  ##
150
137
  # Provide a user friendly representation
151
138
  def to_s
@@ -114,20 +114,6 @@ module Twilio
114
114
  return TranscriptionPage.new(@version, response, @solution)
115
115
  end
116
116
 
117
- ##
118
- # Constructs a TranscriptionContext
119
- # @param [String] sid The sid
120
-
121
- # @return [TranscriptionContext] TranscriptionContext
122
- def get(sid)
123
- TranscriptionContext.new(
124
- @version,
125
- account_sid: @solution[:account_sid],
126
- recording_sid: @solution[:recording_sid],
127
- sid: sid,
128
- )
129
- end
130
-
131
117
  ##
132
118
  # Provide a user friendly representation
133
119
  def to_s
@@ -25,16 +25,6 @@ module Twilio
25
25
  }
26
26
  end
27
27
 
28
- ##
29
- # Constructs a SandboxContext
30
- # @return [SandboxContext] SandboxContext
31
- def get
32
- SandboxContext.new(
33
- @version,
34
- account_sid: @solution[:account_sid],
35
- )
36
- end
37
-
38
28
  ##
39
29
  # Provide a user friendly representation
40
30
  def to_s
@@ -137,19 +137,6 @@ module Twilio
137
137
  )
138
138
  end
139
139
 
140
- ##
141
- # Constructs a CredentialListContext
142
- # @param [String] sid The credential Sid that uniquely identifies this resource
143
-
144
- # @return [CredentialListContext] CredentialListContext
145
- def get(sid)
146
- CredentialListContext.new(
147
- @version,
148
- account_sid: @solution[:account_sid],
149
- sid: sid,
150
- )
151
- end
152
-
153
140
  ##
154
141
  # Provide a user friendly representation
155
142
  def to_s
@@ -142,20 +142,6 @@ module Twilio
142
142
  )
143
143
  end
144
144
 
145
- ##
146
- # Constructs a CredentialContext
147
- # @param [String] sid The sid
148
-
149
- # @return [CredentialContext] CredentialContext
150
- def get(sid)
151
- CredentialContext.new(
152
- @version,
153
- account_sid: @solution[:account_sid],
154
- credential_list_sid: @solution[:credential_list_sid],
155
- sid: sid,
156
- )
157
- end
158
-
159
145
  ##
160
146
  # Provide a user friendly representation
161
147
  def to_s
@@ -157,19 +157,6 @@ module Twilio
157
157
  )
158
158
  end
159
159
 
160
- ##
161
- # Constructs a DomainContext
162
- # @param [String] sid The domain sid that uniquely identifies the resource
163
-
164
- # @return [DomainContext] DomainContext
165
- def get(sid)
166
- DomainContext.new(
167
- @version,
168
- account_sid: @solution[:account_sid],
169
- sid: sid,
170
- )
171
- end
172
-
173
160
  ##
174
161
  # Provide a user friendly representation
175
162
  def to_s
@@ -141,20 +141,6 @@ module Twilio
141
141
  return CredentialListMappingPage.new(@version, response, @solution)
142
142
  end
143
143
 
144
- ##
145
- # Constructs a CredentialListMappingContext
146
- # @param [String] sid The sid
147
-
148
- # @return [CredentialListMappingContext] CredentialListMappingContext
149
- def get(sid)
150
- CredentialListMappingContext.new(
151
- @version,
152
- account_sid: @solution[:account_sid],
153
- domain_sid: @solution[:domain_sid],
154
- sid: sid,
155
- )
156
- end
157
-
158
144
  ##
159
145
  # Provide a user friendly representation
160
146
  def to_s
@@ -141,20 +141,6 @@ module Twilio
141
141
  return IpAccessControlListMappingPage.new(@version, response, @solution)
142
142
  end
143
143
 
144
- ##
145
- # Constructs a IpAccessControlListMappingContext
146
- # @param [String] sid The sid
147
-
148
- # @return [IpAccessControlListMappingContext] IpAccessControlListMappingContext
149
- def get(sid)
150
- IpAccessControlListMappingContext.new(
151
- @version,
152
- account_sid: @solution[:account_sid],
153
- domain_sid: @solution[:domain_sid],
154
- sid: sid,
155
- )
156
- end
157
-
158
144
  ##
159
145
  # Provide a user friendly representation
160
146
  def to_s
@@ -138,20 +138,6 @@ module Twilio
138
138
  )
139
139
  end
140
140
 
141
- ##
142
- # Constructs a IpAccessControlListContext
143
- # @param [String] sid The ip-access-control-list Sid that uniquely identifies this
144
- # resource
145
-
146
- # @return [IpAccessControlListContext] IpAccessControlListContext
147
- def get(sid)
148
- IpAccessControlListContext.new(
149
- @version,
150
- account_sid: @solution[:account_sid],
151
- sid: sid,
152
- )
153
- end
154
-
155
141
  ##
156
142
  # Provide a user friendly representation
157
143
  def to_s
@@ -142,20 +142,6 @@ module Twilio
142
142
  )
143
143
  end
144
144
 
145
- ##
146
- # Constructs a IpAddressContext
147
- # @param [String] sid The sid
148
-
149
- # @return [IpAddressContext] IpAddressContext
150
- def get(sid)
151
- IpAddressContext.new(
152
- @version,
153
- account_sid: @solution[:account_sid],
154
- ip_access_control_list_sid: @solution[:ip_access_control_list_sid],
155
- sid: sid,
156
- )
157
- end
158
-
159
145
  ##
160
146
  # Provide a user friendly representation
161
147
  def to_s
@@ -135,19 +135,6 @@ module Twilio
135
135
  return ShortCodePage.new(@version, response, @solution)
136
136
  end
137
137
 
138
- ##
139
- # Constructs a ShortCodeContext
140
- # @param [String] sid The short-code Sid that uniquely identifies this resource
141
-
142
- # @return [ShortCodeContext] ShortCodeContext
143
- def get(sid)
144
- ShortCodeContext.new(
145
- @version,
146
- account_sid: @solution[:account_sid],
147
- sid: sid,
148
- )
149
- end
150
-
151
138
  ##
152
139
  # Provide a user friendly representation
153
140
  def to_s
@@ -182,19 +182,6 @@ module Twilio
182
182
  return SmsMessagePage.new(@version, response, @solution)
183
183
  end
184
184
 
185
- ##
186
- # Constructs a SmsMessageContext
187
- # @param [String] sid The sid
188
-
189
- # @return [SmsMessageContext] SmsMessageContext
190
- def get(sid)
191
- SmsMessageContext.new(
192
- @version,
193
- account_sid: @solution[:account_sid],
194
- sid: sid,
195
- )
196
- end
197
-
198
185
  ##
199
186
  # Provide a user friendly representation
200
187
  def to_s
@@ -112,19 +112,6 @@ module Twilio
112
112
  return TranscriptionPage.new(@version, response, @solution)
113
113
  end
114
114
 
115
- ##
116
- # Constructs a TranscriptionContext
117
- # @param [String] sid The transcription Sid that uniquely identifies this resource
118
-
119
- # @return [TranscriptionContext] TranscriptionContext
120
- def get(sid)
121
- TranscriptionContext.new(
122
- @version,
123
- account_sid: @solution[:account_sid],
124
- sid: sid,
125
- )
126
- end
127
-
128
115
  ##
129
116
  # Provide a user friendly representation
130
117
  def to_s
@@ -191,19 +191,6 @@ module Twilio
191
191
  return TriggerPage.new(@version, response, @solution)
192
192
  end
193
193
 
194
- ##
195
- # Constructs a TriggerContext
196
- # @param [String] sid The usage-trigger Sid that uniquely identifies this resource
197
-
198
- # @return [TriggerContext] TriggerContext
199
- def get(sid)
200
- TriggerContext.new(
201
- @version,
202
- account_sid: @solution[:account_sid],
203
- sid: sid,
204
- )
205
- end
206
-
207
194
  ##
208
195
  # Provide a user friendly representation
209
196
  def to_s
@@ -21,11 +21,11 @@ module Twilio
21
21
 
22
22
  # Domains
23
23
  @api = nil
24
- @conversations = nil
25
24
  @ip_messaging = nil
26
25
  @lookups = nil
27
26
  @monitor = nil
28
27
  @notifications = nil
28
+ @preview = nil
29
29
  @pricing = nil
30
30
  @taskrouter = nil
31
31
  @trunking = nil
@@ -69,12 +69,6 @@ module Twilio
69
69
  @api ||= Api.new self
70
70
  end
71
71
 
72
- ##
73
- # Access the Conversations Twilio Domain
74
- def conversations
75
- @conversations ||= Conversations.new self
76
- end
77
-
78
72
  ##
79
73
  # Access the IpMessaging Twilio Domain
80
74
  def ip_messaging
@@ -99,6 +93,12 @@ module Twilio
99
93
  @notifications ||= Notifications.new self
100
94
  end
101
95
 
96
+ ##
97
+ # Access the Preview Twilio Domain
98
+ def preview
99
+ @preview ||= Preview.new self
100
+ end
101
+
102
102
  ##
103
103
  # Access the Pricing Twilio Domain
104
104
  def pricing
@@ -140,18 +140,6 @@ module Twilio
140
140
  )
141
141
  end
142
142
 
143
- ##
144
- # Constructs a CredentialContext
145
- # @param [String] sid The sid
146
-
147
- # @return [CredentialContext] CredentialContext
148
- def get(sid)
149
- CredentialContext.new(
150
- @version,
151
- sid: sid,
152
- )
153
- end
154
-
155
143
  ##
156
144
  # Provide a user friendly representation
157
145
  def to_s
@@ -130,18 +130,6 @@ module Twilio
130
130
  return ServicePage.new(@version, response, @solution)
131
131
  end
132
132
 
133
- ##
134
- # Constructs a ServiceContext
135
- # @param [String] sid The sid
136
-
137
- # @return [ServiceContext] ServiceContext
138
- def get(sid)
139
- ServiceContext.new(
140
- @version,
141
- sid: sid,
142
- )
143
- end
144
-
145
133
  ##
146
134
  # Provide a user friendly representation
147
135
  def to_s
@@ -141,19 +141,6 @@ module Twilio
141
141
  return ChannelPage.new(@version, response, @solution)
142
142
  end
143
143
 
144
- ##
145
- # Constructs a ChannelContext
146
- # @param [String] sid The sid
147
-
148
- # @return [ChannelContext] ChannelContext
149
- def get(sid)
150
- ChannelContext.new(
151
- @version,
152
- service_sid: @solution[:service_sid],
153
- sid: sid,
154
- )
155
- end
156
-
157
144
  ##
158
145
  # Provide a user friendly representation
159
146
  def to_s
@@ -141,20 +141,6 @@ module Twilio
141
141
  return MemberPage.new(@version, response, @solution)
142
142
  end
143
143
 
144
- ##
145
- # Constructs a MemberContext
146
- # @param [String] sid The sid
147
-
148
- # @return [MemberContext] MemberContext
149
- def get(sid)
150
- MemberContext.new(
151
- @version,
152
- service_sid: @solution[:service_sid],
153
- channel_sid: @solution[:channel_sid],
154
- sid: sid,
155
- )
156
- end
157
-
158
144
  ##
159
145
  # Provide a user friendly representation
160
146
  def to_s