twilio-ruby 6.9.0 → 6.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +3 -2
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +27 -27
- data/lib/twilio-ruby/rest/preview/sync/service.rb +27 -27
- data/lib/twilio-ruby/rest/preview.rb +1 -11
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -35
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/autopilot_base.rb +0 -38
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
@@ -1,226 +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 Understand < 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.Preview.Understand.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 unique ID of the parent Assistant.
|
52
|
-
# @param [String] task_sid The unique ID of the Task associated with this Field.
|
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.Preview.Understand.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.Preview.Understand.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.Preview.Understand.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 unique ID of the Account that created this Field.
|
162
|
-
def account_sid
|
163
|
-
@properties['account_sid']
|
164
|
-
end
|
165
|
-
|
166
|
-
##
|
167
|
-
# @return [String] The unique ID of the parent Assistant.
|
168
|
-
def assistant_sid
|
169
|
-
@properties['assistant_sid']
|
170
|
-
end
|
171
|
-
|
172
|
-
##
|
173
|
-
# @return [String] The unique ID of the Task associated with this Field.
|
174
|
-
def task_sid
|
175
|
-
@properties['task_sid']
|
176
|
-
end
|
177
|
-
|
178
|
-
##
|
179
|
-
# @return [String] The total number of Samples associated with this Task.
|
180
|
-
def samples_count
|
181
|
-
@properties['samples_count']
|
182
|
-
end
|
183
|
-
|
184
|
-
##
|
185
|
-
# @return [String] The total number of Fields associated with this Task.
|
186
|
-
def fields_count
|
187
|
-
@properties['fields_count']
|
188
|
-
end
|
189
|
-
|
190
|
-
##
|
191
|
-
# @return [String]
|
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.Preview.Understand.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.Preview.Understand.TaskStatisticsInstance #{values}>"
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
223
|
-
end
|
224
|
-
end
|
225
|
-
|
226
|
-
|