twilio-ruby 5.0.0.rc16 → 5.0.0.rc17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS.md +1 -0
  3. data/CHANGES.md +1 -1
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/jwt/access_token.rb +23 -1
  6. data/lib/twilio-ruby/rest/api.rb +2 -2
  7. data/lib/twilio-ruby/rest/api/v2010.rb +2 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account.rb +19 -11
  9. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +29 -5
  10. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +25 -0
  12. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +406 -0
  13. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -6
  14. data/lib/twilio-ruby/rest/{notifications.rb → chat.rb} +6 -6
  15. data/lib/twilio-ruby/rest/{notifications → chat}/v1.rb +3 -3
  16. data/lib/twilio-ruby/rest/{notifications → chat}/v1/credential.rb +5 -5
  17. data/lib/twilio-ruby/rest/chat/v1/service.rb +501 -0
  18. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +468 -0
  19. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +351 -0
  20. data/lib/twilio-ruby/rest/{api/v2010/account/sms/sms_message.rb → chat/v1/service/channel/message.rb} +120 -168
  21. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +373 -0
  22. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +378 -0
  23. data/lib/twilio-ruby/rest/client.rb +19 -8
  24. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +3 -1
  25. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -6
  26. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +5 -1
  27. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +5 -0
  28. data/lib/twilio-ruby/rest/notify.rb +44 -0
  29. data/lib/twilio-ruby/rest/notify/v1.rb +44 -0
  30. data/lib/twilio-ruby/rest/notify/v1/credential.rb +375 -0
  31. data/lib/twilio-ruby/rest/{notifications → notify}/v1/service.rb +5 -5
  32. data/lib/twilio-ruby/rest/{notifications → notify}/v1/service/binding.rb +5 -5
  33. data/lib/twilio-ruby/rest/{notifications → notify}/v1/service/notification.rb +4 -4
  34. data/lib/twilio-ruby/rest/preview.rb +11 -0
  35. data/lib/twilio-ruby/rest/preview/sync.rb +35 -0
  36. data/lib/twilio-ruby/rest/preview/sync/service.rb +458 -0
  37. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +376 -0
  38. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +375 -0
  39. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +409 -0
  40. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +375 -0
  41. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +411 -0
  42. data/lib/twilio-ruby/rest/preview/wireless/device.rb +6 -2
  43. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +55 -3
  44. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +29 -6
  45. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +294 -0
  46. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +32 -0
  47. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +374 -0
  48. data/lib/twilio-ruby/version.rb +1 -1
  49. data/spec/integration/api/v2010/account/conference/participant_spec.rb +6 -6
  50. data/spec/integration/api/v2010/account/recording_spec.rb +10 -1
  51. data/spec/integration/api/v2010/account/{sms/short_code_spec.rb → short_code_spec.rb} +0 -7
  52. data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +3 -7
  53. data/spec/integration/chat/v1/credential_spec.rb +223 -0
  54. data/spec/integration/chat/v1/service/channel/member_spec.rb +213 -0
  55. data/spec/integration/chat/v1/service/channel/message_spec.rb +100 -0
  56. data/spec/integration/chat/v1/service/channel_spec.rb +259 -0
  57. data/spec/integration/chat/v1/service/role_spec.rb +263 -0
  58. data/spec/integration/chat/v1/service/user_spec.rb +242 -0
  59. data/spec/integration/chat/v1/service_spec.rb +263 -0
  60. data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -3
  61. data/spec/integration/ip_messaging/v1/service/user_spec.rb +2 -3
  62. data/spec/integration/lookups/v1/phone_number_spec.rb +5 -0
  63. data/spec/integration/{notifications → notify}/v1/credential_spec.rb +24 -24
  64. data/spec/integration/{notifications → notify}/v1/service/binding_spec.rb +29 -29
  65. data/spec/integration/{notifications → notify}/v1/service/notification_spec.rb +5 -5
  66. data/spec/integration/{notifications → notify}/v1/service_spec.rb +32 -32
  67. data/spec/integration/preview/sync/service/document_spec.rb +92 -0
  68. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +100 -0
  69. data/spec/integration/preview/sync/service/sync_list_spec.rb +73 -0
  70. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +101 -0
  71. data/spec/integration/preview/sync/service/sync_map_spec.rb +73 -0
  72. data/spec/integration/preview/sync/service_spec.rb +84 -0
  73. data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +127 -0
  74. data/spec/integration/taskrouter/v1/workspace/task_spec.rb +8 -0
  75. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +201 -0
  76. data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +2 -3
  77. data/spec/integration/taskrouter/v1/workspace_spec.rb +8 -0
  78. data/spec/jwt/access_token_spec.rb +27 -0
  79. metadata +84 -42
  80. data/lib/twilio-ruby/rest/api/v2010/account/sms.rb +0 -134
  81. data/lib/twilio-ruby/rest/api/v2010/account/sms/short_code.rb +0 -408
  82. data/spec/integration/api/v2010/account/sms/sms_message_spec.rb +0 -275
  83. data/spec/integration/api/v2010/account/sms_spec.rb +0 -10
@@ -0,0 +1,92 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ require 'spec_helper.rb'
8
+
9
+ describe 'Document' do
10
+ it "can fetch" do
11
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
12
+
13
+ expect {
14
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
15
+ .documents("sid").fetch()
16
+ }.to raise_exception(Twilio::REST::TwilioException)
17
+
18
+ values = {}
19
+ expect(
20
+ @holodeck.has_request?(Holodeck::Request.new(
21
+ method: 'get',
22
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/sid',
23
+ ))).to eq(true)
24
+ end
25
+
26
+ it "can delete" do
27
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
28
+
29
+ expect {
30
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
31
+ .documents("sid").delete()
32
+ }.to raise_exception(Twilio::REST::TwilioException)
33
+
34
+ values = {}
35
+ expect(
36
+ @holodeck.has_request?(Holodeck::Request.new(
37
+ method: 'delete',
38
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/sid',
39
+ ))).to eq(true)
40
+ end
41
+
42
+ it "can create" do
43
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
44
+
45
+ expect {
46
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
47
+ .documents.create()
48
+ }.to raise_exception(Twilio::REST::TwilioException)
49
+
50
+ values = {}
51
+ expect(
52
+ @holodeck.has_request?(Holodeck::Request.new(
53
+ method: 'post',
54
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents',
55
+ ))).to eq(true)
56
+ end
57
+
58
+ it "can read" do
59
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
60
+
61
+ expect {
62
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
63
+ .documents.list()
64
+ }.to raise_exception(Twilio::REST::TwilioException)
65
+
66
+ values = {}
67
+ expect(
68
+ @holodeck.has_request?(Holodeck::Request.new(
69
+ method: 'get',
70
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents',
71
+ ))).to eq(true)
72
+ end
73
+
74
+ it "can update" do
75
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
76
+
77
+ expect {
78
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
79
+ .documents("sid").update(data: "{}")
80
+ }.to raise_exception(Twilio::REST::TwilioException)
81
+
82
+ values = {
83
+ 'Data' => "{}",
84
+ }
85
+ expect(
86
+ @holodeck.has_request?(Holodeck::Request.new(
87
+ method: 'post',
88
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/sid',
89
+ data: values,
90
+ ))).to eq(true)
91
+ end
92
+ end
@@ -0,0 +1,100 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ require 'spec_helper.rb'
8
+
9
+ describe 'SyncListItem' do
10
+ it "can fetch" do
11
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
12
+
13
+ expect {
14
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
15
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
16
+ .sync_list_items(1).fetch()
17
+ }.to raise_exception(Twilio::REST::TwilioException)
18
+
19
+ values = {}
20
+ expect(
21
+ @holodeck.has_request?(Holodeck::Request.new(
22
+ method: 'get',
23
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "can delete" do
28
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
29
+
30
+ expect {
31
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
32
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
33
+ .sync_list_items(1).delete()
34
+ }.to raise_exception(Twilio::REST::TwilioException)
35
+
36
+ values = {}
37
+ expect(
38
+ @holodeck.has_request?(Holodeck::Request.new(
39
+ method: 'delete',
40
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1',
41
+ ))).to eq(true)
42
+ end
43
+
44
+ it "can create" do
45
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
46
+
47
+ expect {
48
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
49
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
50
+ .sync_list_items.create(data: "{}")
51
+ }.to raise_exception(Twilio::REST::TwilioException)
52
+
53
+ values = {
54
+ 'Data' => "{}",
55
+ }
56
+ expect(
57
+ @holodeck.has_request?(Holodeck::Request.new(
58
+ method: 'post',
59
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items',
60
+ data: values,
61
+ ))).to eq(true)
62
+ end
63
+
64
+ it "can read" do
65
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
66
+
67
+ expect {
68
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
69
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
70
+ .sync_list_items.list()
71
+ }.to raise_exception(Twilio::REST::TwilioException)
72
+
73
+ values = {}
74
+ expect(
75
+ @holodeck.has_request?(Holodeck::Request.new(
76
+ method: 'get',
77
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items',
78
+ ))).to eq(true)
79
+ end
80
+
81
+ it "can update" do
82
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
83
+
84
+ expect {
85
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
86
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
87
+ .sync_list_items(1).update(data: "{}")
88
+ }.to raise_exception(Twilio::REST::TwilioException)
89
+
90
+ values = {
91
+ 'Data' => "{}",
92
+ }
93
+ expect(
94
+ @holodeck.has_request?(Holodeck::Request.new(
95
+ method: 'post',
96
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1',
97
+ data: values,
98
+ ))).to eq(true)
99
+ end
100
+ end
@@ -0,0 +1,73 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ require 'spec_helper.rb'
8
+
9
+ describe 'SyncList' do
10
+ it "can fetch" do
11
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
12
+
13
+ expect {
14
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
15
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
16
+ }.to raise_exception(Twilio::REST::TwilioException)
17
+
18
+ values = {}
19
+ expect(
20
+ @holodeck.has_request?(Holodeck::Request.new(
21
+ method: 'get',
22
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
23
+ ))).to eq(true)
24
+ end
25
+
26
+ it "can delete" do
27
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
28
+
29
+ expect {
30
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
31
+ .sync_lists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
32
+ }.to raise_exception(Twilio::REST::TwilioException)
33
+
34
+ values = {}
35
+ expect(
36
+ @holodeck.has_request?(Holodeck::Request.new(
37
+ method: 'delete',
38
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
39
+ ))).to eq(true)
40
+ end
41
+
42
+ it "can create" do
43
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
44
+
45
+ expect {
46
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
47
+ .sync_lists.create()
48
+ }.to raise_exception(Twilio::REST::TwilioException)
49
+
50
+ values = {}
51
+ expect(
52
+ @holodeck.has_request?(Holodeck::Request.new(
53
+ method: 'post',
54
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists',
55
+ ))).to eq(true)
56
+ end
57
+
58
+ it "can read" do
59
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
60
+
61
+ expect {
62
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
63
+ .sync_lists.list()
64
+ }.to raise_exception(Twilio::REST::TwilioException)
65
+
66
+ values = {}
67
+ expect(
68
+ @holodeck.has_request?(Holodeck::Request.new(
69
+ method: 'get',
70
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists',
71
+ ))).to eq(true)
72
+ end
73
+ end
@@ -0,0 +1,101 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ require 'spec_helper.rb'
8
+
9
+ describe 'SyncMapItem' do
10
+ it "can fetch" do
11
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
12
+
13
+ expect {
14
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
15
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
16
+ .sync_map_items("key").fetch()
17
+ }.to raise_exception(Twilio::REST::TwilioException)
18
+
19
+ values = {}
20
+ expect(
21
+ @holodeck.has_request?(Holodeck::Request.new(
22
+ method: 'get',
23
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "can delete" do
28
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
29
+
30
+ expect {
31
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
32
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
33
+ .sync_map_items("key").delete()
34
+ }.to raise_exception(Twilio::REST::TwilioException)
35
+
36
+ values = {}
37
+ expect(
38
+ @holodeck.has_request?(Holodeck::Request.new(
39
+ method: 'delete',
40
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key',
41
+ ))).to eq(true)
42
+ end
43
+
44
+ it "can create" do
45
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
46
+
47
+ expect {
48
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
49
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
50
+ .sync_map_items.create(key: "key", data: "{}")
51
+ }.to raise_exception(Twilio::REST::TwilioException)
52
+
53
+ values = {
54
+ 'Key' => "key",
55
+ 'Data' => "{}",
56
+ }
57
+ expect(
58
+ @holodeck.has_request?(Holodeck::Request.new(
59
+ method: 'post',
60
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items',
61
+ data: values,
62
+ ))).to eq(true)
63
+ end
64
+
65
+ it "can read" do
66
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
67
+
68
+ expect {
69
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
70
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
71
+ .sync_map_items.list()
72
+ }.to raise_exception(Twilio::REST::TwilioException)
73
+
74
+ values = {}
75
+ expect(
76
+ @holodeck.has_request?(Holodeck::Request.new(
77
+ method: 'get',
78
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items',
79
+ ))).to eq(true)
80
+ end
81
+
82
+ it "can update" do
83
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
84
+
85
+ expect {
86
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
87
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
88
+ .sync_map_items("key").update(data: "{}")
89
+ }.to raise_exception(Twilio::REST::TwilioException)
90
+
91
+ values = {
92
+ 'Data' => "{}",
93
+ }
94
+ expect(
95
+ @holodeck.has_request?(Holodeck::Request.new(
96
+ method: 'post',
97
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key',
98
+ data: values,
99
+ ))).to eq(true)
100
+ end
101
+ end
@@ -0,0 +1,73 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ require 'spec_helper.rb'
8
+
9
+ describe 'SyncMap' do
10
+ it "can fetch" do
11
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
12
+
13
+ expect {
14
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
15
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
16
+ }.to raise_exception(Twilio::REST::TwilioException)
17
+
18
+ values = {}
19
+ expect(
20
+ @holodeck.has_request?(Holodeck::Request.new(
21
+ method: 'get',
22
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
23
+ ))).to eq(true)
24
+ end
25
+
26
+ it "can delete" do
27
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
28
+
29
+ expect {
30
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
31
+ .sync_maps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
32
+ }.to raise_exception(Twilio::REST::TwilioException)
33
+
34
+ values = {}
35
+ expect(
36
+ @holodeck.has_request?(Holodeck::Request.new(
37
+ method: 'delete',
38
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
39
+ ))).to eq(true)
40
+ end
41
+
42
+ it "can create" do
43
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
44
+
45
+ expect {
46
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
47
+ .sync_maps.create()
48
+ }.to raise_exception(Twilio::REST::TwilioException)
49
+
50
+ values = {}
51
+ expect(
52
+ @holodeck.has_request?(Holodeck::Request.new(
53
+ method: 'post',
54
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps',
55
+ ))).to eq(true)
56
+ end
57
+
58
+ it "can read" do
59
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
60
+
61
+ expect {
62
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
63
+ .sync_maps.list()
64
+ }.to raise_exception(Twilio::REST::TwilioException)
65
+
66
+ values = {}
67
+ expect(
68
+ @holodeck.has_request?(Holodeck::Request.new(
69
+ method: 'get',
70
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps',
71
+ ))).to eq(true)
72
+ end
73
+ end
@@ -0,0 +1,84 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ require 'spec_helper.rb'
8
+
9
+ describe 'Service' do
10
+ it "can fetch" do
11
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
12
+
13
+ expect {
14
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
15
+ }.to raise_exception(Twilio::REST::TwilioException)
16
+
17
+ values = {}
18
+ expect(
19
+ @holodeck.has_request?(Holodeck::Request.new(
20
+ method: 'get',
21
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
22
+ ))).to eq(true)
23
+ end
24
+
25
+ it "can delete" do
26
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
27
+
28
+ expect {
29
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
30
+ }.to raise_exception(Twilio::REST::TwilioException)
31
+
32
+ values = {}
33
+ expect(
34
+ @holodeck.has_request?(Holodeck::Request.new(
35
+ method: 'delete',
36
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
37
+ ))).to eq(true)
38
+ end
39
+
40
+ it "can create" do
41
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
42
+
43
+ expect {
44
+ @client.preview.sync.services.create()
45
+ }.to raise_exception(Twilio::REST::TwilioException)
46
+
47
+ values = {}
48
+ expect(
49
+ @holodeck.has_request?(Holodeck::Request.new(
50
+ method: 'post',
51
+ url: 'https://preview.twilio.com/Sync/Services',
52
+ ))).to eq(true)
53
+ end
54
+
55
+ it "can read" do
56
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
57
+
58
+ expect {
59
+ @client.preview.sync.services.list()
60
+ }.to raise_exception(Twilio::REST::TwilioException)
61
+
62
+ values = {}
63
+ expect(
64
+ @holodeck.has_request?(Holodeck::Request.new(
65
+ method: 'get',
66
+ url: 'https://preview.twilio.com/Sync/Services',
67
+ ))).to eq(true)
68
+ end
69
+
70
+ it "can update" do
71
+ @holodeck.mock(Twilio::TwilioResponse.new(500, ''))
72
+
73
+ expect {
74
+ @client.preview.sync.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
75
+ }.to raise_exception(Twilio::REST::TwilioException)
76
+
77
+ values = {}
78
+ expect(
79
+ @holodeck.has_request?(Holodeck::Request.new(
80
+ method: 'post',
81
+ url: 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
82
+ ))).to eq(true)
83
+ end
84
+ end