twilio-ruby 5.46.0 → 5.46.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec2f94329e022fb33cd55a694e8ef8638b465b3b1b9f336b392308a30ff4b6c0
4
- data.tar.gz: 5cae812b5d92082cc9f1f5d9c00c4cb87e2cf07daf1f9cf53539d5be8b4dde77
3
+ metadata.gz: 8309541f261c0aeae9734c709608f3b71562f29cebbb179434be86b85c3e9fb6
4
+ data.tar.gz: 3294089cdcc6e96b24055a0c11a3b83378b5696d173b6915a8e78a2db7e5079b
5
5
  SHA512:
6
- metadata.gz: 4a4d102e1238ceffe7b22101af1e23573a90e47ff8accead506f303794791e9d6adbd48b302583e5ae15ddcf2d5fc2336ccfeba3676cf8f2767e2c0a10388141
7
- data.tar.gz: 86eb8eb1f84acc4f13c8574430a5e86ea63b150b537263c3af0fbb878a7d0dcf2c4d7de998e94356cb8c171a8f029bef66866ef3f2973981e2e519730b2cfe1f
6
+ metadata.gz: abe85844c0e58d1562d0113581f44c6dca8dceed2d6f3bb4558ebff1755b1b030051dc996b367d832217a595e8db24d43c2f47e3bc90a0116245d2172e55fe6d
7
+ data.tar.gz: 2ba4c97ab0686c02f06f4ce41ebeab9b969e82c1989b6f7e3f55a28df7a4810d818ee8e9290d0919f6ce5228c079371ad67d6a27a565c5d6e845583e2752e183
data/CHANGES.md CHANGED
@@ -1,6 +1,21 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2021-01-27] Version 5.46.1
5
+ ---------------------------
6
+ **Library - Docs**
7
+ - [PR #547](https://github.com/twilio/twilio-ruby/pull/547): Document how to use an API Key. Thanks to [@davetron5000](https://github.com/davetron5000)!
8
+
9
+ **Studio**
10
+ - Studio V2 API is now GA
11
+
12
+ **Supersim**
13
+ - Allow updating `CommandsUrl` and `CommandsMethod` on a Fleet
14
+
15
+ **Twiml**
16
+ - Add `status_callback` and `status_callback_method` to `Stream`.
17
+
18
+
4
19
  [2021-01-13] Version 5.46.0
5
20
  ---------------------------
6
21
  **Library - Docs**
data/README.md CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
34
34
  To install using [Bundler][bundler] grab the latest stable version:
35
35
 
36
36
  ```ruby
37
- gem 'twilio-ruby', '~> 5.46.0'
37
+ gem 'twilio-ruby', '~> 5.46.1'
38
38
  ```
39
39
 
40
40
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
41
41
 
42
42
  ```bash
43
- gem install twilio-ruby -v 5.46.0
43
+ gem install twilio-ruby -v 5.46.1
44
44
  ```
45
45
 
46
46
  To build and install the development branch yourself from the latest source:
@@ -66,6 +66,20 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
66
66
  @client = Twilio::REST::Client.new account_sid, auth_token
67
67
  ```
68
68
 
69
+ ### Use An API Key
70
+
71
+ ```ruby
72
+ require 'twilio-ruby'
73
+
74
+ # put your own credentials here
75
+ account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
76
+ api_key_sid = 'zzzzzzzzzzzzzzzzzzzzzz'
77
+ api_key_secret = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
78
+
79
+ # set up a client to talk to the Twilio REST API using an API Key
80
+ @client = Twilio::REST::Client.new api_key_sid, api_key_secret, account_sid
81
+ ```
82
+
69
83
  ### Specify a Region and/or Edge
70
84
 
71
85
  To take advantage of Twilio's [Global Infrastructure](https://www.twilio.com/docs/global-infrastructure), specify the target Region and/or Edge for the client:
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Studio < Domain
12
12
  class V2 < Version
13
- ##
14
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
13
  class FlowList < ListResource
16
14
  ##
17
15
  # Initialize the FlowList
@@ -31,7 +29,7 @@ module Twilio
31
29
  # @param [flow.Status] status The status of the Flow. Can be: `draft` or
32
30
  # `published`.
33
31
  # @param [Hash] definition JSON representation of flow definition.
34
- # @param [String] commit_message Description on change made in the revision.
32
+ # @param [String] commit_message Description of change made in the revision.
35
33
  # @return [FlowInstance] Created FlowInstance
36
34
  def create(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
37
35
  data = Twilio::Values.of({
@@ -133,8 +131,6 @@ module Twilio
133
131
  end
134
132
  end
135
133
 
136
- ##
137
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
138
134
  class FlowPage < Page
139
135
  ##
140
136
  # Initialize the FlowPage
@@ -164,8 +160,6 @@ module Twilio
164
160
  end
165
161
  end
166
162
 
167
- ##
168
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
169
163
  class FlowContext < InstanceContext
170
164
  ##
171
165
  # Initialize the FlowContext
@@ -191,7 +185,7 @@ module Twilio
191
185
  # `published`.
192
186
  # @param [String] friendly_name The string that you assigned to describe the Flow.
193
187
  # @param [Hash] definition JSON representation of flow definition.
194
- # @param [String] commit_message Description on change made in the revision.
188
+ # @param [String] commit_message Description of change made in the revision.
195
189
  # @return [FlowInstance] Updated FlowInstance
196
190
  def update(status: nil, friendly_name: :unset, definition: :unset, commit_message: :unset)
197
191
  data = Twilio::Values.of({
@@ -281,8 +275,6 @@ module Twilio
281
275
  end
282
276
  end
283
277
 
284
- ##
285
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
286
278
  class FlowInstance < InstanceResource
287
279
  ##
288
280
  # Initialize the FlowInstance
@@ -365,7 +357,7 @@ module Twilio
365
357
  end
366
358
 
367
359
  ##
368
- # @return [String] Description on change made in the revision
360
+ # @return [String] Description of change made in the revision
369
361
  def commit_message
370
362
  @properties['commit_message']
371
363
  end
@@ -424,7 +416,7 @@ module Twilio
424
416
  # `published`.
425
417
  # @param [String] friendly_name The string that you assigned to describe the Flow.
426
418
  # @param [Hash] definition JSON representation of flow definition.
427
- # @param [String] commit_message Description on change made in the revision.
419
+ # @param [String] commit_message Description of change made in the revision.
428
420
  # @return [FlowInstance] Updated FlowInstance
429
421
  def update(status: nil, friendly_name: :unset, definition: :unset, commit_message: :unset)
430
422
  context.update(
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Studio < Domain
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class ExecutionList < ListResource
17
15
  ##
18
16
  # Initialize the ExecutionList
@@ -169,8 +167,6 @@ module Twilio
169
167
  end
170
168
  end
171
169
 
172
- ##
173
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
174
170
  class ExecutionPage < Page
175
171
  ##
176
172
  # Initialize the ExecutionPage
@@ -200,8 +196,6 @@ module Twilio
200
196
  end
201
197
  end
202
198
 
203
- ##
204
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
205
199
  class ExecutionContext < InstanceContext
206
200
  ##
207
201
  # Initialize the ExecutionContext
@@ -296,8 +290,6 @@ module Twilio
296
290
  end
297
291
  end
298
292
 
299
- ##
300
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
301
293
  class ExecutionInstance < InstanceResource
302
294
  ##
303
295
  # Initialize the ExecutionInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ExecutionContextList < ListResource
18
16
  ##
19
17
  # Initialize the ExecutionContextList
@@ -35,8 +33,6 @@ module Twilio
35
33
  end
36
34
  end
37
35
 
38
- ##
39
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
40
36
  class ExecutionContextPage < Page
41
37
  ##
42
38
  # Initialize the ExecutionContextPage
@@ -71,8 +67,6 @@ module Twilio
71
67
  end
72
68
  end
73
69
 
74
- ##
75
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
76
70
  class ExecutionContextContext < InstanceContext
77
71
  ##
78
72
  # Initialize the ExecutionContextContext
@@ -118,8 +112,6 @@ module Twilio
118
112
  end
119
113
  end
120
114
 
121
- ##
122
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
123
115
  class ExecutionContextInstance < InstanceResource
124
116
  ##
125
117
  # Initialize the ExecutionContextInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ExecutionStepList < ListResource
18
16
  ##
19
17
  # Initialize the ExecutionStepList
@@ -116,8 +114,6 @@ module Twilio
116
114
  end
117
115
  end
118
116
 
119
- ##
120
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
121
117
  class ExecutionStepPage < Page
122
118
  ##
123
119
  # Initialize the ExecutionStepPage
@@ -152,8 +148,6 @@ module Twilio
152
148
  end
153
149
  end
154
150
 
155
- ##
156
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
157
151
  class ExecutionStepContext < InstanceContext
158
152
  ##
159
153
  # Initialize the ExecutionStepContext
@@ -217,8 +211,6 @@ module Twilio
217
211
  end
218
212
  end
219
213
 
220
- ##
221
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
222
214
  class ExecutionStepInstance < InstanceResource
223
215
  ##
224
216
  # Initialize the ExecutionStepInstance
@@ -13,8 +13,6 @@ module Twilio
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
15
  class ExecutionStepContext < InstanceContext
16
- ##
17
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
18
16
  class ExecutionStepContextList < ListResource
19
17
  ##
20
18
  # Initialize the ExecutionStepContextList
@@ -38,8 +36,6 @@ module Twilio
38
36
  end
39
37
  end
40
38
 
41
- ##
42
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
43
39
  class ExecutionStepContextPage < Page
44
40
  ##
45
41
  # Initialize the ExecutionStepContextPage
@@ -75,8 +71,6 @@ module Twilio
75
71
  end
76
72
  end
77
73
 
78
- ##
79
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
80
74
  class ExecutionStepContextContext < InstanceContext
81
75
  ##
82
76
  # Initialize the ExecutionStepContextContext
@@ -124,8 +118,6 @@ module Twilio
124
118
  end
125
119
  end
126
120
 
127
- ##
128
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
129
121
  class ExecutionStepContextInstance < InstanceResource
130
122
  ##
131
123
  # Initialize the ExecutionStepContextInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Studio < Domain
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class FlowRevisionList < ListResource
17
15
  ##
18
16
  # Initialize the FlowRevisionList
@@ -115,8 +113,6 @@ module Twilio
115
113
  end
116
114
  end
117
115
 
118
- ##
119
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
120
116
  class FlowRevisionPage < Page
121
117
  ##
122
118
  # Initialize the FlowRevisionPage
@@ -146,8 +142,6 @@ module Twilio
146
142
  end
147
143
  end
148
144
 
149
- ##
150
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
151
145
  class FlowRevisionContext < InstanceContext
152
146
  ##
153
147
  # Initialize the FlowRevisionContext
@@ -188,8 +182,6 @@ module Twilio
188
182
  end
189
183
  end
190
184
 
191
- ##
192
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
193
185
  class FlowRevisionInstance < InstanceResource
194
186
  ##
195
187
  # Initialize the FlowRevisionInstance
@@ -272,7 +264,7 @@ module Twilio
272
264
  end
273
265
 
274
266
  ##
275
- # @return [String] Description on change made in the revision
267
+ # @return [String] Description of change made in the revision
276
268
  def commit_message
277
269
  @properties['commit_message']
278
270
  end
@@ -11,13 +11,11 @@ module Twilio
11
11
  class Studio < Domain
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class FlowTestUserList < ListResource
17
15
  ##
18
16
  # Initialize the FlowTestUserList
19
17
  # @param [Version] version Version that contains the resource
20
- # @param [String] sid The sid
18
+ # @param [String] sid Unique identifier of the flow.
21
19
  # @return [FlowTestUserList] FlowTestUserList
22
20
  def initialize(version, sid: nil)
23
21
  super(version)
@@ -33,8 +31,6 @@ module Twilio
33
31
  end
34
32
  end
35
33
 
36
- ##
37
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
38
34
  class FlowTestUserPage < Page
39
35
  ##
40
36
  # Initialize the FlowTestUserPage
@@ -64,13 +60,11 @@ module Twilio
64
60
  end
65
61
  end
66
62
 
67
- ##
68
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
69
63
  class FlowTestUserContext < InstanceContext
70
64
  ##
71
65
  # Initialize the FlowTestUserContext
72
66
  # @param [Version] version Version that contains the resource
73
- # @param [String] sid The sid
67
+ # @param [String] sid Unique identifier of the flow.
74
68
  # @return [FlowTestUserContext] FlowTestUserContext
75
69
  def initialize(version, sid)
76
70
  super(version)
@@ -91,7 +85,8 @@ module Twilio
91
85
 
92
86
  ##
93
87
  # Update the FlowTestUserInstance
94
- # @param [Array[String]] test_users The test_users
88
+ # @param [Array[String]] test_users List of test user identities that can test
89
+ # draft versions of the flow.
95
90
  # @return [FlowTestUserInstance] Updated FlowTestUserInstance
96
91
  def update(test_users: nil)
97
92
  data = Twilio::Values.of({'TestUsers' => Twilio.serialize_list(test_users) { |e| e }, })
@@ -116,14 +111,12 @@ module Twilio
116
111
  end
117
112
  end
118
113
 
119
- ##
120
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
121
114
  class FlowTestUserInstance < InstanceResource
122
115
  ##
123
116
  # Initialize the FlowTestUserInstance
124
117
  # @param [Version] version Version that contains the resource
125
118
  # @param [Hash] payload payload that contains response from Twilio
126
- # @param [String] sid The sid
119
+ # @param [String] sid Unique identifier of the flow.
127
120
  # @return [FlowTestUserInstance] FlowTestUserInstance
128
121
  def initialize(version, payload, sid: nil)
129
122
  super(version)
@@ -152,19 +145,19 @@ module Twilio
152
145
  end
153
146
 
154
147
  ##
155
- # @return [String] The sid
148
+ # @return [String] Unique identifier of the flow.
156
149
  def sid
157
150
  @properties['sid']
158
151
  end
159
152
 
160
153
  ##
161
- # @return [Array[String]] The test_users
154
+ # @return [Array[String]] List of test user identities that can test draft versions of the flow.
162
155
  def test_users
163
156
  @properties['test_users']
164
157
  end
165
158
 
166
159
  ##
167
- # @return [String] The url
160
+ # @return [String] The URL of this resource.
168
161
  def url
169
162
  @properties['url']
170
163
  end
@@ -178,7 +171,8 @@ module Twilio
178
171
 
179
172
  ##
180
173
  # Update the FlowTestUserInstance
181
- # @param [Array[String]] test_users The test_users
174
+ # @param [Array[String]] test_users List of test user identities that can test
175
+ # draft versions of the flow.
182
176
  # @return [FlowTestUserInstance] Updated FlowTestUserInstance
183
177
  def update(test_users: nil)
184
178
  context.update(test_users: test_users, )
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Studio < Domain
12
12
  class V2 < Version
13
- ##
14
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
13
  class FlowValidateList < ListResource
16
14
  ##
17
15
  # Initialize the FlowValidateList
@@ -27,10 +25,11 @@ module Twilio
27
25
 
28
26
  ##
29
27
  # Update the FlowValidateInstance
30
- # @param [String] friendly_name The friendly_name
31
- # @param [flow_validate.Status] status The status
32
- # @param [Hash] definition The definition
33
- # @param [String] commit_message The commit_message
28
+ # @param [String] friendly_name The string that you assigned to describe the Flow.
29
+ # @param [flow_validate.Status] status The status of the Flow. Can be: `draft` or
30
+ # `published`.
31
+ # @param [Hash] definition JSON representation of flow definition.
32
+ # @param [String] commit_message Description of change made in the revision.
34
33
  # @return [FlowValidateInstance] Updated FlowValidateInstance
35
34
  def update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
36
35
  data = Twilio::Values.of({
@@ -52,8 +51,6 @@ module Twilio
52
51
  end
53
52
  end
54
53
 
55
- ##
56
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
57
54
  class FlowValidatePage < Page
58
55
  ##
59
56
  # Initialize the FlowValidatePage
@@ -83,8 +80,6 @@ module Twilio
83
80
  end
84
81
  end
85
82
 
86
- ##
87
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
88
83
  class FlowValidateInstance < InstanceResource
89
84
  ##
90
85
  # Initialize the FlowValidateInstance
@@ -99,7 +94,7 @@ module Twilio
99
94
  end
100
95
 
101
96
  ##
102
- # @return [Boolean] The valid
97
+ # @return [Boolean] Boolean if the flow definition is valid
103
98
  def valid
104
99
  @properties['valid']
105
100
  end
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # 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.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class CommandList < ListResource
16
16
  ##
17
17
  # Initialize the CommandList
@@ -176,7 +176,7 @@ module Twilio
176
176
  end
177
177
 
178
178
  ##
179
- # 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.
179
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
180
180
  class CommandPage < Page
181
181
  ##
182
182
  # Initialize the CommandPage
@@ -207,7 +207,7 @@ module Twilio
207
207
  end
208
208
 
209
209
  ##
210
- # 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.
210
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
211
211
  class CommandContext < InstanceContext
212
212
  ##
213
213
  # Initialize the CommandContext
@@ -247,7 +247,7 @@ module Twilio
247
247
  end
248
248
 
249
249
  ##
250
- # 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.
250
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
251
251
  class CommandInstance < InstanceResource
252
252
  ##
253
253
  # Initialize the CommandInstance
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # 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.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class FleetList < ListResource
16
16
  ##
17
17
  # Initialize the FleetList
@@ -43,9 +43,9 @@ module Twilio
43
43
  # of sending and receiving machine-to-machine SMS via Commands. Defaults to
44
44
  # `true`.
45
45
  # @param [String] commands_url The URL that will receive a webhook when a SIM in
46
- # the Fleet originates a machine-to-machine SMS via Commands. Your server should
47
- # respond with an HTTP status code in the 200 range; any response body will be
48
- # ignored.
46
+ # the Fleet is used to send an SMS from your device (mobile originated) to the
47
+ # Commands number. Your server should respond with an HTTP status code in the 200
48
+ # range; any response body will be ignored.
49
49
  # @param [String] commands_method A string representing the HTTP method to use
50
50
  # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
51
51
  # to `POST`.
@@ -168,7 +168,7 @@ module Twilio
168
168
  end
169
169
 
170
170
  ##
171
- # 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.
171
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
172
172
  class FleetPage < Page
173
173
  ##
174
174
  # Initialize the FleetPage
@@ -199,7 +199,7 @@ module Twilio
199
199
  end
200
200
 
201
201
  ##
202
- # 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.
202
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
203
203
  class FleetContext < InstanceContext
204
204
  ##
205
205
  # Initialize the FleetContext
@@ -231,11 +231,20 @@ module Twilio
231
231
  # @param [String] network_access_profile The SID or unique name of the Network
232
232
  # Access Profile that will control which cellular networks the Fleet's SIMs can
233
233
  # connect to.
234
+ # @param [String] commands_url The URL that will receive a webhook when a SIM in
235
+ # the Fleet is used to send an SMS from your device (mobile originated) to the
236
+ # Commands number. Your server should respond with an HTTP status code in the 200
237
+ # range; any response body will be ignored.
238
+ # @param [String] commands_method A string representing the HTTP method to use
239
+ # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
240
+ # to `POST`.
234
241
  # @return [FleetInstance] Updated FleetInstance
235
- def update(unique_name: :unset, network_access_profile: :unset)
242
+ def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset)
236
243
  data = Twilio::Values.of({
237
244
  'UniqueName' => unique_name,
238
245
  'NetworkAccessProfile' => network_access_profile,
246
+ 'CommandsUrl' => commands_url,
247
+ 'CommandsMethod' => commands_method,
239
248
  })
240
249
 
241
250
  payload = @version.update('POST', @uri, data: data)
@@ -259,7 +268,7 @@ module Twilio
259
268
  end
260
269
 
261
270
  ##
262
- # 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.
271
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
263
272
  class FleetInstance < InstanceResource
264
273
  ##
265
274
  # Initialize the FleetInstance
@@ -364,7 +373,7 @@ module Twilio
364
373
  end
365
374
 
366
375
  ##
367
- # @return [String] The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands
376
+ # @return [String] The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number
368
377
  def commands_url
369
378
  @properties['commands_url']
370
379
  end
@@ -396,9 +405,21 @@ module Twilio
396
405
  # @param [String] network_access_profile The SID or unique name of the Network
397
406
  # Access Profile that will control which cellular networks the Fleet's SIMs can
398
407
  # connect to.
408
+ # @param [String] commands_url The URL that will receive a webhook when a SIM in
409
+ # the Fleet is used to send an SMS from your device (mobile originated) to the
410
+ # Commands number. Your server should respond with an HTTP status code in the 200
411
+ # range; any response body will be ignored.
412
+ # @param [String] commands_method A string representing the HTTP method to use
413
+ # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
414
+ # to `POST`.
399
415
  # @return [FleetInstance] Updated FleetInstance
400
- def update(unique_name: :unset, network_access_profile: :unset)
401
- context.update(unique_name: unique_name, network_access_profile: network_access_profile, )
416
+ def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset)
417
+ context.update(
418
+ unique_name: unique_name,
419
+ network_access_profile: network_access_profile,
420
+ commands_url: commands_url,
421
+ commands_method: commands_method,
422
+ )
402
423
  end
403
424
 
404
425
  ##
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # 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.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class NetworkList < ListResource
16
16
  ##
17
17
  # Initialize the NetworkList
@@ -143,7 +143,7 @@ module Twilio
143
143
  end
144
144
 
145
145
  ##
146
- # 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.
146
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
147
147
  class NetworkPage < Page
148
148
  ##
149
149
  # Initialize the NetworkPage
@@ -174,7 +174,7 @@ module Twilio
174
174
  end
175
175
 
176
176
  ##
177
- # 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.
177
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
178
178
  class NetworkContext < InstanceContext
179
179
  ##
180
180
  # Initialize the NetworkContext
@@ -214,7 +214,7 @@ module Twilio
214
214
  end
215
215
 
216
216
  ##
217
- # 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.
217
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
218
218
  class NetworkInstance < InstanceResource
219
219
  ##
220
220
  # Initialize the NetworkInstance
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # 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.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class NetworkAccessProfileList < ListResource
16
16
  ##
17
17
  # Initialize the NetworkAccessProfileList
@@ -132,7 +132,7 @@ module Twilio
132
132
  end
133
133
 
134
134
  ##
135
- # 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.
135
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
136
136
  class NetworkAccessProfilePage < Page
137
137
  ##
138
138
  # Initialize the NetworkAccessProfilePage
@@ -163,7 +163,7 @@ module Twilio
163
163
  end
164
164
 
165
165
  ##
166
- # 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.
166
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
167
167
  class NetworkAccessProfileContext < InstanceContext
168
168
  ##
169
169
  # Initialize the NetworkAccessProfileContext
@@ -239,7 +239,7 @@ module Twilio
239
239
  end
240
240
 
241
241
  ##
242
- # 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.
242
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
243
243
  class NetworkAccessProfileInstance < InstanceResource
244
244
  ##
245
245
  # Initialize the NetworkAccessProfileInstance
@@ -12,7 +12,7 @@ module Twilio
12
12
  class V1 < Version
13
13
  class NetworkAccessProfileContext < InstanceContext
14
14
  ##
15
- # 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.
15
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
16
  class NetworkAccessProfileNetworkList < ListResource
17
17
  ##
18
18
  # Initialize the NetworkAccessProfileNetworkList
@@ -133,7 +133,7 @@ module Twilio
133
133
  end
134
134
 
135
135
  ##
136
- # 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.
136
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
137
137
  class NetworkAccessProfileNetworkPage < Page
138
138
  ##
139
139
  # Initialize the NetworkAccessProfileNetworkPage
@@ -168,7 +168,7 @@ module Twilio
168
168
  end
169
169
 
170
170
  ##
171
- # 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.
171
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
172
172
  class NetworkAccessProfileNetworkContext < InstanceContext
173
173
  ##
174
174
  # Initialize the NetworkAccessProfileNetworkContext
@@ -222,7 +222,7 @@ module Twilio
222
222
  end
223
223
 
224
224
  ##
225
- # 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.
225
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
226
226
  class NetworkAccessProfileNetworkInstance < InstanceResource
227
227
  ##
228
228
  # Initialize the NetworkAccessProfileNetworkInstance
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # 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.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class SimList < ListResource
16
16
  ##
17
17
  # Initialize the SimList
@@ -140,7 +140,7 @@ module Twilio
140
140
  end
141
141
 
142
142
  ##
143
- # 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.
143
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
144
144
  class SimPage < Page
145
145
  ##
146
146
  # Initialize the SimPage
@@ -171,7 +171,7 @@ module Twilio
171
171
  end
172
172
 
173
173
  ##
174
- # 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.
174
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
175
175
  class SimContext < InstanceContext
176
176
  ##
177
177
  # Initialize the SimContext
@@ -246,7 +246,7 @@ module Twilio
246
246
  end
247
247
 
248
248
  ##
249
- # 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.
249
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
250
250
  class SimInstance < InstanceResource
251
251
  ##
252
252
  # Initialize the SimInstance
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # 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.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class UsageRecordList < ListResource
16
16
  ##
17
17
  # Initialize the UsageRecordList
@@ -211,7 +211,7 @@ module Twilio
211
211
  end
212
212
 
213
213
  ##
214
- # 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.
214
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
215
215
  class UsageRecordPage < Page
216
216
  ##
217
217
  # Initialize the UsageRecordPage
@@ -242,7 +242,7 @@ module Twilio
242
242
  end
243
243
 
244
244
  ##
245
- # 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.
245
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
246
246
  class UsageRecordInstance < InstanceResource
247
247
  ##
248
248
  # Initialize the UsageRecordInstance
@@ -223,10 +223,10 @@ module Twilio
223
223
 
224
224
  ##
225
225
  # Create the TaskInstance
226
- # @param [String] timeout The amount of time in seconds the new task is allowed to
227
- # live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value
228
- # is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire
229
- # with description `Task TTL Exceeded`.
226
+ # @param [String] timeout The amount of time in seconds the new task can live
227
+ # before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds).
228
+ # The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled`
229
+ # event will fire with description `Task TTL Exceeded`.
230
230
  # @param [String] priority The priority to assign the new task and override the
231
231
  # default. When supplied, the new Task will have this priority unless it matches a
232
232
  # Workflow Target with a Priority set. When not supplied, the new Task will have
@@ -539,7 +539,7 @@ module Twilio
539
539
  end
540
540
 
541
541
  ##
542
- # @return [String] The amount of time in seconds that the Task is allowed to live
542
+ # @return [String] The amount of time in seconds that the Task can live before being assigned
543
543
  def timeout
544
544
  @properties['timeout']
545
545
  end
@@ -337,9 +337,11 @@ module Twilio
337
337
  # connector_name:: Unique name for Stream Connector
338
338
  # url:: URL of the remote service where the Stream is routed
339
339
  # track:: Track to be streamed to remote service
340
+ # status_callback:: Status Callback URL
341
+ # status_callback_method:: Status Callback URL method
340
342
  # keyword_args:: additional attributes
341
- def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
342
- stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
343
+ def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
344
+ stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
343
345
 
344
346
  yield(stream) if block_given?
345
347
  append(stream)
@@ -426,9 +428,11 @@ module Twilio
426
428
  # connector_name:: Unique name for Stream Connector
427
429
  # url:: URL of the remote service where the Stream is routed
428
430
  # track:: Track to be streamed to remote service
431
+ # status_callback:: Status Callback URL
432
+ # status_callback_method:: Status Callback URL method
429
433
  # keyword_args:: additional attributes
430
- def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
431
- stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
434
+ def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
435
+ stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
432
436
 
433
437
  yield(stream) if block_given?
434
438
  append(stream)
@@ -1144,9 +1148,11 @@ module Twilio
1144
1148
  # connector_name:: Unique name for Stream Connector
1145
1149
  # url:: URL of the remote service where the Stream is routed
1146
1150
  # track:: Track to be streamed to remote service
1151
+ # status_callback:: Status Callback URL
1152
+ # status_callback_method:: Status Callback URL method
1147
1153
  # keyword_args:: additional attributes
1148
- def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
1149
- stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
1154
+ def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
1155
+ stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
1150
1156
 
1151
1157
  yield(stream) if block_given?
1152
1158
  append(stream)
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.46.0'
2
+ VERSION = '5.46.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.46.0
4
+ version: 5.46.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt