twilio-ruby 5.73.3 → 5.74.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +49 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
  5. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -4
  6. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
  7. data/lib/twilio-ruby/rest/content/v1/content.rb +18 -9
  8. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +156 -0
  9. data/lib/twilio-ruby/rest/flex_api/v1/good_data.rb +6 -6
  10. data/lib/twilio-ruby/rest/flex_api/v1/user_roles.rb +1 -1
  11. data/lib/twilio-ruby/rest/flex_api/v1.rb +7 -0
  12. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
  13. data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
  14. data/lib/twilio-ruby/rest/flex_api.rb +19 -0
  15. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +81 -6
  16. data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
  17. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
  18. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +43 -18
  19. data/lib/twilio-ruby/rest/messaging/v1.rb +34 -0
  20. data/lib/twilio-ruby/rest/messaging.rb +18 -0
  21. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +7 -0
  22. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
  23. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +1 -1
  24. data/lib/twilio-ruby/rest/oauth/v1.rb +7 -0
  25. data/lib/twilio-ruby/rest/oauth.rb +6 -0
  26. data/lib/twilio-ruby/rest/preview.rb +0 -33
  27. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +12 -5
  28. data/lib/twilio-ruby/twiml/voice_response.rb +21 -21
  29. data/lib/twilio-ruby/version.rb +1 -1
  30. metadata +9 -8
  31. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
  32. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
  33. data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +0 -195
  34. data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +0 -186
  35. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
  36. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 896d8d0d0dfce7ae4974eef4b0310cf88235ba69
4
- data.tar.gz: 92cb92bae7b8400bfed7273ef93b2bea4af690b2
3
+ metadata.gz: 9f1304a55ded86707fbad7aeae0ab4ae00aee341
4
+ data.tar.gz: 6f48062af91bc83b1322bb4b4bb8eb2bdd304140
5
5
  SHA512:
6
- metadata.gz: fb4fd38d013d19504a3be0ad3675f2606027bda0f928183bf96dc186f82cfdbf4f8ea3e6bfff493157823526d2f58a8d5c32bbb6928af1dc9d14d104fd1ed32c
7
- data.tar.gz: 89ea1e3fa976d22a46948144fe5fe56834faa75aabcf7ea0b0fd0466fabcb4a57b611dbb8b45ee70591c460a8e1211b68035ca5406b605fa7131c717b9ade3dc
6
+ metadata.gz: c26962f53539a87ddbcc81754acb97e154dd437f77ddc92e5fca0308ba8074a5058241629a05f0d03cfdac432187a3f51dd7c6a5f1b190b3888497bf574d91ee
7
+ data.tar.gz: f79c209c112d8b914d1f625508673a1fef96e83d3e67c1fb8b654e9a21c30e7ce63754f1b6e47d98397dffadf6cd79d988ba3df184fa710dbadc6186a0bcd552
data/CHANGES.md CHANGED
@@ -1,6 +1,55 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2022-12-14] Version 5.74.0
5
+ ---------------------------
6
+ **Api**
7
+ - Add `street_secondary` param to address create and update
8
+ - Make `method` optional for user defined message subscription **(breaking change)**
9
+
10
+ **Flex**
11
+ - Flex Conversations is now Generally Available
12
+ - Adding the ie1 mapping for authorization api, updating service base uri and base url response attribute **(breaking change)**
13
+ - Change web channels to GA and library visibility to public
14
+ - Changing the uri for authorization api from using Accounts to Insights **(breaking change)**
15
+
16
+ **Media**
17
+ - Gate Twilio Live endpoints behind beta_feature for EOS
18
+
19
+ **Messaging**
20
+ - Mark `MessageFlow` as a required field for Campaign Creation **(breaking change)**
21
+
22
+ **Oauth**
23
+ - updated openid discovery endpoint uri **(breaking change)**
24
+ - Added device code authorization endpoint
25
+
26
+ **Supersim**
27
+ - Allow filtering the SettingsUpdates resource by `status`
28
+
29
+ **Twiml**
30
+ - Add new Polly Neural voices
31
+ - Add tr-TR, ar-AE, yue-CN, fi-FI languages to SSML `<lang>` element.
32
+ - Add x-amazon-jyutping, x-amazon-pinyin, x-amazon-pron-kana, x-amazon-yomigana alphabets to SSML `<phoneme>` element.
33
+ - Rename `character` value for SSML `<say-as>` `interpret-as` attribute to `characters`. **(breaking change)**
34
+ - Rename `role` attribute to `format` in SSML `<say-as>` element. **(breaking change)**
35
+
36
+
37
+ [2022-11-30] Version 5.73.4
38
+ ---------------------------
39
+ **Flex**
40
+ - Adding new `assessments` api in version `v1`
41
+
42
+ **Lookups**
43
+ - Add `identity_match` package to the lookup response
44
+
45
+ **Messaging**
46
+ - Added `validated` parameter to Link Shortening API
47
+
48
+ **Serverless**
49
+ - Add node16 as a valid Build runtime
50
+ - Add ie1 and au1 as supported regions for all endpoints.
51
+
52
+
4
53
  [2022-11-16] Version 5.73.3
5
54
  ---------------------------
6
55
  **Library - Chore**
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.73.3'
37
+ gem 'twilio-ruby', '~> 5.74.0'
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.73.3
43
+ gem install twilio-ruby -v 5.74.0
44
44
  ```
45
45
 
46
46
  To build and install the development branch yourself from the latest source:
@@ -43,8 +43,10 @@ module Twilio
43
43
  # the address. Can be: `true` or `false` and the default is `true`. If empty or
44
44
  # `true`, we will correct the address you provide if necessary. If `false`, we
45
45
  # won't alter the address you provide.
46
+ # @param [String] street_secondary The additional number and street address of the
47
+ # address.
46
48
  # @return [AddressInstance] Created AddressInstance
47
- def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
49
+ def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
48
50
  data = Twilio::Values.of({
49
51
  'CustomerName' => customer_name,
50
52
  'Street' => street,
@@ -55,6 +57,7 @@ module Twilio
55
57
  'FriendlyName' => friendly_name,
56
58
  'EmergencyEnabled' => emergency_enabled,
57
59
  'AutoCorrectAddress' => auto_correct_address,
60
+ 'StreetSecondary' => street_secondary,
58
61
  })
59
62
 
60
63
  payload = @version.create('POST', @uri, data: data)
@@ -262,8 +265,10 @@ module Twilio
262
265
  # the address. Can be: `true` or `false` and the default is `true`. If empty or
263
266
  # `true`, we will correct the address you provide if necessary. If `false`, we
264
267
  # won't alter the address you provide.
268
+ # @param [String] street_secondary The additional number and street address of the
269
+ # address.
265
270
  # @return [AddressInstance] Updated AddressInstance
266
- def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
271
+ def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
267
272
  data = Twilio::Values.of({
268
273
  'FriendlyName' => friendly_name,
269
274
  'CustomerName' => customer_name,
@@ -273,6 +278,7 @@ module Twilio
273
278
  'PostalCode' => postal_code,
274
279
  'EmergencyEnabled' => emergency_enabled,
275
280
  'AutoCorrectAddress' => auto_correct_address,
281
+ 'StreetSecondary' => street_secondary,
276
282
  })
277
283
 
278
284
  payload = @version.update('POST', @uri, data: data)
@@ -342,6 +348,7 @@ module Twilio
342
348
  'emergency_enabled' => payload['emergency_enabled'],
343
349
  'validated' => payload['validated'],
344
350
  'verified' => payload['verified'],
351
+ 'street_secondary' => payload['street_secondary'],
345
352
  }
346
353
 
347
354
  # Context
@@ -450,6 +457,12 @@ module Twilio
450
457
  @properties['verified']
451
458
  end
452
459
 
460
+ ##
461
+ # @return [String] The additional number and street address of the address
462
+ def street_secondary
463
+ @properties['street_secondary']
464
+ end
465
+
453
466
  ##
454
467
  # Delete the AddressInstance
455
468
  # @return [Boolean] true if delete succeeds, false otherwise
@@ -479,8 +492,10 @@ module Twilio
479
492
  # the address. Can be: `true` or `false` and the default is `true`. If empty or
480
493
  # `true`, we will correct the address you provide if necessary. If `false`, we
481
494
  # won't alter the address you provide.
495
+ # @param [String] street_secondary The additional number and street address of the
496
+ # address.
482
497
  # @return [AddressInstance] Updated AddressInstance
483
- def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
498
+ def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
484
499
  context.update(
485
500
  friendly_name: friendly_name,
486
501
  customer_name: customer_name,
@@ -490,6 +505,7 @@ module Twilio
490
505
  postal_code: postal_code,
491
506
  emergency_enabled: emergency_enabled,
492
507
  auto_correct_address: auto_correct_address,
508
+ street_secondary: street_secondary,
493
509
  )
494
510
  end
495
511
 
@@ -37,16 +37,16 @@ module Twilio
37
37
  # @param [String] callback The URL we should call using the `method` to send user
38
38
  # defined events to your application. URLs must contain a valid hostname
39
39
  # (underscores are not permitted).
40
- # @param [String] method The HTTP method Twilio will use when requesting the above
41
- # `Url`. Either `GET` or `POST`.
42
40
  # @param [String] idempotency_key A unique string value to identify API call. This
43
41
  # should be a unique string value per API call and can be a randomly generated.
42
+ # @param [String] method The HTTP method Twilio will use when requesting the above
43
+ # `Url`. Either `GET` or `POST`.
44
44
  # @return [UserDefinedMessageSubscriptionInstance] Created UserDefinedMessageSubscriptionInstance
45
- def create(callback: nil, method: nil, idempotency_key: :unset)
45
+ def create(callback: nil, idempotency_key: :unset, method: :unset)
46
46
  data = Twilio::Values.of({
47
47
  'Callback' => callback,
48
- 'Method' => method,
49
48
  'IdempotencyKey' => idempotency_key,
49
+ 'Method' => method,
50
50
  })
51
51
 
52
52
  payload = @version.create('POST', @uri, data: data)
@@ -0,0 +1,195 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class Content < Domain
12
+ class V1 < Version
13
+ class ContentContext < InstanceContext
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.
16
+ class ApprovalFetchList < ListResource
17
+ ##
18
+ # Initialize the ApprovalFetchList
19
+ # @param [Version] version Version that contains the resource
20
+ # @param [String] sid The unique string that that we created to identify the
21
+ # Content resource.
22
+ # @return [ApprovalFetchList] ApprovalFetchList
23
+ def initialize(version, sid: nil)
24
+ super(version)
25
+
26
+ # Path Solution
27
+ @solution = {sid: sid}
28
+ end
29
+
30
+ ##
31
+ # Provide a user friendly representation
32
+ def to_s
33
+ '#<Twilio.Content.V1.ApprovalFetchList>'
34
+ end
35
+ end
36
+
37
+ ##
38
+ # 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.
39
+ class ApprovalFetchPage < Page
40
+ ##
41
+ # Initialize the ApprovalFetchPage
42
+ # @param [Version] version Version that contains the resource
43
+ # @param [Response] response Response from the API
44
+ # @param [Hash] solution Path solution for the resource
45
+ # @return [ApprovalFetchPage] ApprovalFetchPage
46
+ def initialize(version, response, solution)
47
+ super(version, response)
48
+
49
+ # Path Solution
50
+ @solution = solution
51
+ end
52
+
53
+ ##
54
+ # Build an instance of ApprovalFetchInstance
55
+ # @param [Hash] payload Payload response from the API
56
+ # @return [ApprovalFetchInstance] ApprovalFetchInstance
57
+ def get_instance(payload)
58
+ ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid], )
59
+ end
60
+
61
+ ##
62
+ # Provide a user friendly representation
63
+ def to_s
64
+ '<Twilio.Content.V1.ApprovalFetchPage>'
65
+ end
66
+ end
67
+
68
+ ##
69
+ # 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.
70
+ class ApprovalFetchContext < InstanceContext
71
+ ##
72
+ # Initialize the ApprovalFetchContext
73
+ # @param [Version] version Version that contains the resource
74
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
75
+ # Content resource whose approval information to fetch.
76
+ # @return [ApprovalFetchContext] ApprovalFetchContext
77
+ def initialize(version, sid)
78
+ super(version)
79
+
80
+ # Path Solution
81
+ @solution = {sid: sid, }
82
+ @uri = "/Content/#{@solution[:sid]}/ApprovalRequests"
83
+ end
84
+
85
+ ##
86
+ # Fetch the ApprovalFetchInstance
87
+ # @return [ApprovalFetchInstance] Fetched ApprovalFetchInstance
88
+ def fetch
89
+ payload = @version.fetch('GET', @uri)
90
+
91
+ ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid], )
92
+ end
93
+
94
+ ##
95
+ # Provide a user friendly representation
96
+ def to_s
97
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
98
+ "#<Twilio.Content.V1.ApprovalFetchContext #{context}>"
99
+ end
100
+
101
+ ##
102
+ # Provide a detailed, user friendly representation
103
+ def inspect
104
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
105
+ "#<Twilio.Content.V1.ApprovalFetchContext #{context}>"
106
+ end
107
+ end
108
+
109
+ ##
110
+ # 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.
111
+ class ApprovalFetchInstance < InstanceResource
112
+ ##
113
+ # Initialize the ApprovalFetchInstance
114
+ # @param [Version] version Version that contains the resource
115
+ # @param [Hash] payload payload that contains response from Twilio
116
+ # @param [String] sid The unique string that that we created to identify the
117
+ # Content resource.
118
+ # @return [ApprovalFetchInstance] ApprovalFetchInstance
119
+ def initialize(version, payload, sid: nil)
120
+ super(version)
121
+
122
+ # Marshaled Properties
123
+ @properties = {
124
+ 'sid' => payload['sid'],
125
+ 'account_sid' => payload['account_sid'],
126
+ 'whatsapp' => payload['whatsapp'],
127
+ 'url' => payload['url'],
128
+ }
129
+
130
+ # Context
131
+ @instance_context = nil
132
+ @params = {'sid' => sid, }
133
+ end
134
+
135
+ ##
136
+ # Generate an instance context for the instance, the context is capable of
137
+ # performing various actions. All instance actions are proxied to the context
138
+ # @return [ApprovalFetchContext] ApprovalFetchContext for this ApprovalFetchInstance
139
+ def context
140
+ unless @instance_context
141
+ @instance_context = ApprovalFetchContext.new(@version, @params['sid'], )
142
+ end
143
+ @instance_context
144
+ end
145
+
146
+ ##
147
+ # @return [String] The unique string that identifies the Content resource
148
+ def sid
149
+ @properties['sid']
150
+ end
151
+
152
+ ##
153
+ # @return [String] The SID of the Account that created the Content resource
154
+ def account_sid
155
+ @properties['account_sid']
156
+ end
157
+
158
+ ##
159
+ # @return [Hash] Contains the whatsapp approval information for the Content resource
160
+ def whatsapp
161
+ @properties['whatsapp']
162
+ end
163
+
164
+ ##
165
+ # @return [String] The URL of the resource, relative to `https://content.twilio.com`
166
+ def url
167
+ @properties['url']
168
+ end
169
+
170
+ ##
171
+ # Fetch the ApprovalFetchInstance
172
+ # @return [ApprovalFetchInstance] Fetched ApprovalFetchInstance
173
+ def fetch
174
+ context.fetch
175
+ end
176
+
177
+ ##
178
+ # Provide a user friendly representation
179
+ def to_s
180
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
181
+ "<Twilio.Content.V1.ApprovalFetchInstance #{values}>"
182
+ end
183
+
184
+ ##
185
+ # Provide a detailed, user friendly representation
186
+ def inspect
187
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
188
+ "<Twilio.Content.V1.ApprovalFetchInstance #{values}>"
189
+ end
190
+ end
191
+ end
192
+ end
193
+ end
194
+ end
195
+ end
@@ -25,15 +25,6 @@ module Twilio
25
25
  @uri = "/Content"
26
26
  end
27
27
 
28
- ##
29
- # Create the ContentInstance
30
- # @return [ContentInstance] Created ContentInstance
31
- def create
32
- payload = @version.create('POST', @uri)
33
-
34
- ContentInstance.new(@version, payload, )
35
- end
36
-
37
28
  ##
38
29
  # Lists ContentInstance records from the API as a list.
39
30
  # Unlike stream(), this operation is eager and will load `limit` records into
@@ -167,6 +158,9 @@ module Twilio
167
158
  # Path Solution
168
159
  @solution = {sid: sid, }
169
160
  @uri = "/Content/#{@solution[:sid]}"
161
+
162
+ # Dependents
163
+ @approval_fetch = nil
170
164
  end
171
165
 
172
166
  ##
@@ -185,6 +179,14 @@ module Twilio
185
179
  @version.delete('DELETE', @uri)
186
180
  end
187
181
 
182
+ ##
183
+ # Access the approval_fetch
184
+ # @return [ApprovalFetchList]
185
+ # @return [ApprovalFetchContext]
186
+ def approval_fetch
187
+ ApprovalFetchContext.new(@version, @solution[:sid], )
188
+ end
189
+
188
190
  ##
189
191
  # Provide a user friendly representation
190
192
  def to_s
@@ -317,6 +319,13 @@ module Twilio
317
319
  context.delete
318
320
  end
319
321
 
322
+ ##
323
+ # Access the approval_fetch
324
+ # @return [approval_fetch] approval_fetch
325
+ def approval_fetch
326
+ context.approval_fetch
327
+ end
328
+
320
329
  ##
321
330
  # Provide a user friendly representation
322
331
  def to_s
@@ -0,0 +1,156 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class FlexApi < Domain
12
+ class V1 < Version
13
+ class AssessmentsList < ListResource
14
+ ##
15
+ # Initialize the AssessmentsList
16
+ # @param [Version] version Version that contains the resource
17
+ # @return [AssessmentsList] AssessmentsList
18
+ def initialize(version)
19
+ super(version)
20
+
21
+ # Path Solution
22
+ @solution = {}
23
+ end
24
+
25
+ ##
26
+ # Provide a user friendly representation
27
+ def to_s
28
+ '#<Twilio.FlexApi.V1.AssessmentsList>'
29
+ end
30
+ end
31
+
32
+ class AssessmentsPage < Page
33
+ ##
34
+ # Initialize the AssessmentsPage
35
+ # @param [Version] version Version that contains the resource
36
+ # @param [Response] response Response from the API
37
+ # @param [Hash] solution Path solution for the resource
38
+ # @return [AssessmentsPage] AssessmentsPage
39
+ def initialize(version, response, solution)
40
+ super(version, response)
41
+
42
+ # Path Solution
43
+ @solution = solution
44
+ end
45
+
46
+ ##
47
+ # Build an instance of AssessmentsInstance
48
+ # @param [Hash] payload Payload response from the API
49
+ # @return [AssessmentsInstance] AssessmentsInstance
50
+ def get_instance(payload)
51
+ AssessmentsInstance.new(@version, payload, )
52
+ end
53
+
54
+ ##
55
+ # Provide a user friendly representation
56
+ def to_s
57
+ '<Twilio.FlexApi.V1.AssessmentsPage>'
58
+ end
59
+ end
60
+
61
+ class AssessmentsContext < InstanceContext
62
+ ##
63
+ # Initialize the AssessmentsContext
64
+ # @param [Version] version Version that contains the resource
65
+ # @return [AssessmentsContext] AssessmentsContext
66
+ def initialize(version)
67
+ super(version)
68
+
69
+ # Path Solution
70
+ @solution = {}
71
+ @uri = "/Accounts/Assessments"
72
+ end
73
+
74
+ ##
75
+ # Create the AssessmentsInstance
76
+ # @return [AssessmentsInstance] Created AssessmentsInstance
77
+ def create
78
+ payload = @version.create('POST', @uri)
79
+
80
+ AssessmentsInstance.new(@version, payload, )
81
+ end
82
+
83
+ ##
84
+ # Provide a user friendly representation
85
+ def to_s
86
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
87
+ "#<Twilio.FlexApi.V1.AssessmentsContext #{context}>"
88
+ end
89
+
90
+ ##
91
+ # Provide a detailed, user friendly representation
92
+ def inspect
93
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
94
+ "#<Twilio.FlexApi.V1.AssessmentsContext #{context}>"
95
+ end
96
+ end
97
+
98
+ class AssessmentsInstance < InstanceResource
99
+ ##
100
+ # Initialize the AssessmentsInstance
101
+ # @param [Version] version Version that contains the resource
102
+ # @param [Hash] payload payload that contains response from Twilio
103
+ # @return [AssessmentsInstance] AssessmentsInstance
104
+ def initialize(version, payload)
105
+ super(version)
106
+
107
+ # Marshaled Properties
108
+ @properties = {'url' => payload['url'], }
109
+
110
+ # Context
111
+ @instance_context = nil
112
+ @params = {}
113
+ end
114
+
115
+ ##
116
+ # Generate an instance context for the instance, the context is capable of
117
+ # performing various actions. All instance actions are proxied to the context
118
+ # @return [AssessmentsContext] AssessmentsContext for this AssessmentsInstance
119
+ def context
120
+ unless @instance_context
121
+ @instance_context = AssessmentsContext.new(@version, )
122
+ end
123
+ @instance_context
124
+ end
125
+
126
+ ##
127
+ # @return [String] The URL of this resource.
128
+ def url
129
+ @properties['url']
130
+ end
131
+
132
+ ##
133
+ # Create the AssessmentsInstance
134
+ # @return [AssessmentsInstance] Created AssessmentsInstance
135
+ def create
136
+ context.create
137
+ end
138
+
139
+ ##
140
+ # Provide a user friendly representation
141
+ def to_s
142
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
143
+ "<Twilio.FlexApi.V1.AssessmentsInstance #{values}>"
144
+ end
145
+
146
+ ##
147
+ # Provide a detailed, user friendly representation
148
+ def inspect
149
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
150
+ "<Twilio.FlexApi.V1.AssessmentsInstance #{values}>"
151
+ end
152
+ end
153
+ end
154
+ end
155
+ end
156
+ end
@@ -68,7 +68,7 @@ module Twilio
68
68
 
69
69
  # Path Solution
70
70
  @solution = {}
71
- @uri = "/Accounts/GoodData"
71
+ @uri = "/Insights/Session"
72
72
  end
73
73
 
74
74
  ##
@@ -112,7 +112,7 @@ module Twilio
112
112
  'workspace_id' => payload['workspace_id'],
113
113
  'session_expiry' => payload['session_expiry'],
114
114
  'session_id' => payload['session_id'],
115
- 'gd_base_url' => payload['gd_base_url'],
115
+ 'base_url' => payload['base_url'],
116
116
  'url' => payload['url'],
117
117
  }
118
118
 
@@ -133,7 +133,7 @@ module Twilio
133
133
  end
134
134
 
135
135
  ##
136
- # @return [String] Unique workspace ID in gooddata
136
+ # @return [String] Unique ID to identify the user's workspace
137
137
  def workspace_id
138
138
  @properties['workspace_id']
139
139
  end
@@ -151,9 +151,9 @@ module Twilio
151
151
  end
152
152
 
153
153
  ##
154
- # @return [String] GoodData login base URL
155
- def gd_base_url
156
- @properties['gd_base_url']
154
+ # @return [String] Base URL to fetch reports and dashboards
155
+ def base_url
156
+ @properties['base_url']
157
157
  end
158
158
 
159
159
  ##
@@ -68,7 +68,7 @@ module Twilio
68
68
 
69
69
  # Path Solution
70
70
  @solution = {}
71
- @uri = "/Accounts/UserRoles"
71
+ @uri = "/Insights/UserRoles"
72
72
  end
73
73
 
74
74
  ##
@@ -15,6 +15,7 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
+ @assessments = nil
18
19
  @channel = nil
19
20
  @configuration = nil
20
21
  @flex_flow = nil
@@ -24,6 +25,12 @@ module Twilio
24
25
  @web_channel = nil
25
26
  end
26
27
 
28
+ ##
29
+ # @return [Twilio::REST::Flex_api::V1::AssessmentsContext]
30
+ def assessments
31
+ @assessments ||= AssessmentsContext.new self
32
+ end
33
+
27
34
  ##
28
35
  # @param [String] sid The SID of the Flex chat channel resource to fetch.
29
36
  # @return [Twilio::REST::Flex_api::V1::ChannelContext] if sid was passed.