twilio-ruby 5.74.1 → 5.74.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,11 @@ module Twilio
10
10
  module REST
11
11
  class FlexApi < Domain
12
12
  class V1 < Version
13
- class GoodDataList < ListResource
13
+ class InsightsSessionList < ListResource
14
14
  ##
15
- # Initialize the GoodDataList
15
+ # Initialize the InsightsSessionList
16
16
  # @param [Version] version Version that contains the resource
17
- # @return [GoodDataList] GoodDataList
17
+ # @return [InsightsSessionList] InsightsSessionList
18
18
  def initialize(version)
19
19
  super(version)
20
20
 
@@ -25,17 +25,17 @@ module Twilio
25
25
  ##
26
26
  # Provide a user friendly representation
27
27
  def to_s
28
- '#<Twilio.FlexApi.V1.GoodDataList>'
28
+ '#<Twilio.FlexApi.V1.InsightsSessionList>'
29
29
  end
30
30
  end
31
31
 
32
- class GoodDataPage < Page
32
+ class InsightsSessionPage < Page
33
33
  ##
34
- # Initialize the GoodDataPage
34
+ # Initialize the InsightsSessionPage
35
35
  # @param [Version] version Version that contains the resource
36
36
  # @param [Response] response Response from the API
37
37
  # @param [Hash] solution Path solution for the resource
38
- # @return [GoodDataPage] GoodDataPage
38
+ # @return [InsightsSessionPage] InsightsSessionPage
39
39
  def initialize(version, response, solution)
40
40
  super(version, response)
41
41
 
@@ -44,25 +44,25 @@ module Twilio
44
44
  end
45
45
 
46
46
  ##
47
- # Build an instance of GoodDataInstance
47
+ # Build an instance of InsightsSessionInstance
48
48
  # @param [Hash] payload Payload response from the API
49
- # @return [GoodDataInstance] GoodDataInstance
49
+ # @return [InsightsSessionInstance] InsightsSessionInstance
50
50
  def get_instance(payload)
51
- GoodDataInstance.new(@version, payload, )
51
+ InsightsSessionInstance.new(@version, payload, )
52
52
  end
53
53
 
54
54
  ##
55
55
  # Provide a user friendly representation
56
56
  def to_s
57
- '<Twilio.FlexApi.V1.GoodDataPage>'
57
+ '<Twilio.FlexApi.V1.InsightsSessionPage>'
58
58
  end
59
59
  end
60
60
 
61
- class GoodDataContext < InstanceContext
61
+ class InsightsSessionContext < InstanceContext
62
62
  ##
63
- # Initialize the GoodDataContext
63
+ # Initialize the InsightsSessionContext
64
64
  # @param [Version] version Version that contains the resource
65
- # @return [GoodDataContext] GoodDataContext
65
+ # @return [InsightsSessionContext] InsightsSessionContext
66
66
  def initialize(version)
67
67
  super(version)
68
68
 
@@ -72,38 +72,38 @@ module Twilio
72
72
  end
73
73
 
74
74
  ##
75
- # Create the GoodDataInstance
75
+ # Create the InsightsSessionInstance
76
76
  # @param [String] token The Token HTTP request header
77
- # @return [GoodDataInstance] Created GoodDataInstance
77
+ # @return [InsightsSessionInstance] Created InsightsSessionInstance
78
78
  def create(token: :unset)
79
79
  headers = Twilio::Values.of({'Token' => token, })
80
80
 
81
81
  payload = @version.create('POST', @uri, headers: headers)
82
82
 
83
- GoodDataInstance.new(@version, payload, )
83
+ InsightsSessionInstance.new(@version, payload, )
84
84
  end
85
85
 
86
86
  ##
87
87
  # Provide a user friendly representation
88
88
  def to_s
89
89
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
90
- "#<Twilio.FlexApi.V1.GoodDataContext #{context}>"
90
+ "#<Twilio.FlexApi.V1.InsightsSessionContext #{context}>"
91
91
  end
92
92
 
93
93
  ##
94
94
  # Provide a detailed, user friendly representation
95
95
  def inspect
96
96
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
97
- "#<Twilio.FlexApi.V1.GoodDataContext #{context}>"
97
+ "#<Twilio.FlexApi.V1.InsightsSessionContext #{context}>"
98
98
  end
99
99
  end
100
100
 
101
- class GoodDataInstance < InstanceResource
101
+ class InsightsSessionInstance < InstanceResource
102
102
  ##
103
- # Initialize the GoodDataInstance
103
+ # Initialize the InsightsSessionInstance
104
104
  # @param [Version] version Version that contains the resource
105
105
  # @param [Hash] payload payload that contains response from Twilio
106
- # @return [GoodDataInstance] GoodDataInstance
106
+ # @return [InsightsSessionInstance] InsightsSessionInstance
107
107
  def initialize(version, payload)
108
108
  super(version)
109
109
 
@@ -124,10 +124,10 @@ module Twilio
124
124
  ##
125
125
  # Generate an instance context for the instance, the context is capable of
126
126
  # performing various actions. All instance actions are proxied to the context
127
- # @return [GoodDataContext] GoodDataContext for this GoodDataInstance
127
+ # @return [InsightsSessionContext] InsightsSessionContext for this InsightsSessionInstance
128
128
  def context
129
129
  unless @instance_context
130
- @instance_context = GoodDataContext.new(@version, )
130
+ @instance_context = InsightsSessionContext.new(@version, )
131
131
  end
132
132
  @instance_context
133
133
  end
@@ -163,9 +163,9 @@ module Twilio
163
163
  end
164
164
 
165
165
  ##
166
- # Create the GoodDataInstance
166
+ # Create the InsightsSessionInstance
167
167
  # @param [String] token The Token HTTP request header
168
- # @return [GoodDataInstance] Created GoodDataInstance
168
+ # @return [InsightsSessionInstance] Created InsightsSessionInstance
169
169
  def create(token: :unset)
170
170
  context.create(token: token, )
171
171
  end
@@ -174,14 +174,14 @@ module Twilio
174
174
  # Provide a user friendly representation
175
175
  def to_s
176
176
  values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
177
- "<Twilio.FlexApi.V1.GoodDataInstance #{values}>"
177
+ "<Twilio.FlexApi.V1.InsightsSessionInstance #{values}>"
178
178
  end
179
179
 
180
180
  ##
181
181
  # Provide a detailed, user friendly representation
182
182
  def inspect
183
183
  values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
184
- "<Twilio.FlexApi.V1.GoodDataInstance #{values}>"
184
+ "<Twilio.FlexApi.V1.InsightsSessionInstance #{values}>"
185
185
  end
186
186
  end
187
187
  end
@@ -0,0 +1,144 @@
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
+ ##
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.
15
+ class InsightsSettingsAnswerSetsList < ListResource
16
+ ##
17
+ # Initialize the InsightsSettingsAnswerSetsList
18
+ # @param [Version] version Version that contains the resource
19
+ # @return [InsightsSettingsAnswerSetsList] InsightsSettingsAnswerSetsList
20
+ def initialize(version)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {}
25
+ @uri = "/Insights/QM/Settings/AnswerSets"
26
+ end
27
+
28
+ ##
29
+ # Fetch the InsightsSettingsAnswerSetsInstance
30
+ # @param [String] token The Token HTTP request header
31
+ # @return [InsightsSettingsAnswerSetsInstance] Fetched InsightsSettingsAnswerSetsInstance
32
+ def fetch(token: :unset)
33
+ headers = Twilio::Values.of({'Token' => token, })
34
+
35
+ payload = @version.fetch('GET', @uri, headers: headers)
36
+
37
+ InsightsSettingsAnswerSetsInstance.new(@version, payload, )
38
+ end
39
+
40
+ ##
41
+ # Provide a user friendly representation
42
+ def to_s
43
+ '#<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsList>'
44
+ end
45
+ end
46
+
47
+ ##
48
+ # 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.
49
+ class InsightsSettingsAnswerSetsPage < Page
50
+ ##
51
+ # Initialize the InsightsSettingsAnswerSetsPage
52
+ # @param [Version] version Version that contains the resource
53
+ # @param [Response] response Response from the API
54
+ # @param [Hash] solution Path solution for the resource
55
+ # @return [InsightsSettingsAnswerSetsPage] InsightsSettingsAnswerSetsPage
56
+ def initialize(version, response, solution)
57
+ super(version, response)
58
+
59
+ # Path Solution
60
+ @solution = solution
61
+ end
62
+
63
+ ##
64
+ # Build an instance of InsightsSettingsAnswerSetsInstance
65
+ # @param [Hash] payload Payload response from the API
66
+ # @return [InsightsSettingsAnswerSetsInstance] InsightsSettingsAnswerSetsInstance
67
+ def get_instance(payload)
68
+ InsightsSettingsAnswerSetsInstance.new(@version, payload, )
69
+ end
70
+
71
+ ##
72
+ # Provide a user friendly representation
73
+ def to_s
74
+ '<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsPage>'
75
+ end
76
+ end
77
+
78
+ ##
79
+ # 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.
80
+ class InsightsSettingsAnswerSetsInstance < InstanceResource
81
+ ##
82
+ # Initialize the InsightsSettingsAnswerSetsInstance
83
+ # @param [Version] version Version that contains the resource
84
+ # @param [Hash] payload payload that contains response from Twilio
85
+ # @return [InsightsSettingsAnswerSetsInstance] InsightsSettingsAnswerSetsInstance
86
+ def initialize(version, payload)
87
+ super(version)
88
+
89
+ # Marshaled Properties
90
+ @properties = {
91
+ 'account_sid' => payload['account_sid'],
92
+ 'answer_sets' => payload['answer_sets'],
93
+ 'answer_set_categories' => payload['answer_set_categories'],
94
+ 'not_applicable' => payload['not_applicable'],
95
+ 'url' => payload['url'],
96
+ }
97
+ end
98
+
99
+ ##
100
+ # @return [String] The SID of the Account that created the resource and owns this Flex Insights
101
+ def account_sid
102
+ @properties['account_sid']
103
+ end
104
+
105
+ ##
106
+ # @return [Hash] Answer Set list
107
+ def answer_sets
108
+ @properties['answer_sets']
109
+ end
110
+
111
+ ##
112
+ # @return [Hash] Categories of Answer Set
113
+ def answer_set_categories
114
+ @properties['answer_set_categories']
115
+ end
116
+
117
+ ##
118
+ # @return [Hash] NA answer set
119
+ def not_applicable
120
+ @properties['not_applicable']
121
+ end
122
+
123
+ ##
124
+ # @return [String] The url
125
+ def url
126
+ @properties['url']
127
+ end
128
+
129
+ ##
130
+ # Provide a user friendly representation
131
+ def to_s
132
+ "<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsInstance>"
133
+ end
134
+
135
+ ##
136
+ # Provide a detailed, user friendly representation
137
+ def inspect
138
+ "<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsInstance>"
139
+ end
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,130 @@
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
+ ##
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.
15
+ class InsightsSettingsCommentList < ListResource
16
+ ##
17
+ # Initialize the InsightsSettingsCommentList
18
+ # @param [Version] version Version that contains the resource
19
+ # @return [InsightsSettingsCommentList] InsightsSettingsCommentList
20
+ def initialize(version)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {}
25
+ @uri = "/Insights/QM/Settings/CommentTags"
26
+ end
27
+
28
+ ##
29
+ # Fetch the InsightsSettingsCommentInstance
30
+ # @param [String] token The Token HTTP request header
31
+ # @return [InsightsSettingsCommentInstance] Fetched InsightsSettingsCommentInstance
32
+ def fetch(token: :unset)
33
+ headers = Twilio::Values.of({'Token' => token, })
34
+
35
+ payload = @version.fetch('GET', @uri, headers: headers)
36
+
37
+ InsightsSettingsCommentInstance.new(@version, payload, )
38
+ end
39
+
40
+ ##
41
+ # Provide a user friendly representation
42
+ def to_s
43
+ '#<Twilio.FlexApi.V1.InsightsSettingsCommentList>'
44
+ end
45
+ end
46
+
47
+ ##
48
+ # 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.
49
+ class InsightsSettingsCommentPage < Page
50
+ ##
51
+ # Initialize the InsightsSettingsCommentPage
52
+ # @param [Version] version Version that contains the resource
53
+ # @param [Response] response Response from the API
54
+ # @param [Hash] solution Path solution for the resource
55
+ # @return [InsightsSettingsCommentPage] InsightsSettingsCommentPage
56
+ def initialize(version, response, solution)
57
+ super(version, response)
58
+
59
+ # Path Solution
60
+ @solution = solution
61
+ end
62
+
63
+ ##
64
+ # Build an instance of InsightsSettingsCommentInstance
65
+ # @param [Hash] payload Payload response from the API
66
+ # @return [InsightsSettingsCommentInstance] InsightsSettingsCommentInstance
67
+ def get_instance(payload)
68
+ InsightsSettingsCommentInstance.new(@version, payload, )
69
+ end
70
+
71
+ ##
72
+ # Provide a user friendly representation
73
+ def to_s
74
+ '<Twilio.FlexApi.V1.InsightsSettingsCommentPage>'
75
+ end
76
+ end
77
+
78
+ ##
79
+ # 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.
80
+ class InsightsSettingsCommentInstance < InstanceResource
81
+ ##
82
+ # Initialize the InsightsSettingsCommentInstance
83
+ # @param [Version] version Version that contains the resource
84
+ # @param [Hash] payload payload that contains response from Twilio
85
+ # @return [InsightsSettingsCommentInstance] InsightsSettingsCommentInstance
86
+ def initialize(version, payload)
87
+ super(version)
88
+
89
+ # Marshaled Properties
90
+ @properties = {
91
+ 'account_sid' => payload['account_sid'],
92
+ 'comments' => payload['comments'],
93
+ 'url' => payload['url'],
94
+ }
95
+ end
96
+
97
+ ##
98
+ # @return [String] The SID of the Account that created the resource and owns this Flex Insights
99
+ def account_sid
100
+ @properties['account_sid']
101
+ end
102
+
103
+ ##
104
+ # @return [Hash] The comments
105
+ def comments
106
+ @properties['comments']
107
+ end
108
+
109
+ ##
110
+ # @return [String] The url
111
+ def url
112
+ @properties['url']
113
+ end
114
+
115
+ ##
116
+ # Provide a user friendly representation
117
+ def to_s
118
+ "<Twilio.FlexApi.V1.InsightsSettingsCommentInstance>"
119
+ end
120
+
121
+ ##
122
+ # Provide a detailed, user friendly representation
123
+ def inspect
124
+ "<Twilio.FlexApi.V1.InsightsSettingsCommentInstance>"
125
+ end
126
+ end
127
+ end
128
+ end
129
+ end
130
+ end
@@ -10,11 +10,11 @@ module Twilio
10
10
  module REST
11
11
  class FlexApi < Domain
12
12
  class V1 < Version
13
- class UserRolesList < ListResource
13
+ class InsightsUserRolesList < ListResource
14
14
  ##
15
- # Initialize the UserRolesList
15
+ # Initialize the InsightsUserRolesList
16
16
  # @param [Version] version Version that contains the resource
17
- # @return [UserRolesList] UserRolesList
17
+ # @return [InsightsUserRolesList] InsightsUserRolesList
18
18
  def initialize(version)
19
19
  super(version)
20
20
 
@@ -25,17 +25,17 @@ module Twilio
25
25
  ##
26
26
  # Provide a user friendly representation
27
27
  def to_s
28
- '#<Twilio.FlexApi.V1.UserRolesList>'
28
+ '#<Twilio.FlexApi.V1.InsightsUserRolesList>'
29
29
  end
30
30
  end
31
31
 
32
- class UserRolesPage < Page
32
+ class InsightsUserRolesPage < Page
33
33
  ##
34
- # Initialize the UserRolesPage
34
+ # Initialize the InsightsUserRolesPage
35
35
  # @param [Version] version Version that contains the resource
36
36
  # @param [Response] response Response from the API
37
37
  # @param [Hash] solution Path solution for the resource
38
- # @return [UserRolesPage] UserRolesPage
38
+ # @return [InsightsUserRolesPage] InsightsUserRolesPage
39
39
  def initialize(version, response, solution)
40
40
  super(version, response)
41
41
 
@@ -44,25 +44,25 @@ module Twilio
44
44
  end
45
45
 
46
46
  ##
47
- # Build an instance of UserRolesInstance
47
+ # Build an instance of InsightsUserRolesInstance
48
48
  # @param [Hash] payload Payload response from the API
49
- # @return [UserRolesInstance] UserRolesInstance
49
+ # @return [InsightsUserRolesInstance] InsightsUserRolesInstance
50
50
  def get_instance(payload)
51
- UserRolesInstance.new(@version, payload, )
51
+ InsightsUserRolesInstance.new(@version, payload, )
52
52
  end
53
53
 
54
54
  ##
55
55
  # Provide a user friendly representation
56
56
  def to_s
57
- '<Twilio.FlexApi.V1.UserRolesPage>'
57
+ '<Twilio.FlexApi.V1.InsightsUserRolesPage>'
58
58
  end
59
59
  end
60
60
 
61
- class UserRolesContext < InstanceContext
61
+ class InsightsUserRolesContext < InstanceContext
62
62
  ##
63
- # Initialize the UserRolesContext
63
+ # Initialize the InsightsUserRolesContext
64
64
  # @param [Version] version Version that contains the resource
65
- # @return [UserRolesContext] UserRolesContext
65
+ # @return [InsightsUserRolesContext] InsightsUserRolesContext
66
66
  def initialize(version)
67
67
  super(version)
68
68
 
@@ -72,38 +72,38 @@ module Twilio
72
72
  end
73
73
 
74
74
  ##
75
- # Fetch the UserRolesInstance
75
+ # Fetch the InsightsUserRolesInstance
76
76
  # @param [String] token The Token HTTP request header
77
- # @return [UserRolesInstance] Fetched UserRolesInstance
77
+ # @return [InsightsUserRolesInstance] Fetched InsightsUserRolesInstance
78
78
  def fetch(token: :unset)
79
79
  headers = Twilio::Values.of({'Token' => token, })
80
80
 
81
81
  payload = @version.fetch('GET', @uri, headers: headers)
82
82
 
83
- UserRolesInstance.new(@version, payload, )
83
+ InsightsUserRolesInstance.new(@version, payload, )
84
84
  end
85
85
 
86
86
  ##
87
87
  # Provide a user friendly representation
88
88
  def to_s
89
89
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
90
- "#<Twilio.FlexApi.V1.UserRolesContext #{context}>"
90
+ "#<Twilio.FlexApi.V1.InsightsUserRolesContext #{context}>"
91
91
  end
92
92
 
93
93
  ##
94
94
  # Provide a detailed, user friendly representation
95
95
  def inspect
96
96
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
97
- "#<Twilio.FlexApi.V1.UserRolesContext #{context}>"
97
+ "#<Twilio.FlexApi.V1.InsightsUserRolesContext #{context}>"
98
98
  end
99
99
  end
100
100
 
101
- class UserRolesInstance < InstanceResource
101
+ class InsightsUserRolesInstance < InstanceResource
102
102
  ##
103
- # Initialize the UserRolesInstance
103
+ # Initialize the InsightsUserRolesInstance
104
104
  # @param [Version] version Version that contains the resource
105
105
  # @param [Hash] payload payload that contains response from Twilio
106
- # @return [UserRolesInstance] UserRolesInstance
106
+ # @return [InsightsUserRolesInstance] InsightsUserRolesInstance
107
107
  def initialize(version, payload)
108
108
  super(version)
109
109
 
@@ -118,10 +118,10 @@ module Twilio
118
118
  ##
119
119
  # Generate an instance context for the instance, the context is capable of
120
120
  # performing various actions. All instance actions are proxied to the context
121
- # @return [UserRolesContext] UserRolesContext for this UserRolesInstance
121
+ # @return [InsightsUserRolesContext] InsightsUserRolesContext for this InsightsUserRolesInstance
122
122
  def context
123
123
  unless @instance_context
124
- @instance_context = UserRolesContext.new(@version, )
124
+ @instance_context = InsightsUserRolesContext.new(@version, )
125
125
  end
126
126
  @instance_context
127
127
  end
@@ -139,9 +139,9 @@ module Twilio
139
139
  end
140
140
 
141
141
  ##
142
- # Fetch the UserRolesInstance
142
+ # Fetch the InsightsUserRolesInstance
143
143
  # @param [String] token The Token HTTP request header
144
- # @return [UserRolesInstance] Fetched UserRolesInstance
144
+ # @return [InsightsUserRolesInstance] Fetched InsightsUserRolesInstance
145
145
  def fetch(token: :unset)
146
146
  context.fetch(token: token, )
147
147
  end
@@ -150,14 +150,14 @@ module Twilio
150
150
  # Provide a user friendly representation
151
151
  def to_s
152
152
  values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
153
- "<Twilio.FlexApi.V1.UserRolesInstance #{values}>"
153
+ "<Twilio.FlexApi.V1.InsightsUserRolesInstance #{values}>"
154
154
  end
155
155
 
156
156
  ##
157
157
  # Provide a detailed, user friendly representation
158
158
  def inspect
159
159
  values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
160
- "<Twilio.FlexApi.V1.UserRolesInstance #{values}>"
160
+ "<Twilio.FlexApi.V1.InsightsUserRolesInstance #{values}>"
161
161
  end
162
162
  end
163
163
  end