twilio-ruby 5.10.5 → 5.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -0
- data/CHANGES.md +10 -0
- data/Dockerfile +9 -0
- data/Makefile +11 -0
- data/README.md +5 -2
- data/lib/twilio-ruby/rest/api.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +117 -32
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +30 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +112 -56
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +460 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +4 -4
- data/lib/twilio-ruby/rest/client.rb +1 -2
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +5 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +8 -8
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +9 -9
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +10 -8
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +3 -7
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +3 -49
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/video.rb +18 -6
- data/lib/twilio-ruby/rest/video/v1.rb +27 -13
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +278 -0
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +278 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call/recording_spec.rb +103 -0
- data/spec/integration/api/v2010/account/conference/recording_spec.rb +240 -0
- data/spec/integration/api/v2010/account/message_spec.rb +0 -5
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +0 -48
- data/spec/integration/video/v1/composition_settings_spec.rb +86 -0
- data/spec/integration/video/v1/recording_settings_spec.rb +86 -0
- metadata +13 -3
@@ -0,0 +1,86 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'RecordingSettings' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.video.v1.recording_settings().fetch()
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {}
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'get',
|
23
|
+
url: 'https://video.twilio.com/v1/RecordingSettings/Default',
|
24
|
+
))).to eq(true)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "receives fetch responses" do
|
28
|
+
@holodeck.mock(Twilio::Response.new(
|
29
|
+
200,
|
30
|
+
%q[
|
31
|
+
{
|
32
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
33
|
+
"friendly_name": "string",
|
34
|
+
"aws_credentials_sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"encryption_key_sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
+
"aws_s3_url": "https://my-super-duper-bucket.s3.amazonaws.com/my/path/",
|
37
|
+
"aws_storage_enabled": true,
|
38
|
+
"encryption_enabled": true,
|
39
|
+
"url": "https://video.twilio.com/v1/RecordingSettings/Default"
|
40
|
+
}
|
41
|
+
]
|
42
|
+
))
|
43
|
+
|
44
|
+
actual = @client.video.v1.recording_settings().fetch()
|
45
|
+
|
46
|
+
expect(actual).to_not eq(nil)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "can create" do
|
50
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
51
|
+
|
52
|
+
expect {
|
53
|
+
@client.video.v1.recording_settings().create(friendly_name: 'friendly_name')
|
54
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
55
|
+
|
56
|
+
values = {'FriendlyName' => 'friendly_name', }
|
57
|
+
expect(
|
58
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
59
|
+
method: 'post',
|
60
|
+
url: 'https://video.twilio.com/v1/RecordingSettings/Default',
|
61
|
+
data: values,
|
62
|
+
))).to eq(true)
|
63
|
+
end
|
64
|
+
|
65
|
+
it "receives create responses" do
|
66
|
+
@holodeck.mock(Twilio::Response.new(
|
67
|
+
201,
|
68
|
+
%q[
|
69
|
+
{
|
70
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
71
|
+
"friendly_name": "friendly_name",
|
72
|
+
"aws_credentials_sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
73
|
+
"encryption_key_sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
74
|
+
"aws_s3_url": "https://my-super-duper-bucket.s3.amazonaws.com/my/path/",
|
75
|
+
"aws_storage_enabled": true,
|
76
|
+
"encryption_enabled": true,
|
77
|
+
"url": "https://video.twilio.com/v1/RecordingSettings/Default"
|
78
|
+
}
|
79
|
+
]
|
80
|
+
))
|
81
|
+
|
82
|
+
actual = @client.video.v1.recording_settings().create(friendly_name: 'friendly_name')
|
83
|
+
|
84
|
+
expect(actual).to_not eq(nil)
|
85
|
+
end
|
86
|
+
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.10.
|
4
|
+
version: 5.10.6
|
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: 2018-
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- AUTHORS.md
|
123
123
|
- CHANGES.md
|
124
124
|
- CONTRIBUTING.md
|
125
|
+
- Dockerfile
|
125
126
|
- Gemfile
|
126
127
|
- ISSUE_TEMPLATE.md
|
127
128
|
- LICENSE.md
|
@@ -181,6 +182,7 @@ files:
|
|
181
182
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
182
183
|
- lib/twilio-ruby/rest/api/v2010/account/conference.rb
|
183
184
|
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
|
185
|
+
- lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb
|
184
186
|
- lib/twilio-ruby/rest/api/v2010/account/connect_app.rb
|
185
187
|
- lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb
|
186
188
|
- lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb
|
@@ -437,7 +439,9 @@ files:
|
|
437
439
|
- lib/twilio-ruby/rest/video.rb
|
438
440
|
- lib/twilio-ruby/rest/video/v1.rb
|
439
441
|
- lib/twilio-ruby/rest/video/v1/composition.rb
|
442
|
+
- lib/twilio-ruby/rest/video/v1/composition_settings.rb
|
440
443
|
- lib/twilio-ruby/rest/video/v1/recording.rb
|
444
|
+
- lib/twilio-ruby/rest/video/v1/recording_settings.rb
|
441
445
|
- lib/twilio-ruby/rest/video/v1/room.rb
|
442
446
|
- lib/twilio-ruby/rest/video/v1/room/recording.rb
|
443
447
|
- lib/twilio-ruby/rest/video/v1/room/room_participant.rb
|
@@ -484,6 +488,7 @@ files:
|
|
484
488
|
- spec/integration/api/v2010/account/call/recording_spec.rb
|
485
489
|
- spec/integration/api/v2010/account/call_spec.rb
|
486
490
|
- spec/integration/api/v2010/account/conference/participant_spec.rb
|
491
|
+
- spec/integration/api/v2010/account/conference/recording_spec.rb
|
487
492
|
- spec/integration/api/v2010/account/conference_spec.rb
|
488
493
|
- spec/integration/api/v2010/account/connect_app_spec.rb
|
489
494
|
- spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb
|
@@ -699,7 +704,9 @@ files:
|
|
699
704
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
700
705
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
701
706
|
- spec/integration/trunking/v1/trunk_spec.rb
|
707
|
+
- spec/integration/video/v1/composition_settings_spec.rb
|
702
708
|
- spec/integration/video/v1/composition_spec.rb
|
709
|
+
- spec/integration/video/v1/recording_settings_spec.rb
|
703
710
|
- spec/integration/video/v1/recording_spec.rb
|
704
711
|
- spec/integration/video/v1/room/recording_spec.rb
|
705
712
|
- spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb
|
@@ -752,7 +759,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
752
759
|
version: '0'
|
753
760
|
requirements: []
|
754
761
|
rubyforge_project:
|
755
|
-
rubygems_version: 2.
|
762
|
+
rubygems_version: 2.5.1
|
756
763
|
signing_key:
|
757
764
|
specification_version: 4
|
758
765
|
summary: The official library for communicating with the Twilio REST API, building
|
@@ -784,6 +791,7 @@ test_files:
|
|
784
791
|
- spec/integration/api/v2010/account/call/recording_spec.rb
|
785
792
|
- spec/integration/api/v2010/account/call_spec.rb
|
786
793
|
- spec/integration/api/v2010/account/conference/participant_spec.rb
|
794
|
+
- spec/integration/api/v2010/account/conference/recording_spec.rb
|
787
795
|
- spec/integration/api/v2010/account/conference_spec.rb
|
788
796
|
- spec/integration/api/v2010/account/connect_app_spec.rb
|
789
797
|
- spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb
|
@@ -999,7 +1007,9 @@ test_files:
|
|
999
1007
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
1000
1008
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
1001
1009
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1010
|
+
- spec/integration/video/v1/composition_settings_spec.rb
|
1002
1011
|
- spec/integration/video/v1/composition_spec.rb
|
1012
|
+
- spec/integration/video/v1/recording_settings_spec.rb
|
1003
1013
|
- spec/integration/video/v1/recording_spec.rb
|
1004
1014
|
- spec/integration/video/v1/room/recording_spec.rb
|
1005
1015
|
- spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb
|