twilio-ruby 6.9.0 → 6.9.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/http/http_client.rb +3 -2
  5. data/lib/twilio-ruby/rest/client.rb +0 -5
  6. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +27 -27
  7. data/lib/twilio-ruby/rest/preview/sync/service.rb +27 -27
  8. data/lib/twilio-ruby/rest/preview.rb +1 -11
  9. data/lib/twilio-ruby/rest/preview_base.rb +0 -5
  10. data/lib/twilio-ruby/version.rb +1 -1
  11. metadata +2 -35
  12. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
  13. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
  14. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
  15. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
  16. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
  17. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
  20. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
  21. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
  22. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
  23. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
  24. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
  25. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
  26. data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
  27. data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
  28. data/lib/twilio-ruby/rest/autopilot.rb +0 -22
  29. data/lib/twilio-ruby/rest/autopilot_base.rb +0 -38
  30. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
  31. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
  32. data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
  33. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
  34. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
  35. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
  36. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
  37. data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
  38. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
  39. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
  40. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
  41. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
  42. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
  43. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
  44. data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
@@ -1,253 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Autopilot
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 Autopilot < AutopilotBase
19
- class V1 < Version
20
- class AssistantContext < InstanceContext
21
- class TaskContext < InstanceContext
22
-
23
- class TaskActionsList < ListResource
24
- ##
25
- # Initialize the TaskActionsList
26
- # @param [Version] version Version that contains the resource
27
- # @return [TaskActionsList] TaskActionsList
28
- def initialize(version, assistant_sid: nil, task_sid: nil)
29
- super(version)
30
- # Path Solution
31
- @solution = { assistant_sid: assistant_sid, task_sid: task_sid }
32
-
33
-
34
- end
35
-
36
-
37
-
38
- # Provide a user friendly representation
39
- def to_s
40
- '#<Twilio.Autopilot.V1.TaskActionsList>'
41
- end
42
- end
43
-
44
-
45
- ##
46
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
47
- class TaskActionsContext < InstanceContext
48
- ##
49
- # Initialize the TaskActionsContext
50
- # @param [Version] version Version that contains the resource
51
- # @param [String] assistant_sid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined.
52
- # @param [String] task_sid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined.
53
- # @return [TaskActionsContext] TaskActionsContext
54
- def initialize(version, assistant_sid, task_sid)
55
- super(version)
56
-
57
- # Path Solution
58
- @solution = { assistant_sid: assistant_sid, task_sid: task_sid, }
59
- @uri = "/Assistants/#{@solution[:assistant_sid]}/Tasks/#{@solution[:task_sid]}/Actions"
60
-
61
-
62
- end
63
- ##
64
- # Fetch the TaskActionsInstance
65
- # @return [TaskActionsInstance] Fetched TaskActionsInstance
66
- def fetch
67
-
68
- payload = @version.fetch('GET', @uri)
69
- TaskActionsInstance.new(
70
- @version,
71
- payload,
72
- assistant_sid: @solution[:assistant_sid],
73
- task_sid: @solution[:task_sid],
74
- )
75
- end
76
-
77
- ##
78
- # Update the TaskActionsInstance
79
- # @param [Object] actions The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task.
80
- # @return [TaskActionsInstance] Updated TaskActionsInstance
81
- def update(
82
- actions: :unset
83
- )
84
-
85
- data = Twilio::Values.of({
86
- 'Actions' => Twilio.serialize_object(actions),
87
- })
88
-
89
- payload = @version.update('POST', @uri, data: data)
90
- TaskActionsInstance.new(
91
- @version,
92
- payload,
93
- assistant_sid: @solution[:assistant_sid],
94
- task_sid: @solution[:task_sid],
95
- )
96
- end
97
-
98
-
99
- ##
100
- # Provide a user friendly representation
101
- def to_s
102
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
103
- "#<Twilio.Autopilot.V1.TaskActionsContext #{context}>"
104
- end
105
-
106
- ##
107
- # Provide a detailed, user friendly representation
108
- def inspect
109
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
110
- "#<Twilio.Autopilot.V1.TaskActionsContext #{context}>"
111
- end
112
- end
113
-
114
- class TaskActionsPage < Page
115
- ##
116
- # Initialize the TaskActionsPage
117
- # @param [Version] version Version that contains the resource
118
- # @param [Response] response Response from the API
119
- # @param [Hash] solution Path solution for the resource
120
- # @return [TaskActionsPage] TaskActionsPage
121
- def initialize(version, response, solution)
122
- super(version, response)
123
-
124
- # Path Solution
125
- @solution = solution
126
- end
127
-
128
- ##
129
- # Build an instance of TaskActionsInstance
130
- # @param [Hash] payload Payload response from the API
131
- # @return [TaskActionsInstance] TaskActionsInstance
132
- def get_instance(payload)
133
- TaskActionsInstance.new(@version, payload, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:task_sid])
134
- end
135
-
136
- ##
137
- # Provide a user friendly representation
138
- def to_s
139
- '<Twilio.Autopilot.V1.TaskActionsPage>'
140
- end
141
- end
142
- class TaskActionsInstance < InstanceResource
143
- ##
144
- # Initialize the TaskActionsInstance
145
- # @param [Version] version Version that contains the resource
146
- # @param [Hash] payload payload that contains response from Twilio
147
- # @param [String] account_sid The SID of the
148
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TaskActions
149
- # resource.
150
- # @param [String] sid The SID of the Call resource to fetch.
151
- # @return [TaskActionsInstance] TaskActionsInstance
152
- def initialize(version, payload , assistant_sid: nil, task_sid: nil)
153
- super(version)
154
-
155
- # Marshaled Properties
156
- @properties = {
157
- 'account_sid' => payload['account_sid'],
158
- 'assistant_sid' => payload['assistant_sid'],
159
- 'task_sid' => payload['task_sid'],
160
- 'url' => payload['url'],
161
- 'data' => payload['data'],
162
- }
163
-
164
- # Context
165
- @instance_context = nil
166
- @params = { 'assistant_sid' => assistant_sid || @properties['assistant_sid'] ,'task_sid' => task_sid || @properties['task_sid'] , }
167
- end
168
-
169
- ##
170
- # Generate an instance context for the instance, the context is capable of
171
- # performing various actions. All instance actions are proxied to the context
172
- # @return [TaskActionsContext] CallContext for this CallInstance
173
- def context
174
- unless @instance_context
175
- @instance_context = TaskActionsContext.new(@version , @params['assistant_sid'], @params['task_sid'])
176
- end
177
- @instance_context
178
- end
179
-
180
- ##
181
- # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskActions resource.
182
- def account_sid
183
- @properties['account_sid']
184
- end
185
-
186
- ##
187
- # @return [String] The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource.
188
- def assistant_sid
189
- @properties['assistant_sid']
190
- end
191
-
192
- ##
193
- # @return [String] The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the resource.
194
- def task_sid
195
- @properties['task_sid']
196
- end
197
-
198
- ##
199
- # @return [String] The absolute URL of the TaskActions resource.
200
- def url
201
- @properties['url']
202
- end
203
-
204
- ##
205
- # @return [Hash] The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task.
206
- def data
207
- @properties['data']
208
- end
209
-
210
- ##
211
- # Fetch the TaskActionsInstance
212
- # @return [TaskActionsInstance] Fetched TaskActionsInstance
213
- def fetch
214
-
215
- context.fetch
216
- end
217
-
218
- ##
219
- # Update the TaskActionsInstance
220
- # @param [Object] actions The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task.
221
- # @return [TaskActionsInstance] Updated TaskActionsInstance
222
- def update(
223
- actions: :unset
224
- )
225
-
226
- context.update(
227
- actions: actions,
228
- )
229
- end
230
-
231
- ##
232
- # Provide a user friendly representation
233
- def to_s
234
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
235
- "<Twilio.Autopilot.V1.TaskActionsInstance #{values}>"
236
- end
237
-
238
- ##
239
- # Provide a detailed, user friendly representation
240
- def inspect
241
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
242
- "<Twilio.Autopilot.V1.TaskActionsInstance #{values}>"
243
- end
244
- end
245
-
246
- end
247
- end
248
- end
249
- end
250
- end
251
- end
252
-
253
-
@@ -1,226 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Autopilot
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 Autopilot < AutopilotBase
19
- class V1 < Version
20
- class AssistantContext < InstanceContext
21
- class TaskContext < InstanceContext
22
-
23
- class TaskStatisticsList < ListResource
24
- ##
25
- # Initialize the TaskStatisticsList
26
- # @param [Version] version Version that contains the resource
27
- # @return [TaskStatisticsList] TaskStatisticsList
28
- def initialize(version, assistant_sid: nil, task_sid: nil)
29
- super(version)
30
- # Path Solution
31
- @solution = { assistant_sid: assistant_sid, task_sid: task_sid }
32
-
33
-
34
- end
35
-
36
-
37
-
38
- # Provide a user friendly representation
39
- def to_s
40
- '#<Twilio.Autopilot.V1.TaskStatisticsList>'
41
- end
42
- end
43
-
44
-
45
- ##
46
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
47
- class TaskStatisticsContext < InstanceContext
48
- ##
49
- # Initialize the TaskStatisticsContext
50
- # @param [Version] version Version that contains the resource
51
- # @param [String] assistant_sid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.
52
- # @param [String] task_sid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch.
53
- # @return [TaskStatisticsContext] TaskStatisticsContext
54
- def initialize(version, assistant_sid, task_sid)
55
- super(version)
56
-
57
- # Path Solution
58
- @solution = { assistant_sid: assistant_sid, task_sid: task_sid, }
59
- @uri = "/Assistants/#{@solution[:assistant_sid]}/Tasks/#{@solution[:task_sid]}/Statistics"
60
-
61
-
62
- end
63
- ##
64
- # Fetch the TaskStatisticsInstance
65
- # @return [TaskStatisticsInstance] Fetched TaskStatisticsInstance
66
- def fetch
67
-
68
- payload = @version.fetch('GET', @uri)
69
- TaskStatisticsInstance.new(
70
- @version,
71
- payload,
72
- assistant_sid: @solution[:assistant_sid],
73
- task_sid: @solution[:task_sid],
74
- )
75
- end
76
-
77
-
78
- ##
79
- # Provide a user friendly representation
80
- def to_s
81
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
82
- "#<Twilio.Autopilot.V1.TaskStatisticsContext #{context}>"
83
- end
84
-
85
- ##
86
- # Provide a detailed, user friendly representation
87
- def inspect
88
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
89
- "#<Twilio.Autopilot.V1.TaskStatisticsContext #{context}>"
90
- end
91
- end
92
-
93
- class TaskStatisticsPage < Page
94
- ##
95
- # Initialize the TaskStatisticsPage
96
- # @param [Version] version Version that contains the resource
97
- # @param [Response] response Response from the API
98
- # @param [Hash] solution Path solution for the resource
99
- # @return [TaskStatisticsPage] TaskStatisticsPage
100
- def initialize(version, response, solution)
101
- super(version, response)
102
-
103
- # Path Solution
104
- @solution = solution
105
- end
106
-
107
- ##
108
- # Build an instance of TaskStatisticsInstance
109
- # @param [Hash] payload Payload response from the API
110
- # @return [TaskStatisticsInstance] TaskStatisticsInstance
111
- def get_instance(payload)
112
- TaskStatisticsInstance.new(@version, payload, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:task_sid])
113
- end
114
-
115
- ##
116
- # Provide a user friendly representation
117
- def to_s
118
- '<Twilio.Autopilot.V1.TaskStatisticsPage>'
119
- end
120
- end
121
- class TaskStatisticsInstance < InstanceResource
122
- ##
123
- # Initialize the TaskStatisticsInstance
124
- # @param [Version] version Version that contains the resource
125
- # @param [Hash] payload payload that contains response from Twilio
126
- # @param [String] account_sid The SID of the
127
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TaskStatistics
128
- # resource.
129
- # @param [String] sid The SID of the Call resource to fetch.
130
- # @return [TaskStatisticsInstance] TaskStatisticsInstance
131
- def initialize(version, payload , assistant_sid: nil, task_sid: nil)
132
- super(version)
133
-
134
- # Marshaled Properties
135
- @properties = {
136
- 'account_sid' => payload['account_sid'],
137
- 'assistant_sid' => payload['assistant_sid'],
138
- 'task_sid' => payload['task_sid'],
139
- 'samples_count' => payload['samples_count'] == nil ? payload['samples_count'] : payload['samples_count'].to_i,
140
- 'fields_count' => payload['fields_count'] == nil ? payload['fields_count'] : payload['fields_count'].to_i,
141
- 'url' => payload['url'],
142
- }
143
-
144
- # Context
145
- @instance_context = nil
146
- @params = { 'assistant_sid' => assistant_sid || @properties['assistant_sid'] ,'task_sid' => task_sid || @properties['task_sid'] , }
147
- end
148
-
149
- ##
150
- # Generate an instance context for the instance, the context is capable of
151
- # performing various actions. All instance actions are proxied to the context
152
- # @return [TaskStatisticsContext] CallContext for this CallInstance
153
- def context
154
- unless @instance_context
155
- @instance_context = TaskStatisticsContext.new(@version , @params['assistant_sid'], @params['task_sid'])
156
- end
157
- @instance_context
158
- end
159
-
160
- ##
161
- # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskStatistics resource.
162
- def account_sid
163
- @properties['account_sid']
164
- end
165
-
166
- ##
167
- # @return [String] The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource.
168
- def assistant_sid
169
- @properties['assistant_sid']
170
- end
171
-
172
- ##
173
- # @return [String] The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the statistics were collected.
174
- def task_sid
175
- @properties['task_sid']
176
- end
177
-
178
- ##
179
- # @return [String] The total number of [Samples](https://www.twilio.com/docs/autopilot/api/task-sample) associated with the Task.
180
- def samples_count
181
- @properties['samples_count']
182
- end
183
-
184
- ##
185
- # @return [String] The total number of [Fields](https://www.twilio.com/docs/autopilot/api/task-field) associated with the Task.
186
- def fields_count
187
- @properties['fields_count']
188
- end
189
-
190
- ##
191
- # @return [String] The absolute URL of the TaskStatistics resource.
192
- def url
193
- @properties['url']
194
- end
195
-
196
- ##
197
- # Fetch the TaskStatisticsInstance
198
- # @return [TaskStatisticsInstance] Fetched TaskStatisticsInstance
199
- def fetch
200
-
201
- context.fetch
202
- end
203
-
204
- ##
205
- # Provide a user friendly representation
206
- def to_s
207
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
208
- "<Twilio.Autopilot.V1.TaskStatisticsInstance #{values}>"
209
- end
210
-
211
- ##
212
- # Provide a detailed, user friendly representation
213
- def inspect
214
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
215
- "<Twilio.Autopilot.V1.TaskStatisticsInstance #{values}>"
216
- end
217
- end
218
-
219
- end
220
- end
221
- end
222
- end
223
- end
224
- end
225
-
226
-